.inner-page {
    min-height: 100vh;
    padding: 112px 20px 64px;
}
.page-swap-out { opacity: 0; transform: translateY(8px); transition: opacity .18s ease, transform .18s ease; }

.page-shell {
    position: relative;
    z-index: 3;
    width: min(1120px, 100%);
    margin: 0 auto;
}

.page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
    animation: pageRise .65s cubic-bezier(.16, 1, .3, 1) both;
}

.page-eyebrow {
    margin-bottom: 8px;
    color: #f0b6ff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.page-title {
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.08;
    font-weight: 800;
}

.page-lead {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, .68);
    font-size: 14px;
    line-height: 1.7;
}

.page-search {
    position: relative;
    width: min(380px, 100%);
    flex: 0 0 auto;
}

.page-search svg {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, .5);
    pointer-events: none;
}

.page-search input {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 46px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    outline: none;
    background: rgba(35, 20, 43, .38);
    color: #fff;
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 30px rgba(33, 13, 38, .16);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.page-search input::placeholder { color: rgba(255, 255, 255, .46); }
.page-search input:focus {
    border-color: rgba(233, 162, 255, .62);
    background: rgba(50, 27, 58, .5);
    box-shadow: 0 0 0 3px rgba(229, 162, 255, .11), 0 14px 34px rgba(33, 13, 38, .22);
}

.project-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-entry {
    position: relative;
    min-height: 250px;
    padding: 30px;
    overflow: hidden;
    border: 1px solid rgba(234, 183, 255, .2);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(47, 32, 61, .54), rgba(27, 23, 42, .45));
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(20px) saturate(130%);
    -webkit-backdrop-filter: blur(20px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 24px 55px rgba(31, 12, 38, .2);
    animation: pageRise .65s cubic-bezier(.16, 1, .3, 1) .12s both;
    transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .3s ease, box-shadow .3s ease;
}

.project-entry::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    top: -100px;
    right: -70px;
    border-radius: 50%;
    background: rgba(225, 147, 255, .13);
    filter: blur(20px);
    transition: transform .5s ease, background .5s ease;
}

.project-entry:hover {
    transform: translateY(-6px);
    border-color: rgba(234, 183, 255, .46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 30px 64px rgba(31, 12, 38, .3), 0 0 30px rgba(219, 137, 255, .1);
}
.project-entry:hover::before { transform: scale(1.35); background: rgba(225, 147, 255, .22); }
.project-entry[hidden] { display: none; }

.project-head { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.project-identity { display: flex; align-items: center; gap: 16px; min-width: 0; }
.project-symbol { color: #f0b6ff; font-size: 34px; font-weight: 800; }
.project-name { margin: 0; font-family: Georgia, serif; font-size: clamp(21px, 3vw, 28px); line-height: 1.12; }
.project-source { width: 27px; height: 27px; flex: 0 0 auto; color: rgba(255, 255, 255, .62); transition: color .25s ease, transform .25s ease; }
.project-entry:hover .project-source { color: #fff; transform: rotate(5deg) scale(1.06); }
.project-description { position: relative; margin: 24px 0 28px; color: rgba(255, 255, 255, .7); font-size: 14px; line-height: 1.8; }
.project-tags { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tag { padding: 5px 10px; border: 1px solid rgba(225, 153, 255, .24); border-radius: 4px; background: rgba(185, 105, 228, .1); color: #e4b1fb; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.empty-state { display: none; grid-column: 1 / -1; padding: 70px 20px; color: rgba(255, 255, 255, .55); text-align: center; }

.migrated-section {
    margin-top: 54px;
    animation: pageRise .65s cubic-bezier(.16, 1, .3, 1) .18s both;
}
.migrated-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}
.migrated-section-heading h2 { margin: 0; color: #fff; font-size: 26px; }
.migrated-section-heading p { margin: 0; color: rgba(255,255,255,.55); font-size: 13px; }
.migrated-section.posts-card { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.13); }
.migrated-section .posts-grid { padding-bottom: 10px; }
.migrated-section .post-item { background: rgba(35, 20, 43, .42) !important; }

.migrated-comms {
    margin-top: 0;
    width: 100% !important;
    max-width: none !important;
    background: rgba(35, 20, 43, .38) !important;
}
.migrated-replies { margin-top: 24px; }
.migrated-comms .email-image-preview[hidden] { display: none !important; }
.migrated-comms .email-image-preview:not([hidden]) { display: block; }
.migrated-comms .email-image-remove { display: grid; place-items: center; }

.social-posts,
.social-posts:hover {
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.migrated-section.posts-card.social-posts,
.migrated-section.posts-card.social-posts:hover {
    padding-top: 0;
    border-top: 0 !important;
}
.archive-search {
    position: relative;
    display: block;
    width: min(520px, 100%);
    margin: 0 auto 28px;
}
.archive-search svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: rgba(255,255,255,.5); pointer-events: none; }
.archive-search input { width: 100%; height: 52px; padding: 0 20px 0 50px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; outline: none; background: rgba(35,20,43,.4); color: #fff; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 36px rgba(31,12,38,.18); transition: border-color .25s ease, box-shadow .25s ease; }
.archive-search input::placeholder { color: rgba(255,255,255,.43); }
.archive-search input:focus { border-color: rgba(231,165,255,.5); box-shadow: 0 0 0 3px rgba(225,145,255,.09), 0 18px 40px rgba(31,12,38,.22); }
.archive-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 46px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: rgba(35,20,43,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 34px rgba(31,12,38,.16); }
.archive-count { display: inline-flex; align-items: center; gap: 9px; padding: 0 9px; color: rgba(255,255,255,.67); font-size: 12px; font-weight: 700; }
.archive-count strong { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: rgba(205,123,239,.16); color: #efbdff; }
.posts-view-toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    width: fit-content;
    margin: 0;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 14px;
    background: rgba(35, 20, 43, .38);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 32px rgba(31,12,38,.18);
}
.posts-view-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,.53);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .25s ease, background .25s ease, box-shadow .25s ease;
}
.posts-view-button svg { width: 17px; height: 17px; }
.posts-view-button:hover { color: rgba(255,255,255,.82); }
.posts-view-button.is-active { color: #efbdff; background: rgba(195, 112, 231, .17); box-shadow: inset 0 1px 0 rgba(255,255,255,.09); }
.social-posts .posts-grid {
    position: relative;
    overflow: visible;
    padding: 8px 0 40px;
    opacity: 1;
    transition: opacity .15s ease, transform .15s ease;
}
.social-posts .posts-grid.is-switching { opacity: 0; transform: translateY(8px); }
.social-posts .posts-loading,
.social-posts .posts-empty { grid-column: 1 / -1; }
.social-posts .social-post-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15) !important;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(44, 31, 58, .56), rgba(30, 25, 47, .5)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 22px 50px rgba(31,12,38,.2) !important;
    contain: none;
    animation: postCardReveal .45s ease both;
    animation-delay: calc(var(--post-index, 0) * 55ms);
    transition: border-color .32s ease, box-shadow .42s ease, background .32s ease !important;
}
.posts-page .social-posts .social-post-card,
.posts-page .social-posts .social-post-card:hover {
    transform: none !important;
    border-top: 1px solid rgba(255, 255, 255, .15) !important;
}
.posts-page .social-posts .social-post-card:hover { border-color: rgba(230, 164, 255, .35) !important; border-top-color: rgba(230, 164, 255, .35) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 28px 58px rgba(31,12,38,.28) !important; }
.social-posts .social-post-card::after { display: none !important; }
.archive-post-media { position: relative; width: 100%; height: 190px; overflow: hidden; background: rgba(14,10,19,.35); }
.social-posts .social-post-cover { width: 100%; height: 100%; max-height: none; margin: 0; border-radius: 0; object-fit: cover; transition: transform .7s cubic-bezier(.16,1,.3,1); }
.archive-post-card:hover .social-post-cover { transform: scale(1.045); }
.archive-post-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 46%, rgba(20,11,25,.66)); pointer-events: none; }
.archive-post-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255,255,255,.28); }
.archive-post-placeholder svg { width: 44px; height: 44px; }
.archive-post-date { position: absolute; left: 14px; bottom: 12px; z-index: 2; padding: 5px 8px; border-radius: 6px; background: rgba(20,10,25,.58); color: rgba(255,255,255,.82); font-size: 10px; font-weight: 700; backdrop-filter: blur(8px); }
.archive-post-content { padding: 20px; }
.archive-post-content .post-title { margin: 0; color: #fff; font-size: 18px; line-height: 1.45; }
.archive-post-content .post-subtitle { margin: 9px 0 0; color: rgba(255,255,255,.6); font-size: 12px; line-height: 1.65; -webkit-line-clamp: 2; }
.archive-post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.archive-post-tags span { padding: 4px 8px; border-radius: 5px; background: rgba(138,101,255,.13); color: #d7bdff; font-size: 9px; font-weight: 700; }

/* 中枢链路：按时间从新到旧向下排列。 */
.social-posts .posts-grid[data-view="timeline"] {
    display: flex;
    flex-direction: column;
    gap: 72px;
    padding: 8px 0 38px 52px;
}
.social-posts .posts-grid[data-view="timeline"]::before {
    content: "";
    position: absolute;
    top: 8px;
    bottom: 38px;
    left: 17px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(232,171,255,.08), rgba(222,145,255,.58) 10%, rgba(222,145,255,.4) 90%, rgba(232,171,255,.05));
    box-shadow: 0 0 18px rgba(218,137,255,.15);
}
.social-posts .posts-grid[data-view="timeline"] .social-post-card {
    position: relative;
    width: 100%;
}
.social-posts .posts-grid[data-view="timeline"] .social-post-card::before {
    content: "";
    position: absolute;
    top: 42px;
    width: 14px;
    height: 14px;
    border: 3px solid #d998f5;
    border-radius: 50%;
    background: #604968;
    box-shadow: 0 0 0 5px rgba(218,152,245,.11), 0 0 16px rgba(218,152,245,.38);
    pointer-events: none;
}
.social-posts .posts-grid[data-view="timeline"] .social-post-card::before { left: -43px; }

/* 矩阵网格：规则多列卡片。 */
.social-posts .posts-grid[data-view="grid"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

@keyframes postCardReveal { from { opacity: 0; } to { opacity: 1; } }

.page-post-lightbox {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 7, 18, .9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.page-post-lightbox.is-open { opacity: 1; visibility: visible; }
.page-post-dialog { width: min(820px, 100%); max-height: 84vh; overflow: auto; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: rgba(35, 20, 43, .94); color: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.45); transform: translateY(14px) scale(.98); transition: transform .25s ease; }
.page-post-lightbox.is-open .page-post-dialog { transform: none; }
.page-post-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(35, 20, 43, .94); }
.page-post-title { margin: 0; font-size: 21px; }
.page-post-close { width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.07); color: #fff; font-size: 21px; cursor: pointer; }
.page-post-body { padding: 22px; color: rgba(255,255,255,.78); line-height: 1.8; overflow-wrap: anywhere; }
.page-post-body img { max-width: 100%; height: auto; border-radius: 6px; }
.page-post-body a { color: #edb4ff; }

.album-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 70px 54px;
    padding: 28px 12px;
}

.album-card {
    min-width: 0;
    color: #fff;
    cursor: pointer;
    animation: pageRise .7s cubic-bezier(.16, 1, .3, 1) both;
}
.album-card:nth-child(2) { animation-delay: .1s; }
.album-stack { position: relative; width: 84%; aspect-ratio: 4 / 3; margin: 0 auto 30px; }
.album-layer, .album-cover {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 6px solid rgba(245, 237, 247, .9);
    border-radius: 4px;
    background: #ddd;
    box-shadow: 0 18px 40px rgba(32, 13, 38, .25);
    transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}
.album-layer img, .album-cover img { width: 100%; height: 100%; object-fit: cover; }
.album-empty-cover { width: 100%; height: 100%; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(210,139,235,.12)); }
.album-layer.back { transform: rotate(6deg) translate(14px, 7px); opacity: .55; }
.album-layer.middle { transform: rotate(-3deg) translate(-8px, -3px); opacity: .78; }
.album-cover { z-index: 2; }
.album-card:hover .album-layer.back { transform: rotate(11deg) translate(24px, 10px); }
.album-card:hover .album-layer.middle { transform: rotate(-7deg) translate(-18px, -7px); }
.album-card:hover .album-cover { transform: translateY(-7px) scale(1.025); }
.album-cover::after { content: "查看相册"; position: absolute; inset: auto 0 0; padding: 34px 18px 16px; color: #fff; font-size: 13px; font-weight: 700; background: linear-gradient(transparent, rgba(21, 9, 25, .8)); opacity: 0; transition: opacity .3s ease; }
.album-card:hover .album-cover::after { opacity: 1; }
.album-meta { text-align: center; }
.album-title { display: inline; font-family: Georgia, serif; font-size: 21px; }
.album-date { display: inline-block; margin-left: 8px; padding: 3px 7px; border-radius: 3px; background: rgba(36, 21, 44, .48); color: rgba(255, 255, 255, .58); font-size: 10px; }
.album-description { margin: 8px 0 0; color: rgba(255, 255, 255, .6); font-size: 13px; }
.album-card[hidden] { display: none; }

.gallery-view { display: none; animation: pageRise .55s cubic-bezier(.16, 1, .3, 1) both; }
.gallery-view.is-visible { display: block; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.gallery-back { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: rgba(255, 255, 255, .72); cursor: pointer; }
.gallery-back svg { width: 18px; height: 18px; }
.gallery-name { margin: 0; color: #fff; font-size: 30px; }
.gallery-count { color: rgba(255, 255, 255, .58); font-size: 13px; }
.gallery-timeline { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 38px; margin: 8px 0 42px 10px; padding-left: 30px; }
.gallery-timeline::before { position: absolute; top: 7px; bottom: 7px; left: 5px; width: 1px; content: ""; background: rgba(229, 162, 255, .35); }
.gallery-timeline-node { position: relative; min-width: 0; }
.gallery-timeline-marker { position: absolute; top: 6px; left: -30px; width: 11px; height: 11px; border: 2px solid #e5a2ff; border-radius: 50%; background: #26152d; box-shadow: 0 0 0 5px rgba(229, 162, 255, .08); }
.gallery-timeline-content { min-width: 0; }
.gallery-timeline-date { margin-bottom: 4px; color: #e5a2ff; font-size: 12px; }
.gallery-section-title { margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 600; }
.gallery-timeline-description { max-width: 720px; margin: -3px 0 17px; color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.75; }
.gallery-layout { display: grid; grid-template-columns: 166px minmax(0, 1fr); align-items: start; gap: 36px; }
.gallery-timeline-nav { position: sticky; top: 92px; min-width: 0; padding: 6px 0 10px 14px; }
.gallery-timeline-nav[hidden] { display: none; }
.gallery-timeline-nav-title { margin: 0 0 16px; color: rgba(255, 255, 255, .46); font-size: 11px; letter-spacing: .08em; }
.gallery-timeline-nav-list { position: relative; display: grid; gap: 4px; }
.gallery-timeline-nav-list::before { position: absolute; top: 12px; bottom: 12px; left: 4px; width: 1px; content: ""; background: rgba(229, 162, 255, .25); }
.gallery-timeline-nav-item { position: relative; display: grid; gap: 2px; width: 100%; padding: 9px 8px 9px 19px; border: 0; background: transparent; color: rgba(255, 255, 255, .48); text-align: left; cursor: pointer; transition: color .2s ease, transform .2s ease; }
.gallery-timeline-nav-item::before { position: absolute; top: 13px; left: 0; width: 9px; height: 9px; border: 2px solid rgba(229, 162, 255, .55); border-radius: 50%; background: #26152d; content: ""; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.gallery-timeline-nav-item:hover, .gallery-timeline-nav-item.is-active { color: #fff; transform: translateX(2px); }
.gallery-timeline-nav-item.is-active::before { border-color: #e5a2ff; background: #e5a2ff; box-shadow: 0 0 0 4px rgba(229, 162, 255, .12); }
.gallery-timeline-nav-date { color: #e5a2ff; font-size: 11px; }
.gallery-timeline-nav-label { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.gallery-content { min-width: 0; }
.gallery-photo-section { margin-bottom: 34px; }
.gallery-photo-section > .gallery-section-title { margin-bottom: 16px; }
.timeline-photo-list { display: grid; gap: 24px; width: 25%; min-width: 220px; }
.timeline-photo-list .photo-item { width: 100%; margin: 0; }
.timeline-photo-list .photo-item img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.photo-grid { columns: 1; column-gap: 0; }
.photo-item { position: relative; margin-bottom: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .15); border-radius: 7px; background: rgba(35, 20, 43, .35); cursor: zoom-in; break-inside: avoid; box-shadow: 0 14px 34px rgba(31, 13, 38, .18); }
.photo-item img { display: block; width: 100%; height: auto; transition: transform .5s ease; }
.photo-item:hover img { transform: scale(1.035); }
.photo-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; color: #fff; font-size: 12px; background: linear-gradient(transparent, rgba(19, 7, 23, .82)); opacity: 0; transform: translateY(5px); transition: opacity .3s ease, transform .3s ease; }
.photo-item:hover .photo-caption { opacity: 1; transform: translateY(0); }
.lightbox { position: fixed; inset: 0; z-index: 2147483000; isolation: isolate; display: grid; place-items: center; padding: 54px 34px 74px; background: rgba(15, 7, 18, .96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { position: relative; z-index: 1; max-width: min(1100px, 100%); max-height: calc(100vh - 128px); border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); transform: scale(.96); transition: transform .3s ease; }
.lightbox.is-open img { transform: scale(1); }
.lightbox-caption { position: absolute; z-index: 2; bottom: 22px; max-width: min(900px, calc(100% - 40px)); color: rgba(255, 255, 255, .78); font-size: 13px; text-align: center; }
.lightbox-close { position: absolute; z-index: 2; top: 20px; right: 20px; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 23px; cursor: pointer; }

.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 22px; }
.contact-panel { padding: 28px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; background: rgba(39, 23, 47, .4); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 20px 48px rgba(31, 12, 38, .2); animation: pageRise .65s cubic-bezier(.16, 1, .3, 1) both; }
.contact-panel:nth-child(2) { animation-delay: .1s; }
.contact-panel h2 { margin: 0 0 20px; color: #fff; font-size: 21px; }
.contact-list { display: grid; gap: 11px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 6px; background: rgba(255, 255, 255, .045); color: rgba(255, 255, 255, .76); }
.contact-row svg { width: 18px; height: 18px; color: #e5a2ff; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 7px; color: rgba(255, 255, 255, .64); font-size: 12px; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; outline: 0; background: rgba(16, 10, 20, .24); color: #fff; padding: 12px 13px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: rgba(230, 163, 255, .6); box-shadow: 0 0 0 3px rgba(230, 163, 255, .09); }
.contact-submit { justify-self: start; padding: 11px 20px; border: 1px solid rgba(229, 162, 255, .34); border-radius: 6px; background: rgba(201, 117, 235, .16); color: #fff; cursor: pointer; transition: background .25s ease, transform .25s ease; }
.contact-submit:hover { background: rgba(201, 117, 235, .28); transform: translateY(-2px); }

@keyframes pageRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
    .inner-page { padding: 92px 14px 44px; }
    .page-heading { align-items: stretch; flex-direction: column; margin-bottom: 28px; }
    .page-search { width: 100%; }
    .project-matrix, .album-grid, .contact-layout { grid-template-columns: 1fr; }
    .project-entry { min-height: 0; padding: 23px; }
    .album-grid { gap: 56px; padding-inline: 0; }
    .photo-grid { columns: 1; }
    .gallery-layout { grid-template-columns: 1fr; gap: 18px; }
    .gallery-timeline-nav { position: relative; top: auto; overflow-x: auto; padding: 0 0 3px; }
    .gallery-timeline-nav-title { margin: 0 0 8px; }
    .gallery-timeline-nav-list { display: flex; gap: 6px; width: max-content; min-width: 100%; }
    .gallery-timeline-nav-list::before { top: auto; right: 0; bottom: 6px; left: 0; width: auto; height: 1px; }
    .gallery-timeline-nav-item { width: 132px; padding: 7px 8px 14px 17px; }
    .gallery-timeline-nav-item::before { top: auto; bottom: 2px; left: 2px; }
    .gallery-timeline-nav-label { max-width: 110px; }
    .timeline-photo-list { width: 25%; min-width: 180px; }
    .gallery-timeline { margin-left: 4px; padding-left: 24px; }
    .gallery-timeline-marker { left: -24px; }
    .timeline-photo-list { gap: 18px; }
    .gallery-toolbar { align-items: flex-start; flex-direction: column; }
    .migrated-section-heading { align-items: flex-start; flex-direction: column; }
    .archive-toolbar { align-items: stretch; flex-direction: column; margin-bottom: 28px; }
    .archive-count { justify-content: center; min-height: 34px; }
    .posts-view-toolbar { width: 100%; justify-content: stretch; }
    .posts-view-button { flex: 1; justify-content: center; }
    .posts-view-button[data-post-view="timeline"] { display: none; }
    .social-posts .posts-grid[data-view="grid"] { grid-template-columns: 1fr; }
    .social-posts .posts-grid[data-view="timeline"] { display: flex; gap: 24px; padding: 8px 0 30px 30px; }
    .social-posts .posts-grid[data-view="timeline"]::before { display: block; }
    .social-posts .posts-grid[data-view="timeline"] .social-post-card { width: 100%; }
    .social-posts .posts-grid[data-view="timeline"]::before { left: 7px; }
    .social-posts .posts-grid[data-view="timeline"] .social-post-card::before { left: -29px; }
    .social-posts .social-post-card { padding: 0; }
}

@media (max-width: 460px) {
    .photo-grid { columns: 1; }
    .timeline-photo-list { width: 100%; min-width: 0; }
    .gallery-timeline { gap: 30px; }
    .project-identity { align-items: flex-start; }
    .project-symbol { font-size: 27px; }
}

@media (max-width: 480px) {
    .inner-page {
        padding: 84px 10px 132px;
    }

    .page-title {
        font-size: 34px;
    }

    .page-lead {
        font-size: 13px;
    }

    .archive-search {
        margin-bottom: 18px;
    }

    .archive-search input {
        height: 46px;
        padding-left: 44px;
        border-radius: 13px;
    }

    .archive-toolbar {
        gap: 10px;
        margin-bottom: 26px;
        padding: 8px;
        border-radius: 13px;
    }

    .archive-count {
        justify-content: flex-start;
        padding: 0 4px;
    }

    .posts-view-button {
        min-height: 34px;
        padding: 0 8px;
        font-size: 12px;
    }

    .archive-post-media {
        height: 150px;
    }

    .archive-post-content {
        padding: 15px;
    }

    .page-post-lightbox,
    .lightbox {
        padding: 12px;
    }

    .page-post-header {
        gap: 10px;
        padding: 14px 15px;
    }

    .page-post-title {
        min-width: 0;
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .page-post-body {
        padding: 16px 15px;
    }

    .album-grid {
        gap: 42px;
    }

    .album-stack {
        width: 92%;
        margin-bottom: 22px;
    }

    .gallery-name {
        font-size: 24px;
        overflow-wrap: anywhere;
    }

    .gallery-toolbar {
        gap: 12px;
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .contact-panel {
        padding: 18px 15px;
    }

    .contact-row {
        align-items: flex-start;
        padding: 11px 12px;
        line-height: 1.5;
        overflow-wrap: anywhere;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 16px;
    }

    .contact-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-heading, .project-entry, .album-card, .gallery-view, .contact-panel { animation: none; }
}
