:root {
    --bg: #34383f;
    --panel: #292d33;
    --deep: #202329;
    --paper: #ececea;
    --text: #eef0ef;
    --muted: #a8adb2;
    --teal: #6f9996;
    --plum: #765160;
    --line: rgba(255, 255, 255, .08);
    --pixel: "Courier New", monospace;
    --body: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--body);
    background:
        radial-gradient(circle at 10% 4%, rgba(92, 130, 129, .14), transparent 29rem),
        radial-gradient(circle at 91% 10%, rgba(118, 81, 96, .10), transparent 30rem),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        linear-gradient(var(--line) 1px, transparent 1px),
        var(--bg);
    background-size: auto, auto, 30px 30px, 30px 30px, auto;
}

body.no-scroll {
    overflow: hidden;
}

.crt-glass {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .3;
    background:
        repeating-linear-gradient(to bottom, transparent 0 3px, rgba(0, 0, 0, .1) 3px 4px),
        radial-gradient(ellipse at center, transparent 58%, rgba(7, 9, 12, .06) 80%, rgba(4, 5, 7, .2));
}

.site-header,
.toolbar,
.status-panel,
.gallery,
.empty-state,
.site-footer {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    min-height: clamp(250px, 31vw, 390px);
    margin-top: 24px;
    padding: clamp(30px, 5vw, 58px);
    padding-right: clamp(170px, 33vw, 430px);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    background:
        radial-gradient(circle at 18% 16%, rgba(255, 255, 255, .04), transparent 19rem),
        linear-gradient(145deg, #2c3037, var(--deep));
    box-shadow: 0 16px 34px rgba(13, 14, 17, .32);
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(25px, 7vw, 105px);
    bottom: 0;
    width: clamp(135px, 25vw, 300px);
    z-index: -2;
    background: linear-gradient(
        90deg,
        #173845 0 12%,
        #d7d0bd 12% 15%,
        #246a76 15% 27%,
        #d7d0bd 27% 30%,
        #4f9994 30% 42%,
        #d7d0bd 42% 45%,
        #9d7a3b 45% 57%,
        #d7d0bd 57% 60%,
        #bd6139 60% 72%,
        #d7d0bd 72% 75%,
        #7d302f 75% 87%,
        #d7d0bd 87% 90%,
        #4e2430 90% 100%
    );
    box-shadow: -18px 0 32px rgba(0, 0, 0, .18), 18px 0 32px rgba(0, 0, 0, .14);
}

.site-header::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(32, 35, 41, .98) 0 42%, rgba(32, 35, 41, .88) 54%, rgba(32, 35, 41, .18) 72%, transparent 88%);
}

.eyebrow {
    margin: 0 0 20px;
    color: rgba(236, 238, 237, .68);
    font-size: clamp(.62rem, 1.5vw, .76rem);
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

h1 {
    max-width: 9.5ch;
    margin: 0;
    color: #f0f1f1;
    font-family: var(--pixel);
    font-size: clamp(2.15rem, 7vw, 5.15rem);
    line-height: .95;
    letter-spacing: -.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .45);
}

.subtitle {
    max-width: 540px;
    margin: 28px 0 0;
    color: rgba(236, 238, 237, .76);
    font-size: clamp(.82rem, 1.8vw, 1rem);
    line-height: 1.7;
}

.toolbar {
    min-height: 86px;
    margin-top: 22px;
    padding: 17px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 12px;
    background: linear-gradient(145deg, #33373e, #292d33);
    box-shadow: 0 12px 28px rgba(12, 14, 17, .24);
}

.filter-field {
    min-width: 190px;
    display: grid;
    gap: 7px;
}

.search-field {
    flex: 1 1 280px;
}

.filter-field span {
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

input,
select,
button {
    font: inherit;
}

input,
select {
    min-height: 46px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    color: var(--text);
    outline: none;
    background: #20242a;
}

input:focus,
select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(111, 153, 150, .16);
}

select option {
    background: var(--deep);
}

button {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    color: #e4e5e7;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent), #444951;
    box-shadow: 0 3px 0 #1c1f24;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.08);
}

.download-set-button {
    min-height: 46px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 7px;
    color: #e4e5e7;
    background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent), #444951;
    box-shadow: 0 3px 0 #1c1f24;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
    text-decoration: none;
    white-space: nowrap;
}

.download-set-button:hover,
.download-set-button:focus-visible {
    filter: brightness(1.08);
    outline: none;
    border-color: rgba(136, 170, 167, .55);
}

.view-only-badge {
    min-height: 46px;
    padding: 10px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(255, 255, 255, .2);
    border-radius: 7px;
    color: var(--muted);
    background: rgba(18, 21, 26, .42);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-align: center;
}

.gallery-count {
    margin-left: auto;
    align-self: center;
    color: var(--muted);
    font-size: .76rem;
}

.status-panel {
    margin-top: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px rgba(111, 153, 150, .7);
}

.gallery {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 45px;
}

.photo-card {
    grid-column: span 4;
    min-width: 0;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 14px 26px rgba(13, 14, 17, .28);
    cursor: pointer;
    transform: translateY(0);
    transition: transform .18s ease, border-color .18s ease;
}

.photo-card:nth-child(5n + 1),
.photo-card:nth-child(5n + 4) {
    grid-column: span 6;
}

.photo-card:hover,
.photo-card:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(136, 170, 167, .55);
    outline: none;
}

.photo-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #16191e;
}

.photo-card:nth-child(5n + 1) .photo-frame,
.photo-card:nth-child(5n + 4) .photo-frame {
    aspect-ratio: 16 / 10;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
}

.photo-card:hover img {
    transform: scale(1.025);
}

.photo-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 66%, rgba(0, 0, 0, .15));
}

.photo-info {
    padding: 14px 15px 16px;
}

.photo-title {
    margin: 0;
    color: var(--paper);
    font-size: .88rem;
    line-height: 1.35;
}

.photo-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: .66rem;
}

.tag {
    padding: 3px 6px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 4px;
}

.empty-state {
    margin-top: 30px;
    padding: 70px 24px;
    border: 1px dashed rgba(255, 255, 255, .16);
    border-radius: 12px;
    text-align: center;
    background: rgba(32, 35, 41, .48);
}

.empty-kicker {
    color: var(--plum);
    font-weight: 700;
    letter-spacing: .2em;
}

.empty-state h2 {
    margin: 10px 0;
}

.empty-state p {
    color: var(--muted);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    padding: 28px;
    display: grid;
    place-items: center;
    background: rgba(9, 11, 14, .94);
    backdrop-filter: blur(12px);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-figure {
    width: min(1120px, calc(100vw - 130px));
    height: min(82vh, 820px);
    margin: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 14px;
}

.lightbox-figure img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}

.lightbox-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    color: var(--paper);
}

.lightbox-figure figcaption span {
    color: var(--muted);
    font-size: .74rem;
}

.lightbox-close,
.lightbox-nav,
.fullscreen-button {
    position: absolute;
    z-index: 2;
}

.lightbox-close {
    top: 18px;
    right: 18px;
    width: 48px;
    padding: 0;
    font-size: 1.6rem;
}

.lightbox-nav {
    top: 50%;
    width: 52px;
    padding: 0;
    transform: translateY(-50%);
    font-size: 2rem;
}

.lightbox-nav.previous {
    left: 18px;
}

.lightbox-nav.next {
    right: 18px;
}

.fullscreen-button {
    left: 18px;
    bottom: 18px;
}

.site-footer {
    padding: 22px 0 36px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    opacity: .45;
}

.site-footer a:hover {
    opacity: 1;
}

@media (max-width: 850px) {
    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: span 6;
    }

    .site-header {
        padding-right: 34%;
    }
}

@media (max-width: 620px) {
    .site-header,
    .toolbar,
    .status-panel,
    .gallery,
    .empty-state,
    .site-footer {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        min-height: 310px;
        padding: 30px 22px;
        padding-bottom: 110px;
    }

    .site-header::before {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 80px;
    }

    .site-header::after {
        background: linear-gradient(180deg, rgba(32, 35, 41, .99) 0 68%, rgba(32, 35, 41, .25) 100%);
    }

    .toolbar {
        align-items: stretch;
    }

    .filter-field,
    .search-field {
        flex: 1 1 100%;
    }

    .download-set-button {
        width: 100%;
    }

    .gallery-count {
        width: 100%;
        margin: 5px 0 0;
    }

    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: 1 / -1;
    }

    .photo-card .photo-frame,
    .photo-card:nth-child(5n + 1) .photo-frame,
    .photo-card:nth-child(5n + 4) .photo-frame {
        aspect-ratio: 4 / 3;
    }

    .lightbox {
        padding: 18px;
    }

    .lightbox-figure {
        width: calc(100vw - 36px);
        height: 78vh;
    }

    .lightbox-nav {
        top: auto;
        bottom: 16px;
    }

    .lightbox-nav.previous {
        left: calc(50% - 66px);
    }

    .lightbox-nav.next {
        right: calc(50% - 66px);
    }

    .fullscreen-button {
        display: none;
    }
}

/* Version 2 shared set/password components */
.header-signal {
    position: absolute;
    top: 24px;
    right: 26px;
    display: flex;
    gap: 16px;
    color: rgba(255,255,255,.78);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    z-index: 3;
}

.timecode {
    position: absolute;
    right: 28px;
    bottom: 24px;
    color: rgba(255,255,255,.72);
    font-size: .72rem;
    letter-spacing: .11em;
    z-index: 3;
}

.vhs-tracking {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: -12vh;
    height: 9vh;
    pointer-events: none;
    z-index: 101;
}

.set-header h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 6.4vw, 4.8rem);
}

.access-card {
    width: min(620px, calc(100% - 32px));
    margin: 28px auto 80px;
    padding: clamp(28px, 6vw, 54px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: rgba(25,28,34,.88);
    box-shadow: 0 18px 40px rgba(0,0,0,.34);
}

.access-card h2 { margin: 8px 0 10px; }
.access-card > p:not(.empty-kicker) { color: var(--muted); line-height: 1.65; }
.access-form { display: grid; gap: 14px; margin-top: 24px; }
.access-form label { display: grid; gap: 8px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.access-error { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(205,99,99,.46); border-radius: 7px; color: #ffd7d7; background: rgba(112,39,39,.2); }

@media (max-width: 680px) {
    .header-signal { top: 16px; right: 18px; }
    .timecode { right: 18px; bottom: 18px; }
}

/* Version 2.3: navigation, covers, pages and slideshow */
.public-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto -6px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.public-nav a {
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 6px;
    color: var(--muted);
    background: rgba(28,31,37,.72);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-decoration: none;
    text-transform: uppercase;
}
.public-nav a:hover,
.public-nav a.active {
    color: var(--paper);
    border-color: rgba(111,153,150,.5);
    background: rgba(111,153,150,.12);
}

.set-shelf-section {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 0;
}
.section-label {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
}
.set-shelf {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.set-tile {
    min-width: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 9px;
    color: inherit;
    background: rgba(35,39,46,.88);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease;
}
.set-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(111,153,150,.56);
}
.set-tile-cover {
    min-height: 112px;
    background: linear-gradient(145deg, #1a1d22, #343940);
}
.set-tile-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}
.set-tile-copy {
    padding: 14px;
    display: grid;
    align-content: center;
    gap: 7px;
}
.set-tile-copy strong { color: var(--paper); font-size: .86rem; }
.set-tile-copy span {
    overflow: hidden;
    display: -webkit-box;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.set-tile-copy small { color: var(--teal); font-size: .6rem; letter-spacing: .06em; }

.set-header.has-cover {
    padding-right: clamp(42%, 48vw, 610px);
}
.set-header.has-cover::before { display: none; }
.set-header.has-cover::after {
    z-index: 0;
    background: linear-gradient(90deg, rgba(24,27,32,.99) 0 42%, rgba(24,27,32,.88) 57%, rgba(24,27,32,.18) 78%, rgba(24,27,32,.06));
}
.set-cover-hero {
    position: absolute;
    inset: 0 0 0 42%;
    z-index: -1;
    overflow: hidden;
}
.set-cover-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.82) contrast(1.04);
}
.set-header-content { position: relative; z-index: 1; }

.welcome-card {
    width: min(920px, calc(100% - 32px));
    margin: 24px auto 0;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid rgba(111,153,150,.28);
    border-left: 4px solid var(--teal);
    border-radius: 9px;
    background: rgba(32,35,41,.76);
    box-shadow: 0 12px 28px rgba(0,0,0,.2);
}
.welcome-card span {
    color: var(--teal);
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
}
.welcome-card p { margin: 11px 0 0; color: var(--paper); line-height: 1.75; }

.page-header { min-height: 270px; }
.content-main {
    width: min(880px, calc(100% - 32px));
    margin: 24px auto 70px;
}
.content-card {
    padding: clamp(25px, 5vw, 48px);
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 12px;
    background: rgba(37,41,48,.9);
    box-shadow: 0 16px 36px rgba(0,0,0,.25);
}
.prose p { margin: 0; color: var(--paper); font-size: clamp(.9rem, 2vw, 1.04rem); line-height: 1.9; }
.content-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.content-actions a,
.primary-link {
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: var(--paper);
    background: #444951;
    text-decoration: none;
}
.content-actions .primary-link { color: #10211f; background: var(--teal); font-weight: 700; }
.contact-form { display: grid; gap: 17px; }
.contact-form label { display: grid; gap: 8px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contact-form textarea {
    width: 100%;
    min-height: 190px;
    padding: 12px;
    resize: vertical;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: var(--text);
    outline: none;
    background: #20242a;
    font: inherit;
}
.contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(111,153,150,.16); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.contact-form button { justify-self: start; color: #10211f; font-weight: 700; background: var(--teal); }
.contact-direct { margin: 24px 0 0; color: var(--muted); }
.contact-direct a { color: var(--paper); }
.contact-success { text-align: center; }
.contact-success h2 { margin: 8px 0; }
.contact-success p:last-child { color: var(--muted); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.maintenance-screen {
    width: min(720px, calc(100% - 28px));
    min-height: 100vh;
    margin: auto;
    padding: 70px 20px;
    display: grid;
    place-content: center;
    text-align: center;
}
.maintenance-screen h1 { max-width: none; font-size: clamp(2.2rem, 9vw, 5.2rem); }
.maintenance-screen > p:not(.empty-kicker) { color: var(--muted); font-size: 1rem; line-height: 1.8; }
.maintenance-tape {
    margin: 26px 0;
    padding: 13px;
    border-block: 1px solid rgba(255,255,255,.14);
    color: var(--teal);
    font-size: .68rem;
    letter-spacing: .12em;
}
.maintenance-screen a { color: var(--muted); }

.lightbox-actions {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 8px;
}
.lightbox-actions .fullscreen-button,
.lightbox-actions .slideshow-button {
    position: static;
    min-height: 42px;
}
.lightbox.is-playing .slideshow-button { color: #10211f; background: var(--teal); }
.vhs-switch-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, transparent 0 35%, rgba(255,255,255,.2) 36%, transparent 39%),
        repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 1px, transparent 1px 5px),
        linear-gradient(90deg, rgba(40,180,190,.14), transparent 35%, rgba(205,45,92,.13));
}
.lightbox.is-switching .vhs-switch-overlay { animation: vhs-switch-flash .62s steps(5,end); }
.lightbox.is-switching .lightbox-figure img { animation: vhs-image-switch .62s steps(4,end); }
@keyframes vhs-switch-flash {
    0% { opacity: 0; transform: translateY(-18%); }
    15% { opacity: .85; transform: translateY(0); }
    30% { opacity: .25; transform: translateY(16%); }
    48% { opacity: .72; transform: translateY(-7%); }
    70% { opacity: .16; transform: translateY(5%); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes vhs-image-switch {
    0% { opacity: .35; transform: translateX(-8px) scale(1.012); filter: contrast(1.45) saturate(.55); }
    25% { opacity: .86; transform: translateX(10px) scale(1.006); filter: hue-rotate(12deg) contrast(1.2); }
    50% { opacity: .5; transform: translateX(-4px) scale(1.01); filter: hue-rotate(-12deg); }
    100% { opacity: 1; transform: none; filter: none; }
}
.lightbox:fullscreen { width: 100vw; height: 100vh; }

@media (max-width: 900px) {
    .set-shelf { grid-template-columns: 1fr; }
    .set-tile { grid-template-columns: 145px minmax(0,1fr); }
}
@media (max-width: 620px) {
    .public-nav,
    .set-shelf-section { width: min(100% - 20px, 1180px); }
    .public-nav { justify-content: center; margin-top: 10px; }
    .public-nav a { flex: 1; text-align: center; }
    .set-tile { grid-template-columns: 105px minmax(0,1fr); }
    .set-header.has-cover { padding-right: 22px; padding-bottom: 125px; }
    .set-cover-hero { inset: auto 0 0; height: 108px; }
    .set-header.has-cover::after { background: linear-gradient(180deg, rgba(32,35,41,.99) 0 68%, rgba(32,35,41,.35)); }
    .contact-grid { grid-template-columns: 1fr; }
    .lightbox-actions { left: 50%; bottom: 78px; transform: translateX(-50%); width: max-content; }
    .lightbox-actions .fullscreen-button { display: none; }
    .slideshow-button { font-size: .7rem; }
}


/* Version 2.5: do not silently remove failed image cards. */
.photo-card.image-unavailable .photo-frame {
    min-height: 180px;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 8px, rgba(0,0,0,.08) 8px 16px);
}
.photo-card.image-unavailable .photo-frame::after {
    content: 'IMAGE SIGNAL UNAVAILABLE';
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .08em;
}
.photo-card.image-unavailable img { display: none; }

/* Version 2.7: strict one-time links and non-persistent password access */
.access-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.access-button,
.access-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 16px;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}
.access-button {
    border: 1px solid rgba(111,153,150,.58);
    color: var(--paper);
    background: rgba(111,153,150,.18);
}
.access-button:hover {
    border-color: rgba(111,153,150,.9);
    background: rgba(111,153,150,.28);
}
.access-link {
    border: 1px solid rgba(255,255,255,.1);
    color: var(--muted);
    background: rgba(255,255,255,.03);
}
.access-link:hover {
    color: var(--paper);
    border-color: rgba(255,255,255,.25);
}
.used-link-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 0;
}
.used-link-card {
    margin: 0 auto;
}
.used-link-card h1 {
    margin: 8px 0 18px;
    max-width: 12ch;
    font-size: clamp(2.6rem, 10vw, 6.2rem);
    line-height: .88;
}

/* Version 3.1 — reliability, branded errors and mobile experience */
:root {
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

body {
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
}

a,
button,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.photo-card:focus-visible,
.set-tile:focus-visible {
    outline: 3px solid rgba(134, 215, 206, .52);
    outline-offset: 3px;
}

.status-panel.is-ready .status-dot {
    background: #7fd3b4;
}

.status-panel.is-error {
    color: #ffd2d2;
}

.status-panel.is-error .status-dot {
    background: #d47d7d;
    box-shadow: 0 0 12px rgba(212, 125, 125, .7);
}

.photo-skeleton {
    pointer-events: none;
}

.photo-skeleton .photo-frame,
.photo-skeleton .photo-info {
    position: relative;
    overflow: hidden;
    background: rgba(255,255,255,.045);
}

.photo-skeleton .photo-info {
    min-height: 78px;
}

.photo-skeleton .photo-frame::before,
.photo-skeleton .photo-info::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.075), transparent);
    animation: skeleton-sweep 1.35s infinite;
}

@keyframes skeleton-sweep {
    to { transform: translateX(100%); }
}

.image-unavailable-message {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background:
        repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 8px, transparent 8px 16px),
        #171a1f;
}

.image-unavailable-message strong {
    color: #e29a9a;
    letter-spacing: .12em;
}

.image-unavailable-message span {
    font-size: .72rem;
}

.set-tile-placeholder {
    width: 100%;
    height: 100%;
    min-height: 112px;
    display: grid;
    place-items: center;
    color: rgba(255,255,255,.35);
    font-size: .62rem;
    letter-spacing: .12em;
}

.retry-gallery {
    margin-top: 18px;
}

.download-set-button[aria-busy="true"] {
    opacity: .72;
    pointer-events: none;
}

.lightbox.is-loading-image .lightbox-figure::before {
    content: "LOADING SIGNAL…";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: .72rem;
    letter-spacing: .12em;
}

.lightbox-figure {
    position: relative;
}

.error-screen,
.used-link-screen,
.maintenance-screen {
    min-height: 100svh;
    padding: calc(28px + var(--safe-top)) calc(18px + var(--safe-right)) calc(28px + var(--safe-bottom)) calc(18px + var(--safe-left));
    display: grid;
    place-items: center;
}

.error-card {
    width: min(700px, 100%);
    padding: clamp(28px, 7vw, 58px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(24,27,33,.94);
    box-shadow: 0 22px 55px rgba(0,0,0,.45);
}

.error-brand-logo {
    width: 72px;
    height: 72px;
    margin: 0 0 18px;
    display: block;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 26px rgba(0,0,0,.34);
}

.error-card h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 9vw, 5rem);
}

.error-message {
    margin: 24px 0 0;
    color: var(--paper);
    font-size: clamp(1rem, 2.8vw, 1.18rem);
    line-height: 1.65;
}

.error-detail {
    margin: 12px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.error-reference {
    margin: 20px 0 0;
    padding: 10px 12px;
    border: 1px dashed rgba(255,255,255,.17);
    color: var(--muted);
    font-size: .72rem;
}

.error-actions,
.access-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.access-button,
.access-link {
    min-height: 46px;
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: var(--paper);
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    background: #444951;
    cursor: pointer;
}

.access-button {
    color: #10211f;
    background: var(--teal);
}

.error-back {
    box-shadow: none;
}

@media (max-width: 760px) {
    body {
        padding-bottom: calc(68px + var(--safe-bottom));
    }

    .public-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(10px + var(--safe-bottom));
        z-index: 80;
        width: auto;
        margin: 0;
        padding: 7px;
        justify-content: stretch;
        gap: 6px;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        background: rgba(20,23,28,.94);
        box-shadow: 0 12px 34px rgba(0,0,0,.42);
        backdrop-filter: blur(14px);
    }

    .public-nav a {
        min-width: 0;
        min-height: 44px;
        flex: 1 1 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 9px 6px;
        text-align: center;
    }

    .site-header,
    .toolbar,
    .status-panel,
    .gallery,
    .empty-state,
    .site-footer,
    .set-shelf-section,
    .welcome-card,
    .content-main {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        min-height: 275px;
        margin-top: 10px;
        padding: 66px 20px 92px;
        border-radius: 10px;
    }

    .site-header h1,
    .set-header h1 {
        max-width: 100%;
        overflow-wrap: anywhere;
        font-size: clamp(2.1rem, 14vw, 4rem);
        line-height: .92;
    }

    .subtitle {
        margin-top: 20px;
        font-size: .84rem;
        line-height: 1.6;
    }

    .header-signal {
        top: 18px;
        left: 20px;
        right: auto;
        gap: 12px;
    }

    .timecode {
        right: 20px;
        bottom: 22px;
        max-width: calc(100% - 40px);
        text-align: right;
    }

    .site-header::before {
        height: 66px;
    }

    .set-header.has-cover {
        min-height: 390px;
        padding: 58px 20px 190px;
    }

    .set-header.has-cover::after {
        background: linear-gradient(180deg, rgba(24,27,32,.99) 0 52%, rgba(24,27,32,.75) 70%, rgba(24,27,32,.12) 100%);
    }

    .set-cover-hero {
        inset: 45% 0 0;
    }

    .toolbar {
        margin-top: 14px;
        padding: 14px;
        gap: 10px;
        align-items: stretch;
    }

    .toolbar > button,
    .toolbar > a {
        min-height: 48px;
    }

    .gallery {
        gap: 12px;
    }

    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: 1 / -1;
        border-radius: 9px;
    }

    .photo-frame,
    .photo-card:nth-child(5n + 1) .photo-frame,
    .photo-card:nth-child(5n + 4) .photo-frame {
        aspect-ratio: var(--photo-ratio, 4 / 3);
        max-height: 72svh;
    }

    .photo-info {
        padding: 13px 14px 15px;
    }

    .set-tile {
        grid-template-columns: 104px minmax(0,1fr);
    }

    .set-tile-cover,
    .set-tile-placeholder {
        min-height: 104px;
    }

    .access-card {
        width: min(100% - 20px, 620px);
        margin: 18px auto 38px;
        padding: 24px 18px;
    }

    .access-form button,
    .access-actions > *,
    .error-actions > * {
        width: 100%;
    }

    .lightbox {
        padding: calc(56px + var(--safe-top)) 10px calc(86px + var(--safe-bottom));
        align-items: stretch;
    }

    .lightbox-figure {
        width: 100%;
        height: calc(100svh - 150px - var(--safe-top) - var(--safe-bottom));
        gap: 8px;
    }

    .lightbox-figure img {
        max-height: calc(100svh - 220px);
    }

    .lightbox-figure figcaption {
        max-height: 82px;
        overflow-y: auto;
        padding-inline: 6px;
        font-size: .72rem;
    }

    .lightbox-close {
        top: calc(10px + var(--safe-top));
        right: calc(10px + var(--safe-right));
        width: 46px;
        height: 46px;
    }

    .lightbox-nav {
        top: 50%;
        bottom: auto;
        width: 46px;
        height: 58px;
        transform: translateY(-50%);
        background: rgba(20,22,27,.76);
    }

    .lightbox-nav.previous { left: 8px; }
    .lightbox-nav.next { right: 8px; }

    .lightbox-actions {
        left: 10px;
        right: 10px;
        bottom: calc(10px + var(--safe-bottom));
        display: grid;
        grid-template-columns: 1fr;
    }

    .slideshow-button {
        width: 100%;
    }

    .fullscreen-button {
        display: none;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 28px;
    }
}

@media (min-width: 540px) and (max-width: 850px) {
    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: span 6;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .crt-glass,
    .vhs-tracking,
    .vhs-switch-overlay {
        display: none !important;
    }
}

/* Version 3.4: simpler private gallery controls and back-to-top */
html { scroll-behavior: smooth; }

.private-download-toolbar {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: 18px;
}
.private-download-toolbar .download-set-button {
    width: min(100%, 360px);
    justify-content: center;
}

.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 70;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line, rgba(255,255,255,.22));
    border-radius: 50%;
    color: var(--text, #f5f5f5);
    text-decoration: none;
    background: rgba(9, 10, 14, .9);
    box-shadow: 0 9px 28px rgba(0,0,0,.48);
    backdrop-filter: blur(8px);
}
.back-to-top:hover,
.back-to-top:focus-visible {
    color: var(--accent, #a5efe5);
    border-color: currentColor;
    transform: translateY(-2px);
}

@media (max-width: 620px) {
    .private-download-toolbar {
        margin-inline: 10px;
        padding: 12px;
    }
    .private-download-toolbar .download-set-button {
        width: 100%;
        min-height: 50px;
    }
    .back-to-top {
        width: 46px;
        height: 46px;
    }
}

/* Services and pricing */
.service-grid{width:min(1180px,calc(100% - 32px));margin:28px auto 70px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.service-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:260px;padding:24px;border:1px solid var(--line);background:var(--panel);box-shadow:var(--shadow)}.service-card h2{margin:0;font-size:clamp(1.2rem,2vw,1.7rem)}.service-card p{margin:0 0 10px;line-height:1.7;color:var(--muted)}.service-card .access-button{margin-top:auto}.service-signal{font-size:.7rem;letter-spacing:.14em;color:var(--accent)}.service-price{font-size:1.25rem;color:var(--text)}
@media (max-width:850px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:580px){.service-grid{width:min(100% - 20px,620px);grid-template-columns:1fr;margin-top:16px}.service-card{min-height:0;padding:18px}.public-nav{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.public-nav::-webkit-scrollbar{display:none}.public-nav a{flex:0 0 auto}.site-header{padding-left:14px;padding-right:14px}.toolbar{position:relative;top:auto}.gallery{gap:10px;padding-left:10px;padding-right:10px}.photo-card{border-radius:6px}.lightbox-actions{bottom:max(12px,env(safe-area-inset-bottom));max-width:calc(100vw - 24px);overflow-x:auto}.back-to-top{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}}


/* V4.1 compact archive controls */
.compact-toolbar {
    min-height: 0;
    padding: 10px 12px;
    gap: 9px;
    align-items: center;
}
.compact-toolbar .collection-field {
    flex: 1 1 300px;
    min-width: 220px;
}
.compact-toolbar .filter-field { gap: 4px; }
.compact-toolbar select,
.compact-toolbar input,
.compact-toolbar button,
.search-menu summary {
    min-height: 42px;
}
.search-menu { position: relative; flex: 0 0 auto; }
.search-menu summary {
    min-width: 105px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    list-style: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 7px;
    color: var(--paper);
    background: linear-gradient(145deg,#4c525d,#343941);
    box-shadow: 0 3px 0 rgba(0,0,0,.35);
    font-size: .75rem;
    font-weight: 700;
}
.search-menu summary::-webkit-details-marker { display: none; }
.search-menu[open] summary { border-color: rgba(111,153,150,.75); }
.search-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    width: min(360px, calc(100vw - 28px));
    padding: 10px;
    border: 1px solid rgba(111,153,150,.45);
    border-radius: 9px;
    background: #252a31;
    box-shadow: 0 18px 45px rgba(0,0,0,.48);
}
.search-panel input { width: 100%; }
.compact-reset { padding-inline: 14px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
@media (max-width: 620px) {
    .compact-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto auto; }
    .compact-toolbar .collection-field { min-width: 0; }
    .compact-toolbar .filter-field span { display: none; }
    .compact-toolbar .gallery-count { grid-column: 1 / -1; justify-self: end; font-size: .7rem; }
    .search-menu summary { min-width: 44px; width: 44px; padding: 0; font-size: 0; }
    .search-menu summary::before { content: '⌕'; font-size: 1.1rem; }
    .compact-reset { min-width: 58px; padding-inline: 8px; font-size: .72rem; }
}

/* Version 4.4: legal footer and essential-cookie notice */
.legal-footer {
    width: min(1200px, calc(100% - 28px));
    margin: -34px auto 36px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line, rgba(255,255,255,.14));
    color: var(--muted, #aaa);
    font-size: .72rem;
}
.legal-footer-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.legal-footer-links button {
    min-height: 0;
    padding: 0;
    border: 0;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    box-shadow: none;
    cursor: pointer;
}
.legal-footer-links button:hover,
.legal-footer-links button:focus-visible { color: var(--accent, #a5efe5); }
body.legal-modal-open { overflow: hidden; }
.legal-modal[hidden], .cookie-notice[hidden] { display: none; }
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 18px;
}
.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: rgba(4,5,8,.82);
    box-shadow: none;
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity .16s ease;
}
.legal-modal-card {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    max-height: min(720px, calc(100svh - 36px));
    overflow: auto;
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid var(--line, rgba(255,255,255,.18));
    border-radius: 14px;
    color: var(--text, #f5f5f5);
    background: var(--panel, #15151c);
    box-shadow: 0 30px 90px rgba(0,0,0,.62);
    opacity: 0;
    transform: translateY(14px) scale(.98);
    transition: opacity .16s ease, transform .16s ease;
}
.legal-modal.is-open .legal-modal-backdrop { opacity: 1; }
.legal-modal.is-open .legal-modal-card { opacity: 1; transform: none; }
.legal-modal-card h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 5vw, 2.35rem); }
.legal-modal-card p { color: var(--muted, #c4c4c8); line-height: 1.75; }
.legal-kicker { margin: 0 0 8px !important; color: var(--accent, #a5efe5) !important; font-size: .7rem; letter-spacing: .14em; }
.legal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    min-height: 0;
    padding: 0;
    border-radius: 50%;
}
.cookie-notice {
    position: fixed;
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 100;
    width: min(760px, calc(100% - 28px));
    margin-inline: auto;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line, rgba(255,255,255,.2));
    border-radius: 12px;
    color: var(--text, #f5f5f5);
    background: rgba(14,16,21,.96);
    box-shadow: 0 20px 55px rgba(0,0,0,.55);
    backdrop-filter: blur(10px);
}
.cookie-notice strong { display: block; margin-bottom: 3px; }
.cookie-notice p { margin: 0; color: var(--muted, #bbb); font-size: .76rem; line-height: 1.5; }
.cookie-notice-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.cookie-notice-actions button { min-height: 42px; }
.cookie-accept { color: #10201e; background: var(--accent, #a5efe5); }
@media (max-width: 700px) {
    .legal-footer { align-items: flex-start; flex-direction: column; margin-top: -12px; }
    .legal-modal { place-items: end center; padding: 10px; }
    .legal-modal-card { max-height: calc(100svh - 20px); padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); }
    .cookie-notice { align-items: stretch; flex-direction: column; gap: 12px; }
    .cookie-notice-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-notice-actions button { width: 100%; }
}

/* Visitor image protection: deters right-click saving, dragging and long-press menus. */
.photo-frame img,
.set-cover-hero img,
.lightbox-figure img,
.gallery img {
    -webkit-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}

.photo-frame img,
.set-cover-hero img {
    pointer-events: none;
}

/* Version 4.6.0: simplified viewer and mobile presentation polish */
.lightbox-actions,
.slideshow-button,
.fullscreen-button {
    display: none !important;
}

.lightbox {
    overscroll-behavior: contain;
}

.lightbox-figure img {
    touch-action: pan-y pinch-zoom;
}

@media (hover: none) {
    .photo-card:hover,
    .photo-card:focus-visible {
        transform: none;
    }

    .photo-card:hover img {
        transform: none;
    }
}

@media (max-width: 760px) {
    html {
        scroll-padding-bottom: calc(86px + env(safe-area-inset-bottom));
    }

    body {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    body.no-scroll {
        overflow: hidden;
        touch-action: none;
    }

    .public-nav {
        left: 8px;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        padding: 6px;
        gap: 5px;
        border-radius: 13px;
    }

    .public-nav a {
        min-height: 46px;
        padding: 8px 5px;
        font-size: .66rem;
        letter-spacing: .04em;
    }

    .site-header,
    .toolbar,
    .status-panel,
    .gallery,
    .empty-state,
    .site-footer,
    .set-shelf-section,
    .welcome-card,
    .content-main {
        width: min(100% - 14px, 1180px);
    }

    .site-header {
        min-height: 236px;
        margin-top: 7px;
        padding: 56px 16px 74px;
        border-radius: 9px;
    }

    .site-header h1,
    .set-header h1 {
        max-width: 100%;
        font-size: clamp(2rem, 11.5vw, 3.35rem);
        line-height: .96;
        letter-spacing: -.045em;
    }

    .eyebrow {
        margin-bottom: 12px;
        font-size: .61rem;
        line-height: 1.45;
    }

    .subtitle {
        margin-top: 15px;
        font-size: .82rem;
        line-height: 1.55;
    }

    .header-signal {
        top: 15px;
        left: 16px;
        gap: 10px;
        font-size: .62rem;
    }

    .timecode {
        right: 16px;
        bottom: 15px;
        min-height: 38px;
        padding: 8px 10px;
        font-size: .66rem;
    }

    .set-header.has-cover {
        min-height: 330px;
        padding: 50px 16px 160px;
    }

    .set-cover-hero {
        inset: 48% 0 0;
    }

    .toolbar,
    .compact-toolbar {
        margin-top: 10px;
        padding: 10px;
        gap: 8px;
        border-radius: 9px;
    }

    .compact-toolbar {
        grid-template-columns: minmax(0, 1fr) 44px 58px;
    }

    .compact-toolbar select,
    .compact-toolbar input,
    .toolbar input,
    .toolbar select,
    .access-form input {
        min-height: 46px;
        font-size: 16px;
    }

    .compact-toolbar .gallery-count {
        margin: 0;
        padding: 2px 2px 0;
    }

    .search-panel {
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        left: 10px;
        right: 10px;
        width: auto;
    }

    .status-panel {
        min-height: 0;
        margin-top: 6px;
        padding: 8px 4px;
        font-size: .64rem;
    }

    .gallery {
        width: min(100% - 10px, 1180px);
        gap: 8px;
        padding: 0 0 34px;
    }

    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: 1 / -1;
        border-radius: 7px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
    }

    .photo-frame,
    .photo-card:nth-child(5n + 1) .photo-frame,
    .photo-card:nth-child(5n + 4) .photo-frame {
        aspect-ratio: var(--photo-ratio, 4 / 3);
        max-height: 76svh;
    }

    .photo-info {
        padding: 11px 12px 12px;
    }

    .photo-title {
        font-size: .82rem;
    }

    .photo-meta {
        margin-top: 6px;
        gap: 6px;
        font-size: .62rem;
    }

    .empty-state {
        margin-top: 14px;
        padding: 42px 18px;
    }

    .welcome-card {
        margin-top: 12px;
        padding: 17px;
    }

    .access-card {
        width: min(100% - 14px, 620px);
        margin: 12px auto 26px;
        padding: 21px 16px;
        border-radius: 10px;
    }

    .access-form button,
    .access-actions > *,
    .error-actions > *,
    .private-download-toolbar .download-set-button {
        min-height: 49px;
        width: 100%;
    }

    .lightbox {
        padding: calc(54px + env(safe-area-inset-top)) 7px calc(12px + env(safe-area-inset-bottom));
        display: flex;
        align-items: stretch;
        justify-content: center;
        background: rgba(5, 6, 9, .98);
        backdrop-filter: none;
    }

    .lightbox-figure {
        width: 100%;
        height: calc(100svh - 66px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 7px;
    }

    .lightbox-figure img {
        width: 100%;
        height: 100%;
        max-height: none;
        object-fit: contain;
    }

    .lightbox-figure figcaption {
        max-height: 94px;
        overflow-y: auto;
        padding: 9px 10px;
        gap: 4px 10px;
        border: 1px solid rgba(255, 255, 255, .09);
        border-radius: 8px;
        background: rgba(24, 27, 32, .86);
        font-size: .7rem;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-figure figcaption span {
        font-size: .64rem;
        line-height: 1.45;
    }

    .lightbox-close {
        top: calc(7px + env(safe-area-inset-top));
        right: calc(7px + env(safe-area-inset-right));
        width: 44px;
        height: 44px;
        min-height: 44px;
        border-radius: 50%;
        background: rgba(25, 28, 34, .9);
    }

    .lightbox-nav {
        top: 50%;
        bottom: auto;
        width: 44px;
        height: 62px;
        min-height: 62px;
        padding: 0;
        transform: translateY(-50%);
        border-radius: 8px;
        background: rgba(19, 21, 26, .72);
        box-shadow: none;
        backdrop-filter: blur(5px);
    }

    .lightbox-nav.previous { left: 5px; }
    .lightbox-nav.next { right: 5px; }

    .site-footer {
        gap: 7px;
        padding: 16px 2px 22px;
        font-size: .64rem;
        line-height: 1.55;
    }

    .legal-footer {
        width: min(100% - 14px, 1200px);
        margin: -6px auto 18px;
        padding: 13px 4px;
    }

    .cookie-notice {
        bottom: calc(76px + env(safe-area-inset-bottom));
        left: 8px;
        right: 8px;
        width: auto;
    }

    .back-to-top {
        right: 10px;
        bottom: calc(76px + env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
    }

    .lightbox.is-switching .vhs-switch-overlay,
    .lightbox.is-switching .lightbox-figure img {
        animation-duration: .32s;
    }
}

@media (min-width: 540px) and (max-width: 900px) {
    .gallery {
        gap: 10px;
    }

    .photo-card,
    .photo-card:nth-child(5n + 1),
    .photo-card:nth-child(5n + 4) {
        grid-column: span 6;
    }
}

@media (max-width: 760px) and (orientation: landscape) and (max-height: 560px) {
    .lightbox {
        padding-top: calc(8px + env(safe-area-inset-top));
    }

    .lightbox-figure {
        height: calc(100svh - 18px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        grid-template-columns: minmax(0, 1fr) minmax(170px, 26vw);
        grid-template-rows: 1fr;
        align-items: center;
    }

    .lightbox-figure figcaption {
        max-height: calc(100svh - 24px);
    }
}

/* Version 4.7.4: friendly photograph-download experience */
.download-progress-open {
    overflow: hidden;
}

.download-progress-modal {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding:
        calc(18px + env(safe-area-inset-top))
        calc(16px + env(safe-area-inset-right))
        calc(18px + env(safe-area-inset-bottom))
        calc(16px + env(safe-area-inset-left));
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

.download-progress-modal[hidden] {
    display: none;
}

.download-progress-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.download-progress-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 10, .86);
    backdrop-filter: blur(10px);
}

.download-progress-card {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    padding: clamp(24px, 5vw, 38px);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 14px;
    color: var(--text, #f3f2ed);
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .045), transparent 34%),
        var(--panel, #171b20);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
    overflow: hidden;
}

.download-progress-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, .018) 5px 6px);
    opacity: .55;
}

.download-progress-card > * {
    position: relative;
    z-index: 1;
}

.download-progress-brand {
    margin: 0 0 15px;
    color: var(--accent, #98d8d1);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.download-progress-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    color: var(--text, #f3f2ed);
    background: rgba(255, 255, 255, .055);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .025);
    font-size: 1.8rem;
    animation: download-icon-pulse 1.7s ease-in-out infinite;
}

.download-progress-card.is-ready .download-progress-icon {
    animation: none;
    color: var(--accent, #98d8d1);
}

.download-progress-card h1,
.download-progress-card h2 {
    margin: 0;
    color: var(--text, #f3f2ed);
    font-size: clamp(1.4rem, 4.8vw, 2rem);
    line-height: 1.14;
}

.download-progress-card > p:not(.download-progress-brand):not(.download-progress-help) {
    margin: 13px auto 0;
    max-width: 42ch;
    color: var(--muted, #aeb3ba);
    line-height: 1.65;
}

.download-progress-track {
    position: relative;
    height: 7px;
    margin: 24px 0 17px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    overflow: hidden;
}

.download-progress-track span {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent, #98d8d1), var(--gold, #d2a64b));
    animation: download-progress-sweep 1.2s ease-in-out infinite;
}

.download-progress-track span.is-complete {
    width: 100%;
    animation: none;
    transition: width .35s ease;
}

.download-progress-help {
    margin: 0;
    color: var(--muted, #aeb3ba);
    font-size: .76rem;
    line-height: 1.55;
}

.download-progress-actions [hidden] {
    display: none !important;
}

.download-progress-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.download-progress-actions .access-button,
.download-progress-actions button {
    min-width: 150px;
}

.download-hidden-frame {
    position: fixed;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.download-launch-page {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.download-launch-main {
    flex: 1;
    width: 100%;
    min-height: calc(100svh - 92px);
    padding:
        calc(26px + env(safe-area-inset-top))
        calc(16px + env(safe-area-inset-right))
        calc(26px + env(safe-area-inset-bottom))
        calc(16px + env(safe-area-inset-left));
    display: grid;
    place-items: center;
}

.download-progress-page {
    width: min(100%, 600px);
}

.download-password-card {
    margin-top: clamp(18px, 5vw, 46px);
}

@keyframes download-progress-sweep {
    0% { transform: translateX(-115%); }
    100% { transform: translateX(340%); }
}

@keyframes download-icon-pulse {
    0%, 100% { transform: translateY(0); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .025), 0 0 0 0 rgba(152, 216, 209, .2); }
    50% { transform: translateY(3px); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .025), 0 0 0 10px rgba(152, 216, 209, 0); }
}

@media (max-width: 620px) {
    .download-progress-modal {
        align-items: end;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    }

    .download-progress-card {
        width: 100%;
        padding: 25px 18px 20px;
        border-radius: 15px;
    }

    .download-progress-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 15px;
        font-size: 1.55rem;
    }

    .download-progress-track {
        margin: 21px 0 15px;
    }

    .download-progress-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .download-progress-actions .access-button,
    .download-progress-actions button {
        width: 100%;
        min-width: 0;
        min-height: 50px;
    }

    .download-launch-main {
        align-items: center;
        padding-inline: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-progress-icon,
    .download-progress-track span {
        animation: none;
    }
    .download-progress-track span:not(.is-complete) {
        width: 65%;
    }
}

/* Version 4.7.8: theme-aware scrollbars across the visitor website. */
html,
body,
* {
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--deep);
}

*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: var(--deep);
    border: 1px solid var(--line);
}

*::-webkit-scrollbar-thumb {
    min-height: 38px;
    border: 3px solid var(--deep);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--teal), var(--plum));
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--paper), var(--teal));
}

*::-webkit-scrollbar-corner {
    background: var(--deep);
}



/* Version 4.8.0: reduce layout work on long galleries and keep loading feedback calm. */
.photo-card { content-visibility: auto; contain-intrinsic-size: 1px 420px; }
.photo-card img { background: color-mix(in srgb, var(--deep) 82%, var(--paper) 18%); }
.status-panel.is-loading .status-dot { animation: gallery-status-pulse 1.1s ease-in-out infinite alternate; }
@keyframes gallery-status-pulse {
    from { opacity: .38; transform: scale(.82); }
    to { opacity: 1; transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .status-panel.is-loading .status-dot { animation: none; }
}

/* V4.8.3 — more compact homepage header */
.site-header {
    min-height: clamp(210px, 24vw, 310px);
    padding: clamp(24px, 3.6vw, 42px);
    padding-right: clamp(150px, 30vw, 390px);
}

.site-header::before {
    right: clamp(20px, 5vw, 80px);
    width: clamp(125px, 23vw, 275px);
}

.site-header h1 {
    font-size: clamp(2rem, 5.8vw, 4.25rem);
    line-height: .96;
}

.site-header .eyebrow {
    margin-bottom: 14px;
}

.site-header .subtitle {
    max-width: 500px;
    margin-top: 19px;
    line-height: 1.55;
}

@media (max-width: 850px) {
    .site-header {
        padding-right: 31%;
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 226px;
        padding: 50px 18px 72px;
    }

    .site-header::before {
        height: 56px;
    }

    .site-header h1 {
        font-size: clamp(1.9rem, 11vw, 3.15rem);
        line-height: .97;
    }

    .site-header .eyebrow {
        margin-bottom: 10px;
    }

    .site-header .subtitle {
        margin-top: 13px;
        font-size: .8rem;
        line-height: 1.5;
    }
}

@media (max-width: 390px) {
    .site-header {
        min-height: 212px;
        padding: 46px 15px 66px;
    }

    .site-header h1 {
        font-size: clamp(1.8rem, 10.5vw, 2.8rem);
    }
}

/* V4.8.5 — static full-height colour band on desktop and mobile */
.site-header {
    min-height: clamp(188px, 20vw, 260px);
    padding: clamp(21px, 2.8vw, 34px);
    padding-right: clamp(135px, 27vw, 340px);
}

.site-header::before {
    right: clamp(16px, 4vw, 62px);
    width: clamp(118px, 21vw, 245px);
    background-size: 118% 100%;
    background-position: 0% 50%;
}

.site-header h1 {
    font-size: clamp(1.85rem, 4.8vw, 3.7rem);
    line-height: .97;
}

.site-header .eyebrow {
    margin-bottom: 10px;
}

.site-header .subtitle {
    margin-top: 14px;
    line-height: 1.5;
}


@media (max-width: 850px) {
    .site-header {
        padding-right: 29%;
    }
}

@media (max-width: 620px) {
    .site-header {
        min-height: 196px;
        padding: 30px clamp(94px, 29vw, 116px) 30px 15px;
    }

    .site-header::before {
        top: 0;
        left: auto;
        right: 11px;
        bottom: 0;
        width: clamp(72px, 23vw, 92px);
        height: auto;
        border: 0;
        background-size: 100% 100%;
        background-position: 50% 50%;
        box-shadow: -12px 0 24px rgba(0, 0, 0, .18), 10px 0 20px rgba(0, 0, 0, .12);
    }

    .site-header::after {
        background: linear-gradient(
            90deg,
            rgba(32, 35, 41, .99) 0 54%,
            rgba(32, 35, 41, .9) 67%,
            rgba(32, 35, 41, .34) 82%,
            transparent 96%
        );
    }

    .site-header h1 {
        font-size: clamp(1.72rem, 9.5vw, 2.7rem);
        line-height: .98;
    }

    .site-header .eyebrow {
        margin-bottom: 8px;
    }

    .site-header .subtitle {
        margin-top: 11px;
        font-size: .76rem;
        line-height: 1.45;
    }
}

@media (max-width: 390px) {
    .site-header {
        min-height: 188px;
        padding: 27px 91px 27px 13px;
    }

    .site-header::before {
        right: 8px;
        width: 72px;
    }

    .site-header h1 {
        font-size: clamp(1.62rem, 9.2vw, 2.42rem);
    }
}

/* V4.8.6 — client gallery usability and mobile download guidance */
.client-access-card {
    max-width: 560px;
    text-align: left;
}

.client-access-card h2 {
    font-size: clamp(1.45rem, 4vw, 2rem);
}

.client-link-notice,
.client-link-session-note {
    width: min(100% - 32px, 1180px);
    margin: 14px auto 0;
    padding: 14px 16px;
    display: grid;
    gap: 5px;
    border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
    border-radius: 9px;
    color: var(--text);
    background: color-mix(in srgb, var(--gold) 11%, var(--panel));
    box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}

.client-link-notice {
    width: 100%;
    margin-top: 18px;
}

.client-link-notice.is-neutral,
.client-link-session-note {
    border-color: color-mix(in srgb, var(--teal) 45%, transparent);
    background: color-mix(in srgb, var(--teal) 9%, var(--panel));
}

.client-link-notice strong,
.client-link-session-note strong {
    color: var(--paper);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-link-notice span,
.client-link-session-note span {
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.55;
}

.password-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.password-control input {
    min-width: 0;
}

.password-control button {
    min-width: 76px;
    padding-inline: 13px;
    box-shadow: none;
}

.access-error span {
    display: block;
    margin-top: 5px;
    color: color-mix(in srgb, #ffd7d7 78%, var(--muted));
    font-size: .72rem;
    line-height: 1.45;
}

.private-download-toolbar {
    align-items: center;
    justify-content: center;
}

.download-control {
    display: grid;
    gap: 5px;
    align-items: center;
}

.download-summary {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.4;
    text-align: center;
}

.private-download-toolbar .download-summary {
    flex: 0 0 100%;
}

.status-panel.is-ready {
    opacity: .78;
}

.status-panel.is-offline .status-dot {
    background: var(--gold);
    box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 70%, transparent);
}

.image-unavailable-message {
    min-height: 190px;
    padding: 24px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 9px;
    text-align: center;
}

.image-unavailable-message strong {
    color: var(--paper);
    font-size: .72rem;
    letter-spacing: .1em;
}

.image-unavailable-message span {
    max-width: 30ch;
    color: var(--muted);
    font-size: .72rem;
    line-height: 1.5;
}

.image-retry-button {
    min-height: 42px;
    margin-top: 4px;
    padding: 8px 12px;
    font-size: .7rem;
}

.download-progress-card.is-warning .download-progress-icon {
    color: var(--gold);
    animation: none;
}

.download-progress-card.is-warning .download-progress-track {
    display: none;
}

.download-progress-card.is-warning .download-progress-help {
    margin-top: 18px;
}

.download-progress-actions .secondary-action {
    color: var(--muted);
    background: rgba(255, 255, 255, .035);
}

.client-gallery-page.is-locked .site-header {
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .client-gallery-page.is-locked .site-header {
        min-height: 160px;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .client-gallery-page.is-locked .site-header .subtitle {
        display: none;
    }

    .client-gallery-page.is-locked .site-header .timecode {
        bottom: 10px;
    }

    .client-access-card {
        margin-top: 8px;
        padding: 20px 16px;
    }

    .client-access-card > p:not(.empty-kicker) {
        margin-bottom: 0;
    }

    .client-link-notice,
    .client-link-session-note {
        width: min(100% - 14px, 1180px);
        padding: 12px 13px;
    }

    .client-link-notice {
        width: 100%;
    }

    .password-control {
        grid-template-columns: minmax(0, 1fr) 72px;
    }

    .private-download-toolbar {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .private-download-toolbar .download-set-button {
        width: 100%;
    }

    .download-summary {
        font-size: .65rem;
    }

    .photo-card .photo-frame {
        min-height: 180px;
    }

    .image-unavailable-message {
        min-height: 180px;
    }

    .download-progress-card.is-warning .download-progress-actions {
        grid-template-columns: 1fr;
    }
}


/* V4.8.12 — polished client gallery arrival card */
.client-gallery-arrival {
    position: relative;
    overflow: hidden;
    max-width: 620px;
}

.client-gallery-arrival::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--plum), var(--gold, #d2a64b));
}

.client-gallery-arrival h2 {
    margin-bottom: 18px;
}

.client-gallery-arrival-summary {
    padding: 16px 17px;
    display: grid;
    gap: 6px;
    border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--teal) 8%, var(--deep));
}

.client-gallery-arrival-summary strong {
    overflow-wrap: anywhere;
    color: var(--paper);
    font-size: clamp(.92rem, 2.8vw, 1.1rem);
    line-height: 1.35;
}

.client-gallery-arrival-summary span {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .07em;
    line-height: 1.45;
    text-transform: uppercase;
}

.client-gallery-arrival-copy {
    margin: 16px 0 0;
}

.client-gallery-arrival-form {
    margin-top: 20px;
}

.client-gallery-arrival-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.client-gallery-arrival-actions button {
    width: 100%;
    min-height: 50px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.client-gallery-arrival-primary {
    border-color: color-mix(in srgb, var(--teal) 82%, white 4%);
    color: #10211f;
    background: var(--teal);
}

.client-gallery-arrival-secondary {
    border-color: color-mix(in srgb, var(--paper) 24%, transparent);
    color: var(--paper);
    background: rgba(255, 255, 255, .055);
}

.client-gallery-arrival-footnote {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 760px) {
    .client-gallery-arrival {
        margin-top: 8px;
        padding-top: 24px;
    }

    .client-gallery-arrival-summary {
        padding: 14px;
    }

    .client-gallery-arrival-actions {
        grid-template-columns: 1fr;
    }
}


/* V4.8.18 — compact public archive spacing after toolbar removal */
.archive-page .status-panel {
    margin-top: 10px;
}

.archive-page #gallery:empty {
    margin-top: 0;
    padding-bottom: 0;
}

.archive-page #gallery:empty + .empty-state:not([hidden]) {
    margin-top: 8px;
}

@media (max-width: 760px) {
    .archive-page .status-panel {
        margin-top: 4px;
    }

    .archive-page #gallery:empty + .empty-state:not([hidden]) {
        margin-top: 6px;
    }
}

/* V4.8.20 — bundled public logo and cartoon-style homepage reveal */
.public-nav .public-nav-logo {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-right: auto;
    padding: 3px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    font-size: 0;
}

.public-nav-logo-mark {
    display: block;
    width: 38px;
    height: 38px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .45));
}

.home-welcome-splash {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: grid;
    place-items: center;
    padding: 20px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(72, 30, 116, .22), transparent 47%),
        rgba(7, 8, 12, .96);
    backdrop-filter: blur(8px);
}

.home-welcome-splash.is-ready {
    visibility: visible;
    animation: home-welcome-splash-sequence 3.45s linear forwards;
}

.home-welcome-card {
    position: relative;
    isolation: isolate;
    width: min(430px, calc(100vw - 32px));
    min-height: 390px;
    padding: 34px 24px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 19px;
    color: var(--paper);
    text-align: center;
}

.home-welcome-card::before,
.home-welcome-card::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 44%;
    z-index: -1;
    width: min(390px, 88vw);
    aspect-ratio: 1;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.05);
}

.home-welcome-card::before {
    background:
        radial-gradient(circle,
            transparent 0 43%,
            rgba(244, 235, 210, .78) 44% 47%,
            transparent 48% 56%,
            rgba(83, 31, 139, .82) 57% 62%,
            transparent 63% 70%,
            rgba(68, 153, 150, .64) 71% 75%,
            transparent 76% 100%);
}

.home-welcome-card::after {
    width: min(470px, 104vw);
    background: repeating-conic-gradient(
        from -8deg,
        rgba(199, 149, 60, .18) 0deg 3deg,
        transparent 3deg 13deg
    );
    clip-path: circle(49% at center);
}

.home-welcome-splash.is-ready .home-welcome-card::before {
    animation: home-welcome-rings 3.25s cubic-bezier(.18, .75, .22, 1) forwards;
}

.home-welcome-splash.is-ready .home-welcome-card::after {
    animation: home-welcome-burst 3.25s ease-out forwards;
}

.home-welcome-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: min(260px, 68vw);
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: contain;
    opacity: 0;
    transform: scale(.035) rotate(-540deg);
    filter: drop-shadow(0 18px 25px rgba(0, 0, 0, .58));
    will-change: transform, opacity;
}

.home-welcome-splash.is-ready .home-welcome-logo {
    animation: home-welcome-logo-cartoon 3.25s cubic-bezier(.17, .84, .26, 1) forwards;
}

.home-welcome-label {
    position: relative;
    z-index: 2;
    display: block;
    padding-left: .28em;
    font-size: .86rem;
    font-weight: 900;
    letter-spacing: .28em;
    text-shadow: 0 3px 0 rgba(0, 0, 0, .6);
    opacity: 0;
    transform: translateY(8px) scale(.7);
}

.home-welcome-splash.is-ready .home-welcome-label {
    animation: home-welcome-label-pop 3.25s ease forwards;
}

@keyframes home-welcome-splash-sequence {
    0% { opacity: 0; }
    7%, 82% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

@keyframes home-welcome-logo-cartoon {
    0% { opacity: 0; transform: scale(.035) rotate(-540deg); }
    8% { opacity: 1; }
    38% { opacity: 1; transform: scale(1.14) rotate(10deg); }
    48% { transform: scale(.94) rotate(-5deg); }
    57%, 75% { opacity: 1; transform: scale(1) rotate(0deg); }
    100% { opacity: 0; transform: scale(.035) rotate(-360deg); }
}

@keyframes home-welcome-rings {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.05) rotate(-35deg); }
    27% { opacity: .92; }
    49%, 74% { opacity: .78; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(.08) rotate(-90deg); }
}

@keyframes home-welcome-burst {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(.08) rotate(-12deg); }
    31% { opacity: .75; }
    58%, 75% { opacity: .38; transform: translate(-50%, -50%) scale(1) rotate(10deg); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(.12) rotate(-28deg); }
}

@keyframes home-welcome-label-pop {
    0%, 27% { opacity: 0; transform: translateY(10px) scale(.72); }
    38% { opacity: 1; transform: translateY(0) scale(1.12); }
    48%, 75% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-8px) scale(.8); }
}

.theme-vhs .home-welcome-label {
    color: #f5ecd9;
    text-shadow: 3px 3px 0 rgba(88, 24, 144, .48), 0 3px 0 rgba(0, 0, 0, .8);
}

@media (max-width: 760px) {
    .public-nav .public-nav-logo {
        flex: 0 0 44px;
        width: 44px;
        min-width: 44px;
        margin-right: 0;
        padding: 3px;
    }

    .home-welcome-card {
        min-height: 330px;
        padding: 28px 18px;
        gap: 16px;
    }

    .home-welcome-logo {
        width: min(218px, 66vw);
    }

    .home-welcome-card::before {
        width: min(330px, 92vw);
    }

    .home-welcome-card::after {
        width: min(390px, 108vw);
    }
}

@media (max-width: 390px) {
    .public-nav {
        gap: 4px;
    }

    .public-nav .public-nav-logo {
        flex-basis: 40px;
        width: 40px;
        min-width: 40px;
        height: 44px;
    }

    .public-nav-logo-mark {
        width: 35px;
        height: 35px;
    }

    .public-nav a:not(.public-nav-logo) {
        font-size: .61rem;
        letter-spacing: .025em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-welcome-splash {
        display: none;
    }
}


/* V4.8.21 — one-per-tab welcome reveal and tighter desktop navigation */
@media (min-width: 761px) {
    .public-nav {
        gap: 5px;
    }

    .public-nav a:not(.public-nav-logo) {
        min-height: 42px;
        padding: 7px 9px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* V4.8.22 — remove the square background around the public logo */
.public-nav .public-nav-logo,
.public-nav .public-nav-logo:hover,
.public-nav .public-nav-logo:focus-visible,
.public-nav .public-nav-logo.active {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.public-nav-logo-mark,
.home-welcome-logo {
    clip-path: circle(49.5% at 50% 50%);
    background: transparent;
}

.home-welcome-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* V5.0.0 — calmer photo loading and final spacing polish */
.gallery {
    gap: clamp(10px, 1.35vw, 18px);
    padding-bottom: clamp(30px, 4.5vw, 46px);
}

.photo-card:not(.photo-skeleton) .photo-frame {
    isolation: isolate;
}

.photo-card:not(.photo-skeleton) .photo-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    background:
        linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .055) 46%, transparent 62%),
        color-mix(in srgb, var(--deep) 78%, var(--panel) 22%);
    background-size: 220% 100%, auto;
    animation: photo-loading-sweep 1.35s ease-in-out infinite;
    transition: opacity .2s ease;
}

.photo-frame img {
    position: relative;
    z-index: 1;
    opacity: 0;
    transition: opacity .28s ease, transform .45s cubic-bezier(.16, 1, .3, 1), filter .2s ease;
}

.photo-card.is-loaded .photo-frame img {
    opacity: 1;
}

.photo-card.is-loaded .photo-frame::before,
.photo-card.image-unavailable .photo-frame::before {
    opacity: 0;
    animation: none;
}

.photo-frame::after {
    z-index: 2;
}

.photo-info {
    padding: clamp(11px, 1.4vw, 15px) clamp(12px, 1.5vw, 16px) clamp(13px, 1.6vw, 17px);
}

.photo-meta {
    margin-top: 6px;
    gap: 6px;
}

.archive-page .status-panel {
    min-height: 42px;
    margin-bottom: 0;
}

.content-main {
    margin-top: clamp(18px, 2.5vw, 26px);
    margin-bottom: clamp(48px, 7vw, 72px);
}

.service-grid {
    margin-top: clamp(18px, 2.8vw, 28px);
    margin-bottom: clamp(48px, 6vw, 70px);
    gap: clamp(12px, 1.6vw, 18px);
}

.service-card {
    padding: clamp(18px, 2.2vw, 24px);
}

@keyframes photo-loading-sweep {
    0%, 100% { background-position: 110% 0, 0 0; }
    50% { background-position: -10% 0, 0 0; }
}

@media (max-width: 760px) {
    .gallery {
        gap: 10px;
        padding-bottom: 30px;
    }

    .archive-page .status-panel {
        min-height: 36px;
    }

    .photo-info {
        padding: 11px 12px 13px;
    }

    .service-grid {
        margin-bottom: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .photo-card:not(.photo-skeleton) .photo-frame::before {
        animation: none;
    }

    .photo-frame img {
        transition: none;
    }
}


/* V5.0.1 — signed-in main-page photo-set browser */
.archive-admin-access {
    width: min(1180px, calc(100% - 32px));
    margin: 10px auto 0;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(45, 49, 57, .94), rgba(31, 34, 40, .94));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
}

.archive-admin-access.is-signed-in {
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(190px, .9fr) minmax(280px, 1.35fr) auto;
    gap: 14px;
    align-items: end;
}

.archive-admin-copy {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.archive-admin-copy > span,
.archive-admin-filter > span,
.archive-admin-entry > span {
    color: var(--teal);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.archive-admin-copy strong {
    color: var(--paper);
    font-size: .9rem;
}

.archive-admin-copy small {
    color: var(--muted);
    font-size: .68rem;
    line-height: 1.45;
}

.archive-admin-filter {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.archive-admin-filter select {
    min-height: 42px;
    padding-block: 8px;
    text-overflow: ellipsis;
}

.archive-admin-actions {
    display: flex;
    gap: 7px;
    align-items: center;
}

.archive-admin-actions form {
    margin: 0;
}

.archive-admin-action {
    min-height: 42px;
    padding: 8px 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 7px;
    color: var(--paper);
    background: rgba(255, 255, 255, .055);
    box-shadow: none;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

button.archive-admin-action {
    margin: 0;
}

.archive-admin-action:hover,
.archive-admin-action:focus-visible {
    border-color: color-mix(in srgb, var(--teal) 68%, transparent);
    color: var(--paper);
    background: color-mix(in srgb, var(--teal) 14%, transparent);
    outline: none;
}

.archive-admin-entry {
    min-height: 42px;
    padding: 6px 7px 6px 13px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: rgba(31, 34, 40, .7);
}

.archive-admin-entry .archive-admin-action {
    min-height: 34px;
    padding: 7px 10px;
}

.archive-admin-access + .status-panel {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .archive-admin-access.is-signed-in {
        grid-template-columns: minmax(180px, .8fr) minmax(240px, 1.2fr);
    }

    .archive-admin-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }
}

@media (max-width: 760px) {
    .archive-admin-access {
        width: min(100% - 14px, 1180px);
        margin-top: 7px;
    }

    .archive-admin-access.is-signed-in {
        padding: 12px;
        grid-template-columns: 1fr;
        gap: 11px;
        align-items: stretch;
    }

    .archive-admin-actions {
        grid-column: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-admin-actions form,
    .archive-admin-action,
    button.archive-admin-action {
        width: 100%;
    }

    .archive-admin-entry {
        min-height: 40px;
        padding-left: 10px;
        gap: 7px;
    }

    .archive-admin-entry > span {
        margin-right: auto;
        font-size: .58rem;
        letter-spacing: .07em;
    }
}

@media (max-width: 390px) {
    .archive-admin-entry > span {
        display: none;
    }

    .archive-admin-entry {
        justify-content: flex-end;
    }
}

/* V5.0.4 — clearer photo skeletons and signed-in client preview */
.photo-skeleton .photo-frame,
.photo-skeleton:nth-child(5n + 1) .photo-frame,
.photo-skeleton:nth-child(5n + 4) .photo-frame {
    aspect-ratio: var(--photo-ratio, 4 / 3);
}

.photo-skeleton .photo-info {
    min-height: 78px;
    display: grid;
    align-content: center;
    gap: 10px;
}

.photo-skeleton .photo-info::before {
    display: none;
}

.skeleton-line {
    position: relative;
    overflow: hidden;
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.skeleton-line::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-110%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .085), transparent);
    animation: skeleton-sweep 1.35s ease-in-out infinite;
}

.skeleton-title { width: min(72%, 240px); }
.skeleton-meta { width: min(45%, 150px); height: 8px; }

.client-preview-banner {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid rgba(216, 176, 92, .36);
    border-radius: 9px;
    background: rgba(216, 176, 92, .08);
}

.client-preview-banner > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.client-preview-banner strong {
    color: var(--paper);
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.client-preview-banner span {
    color: var(--muted);
    font-size: .7rem;
    line-height: 1.45;
}

.client-preview-banner a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid rgba(216, 176, 92, .32);
    border-radius: 6px;
    color: var(--paper);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

@media (max-width: 680px) {
    .client-preview-banner {
        align-items: stretch;
        flex-direction: column;
    }

    .client-preview-banner a {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-line::after { animation: none; }
}

/* V5.1.7 — true block-built 8-bit Incognito Planet masthead */
.archive-page .site-header h1.pixel-masthead {
    width: min(100%, 540px);
    max-width: none;
    margin: 0;
    line-height: 1;
    text-shadow: none;
}

.archive-page .pixel-masthead-art {
    display: block;
    width: 100%;
    height: auto;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    filter: drop-shadow(4px 5px 0 rgba(5, 7, 10, .42));
}

@media (max-width: 620px) {
    .archive-page .site-header h1.pixel-masthead {
        width: min(100%, 390px);
    }

    .archive-page .pixel-masthead-art {
        filter: drop-shadow(2px 3px 0 rgba(5, 7, 10, .40));
    }
}


/* v5.1.9: compact branded Instagram link in the main public-site footer. */
.site-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    opacity: .72 !important;
}

.site-social-link:hover,
.site-social-link:focus-visible {
    opacity: 1 !important;
}

.site-social-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-social-icon-dot {
    fill: currentColor;
    stroke: none;
}

@media (max-width: 620px) {
    .site-social-link {
        margin-top: 2px;
    }
}

/* v5.2.0: branded error logo polish. */
