* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "babylon-nouveau", sans-serif;
    font-weight: 400;
    font-style: normal;
    cursor: url('metrocard-cursor.png'), default !important;
}

body {
    background-color: #000000;
    color: #fff;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.05em;
}

.site-title, #loading-title {
    letter-spacing: normal;
}

/* ── Scrollbar ── */

main::-webkit-scrollbar {
    width: 1px;
}

main::-webkit-scrollbar-track {
    background: #000;
}

main::-webkit-scrollbar-thumb {
    background: rgba(243, 144, 5, 0.3);
}

/* ── Header ── */

header {
    background-color: #000000;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 30vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-top: 50px;
    padding-bottom: 16px;
    position: relative;
}

/* ── About panel ── */

#about-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    z-index: 400;
    transform: translateX(calc(100% - 28px));
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

#about-panel.open {
    transform: translateX(0);
}

#about-tab {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #f3900582;
    background: #000;
    border: 1px solid #f3900582;
    border-left: none;
    border-radius: 0;
    padding: 20px 8px;
    cursor: url('metrocard-cursor.png'), default !important;
    flex-shrink: 0;
    width: 28px;
    margin-top: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

#about-panel.open #about-tab {
    background: #f39005;
    color: #000;
    border-color: #f3900546;
}

#about-panel, #about-panel * {
    cursor: url('metrocard-cursor.png'), default !important;
    user-select: none;
}

#about-content {
    background: #f39005;
    width: 65vw;
    height: 100%;
    padding: 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

#about-content p {
    font-size: 12px;
    letter-spacing: 0.1em;
    color: #000;
    line-height: 2;
    max-width: 480px;
}

.site-title {
    font-family: "swordfish", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #fff;
    font-size: 90px;
    transition: filter 4s ease, opacity 4s ease;
}

.site-title:hover {
    filter: blur(10px);
    opacity: 0;
}

/* ── Filter nav ── */

.filters {
    display: flex;
    gap: 32px;
    align-items: center;
}

.filter-link {
    text-decoration: none;
    color: #f3900582;
    font-size: 12px;
    letter-spacing: 0.16em;
    transition: color 0.15s ease;
}

.filter-link:hover {
    color: #f39005;
    font-style: italic;
}

.filter-link.active {
    color: #f39005;
    border-bottom: #f39005 solid 0.5px;
}

/* ── cards ── */

main {
    flex: 1;
    overflow-y: auto;
}

.grid-inner {
    max-width: 1800px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-left: 1px solid #f3900546;
    border-top: 1px solid #f3900546;
    counter-reset: card;
}

.card {
    background-color: #000000;
    border-right: 1px solid #f3900546;
    border-bottom: 1px solid #f3900546;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    position: relative;
    counter-increment: card;
    transition: opacity 0.15s ease;
}

.card::before {
    content: counter(card);
    position: absolute;
    top: 10px;
    left: 12px;
    font-size: 10px;
    color: #f39005;
    letter-spacing: 0.09em;
}

.card.flipped::before {
    display: none;
}

.card-submit {
    counter-increment: none;
}

.card-submit::before {
    display: none;
}


.card img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
    display: block;
    transition: opacity 0.2s ease;
}

.card.flipped img {
    opacity: 0;
    pointer-events: none;
}


/* ── details ── */

.detail {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid #f3900546;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.card.flipped .detail {
    opacity: 1;
    pointer-events: auto;
}

.detail-row {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f3900546;
    padding: 10px 16px;
    gap: 16px;
    flex-shrink: 0;
}

.detail-row.detail-note {
    flex: 1;
    align-items: flex-start;
    border-bottom: none;
}

.detail-label {
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    min-width: 90px;
}

.detail-value {
     font-family: "adobe-handwriting-ernie", sans-serif;
font-weight: 400;
font-style: normal;
    color: #f39005ad;
}

/* ── Submit card ── */

.submit-plus {
    font-size: 50px;
    color: #f39005;
    transition: color 0.15s ease;
    line-height: 1;
}

/* ── Modal ── */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    width: 75vw;
    height: 70vh;
    display: flex;
    flex-direction: row;
    border: 1px solid #f3900546;
    position: relative;
    background: #000;
}

.form-submit {
    background: none;
    border: 1px solid #f3900546;
    color: #f39005;
    font-size: 10px;
    letter-spacing: 0.24em;
    padding: 10px 0;
    margin-top: 8px;
    transition: all 0.15s ease;
}

.form-submit:hover {
    border-color: #f39005;
    color: #f39005;
}

/* Left — upload */
.modal-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#form-image {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    pointer-events: none;
}

.upload-title {
    font-size: 11px;
    letter-spacing: 0.24em;
    color: rgba(255,255,255,0.7);
}

.upload-sub {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.3);
    line-height: 1.8;
}

/* Divider */
.modal-divider {
    width: 1px;
    background: #f3900546;
    margin: 40px 0;
}

/* Right — fields */
.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-bottom: 1px solid #f3900546;
    padding-bottom: 4px;
}

.form-label {
    font-size: 10px;
    letter-spacing: 0.19em;
    color: rgba(255,255,255,0.9);
}

.form-label-opt {
    color: rgba(255,255,255,0.4);
    font-size: 10px;
    letter-spacing: 0.16em;
}

.form-input {
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.09em;
    width: 100%;
    padding: 4px 0;
}

.form-input option {
    background: #000;
}

select.form-input {
    appearance: none;
    -webkit-appearance: none;
}

/* ── Loading screen ── */

#loading {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 1000;
    transition: opacity 0.6s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "swordfish", sans-serif;
    font-size: 140px;
    font-weight: 400;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    filter: blur(20px);
    animation: titleBlurIn 4s ease forwards;
    animation-delay: 2s;
    pointer-events: none;
}

@keyframes titleBlurIn {
    0%   { opacity: 0; filter: blur(20px); }
    30%  { opacity: 1; filter: blur(0px);  }
    85%  { opacity: 1; filter: blur(0px);  }
    100% { opacity: 1; filter: blur(0px);  }
}

.loading-img {
    position: absolute;
    width: 100px;
    object-fit: contain;
    animation: imgFloat 3.5s ease forwards;
    transform-origin: center;
}

@keyframes imgFloat {
    0%   { opacity: 0; filter: blur(0px);  transform: scale(0.97); }
    20%  { opacity: 1; filter: blur(0px);  transform: scale(1); }
    70%  { opacity: 1; filter: blur(0px);  transform: scale(1); }
    100% { opacity: 0; filter: blur(16px); transform: scale(1.02); }
}

/* ── Back to top ── */

#back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    background: none;
    border: 1px solid #f3900546;
    color: #f3900546;
    font-size: 14px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, color 0.15s ease, border-color 0.15s ease;
    z-index: 200;
}

#back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

#back-to-top:hover {
    color: #f39005;
    border-color: #f39005;
}
