/* -----------------------------------------------------------
   GLOBAL LAYOUT
----------------------------------------------------------- */

.sp-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: #ffffff;
    color: #111;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* -----------------------------------------------------------
   LEFT NAVIGATION
----------------------------------------------------------- */

.sp-nav {
    width: 20%;
    min-width: 180px;
    padding: 60px 32px 40px 32px;
    box-sizing: border-box;
    background: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.sp-logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin-bottom: 40px;
}

.sp-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.sp-menu li {
    margin-bottom: 12px;
}

.sp-menu a {
    text-decoration: none;
    color: #777;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sp-menu a.is-active {
    color: #111;
    font-weight: 600;
}

/* -----------------------------------------------------------
   RIGHT MAIN AREA
----------------------------------------------------------- */

.sp-main {
    width: 80%;
    height: 100%;
    display: flex;
}

.sp-main-inner {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    padding: 0 60px;
}

/* -----------------------------------------------------------
   MEDIA AREA — CENTERED
----------------------------------------------------------- */

.sp-top {
    flex: 0 0 auto;
    height: 515px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0 40px 0;
    box-sizing: border-box;
    overflow: hidden;
}

.sp-media-wrapper {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding-left: 6%;
    padding-right: 0;

    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-project-media {
    display: none;
    width: 100%;
    height: auto;
}

.sp-project-media.is-active {
    display: block;
}

.sp-project-media-inner {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.sp-media-item {
    margin: 2px 3px;
    display: block;
}

.sp-media-item img,
.sp-media-item video {
    width: auto;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}

/* -----------------------------------------------------------
   VIDEO AUDIO TOGGLE — ICON ONLY ON HOVER
----------------------------------------------------------- */

.sp-media-item {
    position: relative;
}

.sp-audio-toggle {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.sp-media-item:hover .sp-audio-toggle {
    opacity: 1;
    pointer-events: auto;
}

.sp-audio-icon {
    font-size: 18px;
    background: rgba(0,0,0,0.45);
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
}

.sp-audio-icon.sp-muted::after {
    content: "🔇";
}

.sp-audio-icon.sp-unmuted::after {
    content: "🔊";
}

/* -----------------------------------------------------------
   LIST — INFINITE LOOP WHEEL
----------------------------------------------------------- */

.sp-bottom {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 60px 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* VIEWPORT */
.sp-list-container {
    width: 100%;
    max-width: 1500px;
    margin-left: 6%;
    box-sizing: border-box;
    position: relative;
    height: 240.8px; /* 7 × 34.4px */
    overflow: hidden;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        black 20%,
        black 80%,
        transparent 100%
    );
}

/* MOVING STRIP */
.sp-list-track {
    position: relative;
    will-change: transform;
}

/* ROWS */
.sp-list-item {
    height: 34.4px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    column-gap: 90px;
    align-items: center;

    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ACTIVE CENTER ROW */
.sp-list-item.is-active {
    color: #000;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */

@media (max-width: 1024px) {
    .sp-main-inner {
        padding: 0 20px;
    }

    .sp-list-item {
        column-gap: 40px;
    }
}