:root {
    --gallery-ink: #171717;
    --gallery-paper: #f3f4ef;
    --gallery-panel: #ffffff;
    --gallery-acid: #d5ff5f;
    --gallery-coral: #ff6542;
    --gallery-blue: #4d72ff;
    --gallery-line: rgba(23, 23, 23, 0.2);
    --gallery-muted: #676963;
}

html {
    scroll-behavior: smooth;
}

body,
html {
    min-width: 320px;
    overflow-x: hidden;
    font-size: 14px;
}

body {
    color: var(--gallery-ink);
    background: var(--gallery-paper);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

a,
button,
input {
    letter-spacing: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--gallery-blue);
    outline-offset: 3px;
}

.page-container,
.main-content {
    min-width: 0;
}

.io-grey-mode .page-container .grid-bg,
.io-black-mode .page-container .grid-bg {
    background-image: none;
}

.io-grey-mode .page-container .grid-bg {
    background-color: var(--gallery-paper);
}

.io-black-mode .page-container .grid-bg {
    background-color: #20211f;
}

/* Sidebar */
.sidebar-nav,
.io-grey-mode .sidebar-nav,
.io-black-mode .sidebar-nav {
    color: #ffffff;
    background: #171717;
    box-shadow: none;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.sidebar-nav .border-color {
    border-color: rgba(255, 255, 255, 0.16) !important;
}

.sidebar-menu.flex-fill::-webkit-scrollbar {
    display: none;
}

.sidebar-logo {
    min-height: 74px;
    display: flex;
    align-items: center;
}

.sidebar-logo img,
.navbar-brand img {
    max-width: 154px;
}

.sidebar-menu-inner ul li a,
.sidebar-nav .sidebar-item > a {
    color: rgba(255, 255, 255, 0.72);
    border-radius: 0;
    transition: color 180ms ease, background-color 180ms ease;
}

.sidebar-menu-inner ul li a:hover,
.sidebar-nav .sidebar-item > a:hover,
.sidebar-nav .sidebar-item > a:focus-visible {
    color: #171717;
    background: var(--gallery-acid);
}

.sidebar-menu-inner ul li ul li a {
    margin-left: 30px;
}

/* Top navigation */
.big-header-banner .page-header,
.big-header-banner.header-bg .page-header {
    color: var(--gallery-ink);
    background: rgba(243, 244, 239, 0.94);
    box-shadow: none;
    border-bottom: 1px solid var(--gallery-line);
    backdrop-filter: blur(14px);
    transition: color 180ms ease, background-color 180ms ease;
}

.big-header-banner .page-header .navbar-nav > li > a,
.big-header-banner .navbar-menu a:not(.dropdown-item),
.big-header-banner:not(.header-bg) .page-header .navbar-nav > li > a,
.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item) {
    color: var(--gallery-ink);
}

.big-header-banner .page-header .navbar-nav > li > a:hover,
.big-header-banner .navbar-menu a:not(.dropdown-item):hover,
.big-header-banner:not(.header-bg) .page-header .navbar-nav > li > a:hover,
.big-header-banner:not(.header-bg) .navbar-menu a:not(.dropdown-item):hover {
    color: #3657d6;
}

.big-header-banner .header-mini-btn path,
.big-header-banner:not(.header-bg) .header-mini-btn path {
    stroke: var(--gallery-ink);
}

.site-menu a {
    font-weight: 650;
}

/* Brand intro and search */
.gallery-intro {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px 42px 40px;
    color: var(--gallery-ink);
    background: var(--gallery-acid) !important;
    border-bottom: 1px solid var(--gallery-ink);
    position: relative;
    overflow: hidden;
}

.gallery-intro::after {
    content: "";
    position: absolute;
    width: 156px;
    height: 156px;
    right: 42px;
    top: 76px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-shadow: 28px 0 0 -2px var(--gallery-acid), 28px 0 0 0 var(--gallery-ink);
    opacity: 0.88;
    animation: intro-orbit 8s ease-in-out infinite;
    pointer-events: none;
}

.gallery-intro-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.55);
    font-size: 11px;
    line-height: 1.4;
    font-weight: 750;
    text-transform: uppercase;
}

.gallery-intro-copy {
    position: relative;
    z-index: 1;
    margin: 18px 0 24px;
}

.gallery-intro-copy h1 {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 88px;
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: 0;
}

.gallery-intro-copy p {
    margin: 12px 0 0 4px;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 650;
}

.gallery-search {
    width: min(760px, 100%);
    position: relative;
    z-index: 2;
}

.gallery-search-tabs {
    margin-bottom: 8px;
}

.gallery-search-tabs .s-type-list {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    color: var(--gallery-ink);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--gallery-ink);
}

.gallery-search-tabs .s-type-list label {
    min-width: 66px;
    margin: 0;
    padding: 7px 12px;
    text-align: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
}

.gallery-search-tabs .s-type-list label:hover {
    background: #ffffff;
}

.gallery-search-form {
    height: 58px;
    display: grid;
    grid-template-columns: 1fr 58px;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid var(--gallery-ink);
    box-shadow: 6px 6px 0 var(--gallery-ink);
}

.gallery-search-form #search-text {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    color: var(--gallery-ink);
    background: transparent;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
}

.gallery-search-form #search-text::placeholder {
    color: #777973;
}

.gallery-search-form .submit {
    width: 58px;
    height: 56px;
    color: #ffffff;
    background: var(--gallery-ink);
    border: 0;
    border-left: 2px solid var(--gallery-ink);
    cursor: pointer;
}

.gallery-search-form .submit i,
#search button i {
    color: inherit;
    font-size: 19px;
}

.gallery-search .search-type {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 9px 0 0;
    padding: 0;
}

.gallery-search .search-type li {
    margin: 0;
}

.gallery-search .search-type label {
    margin: 0;
    padding: 6px 9px;
    color: var(--gallery-ink);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(23, 23, 23, 0.45);
    border-radius: 2px;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
}

.search-hot-text {
    position: absolute;
    z-index: 100;
    width: 100%;
    border-radius: 0;
    background: #ffffff;
    border: 1px solid var(--gallery-ink);
    box-shadow: 4px 4px 0 var(--gallery-ink);
    overflow: hidden;
}

.search-hot-text ul {
    margin: 0;
    padding: 5px 0;
}

.search-hot-text ul li {
    line-height: 30px;
    font-size: 14px;
    padding: 0 20px;
    color: #4b5563;
    cursor: pointer;
}

.search-hot-text ul li.current,
.search-hot-text ul li:hover {
    color: var(--gallery-ink);
    background: var(--gallery-acid);
}

/* Gallery structure */
.gallery-content {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 54px 34px 70px;
}

.gallery-section {
    width: 100%;
    margin: 0 0 78px;
    scroll-margin-top: 94px;
}

.gallery-section-heading {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--gallery-ink);
}

.gallery-section-heading h2 {
    min-width: 0;
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 850;
    letter-spacing: 0;
}

.gallery-section-index,
.gallery-section-count {
    color: var(--gallery-muted);
    font-family: Consolas, "SFMono-Regular", monospace;
    font-size: 11px;
    line-height: 1.4;
    text-transform: uppercase;
}

.gallery-section-count {
    text-align: right;
}

.site-tag {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 7px 2px 0;
    background: var(--gallery-coral);
    border-radius: 50%;
}

.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* Website posters */
.site-poster {
    --poster-accent: #ffffff;
    --poster-foreground: #171717;
    width: 100%;
    min-width: 0;
    aspect-ratio: 5 / 6;
    display: block;
    position: relative;
    overflow: hidden;
    color: var(--poster-foreground) !important;
    background: var(--poster-accent);
    border: 1px solid rgba(23, 23, 23, 0.72);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(23, 23, 23, 0.2);
    isolation: isolate;
    transform-origin: 50% 70%;
    transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 260ms ease, opacity 420ms ease;
}

.site-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    pointer-events: none;
}

.site-poster:hover,
.site-poster:focus-visible {
    color: var(--poster-foreground) !important;
    text-decoration: none;
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 8px 10px 0 var(--gallery-ink);
    outline: 3px solid var(--gallery-blue);
    outline-offset: 3px;
}

.motion-ready .site-poster {
    opacity: 0;
    transform: translateY(18px);
}

.motion-ready .site-poster.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .site-poster.is-visible:hover,
.motion-ready .site-poster.is-visible:focus-visible {
    transform: translateY(-6px) rotate(-0.6deg);
}

.poster-topline {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poster-favicon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 23, 23, 0.22);
    border-radius: 6px;
    box-shadow: 2px 2px 0 rgba(23, 23, 23, 0.22);
}

.poster-favicon img {
    width: 25px;
    height: 25px;
    display: block;
    object-fit: contain;
    border-radius: 4px;
}

.poster-arrow {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: currentColor;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    font-weight: 700;
    transition: transform 220ms ease, color 220ms ease, background-color 220ms ease;
}

.site-poster:hover .poster-arrow,
.site-poster:focus-visible .poster-arrow {
    color: var(--poster-accent);
    background: var(--poster-foreground);
    transform: translate(3px, -3px);
}

.poster-copy {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    z-index: 4;
    min-width: 0;
    display: block;
}

.poster-brand,
.poster-description {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-brand {
    font-size: 21px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: 0;
}

.poster-description {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 650;
    opacity: 0.76;
}

/* Controlled visual motifs */
.poster-motif {
    position: absolute;
    inset: 62px 15px 82px;
    z-index: 1;
    display: grid;
    place-items: center;
    color: currentColor;
    pointer-events: none;
    will-change: transform, opacity;
}

.poster-logo-stage {
    position: absolute;
    inset: 70px 34px 86px;
    z-index: 3;
    display: grid;
    place-items: center;
    pointer-events: none;
    will-change: transform, opacity;
}

.brand-icon {
    position: absolute;
    width: 104px;
    height: 104px;
    display: block;
    object-fit: contain;
    filter: drop-shadow(5px 6px 0 rgba(23, 23, 23, 0.22));
    transition: transform 220ms ease, filter 220ms ease;
}

.brand-icon-main {
    z-index: 4;
}

.brand-icon-echo {
    z-index: 2;
    width: 76px;
    height: 76px;
    opacity: 0.2;
    filter: none;
    transform: translate(var(--echo-x, 0), var(--echo-y, 0)) scale(var(--echo-scale, 0.7)) rotate(var(--echo-rotate, 0deg));
    animation: brand-echo 4.8s ease-in-out infinite;
}

.brand-icon-echo-two { animation-delay: -1.6s; }
.brand-icon-echo-three { animation-delay: -3.2s; }

.composition-orbit .brand-icon-echo-one { --echo-x: -62px; --echo-y: -28px; --echo-scale: 0.62; --echo-rotate: -12deg; }
.composition-orbit .brand-icon-echo-two { --echo-x: 64px; --echo-y: -6px; --echo-scale: 0.48; --echo-rotate: 14deg; }
.composition-orbit .brand-icon-echo-three { --echo-x: -14px; --echo-y: 62px; --echo-scale: 0.38; --echo-rotate: 8deg; }

.composition-typefield .brand-icon-echo-one { --echo-x: -70px; --echo-y: -40px; --echo-scale: 0.52; --echo-rotate: -4deg; }
.composition-typefield .brand-icon-echo-two { --echo-x: 72px; --echo-y: 0; --echo-scale: 0.52; --echo-rotate: 4deg; }
.composition-typefield .brand-icon-echo-three { --echo-x: -54px; --echo-y: 52px; --echo-scale: 0.52; --echo-rotate: -2deg; }

.composition-grid .brand-icon-echo-one { --echo-x: -64px; --echo-y: -52px; --echo-scale: 0.54; }
.composition-grid .brand-icon-echo-two { --echo-x: 64px; --echo-y: -52px; --echo-scale: 0.54; }
.composition-grid .brand-icon-echo-three { --echo-x: 64px; --echo-y: 54px; --echo-scale: 0.54; }

.composition-pulse .brand-icon-echo-one { --echo-scale: 1.28; }
.composition-pulse .brand-icon-echo-two { --echo-scale: 1.62; }
.composition-pulse .brand-icon-echo-three { --echo-scale: 2; }

.composition-wave .brand-icon-echo-one { --echo-x: -74px; --echo-y: 22px; --echo-scale: 0.54; --echo-rotate: -8deg; }
.composition-wave .brand-icon-echo-two { --echo-x: 0; --echo-y: -48px; --echo-scale: 0.46; }
.composition-wave .brand-icon-echo-three { --echo-x: 76px; --echo-y: 20px; --echo-scale: 0.54; --echo-rotate: 8deg; }

.composition-stack .brand-icon-echo-one { --echo-x: -26px; --echo-y: -24px; --echo-scale: 0.9; --echo-rotate: -10deg; }
.composition-stack .brand-icon-echo-two { --echo-x: 28px; --echo-y: 22px; --echo-scale: 0.9; --echo-rotate: 10deg; }
.composition-stack .brand-icon-echo-three { --echo-x: 4px; --echo-y: -4px; --echo-scale: 1.16; }

.composition-nodes .brand-icon-echo-one { --echo-x: -74px; --echo-y: -48px; --echo-scale: 0.42; }
.composition-nodes .brand-icon-echo-two { --echo-x: 74px; --echo-y: -34px; --echo-scale: 0.34; }
.composition-nodes .brand-icon-echo-three { --echo-x: 58px; --echo-y: 58px; --echo-scale: 0.48; }

.composition-scan .brand-icon-echo-one { --echo-y: -58px; --echo-scale: 0.58; }
.composition-scan .brand-icon-echo-two { --echo-y: 0; --echo-scale: 1.25; }
.composition-scan .brand-icon-echo-three { --echo-y: 58px; --echo-scale: 0.58; }

.site-poster:hover .brand-icon-main,
.site-poster:focus-visible .brand-icon-main {
    transform: scale(1.07) rotate(2deg);
    filter: drop-shadow(8px 9px 0 rgba(23, 23, 23, 0.26));
}

.motif-orbit span {
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.motif-orbit span:nth-child(1) {
    width: 78%;
    aspect-ratio: 1;
}

.motif-orbit span:nth-child(2) {
    width: 54%;
    aspect-ratio: 1;
    transform: translateX(18%);
}

.motif-orbit span:nth-child(3) {
    width: 18%;
    aspect-ratio: 1;
    background: currentColor;
    transform: translate(-92%, 50%);
}

.motif-typefield {
    align-content: center;
    justify-items: start;
    overflow: hidden;
}

.motif-typefield span {
    width: 135%;
    margin: -2px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0.88;
}

.motif-typefield span:nth-child(even) {
    margin-left: -24%;
    color: var(--poster-accent);
    background: var(--poster-foreground);
}

.motif-grid {
    width: 78%;
    height: auto;
    aspect-ratio: 1;
    inset: auto;
    left: 11%;
    top: 17%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    place-items: stretch;
    gap: 4px;
    transform: rotate(4deg);
}

.motif-grid span {
    border: 2px solid currentColor;
}

.motif-grid span:nth-child(2),
.motif-grid span:nth-child(3) {
    background: currentColor;
}

.motif-pulse span {
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.motif-pulse span:nth-child(1) {
    width: 76%;
    aspect-ratio: 1;
    opacity: 0.35;
}

.motif-pulse span:nth-child(2) {
    width: 50%;
    aspect-ratio: 1;
    opacity: 0.65;
}

.motif-pulse span:nth-child(3) {
    width: 24%;
    aspect-ratio: 1;
    background: currentColor;
}

.motif-wave {
    overflow: hidden;
}

.motif-wave span {
    position: absolute;
    width: 122%;
    height: 44%;
    border-top: 3px solid currentColor;
    border-radius: 50%;
}

.motif-wave span:nth-child(1) {
    top: 22%;
    left: -14%;
}

.motif-wave span:nth-child(2) {
    top: 42%;
    left: -2%;
}

.motif-wave span:nth-child(3) {
    top: 62%;
    left: -20%;
}

.motif-stack span {
    position: absolute;
    width: 64%;
    height: 52%;
    border: 2px solid currentColor;
    background: var(--poster-accent);
}

.motif-stack span:nth-child(1) {
    transform: translate(-13%, -13%) rotate(-5deg);
}

.motif-stack span:nth-child(2) {
    transform: translate(0, 0) rotate(2deg);
}

.motif-stack span:nth-child(3) {
    transform: translate(13%, 13%) rotate(7deg);
    background: currentColor;
}

.motif-nodes i {
    width: 72%;
    height: 2px;
    display: block;
    background: currentColor;
    transform: rotate(-24deg);
}

.motif-nodes span {
    position: absolute;
    width: 18px;
    height: 18px;
    background: var(--poster-accent);
    border: 2px solid currentColor;
    border-radius: 50%;
}

.motif-nodes span:nth-of-type(1) { left: 14%; top: 28%; }
.motif-nodes span:nth-of-type(2) { right: 13%; top: 18%; background: currentColor; }
.motif-nodes span:nth-of-type(3) { left: 28%; bottom: 18%; background: currentColor; }
.motif-nodes span:nth-of-type(4) { right: 24%; bottom: 28%; }

.motif-scan {
    overflow: hidden;
    border: 2px solid currentColor;
    margin: 16px 20px 6px;
}

.motif-scan span {
    position: absolute;
    display: block;
    background: currentColor;
}

.motif-scan span:nth-child(1),
.motif-scan span:nth-child(2) {
    top: 0;
    bottom: 0;
    width: 2px;
}

.motif-scan span:nth-child(1) { left: 33%; }
.motif-scan span:nth-child(2) { right: 33%; }

.motif-scan span:nth-child(3) {
    left: 0;
    right: 0;
    top: 46%;
    height: 2px;
}

.motif-scan span:nth-child(4) {
    left: 0;
    right: 0;
    top: 18%;
    height: 18%;
    opacity: 0.28;
}

/* Every poster receives ambient motion. */
.motion-rotate-slow .poster-motif { animation: poster-rotate 8s linear infinite; }
.motion-drift-soft .poster-motif { animation: poster-drift 6.8s ease-in-out infinite; }
.motion-pulse-soft .poster-motif { animation: poster-pulse 6s ease-in-out infinite; }
.motion-bounce-soft .poster-motif { animation: poster-bounce 5.8s ease-in-out infinite; }
.motion-float-soft .poster-motif { animation: poster-float 7.4s ease-in-out infinite; }
.motion-slide-soft .poster-motif { animation: poster-slide 7s ease-in-out infinite; }
.motion-scan-soft .poster-motif { animation: poster-scan 6.4s ease-in-out infinite; }
.motion-sway-soft .poster-motif { animation: poster-sway 7.8s ease-in-out infinite; }

.motion-rotate-slow .poster-logo-stage { animation: brand-orbit 8s ease-in-out infinite; }
.motion-drift-soft .poster-logo-stage { animation: brand-drift 6.8s ease-in-out infinite; }
.motion-pulse-soft .poster-logo-stage { animation: brand-pulse 6s ease-in-out infinite; }
.motion-bounce-soft .poster-logo-stage { animation: brand-bounce 5.8s ease-in-out infinite; }
.motion-float-soft .poster-logo-stage { animation: brand-float 7.4s ease-in-out infinite; }
.motion-slide-soft .poster-logo-stage { animation: brand-slide 7s ease-in-out infinite; }
.motion-scan-soft .poster-logo-stage { animation: brand-scan 6.4s ease-in-out infinite; }
.motion-sway-soft .poster-logo-stage { animation: brand-sway 7.8s ease-in-out infinite; }

.site-poster.is-paused .poster-motif,
.site-poster.is-paused .poster-motif *,
.site-poster.is-paused .poster-logo-stage,
.site-poster.is-paused .poster-logo-stage * {
    animation-play-state: paused !important;
}

@keyframes intro-orbit {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    50% { transform: rotate(6deg) translateY(5px); }
}

@keyframes poster-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes poster-drift {
    0%, 100% { transform: translateX(-4px); }
    50% { transform: translateX(6px); }
}

@keyframes poster-pulse {
    0%, 100% { transform: scale(0.98); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
}

@keyframes poster-bounce {
    0%, 100% { transform: translateY(3px) scale(0.99); }
    50% { transform: translateY(-6px) scale(1.02); }
}

@keyframes poster-float {
    0%, 100% { transform: translate(0, 3px) rotate(-1deg); }
    50% { transform: translate(3px, -5px) rotate(2deg); }
}

@keyframes poster-slide {
    0%, 100% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
}

@keyframes poster-scan {
    0%, 100% { transform: translateY(-3px); opacity: 0.86; }
    50% { transform: translateY(6px); opacity: 1; }
}

@keyframes poster-sway {
    0%, 100% { transform: rotate(-2deg) translateY(2px); }
    50% { transform: rotate(2deg) translateY(-3px); }
}

@keyframes brand-orbit {
    0%, 100% { transform: translate(-5px, 2px) rotate(-3deg); }
    50% { transform: translate(7px, -5px) rotate(4deg); }
}

@keyframes brand-drift {
    0%, 100% { transform: translateX(-7px); }
    50% { transform: translateX(7px); }
}

@keyframes brand-pulse {
    0%, 100% { transform: scale(0.96); }
    50% { transform: scale(1.04); }
}

@keyframes brand-bounce {
    0%, 100% { transform: translateY(5px); }
    50% { transform: translateY(-7px); }
}

@keyframes brand-float {
    0%, 100% { transform: translate(-3px, 4px) rotate(-2deg); }
    50% { transform: translate(4px, -6px) rotate(2deg); }
}

@keyframes brand-slide {
    0%, 100% { transform: translateX(-8px); }
    50% { transform: translateX(8px); }
}

@keyframes brand-scan {
    0%, 100% { transform: translateY(-5px); opacity: 0.9; }
    50% { transform: translateY(7px); opacity: 1; }
}

@keyframes brand-sway {
    0%, 100% { transform: rotate(-4deg); }
    50% { transform: rotate(4deg); }
}

@keyframes brand-echo {
    0%, 100% { opacity: 0.12; }
    50% { opacity: 0.34; }
}

/* Footer and utility controls */
#footer-tools {
    display: none !important;
}

footer.main-footer {
    color: var(--gallery-muted);
    background: transparent;
    border-top: 1px solid var(--gallery-line);
}

footer.main-footer .footer-text {
    text-align: center;
}

footer.main-footer .footer-text a {
    color: #3657d6;
}

footer.main-footer .footer-text a:hover {
    color: #182d91;
}

#footer-tools .btn {
    color: #ffffff;
    background: var(--gallery-ink);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Standard content pages */
.post-top {
    padding-bottom: 50px;
}

.panel.card,
.card-body {
    border-radius: 6px;
}

/* Responsive layout */
@media (max-width: 1100px) {
    .poster-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .big-header-banner .placeholder {
        height: 64px !important;
    }

    .gallery-intro {
        min-height: 370px;
        padding: 24px 18px 30px;
    }

    .gallery-intro::after {
        width: 106px;
        height: 106px;
        right: 14px;
        top: 92px;
        box-shadow: 18px 0 0 -2px var(--gallery-acid), 18px 0 0 0 var(--gallery-ink);
    }

    .gallery-intro-meta {
        font-size: 9px;
    }

    .gallery-intro-copy h1 {
        font-size: 58px;
    }

    .gallery-intro-copy p {
        font-size: 14px;
    }

    .gallery-search-form {
        height: 52px;
        grid-template-columns: 1fr 52px;
        box-shadow: 4px 4px 0 var(--gallery-ink);
    }

    .gallery-search-form .submit {
        width: 52px;
        height: 50px;
    }

    .gallery-search-form #search-text {
        padding: 0 14px;
        font-size: 14px;
    }

    .gallery-content {
        padding: 42px 14px 54px;
    }

    .gallery-section {
        margin-bottom: 58px;
    }

    .gallery-section-heading {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .gallery-section-heading h2 {
        font-size: 19px;
        overflow-wrap: anywhere;
    }

    .poster-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-poster {
        aspect-ratio: 4 / 5;
    }

    .poster-topline {
        top: 10px;
        left: 10px;
        right: 10px;
    }

    .poster-favicon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .poster-favicon img {
        width: 21px;
        height: 21px;
    }

    .poster-arrow {
        width: 32px;
        height: 32px;
        font-size: 17px;
    }

    .poster-copy {
        left: 11px;
        right: 11px;
        bottom: 11px;
    }

    .poster-brand {
        font-size: 16px;
    }

    .poster-description {
        margin-top: 4px;
        font-size: 10px;
    }

    .site-poster:hover,
    .site-poster:focus-visible,
    .motion-ready .site-poster.is-visible:hover,
    .motion-ready .site-poster.is-visible:focus-visible {
        transform: translateY(-3px) rotate(-0.3deg);
        box-shadow: 4px 5px 0 var(--gallery-ink);
    }
}

@media (max-width: 380px) {
    .gallery-intro-meta span:last-child {
        max-width: 120px;
        text-align: right;
    }

    .gallery-search-tabs .s-type-list label {
        min-width: 58px;
        padding-inline: 9px;
    }

    .gallery-section-count {
        display: none;
    }

    .gallery-section-heading {
        grid-template-columns: 26px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gallery-intro::after,
    .site-poster,
    .site-poster *,
    .site-poster::before,
    .site-poster::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .motion-ready .site-poster,
    .motion-ready .site-poster.is-visible,
    .motion-ready .site-poster.is-visible:hover,
    .motion-ready .site-poster.is-visible:focus-visible,
    .site-poster:hover,
    .site-poster:focus-visible {
        opacity: 1;
        transform: none;
    }

    .site-poster:hover .poster-arrow,
    .site-poster:focus-visible .poster-arrow {
        transform: none;
    }
}

/* Brand scenes v2: one real logo, eight distinct motion languages. */
.poster-logo-stage {
    inset: 60px 18px 78px;
    overflow: hidden;
    isolation: isolate;
    animation: none !important;
}

.brand-icon-main {
    position: absolute;
    z-index: 4;
    width: 94px;
    height: 94px;
    object-fit: contain;
    filter: var(--brand-tone, brightness(1)) drop-shadow(5px 6px 0 rgba(23, 23, 23, 0.2));
    will-change: transform, clip-path, opacity;
}

.brand-word,
.scene-piece {
    position: absolute;
    display: none;
    pointer-events: none;
}

.site-poster[data-brand="github"] {
    --brand-tone: invert(1);
}

.site-poster.brand-tone-light {
    --brand-tone: invert(1);
}

.site-poster[data-brand="chatgpt"],
.site-poster[data-brand="adobe-color"],
.site-poster[data-brand="gmail"] {
    --brand-tone: brightness(1);
}

.poster-favicon {
    color: var(--poster-foreground);
    background: color-mix(in srgb, var(--poster-accent) 84%, var(--poster-foreground) 16%);
    border-color: color-mix(in srgb, var(--poster-foreground) 65%, transparent);
    border-radius: 50%;
    box-shadow: none;
}

.poster-favicon img {
    border-radius: 0;
    filter: var(--brand-tone, brightness(1));
}

.site-poster[data-brand="github"] .poster-favicon {
    background: #161b22;
    border-color: rgba(255, 255, 255, 0.55);
}

.site-poster[data-brand="gmail"] .poster-favicon {
    background: #c5221f;
    border-color: rgba(255, 255, 255, 0.55);
}

.site-poster[data-brand="google-drive"] .poster-favicon {
    background: #ffffff;
}

.site-poster[data-brand="哔哩哔哩"] .poster-favicon {
    background: rgba(255, 255, 255, 0.58);
}

.motion-rotate-slow { --scene-speed: 9s; }
.motion-drift-soft { --scene-speed: 7.4s; }
.motion-pulse-soft { --scene-speed: 6.2s; }
.motion-bounce-soft { --scene-speed: 5.6s; }
.motion-float-soft { --scene-speed: 7.8s; }
.motion-slide-soft { --scene-speed: 7s; }
.motion-scan-soft { --scene-speed: 5.8s; }
.motion-sway-soft { --scene-speed: 8.2s; }

/* Orbit: the mark travels through a hand-drawn planetary system. */
.composition-orbit::before,
.composition-orbit::after {
    content: "";
    position: absolute;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.65;
}

.composition-orbit::before {
    width: 76%;
    aspect-ratio: 1.7;
    transform: rotate(-12deg);
}

.composition-orbit::after {
    width: 48%;
    aspect-ratio: 1;
    transform: rotate(18deg);
    opacity: 0.3;
}

.composition-orbit .brand-icon-main {
    width: 84px;
    height: 84px;
    animation: scene-orbit-logo var(--scene-speed) ease-in-out infinite;
}

.composition-orbit .scene-piece {
    display: block;
    z-index: 2;
    width: 9px;
    height: 9px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--poster-accent);
    animation: scene-orbit-dot var(--scene-speed) ease-in-out infinite;
}

.composition-orbit .scene-piece-one { left: 12%; top: 40%; }
.composition-orbit .scene-piece-two { right: 10%; top: 26%; width: 15px; height: 15px; animation-delay: -2s; }
.composition-orbit .scene-piece-three { right: 24%; bottom: 12%; width: 6px; height: 6px; animation-delay: -4s; }
.composition-orbit .scene-piece-four { left: 38%; top: 8%; width: 5px; height: 5px; animation-delay: -6s; }
.composition-orbit .scene-piece-five,
.composition-orbit .scene-piece-six { display: none; }

/* Typefield: the word itself becomes the kinetic poster. */
.composition-typefield .brand-word {
    display: block;
    left: -8%;
    top: 12%;
    width: 118%;
    overflow: hidden;
    color: currentColor;
    font-family: Georgia, "Songti SC", SimSun, serif;
    font-size: clamp(30px, 3.1vw, 48px);
    line-height: 0.9;
    font-weight: 900;
    white-space: nowrap;
    opacity: 0.2;
    transform: rotate(-7deg);
    animation: scene-word-shift var(--scene-speed) steps(5, end) infinite;
}

.composition-typefield .brand-word::after {
    content: attr(data-word) " / " attr(data-word);
    display: block;
    margin-top: 11px;
    margin-left: -22%;
    -webkit-text-stroke: 1px currentColor;
    color: transparent;
}

.composition-typefield .brand-icon-main {
    right: 13%;
    bottom: 8%;
    width: 76px;
    height: 76px;
    transform-origin: 50% 100%;
    animation: scene-type-logo var(--scene-speed) cubic-bezier(.2,.8,.2,1) infinite;
}

.composition-typefield .scene-piece-one {
    display: block;
    left: 8%;
    bottom: 13%;
    width: 42%;
    height: 2px;
    background: currentColor;
    animation: scene-rule-grow var(--scene-speed) ease-in-out infinite;
}

/* Grid: panels shuffle while the mark is revealed in slices. */
.composition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 5px;
    padding: 7px;
}

.composition-grid .scene-piece {
    position: relative;
    display: block;
    border: 1px solid currentColor;
    background: color-mix(in srgb, currentColor 12%, transparent);
    animation: scene-grid-cell var(--scene-speed) steps(2, end) infinite;
}

.composition-grid .scene-piece:nth-of-type(even) {
    background: color-mix(in srgb, currentColor 28%, transparent);
    animation-delay: calc(var(--scene-speed) / -2);
}

.composition-grid .brand-icon-main {
    left: 50%;
    top: 50%;
    width: 88px;
    height: 88px;
    animation: scene-grid-logo var(--scene-speed) cubic-bezier(.76,0,.24,1) infinite;
}

/* Pulse: a single mark emits expanding rings. */
.composition-pulse .brand-icon-main {
    width: 92px;
    height: 92px;
    animation: scene-pulse-logo var(--scene-speed) cubic-bezier(.34,1.56,.64,1) infinite;
}

.composition-pulse .scene-piece {
    display: block;
    width: 58px;
    height: 58px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0;
    animation: scene-pulse-ring var(--scene-speed) ease-out infinite;
}

.composition-pulse .scene-piece-two { animation-delay: calc(var(--scene-speed) / -3); }
.composition-pulse .scene-piece-three { animation-delay: calc(var(--scene-speed) / -1.5); }
.composition-pulse .scene-piece-four,
.composition-pulse .scene-piece-five,
.composition-pulse .scene-piece-six { display: none; }

/* Wave: the mark rides a moving signal instead of duplicating itself. */
.composition-wave .brand-icon-main {
    left: 50%;
    top: 28%;
    width: 80px;
    height: 80px;
    animation: scene-wave-logo var(--scene-speed) ease-in-out infinite;
}

.composition-wave .scene-piece {
    display: block;
    left: -18%;
    width: 136%;
    height: 42%;
    border-top: 3px solid currentColor;
    border-radius: 50%;
    animation: scene-wave-line var(--scene-speed) ease-in-out infinite;
}

.composition-wave .scene-piece-one { top: 56%; }
.composition-wave .scene-piece-two { top: 68%; left: -5%; animation-delay: -1.5s; opacity: 0.65; }
.composition-wave .scene-piece-three { top: 80%; left: -24%; animation-delay: -3s; opacity: 0.35; }
.composition-wave .scene-piece-four,
.composition-wave .scene-piece-five,
.composition-wave .scene-piece-six { display: none; }

/* Stack: documents fan open and the mark lands like a stamp. */
.composition-stack .scene-piece {
    display: block;
    width: 58%;
    height: 62%;
    border: 2px solid currentColor;
    background: var(--poster-accent);
    transform-origin: 50% 90%;
    animation: scene-stack-sheet var(--scene-speed) ease-in-out infinite;
}

.composition-stack .scene-piece-one { transform: translate(-17%, -4%) rotate(-9deg); }
.composition-stack .scene-piece-two { transform: translate(0, 0) rotate(1deg); animation-delay: -1.2s; }
.composition-stack .scene-piece-three { transform: translate(17%, 5%) rotate(10deg); animation-delay: -2.4s; }
.composition-stack .scene-piece-four,
.composition-stack .scene-piece-five,
.composition-stack .scene-piece-six { display: none; }

.composition-stack .brand-icon-main {
    width: 78px;
    height: 78px;
    animation: scene-stack-logo var(--scene-speed) cubic-bezier(.2,.85,.25,1) infinite;
}

/* Nodes: the logo is the living hub, with independently blinking endpoints. */
.composition-nodes {
    background:
        linear-gradient(28deg, transparent 49.4%, currentColor 49.7%, currentColor 50.3%, transparent 50.6%),
        linear-gradient(-32deg, transparent 49.4%, currentColor 49.7%, currentColor 50.3%, transparent 50.6%);
    background-size: 100% 100%;
}

.composition-nodes .brand-icon-main {
    width: 76px;
    height: 76px;
    animation: scene-node-hub var(--scene-speed) ease-in-out infinite;
}

.composition-nodes .scene-piece {
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: var(--poster-accent);
    animation: scene-node-blink var(--scene-speed) steps(2, end) infinite;
}

.composition-nodes .scene-piece-one { left: 7%; top: 20%; }
.composition-nodes .scene-piece-two { right: 8%; top: 12%; animation-delay: -1s; }
.composition-nodes .scene-piece-three { left: 15%; bottom: 14%; animation-delay: -2s; }
.composition-nodes .scene-piece-four { right: 14%; bottom: 20%; animation-delay: -3s; }
.composition-nodes .scene-piece-five { left: 46%; top: 2%; width: 8px; height: 8px; animation-delay: -4s; }
.composition-nodes .scene-piece-six { right: 42%; bottom: 2%; width: 9px; height: 9px; animation-delay: -5s; }

/* Scan: a sharp beam reveals the logo from top to bottom. */
.composition-scan::before {
    content: "";
    position: absolute;
    inset: 8% 12%;
    border: 1px solid currentColor;
    opacity: 0.5;
}

.composition-scan .brand-icon-main {
    width: 88px;
    height: 88px;
    animation: scene-scan-logo var(--scene-speed) linear infinite;
}

.composition-scan .scene-piece-one {
    display: block;
    z-index: 5;
    left: 8%;
    right: 8%;
    top: 14%;
    height: 3px;
    background: currentColor;
    box-shadow: 0 0 14px color-mix(in srgb, currentColor 75%, transparent);
    animation: scene-scan-line var(--scene-speed) cubic-bezier(.4,0,.2,1) infinite;
}

.composition-scan .scene-piece-two,
.composition-scan .scene-piece-three,
.composition-scan .scene-piece-four,
.composition-scan .scene-piece-five {
    display: block;
    width: 18px;
    height: 18px;
    border-color: currentColor;
    border-style: solid;
}

.composition-scan .scene-piece-two { left: 12%; top: 8%; border-width: 2px 0 0 2px; }
.composition-scan .scene-piece-three { right: 12%; top: 8%; border-width: 2px 2px 0 0; }
.composition-scan .scene-piece-four { left: 12%; bottom: 8%; border-width: 0 0 2px 2px; }
.composition-scan .scene-piece-five { right: 12%; bottom: 8%; border-width: 0 2px 2px 0; }
.composition-scan .scene-piece-six { display: none; }

.site-poster:hover .brand-icon-main,
.site-poster:focus-visible .brand-icon-main {
    animation-play-state: paused;
    filter: var(--brand-tone, brightness(1)) drop-shadow(8px 9px 0 rgba(23, 23, 23, 0.26));
}

@keyframes scene-orbit-logo {
    0%, 100% { transform: translate(-28px, 10px) rotate(-7deg); }
    50% { transform: translate(31px, -12px) rotate(8deg); }
}

@keyframes scene-orbit-dot {
    0%, 100% { transform: scale(0.75); opacity: 0.35; }
    50% { transform: scale(1.35); opacity: 1; }
}

@keyframes scene-word-shift {
    0%, 100% { transform: translateX(-2%) rotate(-7deg); }
    50% { transform: translateX(9%) rotate(-7deg); }
}

@keyframes scene-type-logo {
    0%, 72%, 100% { transform: translateY(0) rotate(0); }
    78% { transform: translateY(-14px) rotate(-7deg); }
    84% { transform: translateY(2px) rotate(3deg); }
}

@keyframes scene-rule-grow {
    0%, 100% { transform: scaleX(0.25); transform-origin: left; }
    50% { transform: scaleX(1); transform-origin: left; }
}

@keyframes scene-grid-cell {
    0%, 100% { transform: translate(0); opacity: 0.35; }
    50% { transform: translate(4px, -4px); opacity: 0.8; }
}

@keyframes scene-grid-logo {
    0%, 100% { transform: translate(-50%, -50%) rotate(0); clip-path: inset(0 0 0 0); }
    45% { transform: translate(-56%, -46%) rotate(-4deg); clip-path: inset(0 47% 0 0); }
    55% { transform: translate(-44%, -54%) rotate(4deg); clip-path: inset(0 0 0 47%); }
}

@keyframes scene-pulse-logo {
    0%, 68%, 100% { transform: scale(0.94); }
    74% { transform: scale(1.13); }
    82% { transform: scale(1); }
}

@keyframes scene-pulse-ring {
    0% { transform: scale(0.55); opacity: 0; }
    18% { opacity: 0.75; }
    72%, 100% { transform: scale(2.4); opacity: 0; }
}

@keyframes scene-wave-logo {
    0%, 100% { transform: translate(-50%, -4px) rotate(-3deg); }
    50% { transform: translate(-50%, 9px) rotate(4deg); }
}

@keyframes scene-wave-line {
    0%, 100% { transform: translateX(-5%) scaleY(0.9); }
    50% { transform: translateX(8%) scaleY(1.18); }
}

@keyframes scene-stack-sheet {
    0%, 100% { margin-left: 0; margin-top: 0; }
    50% { margin-left: 5px; margin-top: -7px; }
}

@keyframes scene-stack-logo {
    0%, 64%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
    72% { transform: translateY(-18px) rotate(5deg) scale(1.08); }
    80% { transform: translateY(2px) rotate(0) scale(0.97); }
}

@keyframes scene-node-hub {
    0%, 100% { transform: scale(0.94) rotate(-2deg); }
    50% { transform: scale(1.06) rotate(2deg); }
}

@keyframes scene-node-blink {
    0%, 100% { background: var(--poster-accent); transform: scale(0.8); }
    50% { background: currentColor; transform: scale(1.15); }
}

@keyframes scene-scan-line {
    0%, 12% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    78% { opacity: 1; }
    88%, 100% { transform: translateY(112px); opacity: 0; }
}

@keyframes scene-scan-logo {
    0%, 12% { clip-path: inset(0 0 100% 0); opacity: 0.3; }
    72%, 88% { clip-path: inset(0 0 0 0); opacity: 1; }
    100% { clip-path: inset(100% 0 0 0); opacity: 0.3; }
}

@media (max-width: 767px) {
    .poster-logo-stage {
        inset: 47px 9px 64px;
    }

    .brand-icon-main {
        width: 68px;
        height: 68px;
        filter: var(--brand-tone, brightness(1)) drop-shadow(3px 4px 0 rgba(23, 23, 23, 0.2));
    }

    .composition-orbit .brand-icon-main,
    .composition-grid .brand-icon-main,
    .composition-scan .brand-icon-main { width: 66px; height: 66px; }

    .composition-typefield .brand-icon-main,
    .composition-stack .brand-icon-main,
    .composition-nodes .brand-icon-main { width: 60px; height: 60px; }

    .composition-wave .brand-icon-main { width: 62px; height: 62px; }

    .composition-typefield .brand-word {
        font-size: 27px;
    }

    .composition-scan .scene-piece-one {
        animation-name: scene-scan-line-mobile;
    }
}

@keyframes scene-scan-line-mobile {
    0%, 12% { transform: translateY(0); opacity: 0; }
    20% { opacity: 1; }
    78% { opacity: 1; }
    88%, 100% { transform: translateY(78px); opacity: 0; }
}
