/* Info Visualization - Editorial Gallery */

body {
    margin: 0;
    padding: 0;
    background: #f4f3f0;
    overflow: hidden;
}

*::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 9999;
    background: white;
}

/* ── Viewport ── */
.iv-viewport {
    width: 100vw;
    height: calc(100vh - 60px);
    margin-top: 60px;
    position: relative;
    overflow: hidden;
    background: #f4f3f0;
}

/* ── Canvas ── */
.iv-canvas {
    width: 1512px;
    height: 982px;
    position: absolute;
    transform-origin: 0 0;
}

/* ── Two-column layout ── */
.iv-col {
    position: absolute;
    top: 0;
    height: 100%;
}

.iv-col-left {
    left: 0;
    width: 700px;
    display: flex;
    flex-direction: column;
    padding: 60px 0 50px 90px;
    box-sizing: border-box;
}

.iv-col-right {
    left: 750px;
    width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 90px 0 0;
    box-sizing: border-box;
}

/* ── Title block ── */
.iv-title-block {
    margin-bottom: 40px;
}

.iv-eyebrow {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 16px;
}

.iv-title {
    font-family: Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
}

/* ── Project cards ── */
.iv-project {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iv-project-img {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.iv-project:hover .iv-project-img {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

.iv-project-img img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.iv-project:hover .iv-project-img img {
    transform: scale(1.04);
}

/* Project 1: left column, slightly smaller */
.iv-project-1 .iv-project-img img {
    height: 380px;
}

/* Project 2: right column, larger */
.iv-project-2 .iv-project-img img {
    height: 480px;
}

/* Project info */
.iv-project-info {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 0 4px;
}

.iv-project-num {
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #bbb;
}

.iv-project-info h3 {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.iv-project-info p {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* ── Back link (fixed, outside canvas to avoid scaling) ── */
.iv-back {
    position: fixed;
    left: 30px;
    bottom: 30px;
    z-index: 9997;
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    letter-spacing: 0.3px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.iv-back:hover {
    color: #1a1a1a;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.2);
}

/* ── Detail overlay ── */
.detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.4s ease, visibility 0s 0.4s;
}

.detail-overlay.active {
    background: rgba(0, 0, 0, 0.6);
    visibility: visible;
    transition: background 0.4s ease, visibility 0s 0s;
}

.detail-scroll {
    width: 60%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
    opacity: 0;
    transform: scale(0.92) translateY(30px);
    transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1),
                transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.detail-overlay.active .detail-scroll {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.detail-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.detail-close {
    position: fixed;
    top: 20px;
    right: 28px;
    z-index: 10001;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s, background 0.3s ease;
}

.detail-overlay.active .detail-close {
    opacity: 1;
}

.detail-close:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* ── Mobile responsive ── */
@media only screen and (max-width: 600px) {
    .cursor-big-circle,
    .cursor-small-circle {
        display: none !important;
    }
    * { cursor: auto !important; }

    .iv-back {
        left: 16px;
        bottom: 20px;
        padding: 14px 24px;
        font-size: 16px;
        font-weight: 700;
    }

    .detail-scroll {
        width: 90%;
        max-height: 80vh;
        border-radius: 12px;
    }

    .detail-img {
        border-radius: 12px;
    }

    .detail-close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}
