/* ============================================
   PRS Portfolio — Single Page Landing
   ============================================ */

:root {
    --bg: #000000;
    --bg-subtle: #0a0a0a;
    --text: #ffffff;
    --text-dim: #888888;
    --text-muted: #444444;
    --border: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Space Grotesk', var(--font-sans);
    
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 52px;
}

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

/* Default cursor everywhere */
html, body, * {
    cursor: default;
}

/* Pointer cursor for interactive elements */
a, button, .nav-btn, .control-btn, .project-card:not(.corporate),
.modal-close, .modal-close *, .lightbox-close, .lightbox-close *, .link,
.modal-link, .modal-link * {
    cursor: pointer;
}

/* Text cursor for inputs */
input, textarea {
    cursor: text;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }
* { scrollbar-width: thin; scrollbar-color: var(--text-muted) transparent; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    font-size: 19px;
}

body {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.3s var(--ease);
}
.link:hover { border-color: var(--text-dim); }

/* ============================================
   Header
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.15em;
    transition: opacity 0.3s var(--ease);
}
.logo:hover { opacity: 0.5; }

.nav { display: flex; gap: 0.25rem; }

.nav-btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    color: var(--text-dim);
    background: none;
    border: none;
    padding: 0.4rem 0.75rem;
    transition: color 0.3s var(--ease);
    text-transform: lowercase;
}
.nav-btn:hover, .nav-btn.active { color: var(--text); }

.control-btn {
    font-family: var(--font-display);
    font-size: 0.625rem;
    color: var(--text-dim);
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.3rem 0.5rem;
    border-radius: 3px;
    transition: all 0.3s var(--ease);
    letter-spacing: 0.05em;
}
.control-btn:hover { color: var(--text); border-color: var(--text-muted); }

/* ============================================
   Landing Layout
   ============================================ */
.landing {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Block base */
.block {
    transition: opacity 0.7s var(--ease);
}

.block.dimmed {
    opacity: 0.15;
}

.block-label {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

/* ============================================
   About Block
   ============================================ */
.about-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: stretch;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.about-intro {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.about-name {
    color: var(--text);
    font-weight: 500;
}

.about-role {
    font-size: 0.8125rem;
    line-height: 1.7;
    color: var(--text-dim);
}

.about-role-label {
    color: var(--text);
}

.about-collective {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-stack {
    padding: 0.625rem 0.875rem;
    background: var(--bg-subtle);
    border-left: 2px solid var(--line);
    align-self: flex-start;
    max-width: 100%;
}

.about-stack p {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-family: var(--font-display);
    line-height: 1.55;
}

.about-slider {
    position: relative;
    height: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 3px;
    flex-shrink: 0;
}

.about-slider.is-empty {
    display: none;
}

.about-slider-track {
    position: absolute;
    inset: 0;
}

.about-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    pointer-events: none;
}

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

.about-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Contacts Block
   ============================================ */
.contacts-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
}

.contacts-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem 2.5rem;
    flex: 1;
    min-width: 0;
}

.contacts-column {
    display: contents;
}

.contacts-aside {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    align-self: flex-start;
}

.contacts-logos {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem;
    flex-shrink: 0;
}

.contacts-logos.is-empty {
    display: none;
}

.contacts-logo {
    display: block;
    height: 52px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
}

.contacts-logo--invert {
    filter: invert(1);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    flex-shrink: 0;
}

.contact-label {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.625rem;
    align-items: flex-start;
}
.contact-links.stacked {
    flex-direction: column;
    gap: 0.125rem;
    align-items: flex-start;
}

.contact-link {
    display: inline-block;
    width: fit-content;
    font-size: 0.8125rem;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s var(--ease);
}
.contact-link:hover { color: var(--text); }
.contact-link.highlight {
    color: var(--text);
}
.contact-link.highlight:hover {
    color: var(--text-dim);
}

/* ============================================
   Projects Block — Tree
   ============================================ */
.block--projects {
    max-width: 100%;
}

@media (min-width: 769px) {
    .block--projects {
        --reveal-progress: 0;
        filter: blur(calc(3px * (1 - var(--reveal-progress))));
        opacity: calc(0.52 + 0.48 * var(--reveal-progress));
        transition: filter 0.45s var(--ease), opacity 0.45s var(--ease);
    }

    .block--projects.is-revealed {
        --reveal-progress: 1;
    }
}

.timeline {
    position: relative;
    --timeline-gutter: 1.5rem;
    padding-left: var(--timeline-gutter);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--line) 2%, var(--line) 98%, transparent);
}

/* Category */
.timeline-category {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.4s var(--ease);
}
.timeline-category.visible {
    opacity: 1;
    transform: translateX(0);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.75rem;
    margin-left: calc(-1 * var(--timeline-gutter));
    padding-left: var(--timeline-gutter);
    position: relative;
}

.category-header::before {
    content: '';
    position: absolute;
    left: -3px;
    width: 7px;
    height: 7px;
    background: var(--bg);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
}

.category-icon { display: none; }

.category-title {
    font-family: var(--font-display);
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-dim);
}

/* Projects */
.category-projects {
    display: flex;
    flex-direction: column;
}

.project-card {
    position: relative;
    --card-content-pad: 1rem;
    --branch-dot-x: calc((var(--card-content-pad) - 0.5 * var(--timeline-gutter)) * 0.55);
    --branch-y: calc(0.125rem + 0.45rem + 0.42em);
    padding: 0.125rem 0.75rem 0.125rem 0;
    margin-left: calc(-0.5 * var(--timeline-gutter));
    margin-right: -0.5rem;
    border-radius: 4px;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    opacity: 0;
    transform: translateX(-8px);
}

.project-card.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Clickable cards — pointer cursor on entire card */
.project-card:not(.corporate),
.project-card:not(.corporate) * {
    cursor: pointer;
}

/* Hover highlight — background only on content, branch/dot stay outside */
.card-body {
    display: block;
    margin-left: calc(var(--branch-dot-x) + 6px);
    margin-right: -0.25rem;
    padding: 0.45rem 0.75rem 0.45rem 0.625rem;
    border-radius: 4px;
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.project-card:not(.corporate):hover .card-body {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.project-card::before {
    content: '';
    position: absolute;
    left: calc(-0.5 * var(--timeline-gutter));
    top: var(--branch-y);
    transform: translateY(-50%);
    width: calc(var(--branch-dot-x) + 0.5 * var(--timeline-gutter));
    height: 1px;
    background: var(--line);
}

.project-card::after {
    content: '';
    position: absolute;
    left: calc(var(--branch-dot-x) - 2px);
    top: var(--branch-y);
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: all 0.3s var(--ease);
}

.project-card:not(.corporate):hover::after {
    background: var(--text);
    box-shadow: 0 0 6px rgba(255,255,255,0.4);
}


/* First clickable project — hint animation (removed after interaction) */
.project-card.hint-pulse::after {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        background: var(--text-muted);
        box-shadow: none;
    }
    50% { 
        background: var(--text);
        box-shadow: 0 0 8px rgba(255,255,255,0.5);
    }
}

.project-card:not(.corporate):hover::after {
    animation: none;
}

.card-thumbnail { display: none; }

.card-info {
    --card-gap: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: var(--card-gap);
    flex-wrap: wrap;
}

.card-header {
    display: contents;
}

.card-title {
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text);
}

.card-year {
    font-size: 0.625rem;
    color: var(--text-muted);
    font-family: var(--font-display);
}

.card-dash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--text-dim);
    flex: 1;
    min-width: 0;
}

.card-status {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.15rem 0.35rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    flex-shrink: 0;
}
.card-status.functioning { color: #4ade80; border-color: rgba(74,222,128,0.2); }
.card-status.active { color: #60a5fa; border-color: rgba(96,165,250,0.2); }
.card-status.soon { color: #60a5fa; border-color: rgba(96,165,250,0.2); }

/* Corporate */
.project-card.corporate {
    padding: 0.5rem 0.75rem 0.5rem var(--card-content-pad);
    margin-left: calc(-0.5 * var(--timeline-gutter));
    --branch-y: calc(0.5rem + 0.5em);
}

.project-card.corporate .card-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.375rem;
}

.project-card.corporate .card-title {
    display: block;
}

.corporate-list {
    position: relative;
    width: calc(100% - var(--branch-dot-x) + var(--card-content-pad));
    margin-top: 0.25rem;
    margin-left: calc(var(--branch-dot-x) - var(--card-content-pad));
    padding-left: 0.875rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.corporate-item {
    position: relative;
    --corp-branch-y: calc(0.375rem + 0.42em);
    font-size: 0.6875rem;
    color: var(--text-dim);
    padding: 0.375rem 0.5rem;
    margin-left: 0;
    border-radius: 3px;
    transition: background 0.3s var(--ease);
}

.corporate-item-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.3s var(--ease);
}

.corporate-item::before {
    content: '';
    position: absolute;
    left: -0.875rem;
    top: var(--corp-branch-y);
    transform: translateY(-50%);
    width: 0.625rem;
    height: 1px;
    background: var(--line);
}

.corporate-item::after {
    content: '';
    position: absolute;
    left: calc(-0.875rem + 0.625rem - 2px);
    top: var(--corp-branch-y);
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.corporate-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.corporate-item:hover .corporate-item-body {
    transform: translateX(4px);
}

.corporate-item:hover::after {
    background: var(--text);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}
.corp-name { 
    color: var(--text); 
    font-weight: 500; 
}
.corp-desc {
    color: var(--text-dim);
}
.corp-meta {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}
.corporate-item:hover .corp-meta {
    opacity: 1;
}
.corp-year {
    font-size: 0.5625rem;
    color: var(--text-muted);
}
.corp-status {
    font-size: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.25rem;
    border-radius: 2px;
}
.corp-status.functioning { color: #4ade80; background: rgba(74,222,128,0.1); }
.corp-status.frozen { color: var(--text-muted); background: rgba(255,255,255,0.05); }

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
    overflow-y: auto;
    padding: 2rem;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 6px;
    transform: translateY(15px);
    transition: transform 0.3s var(--ease);
}
.modal-overlay.open .modal-content { transform: translateY(0); }

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-dim);
    transition: all 0.3s var(--ease);
}
.modal-close:hover { color: var(--text); }

.modal-scroll {
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.modal-media {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem;
    padding: 1rem 1rem 0;
    background: transparent;
}
.modal-media:empty { display: none; }

.media-wrapper {
    position: relative;
    min-height: 150px;
    border-radius: 3px;
    overflow: hidden;
    background: transparent;
}

.media-wrapper.loading {
    background: transparent;
}

.media-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--bg-subtle) 0%,
        rgba(255,255,255,0.03) 50%,
        var(--bg-subtle) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.media-wrapper img, .media-wrapper video {
    width: 100%;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}

.media-wrapper.loaded img,
.media-wrapper.loaded video {
    opacity: 1;
}

.media-wrapper.loaded .media-skeleton {
    display: none;
}

.media-wrapper.loaded {
    min-height: 0;
}

.modal-media img { cursor: pointer; }
.modal-media img:hover { opacity: 0.85; }
.media-wrapper.loaded img:hover { opacity: 0.85; }

.modal-info { padding: 1.25rem; }

.modal-header { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.modal-status, .modal-year {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.625rem;
}

.modal-stack {
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    padding: 0.625rem 0.875rem;
    background: var(--bg);
    border-radius: 3px;
    font-family: var(--font-sans);
    line-height: 1.55;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}
.modal-stack:empty { display: none; }

.modal-desc {
    font-size: 0.8125rem;
    color: var(--text-dim);
    line-height: 1.7;
}
.modal-desc p { margin-bottom: 0.625rem; }
.modal-desc ul { list-style: none; display: flex; flex-direction: column; gap: 0.375rem; }
.modal-desc li { padding-left: 0.75rem; border-left: 1px solid var(--line); font-size: 0.75rem; }
.modal-desc strong { color: var(--text); }

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1rem;
    padding: 0.4rem 0.875rem;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 0.6875rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}
.modal-link:hover { background: var(--text); color: var(--bg); }
.modal-link[style*="display: none"] { display: none !important; }

/* ============================================
   Lightbox
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    transition: all 0.3s var(--ease);
}
.lightbox-close:hover { background: var(--text); color: var(--bg); }

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 3px;
}

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%) translateY(50px);
    padding: 0.4rem 0.875rem;
    background: var(--text);
    color: var(--bg);
    font-size: 0.6875rem;
    font-weight: 500;
    border-radius: 3px;
    opacity: 0;
    transition: all 0.4s var(--ease);
    pointer-events: none;
    z-index: 400;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .landing {
        padding: calc(var(--header-height) + 2rem) 1rem 3rem;
        gap: 3rem;
    }

    .about-body {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    .about-slider {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .contacts-body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem 1.25rem;
        align-items: start;
    }

    .contacts-content {
        display: contents;
    }

    .contacts-column {
        display: flex;
        flex-direction: column;
        gap: 1.125rem;
    }

    .contacts-column:first-child {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .contacts-column:last-child {
        grid-column: 2;
        grid-row: 1;
    }

    .contacts-aside {
        grid-column: 2;
        grid-row: 2;
        width: 100%;
        margin-top: 0;
        align-items: flex-start;
    }

    .contacts-logos {
        justify-content: flex-start;
        gap: 1.25rem;
        width: 100%;
    }

    .contacts-logo {
        height: 44px;
        max-width: 64px;
    }

    .contact-label {
        font-size: 0.5rem;
    }

    .contact-link {
        font-size: 0.75rem;
    }
    
    .timeline {
        --timeline-gutter: 1.25rem;
    }
    
    .project-card {
        --branch-y: calc(0.125rem + 0.45rem + 0.42em);
    }
    
    .card-body {
        padding: 0.5rem 0.625rem 0.5rem 0.625rem;
    }
    
    .card-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .card-subtitle {
        flex: none;
    }
    
    /* Header — smaller on mobile */
    .logo {
        font-size: 0.8125rem;
    }
    
    .nav-btn {
        font-size: 0.6875rem;
        padding: 0.35rem 0.5rem;
    }
    
    .control-btn {
        font-size: 0.5625rem;
        padding: 0.25rem 0.4rem;
    }
    
    .modal-overlay {
        padding: 0;
        overflow: hidden;
        transition: opacity 0.28s var(--ease), visibility 0.28s;
    }

    .modal-content {
        position: fixed;
        inset: 0;
        border-radius: 0;
        border: none;
        height: 100dvh;
        width: 100%;
        max-width: none;
        margin: 0;
        transform: none;
        opacity: 0;
        transition: opacity 0.28s var(--ease);
        overflow: hidden;
    }

    .modal-overlay.open .modal-content {
        transform: none;
        opacity: 1;
    }

    .modal-scroll {
        display: flex;
        flex-direction: column;
        max-height: 100dvh;
        height: 100%;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-info {
        order: 1;
    }

    .modal-media {
        order: 2;
    }
}

/* ============================================
   Animations
   ============================================ */
.project-card:nth-child(1) { transition-delay: 0.02s; }
.project-card:nth-child(2) { transition-delay: 0.04s; }
.project-card:nth-child(3) { transition-delay: 0.06s; }
.project-card:nth-child(4) { transition-delay: 0.08s; }
.project-card:nth-child(5) { transition-delay: 0.1s; }
.project-card:nth-child(6) { transition-delay: 0.12s; }
.project-card:nth-child(7) { transition-delay: 0.14s; }

.timeline-category:nth-child(1) { transition-delay: 0s; }
.timeline-category:nth-child(2) { transition-delay: 0.08s; }
.timeline-category:nth-child(3) { transition-delay: 0.16s; }
.timeline-category:nth-child(4) { transition-delay: 0.24s; }
.timeline-category:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
