:root {
    --background: #181a1c;
    --text-color: white;
    --sidebar-width: 500px;
    
    
    --transition-fast: 0.2s;
    --transition-normal: 0.35s;
    --transition-slow: 0.5s;
    
    
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #181a1c;
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.layout-container {
    display: flex;
    width: 100vw;
    height: 100vh;
}


.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    transition: opacity var(--transition-slow) var(--ease-smooth);
    background: var(--background);
    opacity: 0;
    pointer-events: none;
}

.fixed-bg.active {
    opacity: 1;
}


.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    
    padding: 206px 3.174603175vw 120px 3.174603175vw; 
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 10;
}

.sidebar-top, .sidebar-bottom {
    flex-shrink: 0;
    
    opacity: 0; 
    pointer-events: none;
}

.logo {
    position: fixed;
    left: 3.174603175vw;
    top: 48px;
    z-index: 101; 
    max-width: 200px;
}

.logo-by {
    position: fixed;
    left: 3.174603175vw;
    bottom: 45px;
    z-index: 101; 
    height: 24px;
}

.sidebar-nav {
    position: absolute;
    top: 24.13441955vh;
    left: 3.174603175vw;
    height: 57.63747454vh;
    overflow-y: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
}

#article-list {
    list-style: none;
}


.nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.2; 
    padding: 8px 0; 
    font-variation-settings: "wght" 600;
    cursor: pointer;
    transition: color var(--transition-normal) var(--ease-smooth),
                transform var(--transition-normal) var(--ease-smooth),
                letter-spacing var(--transition-normal) var(--ease-smooth);
    transform-origin: left;
    user-select: none;
    letter-spacing: -0.01em; 
    
    
    color: hsla(0, 0%, 100%, .4);
    -webkit-text-stroke: 0;
}


#article-list li {
    color: transparent;
}

.nav-item:hover {
    color: hsla(0, 0%, 100%, .7) !important; 
    letter-spacing: 0; 
}

.nav-item.active {
    color: white !important;
    transform: none;
    letter-spacing: 0.01em; 
}


.scroll-container {
    flex-grow: 1;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    
    scroll-behavior: smooth; 
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    
    opacity: 1;
    transition: opacity 0.15s ease-in-out;
}

.scroll-container.fade-out {
    opacity: 0;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.snap-item {
    height: 85.43788187dvh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    justify-content: center;
    padding-top: calc(12.72912424dvh / 2);
    padding-right: var(--sidebar-width);
    padding-left: 0;
    position: relative;
}

.snap-item:last-of-type {
    padding-bottom: 40px; 
}

.article-card {
    position: relative;
    width: 579px;
    height: 714px;
    max-width: 90vw;
    max-height: 80vh;
    
    
    transform: scale(calc((.9 + .1 * var(--intersectionRatio, 1)) * var(--zoom-compensation, 1)));
    transform-origin: top center;
    opacity: calc(.85 + .15 * var(--intersectionRatio)); 
    
    
    transition: transform var(--transition-normal) var(--ease-smooth),
                border-color var(--transition-normal) var(--ease-smooth),
                box-shadow var(--transition-normal) var(--ease-smooth),
                opacity var(--transition-fast) var(--ease-smooth);
    
    border-radius: 10px; 
    
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, .15),
        0 8px 32px rgba(0, 0, 0, .2),
        0 0 1px rgba(255, 255, 255, .05) inset; 
    border: 1px solid hsla(0, 0%, 100%, .12); 
    
    overflow: hidden;
    
    background: linear-gradient(135deg, #1c1c1e 0%, #0d0d0f 100%);
    
    cursor: pointer;
    will-change: transform, opacity; 
}


.article-card .card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}


.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--card-bg-image);
    background-size: cover;
    background-position: top left;
    filter: blur(24px); 
    opacity: 0.25; 
    z-index: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal) var(--ease-smooth);
}

.article-card:hover {
    border-color: hsla(0, 0%, 100%, .2); 
    transform: scale(calc((.9 + .1 * var(--intersectionRatio, 1) + .03) * var(--zoom-compensation, 1))); 
    
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, .2),
        0 16px 56px rgba(0, 0, 0, .3),
        0 0 1px rgba(255, 255, 255, .08) inset;
}

.article-card:hover::before {
    opacity: 0.3; 
}

.article-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left; 
    z-index: 1;
}


.article-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 60px 36px 36px 36px; 
    
    background: linear-gradient(
        to top, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.70) 20%, 
        rgba(0, 0, 0, 0.60) 40%, 
        rgba(0, 0, 0, 0.42) 60%,
        rgba(0, 0, 0, 0.20) 80%,
        rgba(0, 0, 0, 0.04) 92%,
        transparent 100%
    );
    color: white;
    opacity: 0;
    transition: transform var(--transition-normal) var(--ease-smooth);
    transform: translateY(12px); 
    pointer-events: none;
    z-index: 2;
}


.article-info-mobile {
    display: none;
}


.article-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    
    mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,      
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0) 100%     
    );
    -webkit-mask-image: linear-gradient(
        to top,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.8) 30%,
        rgba(0, 0, 0, 0.5) 60%,
        rgba(0, 0, 0, 0.2) 80%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: -1;
    pointer-events: none;
}

.article-card:hover .article-info {
    opacity: 1;
    transform: translateY(0); 
    transition: transform var(--transition-normal) var(--ease-smooth);
}

.article-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem; 
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); 
    line-height: 1.35;
    letter-spacing: -0.02em; 
}

.article-info p {
    font-size: 0.925rem;
    opacity: 0.92;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    line-height: 1.6; 
    margin-bottom: 0.5rem; 
    letter-spacing: -0.005em;
}

.article-info p:last-child {
    margin-bottom: 0;
}


h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

p {
    font-size: 1rem;
    opacity: 0.8;
}


.about-trigger {
    position: fixed;
    bottom: 45px;
    right: 3.174603175vw;
    z-index: 201; 
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal) var(--ease-smooth);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0;
    margin: 0;
}

.about-trigger:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 1);
    transform: scale(1.05);
}

.about-trigger:active {
    transform: scale(0.95);
}

.about-trigger svg {
    width: 24px;
    height: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute; 
}


.about-trigger .icon-close {
    opacity: 0;
    transform: rotate(-90deg);
}

.about-trigger.active .icon-help {
    opacity: 0;
    transform: rotate(90deg);
}

.about-trigger.active .icon-close {
    opacity: 1;
    transform: rotate(0);
}


.about-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgb(0, 0, 0);
    z-index: 200; 
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}


.about-logo {
    position: absolute;
    left: 3.174603175vw;
    top: 48px;
    z-index: 201; 
    max-width: 200px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.about-overlay.active .about-logo {
    opacity: 1;
    pointer-events: auto;
}

.about-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.about-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.about-content {
    position: relative;
    max-width: 600px;
    width: 100%;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    
    
    padding: 60px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.02); 
}

.about-text {
    width: 100%;
}

.about-text p {
    margin-bottom: 1em;
    opacity: 0.9;
    font-size: 16px;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text strong {
    font-weight: 600;
    opacity: 1;
}

.about-text ul {
    list-style: none;
    padding-left: 0;
    margin: 1em 0 1.2em 0;
}

.about-text ul li {
    margin-bottom: 0.5em;
    padding-left: 1.5em;
    position: relative;
    opacity: 0.85;
    font-size: 15px;
    line-height: 1.7;
}

.about-text ul li:before {
    content: '—';
    position: absolute;
    left: 0;
    opacity: 0.5;
}

.about-text ul li:last-child {
    margin-bottom: 0;
}

.about-text a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.about-text a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration-color: rgba(255, 255, 255, 0.6);
}


.about-credit {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    opacity: 0.45;
    text-align: left;
}




@media (min-width: 961px) and (max-width: 1200px) {
    :root {
        --sidebar-width: 400px; 
    }
    
    .logo {
        max-width: 160px;
    }
    
    .sidebar {
        padding: 180px 2.5vw 100px 2.5vw;
    }
    
    .sidebar-nav {
        left: 2.5vw;
    }
    
    .snap-item {
        padding-right: 400px;
        padding-left: 0;
    }
    
    .article-card {
        
        max-width: 95vw;
        width: 650px;
        height: 800px;
    }
}


@media (min-width: 768px) and (max-width: 960px) {
    :root {
        --sidebar-width: 0px;
    }

    .layout-container {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .logo {
        max-width: 180px;
        top: 40px;
        left: 5vw;
    }

    .logo-by {
        display: none;
    }

    .scroll-container {
        width: 100vw;
    }

    .snap-item {
        height: 80dvh; 
        padding-top: 15dvh;
        padding-right: 0;
        padding-bottom: 0;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        justify-content: center;
        align-items: flex-start;
    }
    
    .snap-item:last-of-type {
        padding-bottom: 20px;
    }
    
    .article-card {
        
        width: 579px;
        height: 714px;
        max-width: 85vw;
        max-height: 75vh;
    }
    
    .article-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top left;
    }

    
    .about-logo {
        max-width: 180px;
        top: 40px;
        left: 5vw; 
    }
    
    .about-content {
        padding: 40px;
        max-width: 700px;
    }
}


@media (max-width: 767px) {
    :root {
        --sidebar-width: 0px;
    }

    .layout-container {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .logo {
        max-width: 120px;
        top: 24px;
        left: 6vw; 
    }

    .logo-by {
        display: none;
    }

    .scroll-container {
        width: 100vw;
    }

    .snap-item {
        height: auto; 
        min-height: 80dvh;
        padding-top: 15vh; 
        padding-right: 0;
        padding-bottom: 40px;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .snap-item:last-of-type {
        padding-bottom: 80px; 
    }
    
    .article-card {
        
        max-width: 88vw; 
        width: 100%;
        height: auto;
        max-height: none;
        
        border: 1px solid hsla(0, 0%, 100%, .15);
        box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    }
    
    .article-card .card-link {
        
        height: auto;
    }
    
    .article-card img {
        width: 100%;
        height: auto;
        max-height: 60vh; 
        object-fit: cover;
        object-position: top left;
    }

    
    .article-card .article-info {
        display: none;
    }
    
    
    .article-info-mobile {
        display: block;
        width: 100%;
        max-width: 88vw;
        padding: 24px 0 0 0;
        opacity: 1;
    }
    
    .article-info-mobile h2 {
        font-size: 1.35rem; 
        margin-bottom: 0.5rem;
        
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--text-color);
    }
    
    .article-info-mobile p {
        font-size: 0.9rem;
        line-height: 1.5;
        
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2; 
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.5rem;
        color: var(--text-color);
        opacity: 0.8;
    }
    
    .article-info-mobile p:last-child {
        margin-bottom: 0;
    }

    
    .about-trigger {
        
        display: none !important;
    }
    
    .about-overlay {
        padding: 16px; 
        align-items: flex-start; 
        overflow-y: auto; 
    }
    
    .about-logo {
        max-width: 120px;
        top: 24px;
        left: 6vw; 
    }
    
    .about-content {
        max-width: 100%;
        padding: 24px;
        margin-top: 60px; 
        margin-bottom: 60px;
        border-width: 1px; 
        background-color: rgba(20, 20, 22, 0.95); 
        backdrop-filter: blur(20px);
    }
    
    .about-text p {
        font-size: 15px; 
        line-height: 1.6;
        margin-bottom: 0.8em;
    }
    
    .about-text ul li {
        font-size: 14px;
        margin-bottom: 0.4em;
    }
    
    .about-credit {
        font-size: 12px;
        margin-top: 2em;
    }
}


@media (max-width: 375px) {
    .logo {
        max-width: 100px;
        top: 20px;
        left: 5vw;
    }
    
    .about-logo {
        max-width: 100px;
        top: 20px;
        left: 5vw;
    }
    
    .snap-item {
        padding-top: 14vh;
    }
    
    .article-card {
        max-width: 92vw;
    }

    .article-info h2 {
        font-size: 1.25rem;
    }
}