/* ===================================================
   Works Page – works.css
   =================================================== */

/* ----- Hero ----- */
.works-hero {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8vw;
    padding-top: 6vw;
}
.works-hero__title {
    font-size: 3.8vw !important;
    line-height: 1.35 !important;
    padding: 0 !important;
    text-align: center;
    max-width: 80vw;
}

/* ----- Cursor-following hint ----- */
.works-cursor-hint {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.55vw 1.2vw;
    border-radius: 100px;
    font-size: 0.82vw;
    color: rgba(255, 255, 255, 0.7);
    font-family: Arial, Helvetica, sans-serif;
    opacity: 0;
    transition: opacity 0.25s ease;
    white-space: nowrap;
    transform: translate(-50%, calc(-100% - 14px));
    display: flex;
    align-items: center;
    gap: 0.4vw;
}

/* ----- Projects Section ----- */
.works-projects {
    padding: 0 7vw 8vw;
}

/* 6-column grid — cards use span-2 (3-per-row) or span-3 (2-per-row) */
.works-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5vw;
}

/* ----- Project Card ----- */
.project-card {
    border-radius: 22px;
    border: 1px solid #48484875;
    background: #80808012;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}
.project-card.span-2 { grid-column: span 2; }
.project-card.span-3 { grid-column: span 3; }

.project-card:hover {
    transform: translateY(-7px);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.55);
}

/* Image wrapper — aspect ratio differs by span */
.project-card__img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #0e0e0e;
}
.project-card.span-2 .project-card__img-wrap  { aspect-ratio: 4 / 3; }
.project-card.span-3 .project-card__img-wrap  { aspect-ratio: 16 / 9; }
.project-card.portrait .project-card__img-wrap { aspect-ratio: 3 / 4; }

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover .project-card__img {
    transform: scale(1.045);
}

/* Placeholder for cards without images */
.project-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: #0c0c0c;
    background-image:
        linear-gradient(90deg, hsla(0, 0%, 100%, 0.035) 1px, transparent 0),
        linear-gradient(180deg, hsla(0, 0%, 100%, 0.035) 1px, transparent 0);
    background-size: 4vw 4vw;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-card__placeholder-text {
    font-size: 0.75vw;
    color: rgba(255, 255, 255, 0.07);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    user-select: none;
}

/* Bottom info bar */
.project-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9vw 1.3vw;
    border-top: 1px solid #48484875;
}
.project-card__identity {
    display: flex;
    align-items: center;
    gap: 0.7vw;
    min-width: 0;
}
.project-card__logo-box {
    width: 2vw;
    height: 2vw;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65vw;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    font-family: Arial, Helvetica, sans-serif;
    flex-shrink: 0;
    text-transform: uppercase;
}
.project-card__name {
    font-size: 0.9vw;
    color: #ffffff;
    font-family: var(--Sf-Pro-Reg);
    display: flex;
    align-items: center;
    gap: 0.45vw;
    white-space: nowrap;
    margin: 0 !important;
    opacity: 1 !important;
}
.verified-icon {
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 1px;
}
.project-card__tag {
    font-size: 0.72vw;
    font-family: Arial, Helvetica, sans-serif;
    padding: 0.28vw 0.75vw;
    border-radius: 100px;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.42);
    flex-shrink: 0;
}
.project-card__tag--motion {
    border-color: rgba(246, 66, 17, 0.35);
    color: rgba(255, 160, 130, 0.82);
}

/* ----- Industries Section ----- */
.works-industries {
    padding: 2vw 7vw 8vw;
}
.works-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1vw;
    margin-bottom: 5vw;
    text-align: center;
}
.works-industries-subtitle {
    font-size: 1.1vw !important;
    color: #808080;
    opacity: 1 !important;
    text-align: center;
}

/* Each industry is a horizontal row */
.industries-list {
    display: flex;
    flex-direction: column;
}
.industry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5vw 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 3vw;
    transition: background 0.3s ease;
}
.industries-list .industry-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.industry-row:hover .industry-row__name {
    background-image: linear-gradient(140deg, #ffffff 60%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Left side — icon + name */
.industry-row__left {
    display: flex;
    align-items: center;
    gap: 1.2vw;
    flex: 1;
    min-width: 0;
}
.industry-row__icon {
    width: 2.8vw;
    height: 2.8vw;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.industry-row__icon img {
    width: 1.1vw;
    height: 1.1vw;
    opacity: 0.5;
}
.industry-row__name {
    font-size: 4.2vw !important;
    font-family: var(--Sf-Pro-bold);
    background-image: linear-gradient(140deg, #ffffff 60%, #333333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 !important;
    opacity: 1 !important;
    line-height: 1.1;
    transition: background-image 0.3s ease;
}

/* Right side — video card */
.industry-row__video-wrap {
    width: 28vw;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #48484875;
    position: relative;
    background: #0c0c0c;
}
.industry-row__video-wrap video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
