:root {
    --ink: #101210;
    --ink-soft: #191c19;
    --paper: #f2f0e9;
    --paper-deep: #e7e3d8;
    --white: #fffdf7;
    --acid: #dfff00;
    --coral: #ff6f59;
    --blue: #8098ff;
    --line-dark: rgba(255, 255, 255, 0.16);
    --line-light: rgba(16, 18, 16, 0.18);
    --muted-dark: #a7ada5;
    --muted-light: #5e645d;
    --radius: 1.4rem;
    --content: 88rem;
    --sans: "Arial Narrow", "Aptos Narrow", "Roboto Condensed", Arial, sans-serif;
    --body: Inter, Aptos, "Segoe UI", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--body);
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body.is-locked {
    overflow: hidden;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

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

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.8rem 1rem;
    color: var(--ink);
    background: var(--acid);
    font-weight: 800;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.site-header {
    position: absolute;
    z-index: 50;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
    color: var(--white);
    border-bottom: 1px solid var(--line-dark);
}

.brand {
    display: inline-flex;
    gap: 0.65rem;
    align-items: center;
    width: max-content;
    color: inherit;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 2.15rem;
    height: 2.15rem;
    color: var(--ink);
    background: var(--acid);
    border-radius: 50%;
    font-size: 0.68rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
}

.main-nav a,
.header-index,
.site-footer a {
    font-family: var(--sans);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
}

.main-nav a,
.header-index {
    color: var(--muted-dark);
}

.main-nav a:hover,
.header-index:hover {
    color: var(--acid);
}

.header-index {
    justify-self: end;
}

.hero {
    position: relative;
    min-height: min(58rem, 100svh);
    overflow: hidden;
    padding: clamp(8rem, 13vw, 11rem) clamp(1rem, 4vw, 4rem) 2.5rem;
    color: var(--white);
    background: var(--ink);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.23;
    background-image:
        linear-gradient(var(--line-dark) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
    background-size: clamp(3rem, 8vw, 8rem) clamp(3rem, 8vw, 8rem);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.hero-orbit {
    position: absolute;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit--one {
    top: 13%;
    right: -10vw;
    width: clamp(18rem, 41vw, 40rem);
    aspect-ratio: 1;
    box-shadow: inset 0 0 0 3.5rem rgba(223, 255, 0, 0.035);
}

.hero-orbit--two {
    right: 19vw;
    bottom: -16rem;
    width: 28rem;
    aspect-ratio: 1;
    border-color: rgba(255, 111, 89, 0.35);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: var(--content);
    margin: 0 auto;
}

.eyebrow,
.section-number {
    margin: 0;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--muted-dark);
}

.signal-dot {
    width: 0.55rem;
    height: 0.55rem;
    background: var(--acid);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(223, 255, 0, 0.5);
    animation: signal 2.4s infinite;
}

@keyframes signal {
    50% { box-shadow: 0 0 0 0.5rem rgba(223, 255, 0, 0); }
}

.hero h1 {
    max-width: 11ch;
    margin: 1.4rem 0 1.6rem;
    font-family: var(--sans);
    font-size: clamp(3.8rem, 10.7vw, 10.25rem);
    font-stretch: condensed;
    font-weight: 900;
    letter-spacing: -0.065em;
    line-height: 0.78;
    text-transform: uppercase;
}

.hero h1 em {
    color: var(--acid);
    font-style: normal;
}

.hero-intro {
    max-width: 35rem;
    margin: 0;
    color: var(--muted-dark);
    font-size: clamp(1rem, 1.8vw, 1.25rem);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    gap: 1.75rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3.4rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--sans);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease;
}

.button--acid {
    min-width: 14rem;
    color: var(--ink);
    background: var(--acid);
}

.button:hover {
    transform: translateY(-3px);
}

.text-link {
    color: var(--white);
    font-size: 0.85rem;
    text-underline-offset: 0.35rem;
}

.text-link:hover {
    color: var(--acid);
}

.hero-stats {
    position: absolute;
    z-index: 2;
    right: clamp(1rem, 4vw, 4rem);
    bottom: 2.5rem;
    display: flex;
    margin: 0;
    border-top: 1px solid var(--line-dark);
}

.hero-stats div {
    min-width: clamp(6.3rem, 10vw, 9rem);
    padding: 0.85rem 0 0 1rem;
    border-left: 1px solid var(--line-dark);
}

.hero-stats dt {
    color: var(--muted-dark);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-stats dd {
    margin: 0.25rem 0 0;
    font-family: var(--sans);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-stats .status-live {
    color: var(--acid);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.archive-section {
    max-width: var(--content);
    margin: 0 auto;
    padding: clamp(5rem, 9vw, 9rem) clamp(1rem, 4vw, 4rem);
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: 3rem;
    align-items: end;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-light);
}

.section-number {
    color: var(--muted-light);
}

.section-heading h2,
.about-copy h2 {
    margin: 0.6rem 0 0;
    font-family: var(--sans);
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 0.92;
    text-transform: uppercase;
}

.section-heading > p {
    max-width: 28rem;
    margin: 0;
    color: var(--muted-light);
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 0 2rem;
}

.filter-button {
    padding: 0.65rem 1rem;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line-light);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-button:hover,
.filter-button.is-active {
    background: var(--acid);
    border-color: var(--ink);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(0.8rem, 1.5vw, 1.3rem);
}

.gallery-placeholder {
    position: relative;
    grid-column: span 4;
    min-height: 22rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 30%, var(--blue) 0 8%, transparent 8.5%),
        linear-gradient(135deg, var(--ink-soft) 0 45%, var(--coral) 45% 47%, var(--ink) 47%);
    border-radius: var(--radius);
}

.gallery-placeholder::after {
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: calc(var(--radius) - 0.4rem);
    content: "";
}

.gallery-placeholder span {
    position: absolute;
    z-index: 1;
    right: 1.4rem;
    bottom: 1rem;
    color: var(--white);
    font-family: var(--sans);
    font-size: 2rem;
    font-weight: 900;
}

.gallery-placeholder--tall {
    min-height: 29rem;
    background:
        radial-gradient(ellipse at 40% 90%, var(--acid) 0 18%, transparent 18.5%),
        linear-gradient(160deg, #343b35, var(--ink));
}

.gallery-placeholder--wide {
    background:
        linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.15) 48% 50%, transparent 50%),
        linear-gradient(35deg, var(--blue), var(--ink) 65%);
}

.gallery-card {
    display: block;
    grid-column: span 4;
    align-self: start;
    width: 100%;
    padding: 0;
    overflow: hidden;
    color: var(--white);
    background: var(--ink-soft);
    border: 0;
    border-radius: var(--radius);
    cursor: zoom-in;
    text-align: left;
}

.gallery-card:nth-child(6n + 2),
.gallery-card:nth-child(6n + 6) {
    margin-top: clamp(1rem, 5vw, 4rem);
}

.gallery-card-picture {
    position: relative;
    display: block;
    overflow: hidden;
}

.gallery-card img {
    width: 100%;
    height: auto;
    min-height: 18rem;
    object-fit: cover;
    transition: transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 300ms ease;
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem;
    background: linear-gradient(to top, rgba(5, 7, 5, 0.9), transparent 58%);
}

.gallery-card-sequence {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    place-items: center;
    width: 2.1rem;
    height: 2.1rem;
    color: var(--ink);
    background: var(--acid);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 900;
}

.gallery-card strong {
    font-family: var(--sans);
    font-size: clamp(1.25rem, 2.2vw, 2rem);
    letter-spacing: -0.035em;
    line-height: 0.95;
    text-transform: uppercase;
}

.gallery-card-category {
    margin-top: 0.35rem;
    color: var(--acid);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
    filter: saturate(1.12) contrast(1.05);
    transform: scale(1.035);
}

.gallery-empty {
    grid-column: 1 / -1;
    padding: clamp(3rem, 8vw, 7rem) 1.5rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    text-align: center;
}

.gallery-empty-marker {
    display: grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.2rem;
    background: var(--acid);
    border-radius: 50%;
    font-family: var(--sans);
    font-size: 2rem;
    font-weight: 900;
}

.gallery-empty h3 {
    margin: 0;
    font-family: var(--sans);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.gallery-empty p {
    margin: 0.5rem 0 0;
    color: var(--muted-light);
}

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 5, 0.94);
    backdrop-filter: blur(18px);
}

.lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    align-items: center;
    width: min(94rem, 100%);
    max-height: calc(100svh - 2rem);
}

.lightbox figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    max-height: calc(100svh - 3rem);
    margin: 0;
}

.lightbox figure img {
    width: 100%;
    height: 100%;
    max-height: calc(100svh - 7rem);
    object-fit: contain;
}

.lightbox figcaption {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    min-height: 3rem;
    color: var(--white);
}

#lightboxTitle {
    font-family: var(--sans);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

#lightboxCategory {
    color: var(--acid);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 3.2rem;
    height: 3.2rem;
    color: var(--white);
    background: var(--ink-soft);
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
}

.icon-button:hover {
    color: var(--ink);
    background: var(--acid);
}

.lightbox-close {
    position: fixed;
    z-index: 2;
    top: 1rem;
    right: 1rem;
}

.about-section {
    display: grid;
    grid-template-columns: minmax(10rem, 0.7fr) minmax(18rem, 2fr) minmax(12rem, 0.8fr);
    gap: clamp(2rem, 6vw, 7rem);
    align-items: start;
    padding: clamp(5rem, 9vw, 9rem) max(clamp(1rem, 4vw, 4rem), calc((100vw - var(--content)) / 2 + 4rem));
    color: var(--white);
    background: var(--ink);
}

.about-coordinate {
    margin: 3rem 0 0;
    color: var(--muted-dark);
    font-family: var(--sans);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
}

.about-copy h2 {
    margin-top: 0;
}

.about-copy p {
    max-width: 47rem;
    color: var(--muted-dark);
    font-size: clamp(1rem, 1.7vw, 1.2rem);
}

.about-stamp {
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    padding: 1.5rem;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    color: var(--acid);
    text-align: center;
    transform: rotate(7deg);
}

.about-stamp span {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.about-stamp strong {
    font-family: var(--sans);
    font-size: clamp(1.3rem, 2.5vw, 2.2rem);
    line-height: 0.88;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.2fr 2fr 1fr auto;
    gap: 2rem;
    align-items: start;
    padding: 2.5rem clamp(1rem, 4vw, 4rem);
    background: var(--acid);
    border-top: 1px solid var(--ink);
}

.site-footer p {
    margin: 0;
    font-size: 0.8rem;
}

.site-footer nav {
    display: flex;
    gap: 1.5rem;
}

.site-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 0.35rem;
}

.footer-year {
    justify-self: end;
    font-family: var(--sans);
    font-weight: 900;
}

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

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        display: none;
    }

    .hero {
        min-height: 52rem;
    }

    .hero-stats {
        right: 1rem;
        left: 1rem;
        justify-content: flex-end;
    }

    .section-heading,
    .about-section {
        grid-template-columns: 1fr;
    }

    .gallery-placeholder {
        grid-column: span 6;
    }

    .gallery-card {
        grid-column: span 6;
    }

    .about-stamp {
        width: 10rem;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 580px) {
    .header-index {
        font-size: 0;
    }

    .header-index::after {
        font-size: 0.7rem;
        content: "ADMIN ↗";
    }

    .hero {
        min-height: 48rem;
        padding-top: 8.5rem;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 17vw, 5rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-stats {
        justify-content: stretch;
    }

    .hero-stats div {
        min-width: 0;
        flex: 1;
    }

    .section-heading {
        gap: 1.5rem;
    }

    .gallery-placeholder {
        grid-column: 1 / -1;
        min-height: 21rem;
    }

    .gallery-card {
        grid-column: 1 / -1;
        margin-top: 0 !important;
    }

    .lightbox-panel {
        grid-template-columns: 1fr;
    }

    .lightbox-prev,
    .lightbox-next {
        position: fixed;
        z-index: 2;
        bottom: 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .lightbox figcaption {
        padding: 0 4.5rem;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-year {
        justify-self: start;
    }
}

/* Admin studio */
.admin-page {
    min-height: 100vh;
    color: var(--white);
    background: var(--ink);
}

.admin-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.25rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid var(--line-dark);
}

.admin-header-label,
.admin-back-link {
    color: var(--muted-dark);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.admin-back-link {
    justify-self: end;
    text-decoration: none;
}

.admin-back-link:hover {
    color: var(--acid);
}

.admin-main {
    width: min(100%, var(--content));
    min-height: calc(100vh - 5rem);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 7rem) clamp(1rem, 4vw, 4rem);
}

.auth-shell {
    position: relative;
    width: min(100%, 39rem);
    margin: 2rem auto;
    padding: clamp(1.5rem, 5vw, 4rem);
    overflow: hidden;
    background: var(--ink-soft);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.auth-shell h1,
.dashboard-heading h1 {
    margin: 0.55rem 0 1rem;
    font-family: var(--sans);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 0.83;
    text-transform: uppercase;
}

.auth-copy {
    max-width: 31rem;
    margin: 0 0 2rem;
    color: var(--muted-dark);
}

.auth-marker {
    position: absolute;
    top: -1.3rem;
    right: 1rem;
    color: rgba(223, 255, 0, 0.09);
    font-family: var(--sans);
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
}

.auth-form,
#passwordForm {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label,
.field-label {
    color: var(--muted-dark);
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    min-height: 3.35rem;
    padding: 0.75rem 0.9rem;
    color: var(--white);
    background: var(--ink);
    border: 1px solid var(--line-dark);
    border-radius: 0.7rem;
}

.field input::placeholder {
    color: #686e67;
}

.field input:focus {
    border-color: var(--acid);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(223, 255, 0, 0.16);
}

.field small {
    color: var(--muted-dark);
}

.form-submit {
    width: 100%;
    margin-top: 0.4rem;
    cursor: pointer;
}

.form-submit:disabled,
.outline-button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.app-message {
    position: fixed;
    z-index: 700;
    right: 1rem;
    bottom: 1rem;
    width: min(29rem, calc(100% - 2rem));
    padding: 1rem 1.1rem;
    color: var(--ink);
    background: var(--acid);
    border: 1px solid var(--ink);
    border-radius: 0.8rem;
    box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.35);
    font-weight: 700;
}

.app-message--error {
    color: var(--white);
    background: var(--coral);
}

.loading-disc {
    display: block;
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
    border: 0.35rem solid var(--line-dark);
    border-top-color: var(--acid);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.dashboard-heading {
    display: flex;
    gap: 2rem;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--line-dark);
}

.dashboard-heading .section-number {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    color: var(--muted-dark);
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.dashboard-actions span {
    color: var(--muted-dark);
    font-size: 0.8rem;
}

.outline-button {
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.outline-button:hover {
    color: var(--ink);
    background: var(--acid);
    border-color: var(--acid);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 0.8fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.admin-card {
    padding: clamp(1.25rem, 3vw, 2.2rem);
    background: var(--ink-soft);
    border: 1px solid var(--line-dark);
    border-radius: var(--radius);
}

.card-index {
    margin: 0 0 0.55rem;
    color: var(--acid);
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.13em;
}

.admin-card h2 {
    margin: 0 0 1.5rem;
    font-family: var(--sans);
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 0.95;
    text-transform: uppercase;
}

.form-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.upload-field {
    margin-top: 1rem;
}

.upload-zone {
    display: grid;
    place-items: center;
    min-height: 17rem;
    padding: 1.5rem;
    overflow: hidden;
    color: var(--muted-dark);
    background: var(--ink);
    border: 1px dashed #555c54;
    border-radius: 1rem;
    cursor: pointer;
    text-align: center;
    transition: border-color 180ms ease, background 180ms ease;
}

.upload-zone:hover,
.upload-zone.is-dragging {
    background: #151915;
    border-color: var(--acid);
}

.upload-symbol {
    display: grid;
    place-items: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
    background: var(--acid);
    border-radius: 50%;
    font-size: 1.8rem;
}

.upload-zone strong {
    color: var(--white);
    font-family: var(--sans);
    font-size: 1.25rem;
    text-transform: uppercase;
}

.upload-zone > span:not(.upload-symbol) {
    font-size: 0.78rem;
}

.upload-filename {
    margin-top: 0.7rem;
    color: var(--acid) !important;
    font-weight: 800;
}

.upload-preview {
    width: min(100%, 28rem);
    max-height: 18rem;
    margin-top: 1rem;
    object-fit: contain;
    border-radius: 0.7rem;
}

.admin-card--note {
    color: var(--ink);
    background: var(--acid);
}

.admin-card--note .card-index {
    color: var(--ink);
}

.admin-card--note blockquote {
    margin: 1.5rem 0;
    font-family: var(--sans);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
    text-transform: uppercase;
}

.admin-card--note > p:last-child {
    font-size: 0.82rem;
}

.library-card,
.security-card {
    margin-top: 1.25rem;
}

.library-heading {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: space-between;
}

.library-heading h2 {
    margin-bottom: 0;
}

.admin-filter {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 1.8rem 0 1rem;
}

.admin-filter .filter-button {
    color: var(--white);
    border-color: var(--line-dark);
}

.admin-filter .filter-button:hover,
.admin-filter .filter-button.is-active {
    color: var(--ink);
}

.admin-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 0.85rem;
}

.admin-image {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--ink);
    border: 1px solid var(--line-dark);
    border-radius: 0.85rem;
}

.admin-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.admin-image-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.75rem 3.1rem 0.75rem 0.75rem;
}

.admin-image-copy strong,
.admin-image-copy span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-image-copy strong {
    font-size: 0.82rem;
}

.admin-image-copy span {
    color: var(--muted-dark);
    font-size: 0.7rem;
}

.delete-button {
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: var(--white);
    background: transparent;
    border: 1px solid var(--line-dark);
    border-radius: 50%;
    cursor: pointer;
}

.delete-button:hover {
    background: var(--coral);
    border-color: var(--coral);
}

.admin-empty {
    grid-column: 1 / -1;
    padding: 3rem 1rem;
    color: var(--muted-dark);
    border: 1px dashed var(--line-dark);
    border-radius: 0.85rem;
    text-align: center;
}

.security-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 1fr);
    gap: clamp(2rem, 7vw, 7rem);
}

.security-card p:not(.card-index) {
    max-width: 35rem;
    color: var(--muted-dark);
}

@media (max-width: 800px) {
    .admin-header {
        grid-template-columns: 1fr auto;
    }

    .admin-header-label {
        display: none;
    }

    .dashboard-heading,
    .library-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-grid,
    .security-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-back-link {
        font-size: 0;
    }

    .admin-back-link::after {
        font-size: 0.68rem;
        content: "SEITE ↗";
    }

    .form-columns {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}
