/* won-space.com 3D Monograph Showcase Hero
   Palette locked to won-space.com: #080808 · #121212 · #282828 · #FFFFFF · #EF1D2D · #16C75A
   Typography: Cormorant Garamond (editorial display/italic) · Jost · IBM Plex Sans KR */

/* ---------- Editorial Top Header ---------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter);
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.86) 0%, rgba(8, 8, 8, 0.34) 68%, rgba(8, 8, 8, 0) 100%);
}

.site-header a,
.site-header button {
    pointer-events: auto;
}

.header-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    font-family: var(--serif);
    font-size: 1.45rem;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1;
    text-decoration: none;
    color: var(--white);
    white-space: nowrap;
}

.brand-mark::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--red);
    vertical-align: middle;
    transform: translateY(-2px);
}

.brand-meta {
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-link {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.66);
    transition: color 0.35s ease, opacity 0.35s ease;
}

body.is-inspecting .header-link,
body.is-inspecting .site-header .contact-mail {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.header-link:hover,
.header-link:focus-visible {
    color: var(--white);
}

.site-header .contact-mail {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 2px;
    transition: color 0.35s ease, border-color 0.35s ease;
}

.site-header .contact-mail:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.site-header .contact-github {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(18, 18, 18, 0.68);
    backdrop-filter: blur(8px);
    transition: border-color 0.35s ease, background-color 0.35s ease;
}

.site-header .contact-github:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.archive-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 18px;
    border: 1px solid var(--white);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-family: var(--sans);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease, color 0.3s ease;
}

.archive-pill:hover {
    background: transparent;
    color: var(--white);
}

.archive-pill:active {
    transform: scale(0.97);
}

/* ---------- 3D Monograph Showcase Hero ---------- */

.showcase-hero {
    position: relative;
    z-index: 5;
    width: 100%;
    height: var(--screen);
    min-height: 620px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 68% 42% at 50% 82%, rgba(255, 255, 255, 0.065) 0%, rgba(28, 28, 34, 0.26) 44%, rgba(8, 8, 8, 0) 76%),
        radial-gradient(ellipse 64% 48% at 50% 24%, rgba(44, 44, 52, 0.34) 0%, rgba(12, 12, 14, 0.72) 56%, #080808 100%),
        var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    isolation: isolate;
}

.showcase-backdrop-word {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: clamp(72px, 9.5vh, 118px);
    pointer-events: none;
    user-select: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-word-kicker {
    margin: 0 0 10px;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.38em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.showcase-word-display {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(5.4rem, 16.5vw, 16.5rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.82;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.22) 66%, rgba(255, 255, 255, 0.06) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.showcase-hero.is-inspecting .showcase-backdrop-word {
    opacity: 0;
    transform: translateY(-28px) scale(0.96);
}

.showcase-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.showcase-canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: pan-y;
    cursor: grab;
}

.showcase-canvas.is-pointer {
    cursor: pointer;
}

.showcase-canvas.is-dragging {
    cursor: grabbing;
}

/* Accessible button anchors mapped over visible editions for keyboard & AT */
.showcase-a11y-triggers {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.showcase-a11y-btn {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
    background: rgba(8, 8, 8, 0.92);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    pointer-events: auto;
}

.showcase-a11y-btn:focus-visible {
    width: auto;
    height: auto;
    margin: 0;
    top: 86px;
    left: var(--gutter);
    padding: 10px 16px;
    clip: auto;
    overflow: visible;
    border: 1px solid var(--white);
    border-radius: 999px;
}

/* ---------- Bottom Editorial Dock (Hero Mode) ---------- */

.showcase-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 16px;
    padding: 20px var(--gutter) 24px;
    pointer-events: none;
    background: linear-gradient(0deg, rgba(8, 8, 8, 0.94) 0%, rgba(8, 8, 8, 0.56) 54%, rgba(8, 8, 8, 0) 100%);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s;
}

.showcase-hero.is-inspecting .showcase-footer {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.5s;
}

.showcase-footer a,
.showcase-footer button {
    pointer-events: auto;
}

.showcase-hero.is-inspecting .showcase-footer a,
.showcase-hero.is-inspecting .showcase-footer button {
    pointer-events: none;
}

.showcase-caption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.showcase-caption-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.showcase-caption-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

.showcase-caption-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(1.35rem, 2.2vw, 1.9rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.1;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-caption-sub {
    margin: 0;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.showcase-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.78);
    backdrop-filter: blur(12px);
}

.showcase-arrow {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.showcase-arrow:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.showcase-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
}

.showcase-dot {
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.showcase-dot::after {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease;
}

.showcase-dot:hover::after {
    background: rgba(255, 255, 255, 0.7);
}

.showcase-dot.is-active::after {
    width: 18px;
    background: var(--white);
}

.showcase-hint-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.showcase-inspect-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(18, 18, 18, 0.72);
    color: var(--white);
    font-family: var(--sans);
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.showcase-inspect-cta:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.showcase-scroll-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.56);
    transition: color 0.3s ease;
    white-space: nowrap;
}

.showcase-scroll-link:hover {
    color: var(--white);
}

/* ---------- Detail Inspection Overlay ---------- */

.showcase-close {
    position: absolute;
    top: 22px;
    left: 50%;
    z-index: 45;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 50%;
    background: rgba(12, 12, 14, 0.84);
    backdrop-filter: blur(12px);
    color: var(--white);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -10px) scale(0.92);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background-color 0.25s ease, visibility 0s linear 0.4s;
}

.showcase-close:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.14);
}

.showcase-hero.is-inspecting .showcase-close {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background-color 0.25s ease, visibility 0s;
}

.showcase-orbit-hint {
    position: absolute;
    left: 24%;
    bottom: 28px;
    z-index: 8;
    transform: translateX(-50%);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(10, 10, 12, 0.72);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.56);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.2s;
}

.showcase-hero.is-inspecting .showcase-orbit-hint {
    opacity: 1;
}

.inspect-panel {
    position: absolute;
    top: 88px;
    right: var(--gutter);
    bottom: 28px;
    z-index: 12;
    width: min(560px, 47vw);
    display: flex;
    flex-direction: column;
    padding: 28px 32px 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(16, 16, 19, 0.92) 0%, rgba(10, 10, 12, 0.96) 100%);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.72);
    opacity: 0;
    visibility: hidden;
    transform: translate3d(34px, 0, 0);
    pointer-events: none;
    transition:
        opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.55s;
}

.showcase-hero.is-inspecting .inspect-panel {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.inspect-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.inspect-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.inspect-kicker::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
}

.inspect-catalog-no {
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.44);
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.inspect-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.inspect-icon {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: var(--surface);
    flex-shrink: 0;
    object-fit: cover;
}

.inspect-title {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.1rem, 3.6vw, 3.25rem);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.02;
    color: var(--white);
}

.inspect-lead {
    margin: 0 0 18px;
    font-size: 0.94rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
}

.inspect-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-top: 16px;
    padding-right: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

.inspect-body::-webkit-scrollbar {
    width: 4px;
}

.inspect-body::-webkit-scrollbar-track {
    background: transparent;
}

.inspect-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.26);
    border-radius: 999px;
}

.inspect-section-label {
    margin: 0 0 14px;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.inspect-notes {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.inspect-note {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.inspect-note-num {
    font-family: var(--serif);
    font-size: 0.96rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.44);
    line-height: 1.4;
}

.inspect-note strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--white);
    margin-bottom: 2px;
}

.inspect-note p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.64);
}

.inspect-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    padding-bottom: 8px;
}

.inspect-tag {
    padding: 4px 11px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 0.64rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.inspect-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 12px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.inspect-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.inspect-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
}

.inspect-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.inspect-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1 1 160px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--white);
    border-radius: 999px;
    background: var(--white);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.inspect-btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.inspect-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.inspect-btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.inspect-btn-secondary[hidden] {
    display: none;
}

.inspect-nav-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.inspect-step-btn {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.inspect-step-btn:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Archive Drawer (All 43 Apps + 7 Channels) ---------- */

.archive-drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    justify-content: flex-end;
    background: rgba(4, 4, 5, 0.74);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

.archive-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.35s ease, visibility 0s;
}

.archive-sheet {
    width: min(560px, 100vw);
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #0B0B0D;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    transform: translateX(36px);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-drawer.is-open .archive-sheet {
    transform: translateX(0);
}

.archive-sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.archive-sheet-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-style: italic;
    font-weight: 300;
    color: var(--white);
}

.archive-sheet-sub {
    margin: 2px 0 0;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.archive-close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: var(--white);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.archive-close:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-filter-btn {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--sans);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.archive-filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.archive-filter-btn.is-active {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.archive-grid {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px 24px 28px;
    margin: 0;
    list-style: none;
}

.archive-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.archive-row-btn {
    display: contents;
    cursor: pointer;
    color: inherit;
    text-align: left;
}

.archive-row img {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--surface);
    object-fit: cover;
}

.archive-row-info {
    min-width: 0;
}

.archive-row-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.archive-row-meta {
    display: block;
    margin-top: 2px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.archive-row-inspect {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.84);
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.archive-row-inspect:hover {
    border-color: var(--white);
    background: var(--white);
    color: var(--black);
}

/* ---------- WebGL Fallback Triptych ---------- */

.showcase-fallback {
    display: none;
}

.no-webgl .showcase-canvas-wrap,
.no-webgl .showcase-orbit-hint {
    display: none;
}

.no-webgl .showcase-fallback {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    height: 100%;
    padding: 160px var(--gutter) 124px;
}

.fallback-monograph {
    position: relative;
    width: min(260px, 28vw);
    aspect-ratio: 0.711;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #121212;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.74);
    transition: transform 0.35s ease;
}

.fallback-monograph-art {
    display: block;
    width: 100%;
    height: 100%;
}

.fallback-monograph:nth-child(1) {
    transform: rotate(-6deg) translateY(20px);
}

.fallback-monograph:nth-child(2) {
    transform: translateY(-10px) scale(1.05);
    z-index: 2;
}

.fallback-monograph:nth-child(3) {
    transform: rotate(6deg) translateY(20px);
}

.fallback-monograph:hover {
    transform: translateY(-18px) scale(1.06);
}

.fallback-monograph:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 4px;
}

/* ---------- Below-the-fold Story Entry Sentinel ---------- */

.story-entry {
    position: relative;
    height: calc(var(--screen) * 0.42);
}

.no-webgl .story-entry {
    display: none;
}

/* ---------- Responsive (Tablet & Mobile 390x844) ---------- */

@media (max-width: 1024px) {
    .brand-meta,
    .header-link,
    .site-header .contact-mail {
        display: none;
    }

    .inspect-panel {
        width: min(460px, 50vw);
        padding: 22px 24px 20px;
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 14px 16px;
    }

    .brand-mark {
        font-size: 1.24rem;
    }

    .header-actions {
        gap: 8px;
    }

    .site-header .contact-github {
        width: 32px;
        height: 32px;
    }

    .archive-pill {
        height: 32px;
        padding: 0 13px;
        font-size: 0.58rem;
        letter-spacing: 0.16em;
    }

    .showcase-hero {
        min-height: 100svh;
    }

    .showcase-backdrop-word {
        padding-top: 94px;
    }

    .showcase-word-kicker {
        font-size: 0.56rem;
        letter-spacing: 0.24em;
    }

    .showcase-word-display {
        font-size: clamp(4.6rem, 23vw, 6.2rem);
    }

    .showcase-footer {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 10px;
        padding: 16px 16px 20px;
    }

    .showcase-caption {
        align-items: center;
    }

    .showcase-caption-title {
        font-size: 1.38rem;
    }

    .showcase-caption-sub {
        font-size: 0.68rem;
    }

    .showcase-hint-col {
        justify-content: center;
        gap: 12px;
    }

    .showcase-close {
        top: 60px;
        left: auto;
        right: 16px;
        transform: translate(0, -10px) scale(0.92);
        width: 38px;
        height: 38px;
    }

    .showcase-hero.is-inspecting .showcase-close {
        transform: translate(0, 0) scale(1);
    }

    .showcase-orbit-hint {
        display: none;
    }

    .inspect-panel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 58svh;
        padding: 18px 18px 16px;
        border-radius: 16px;
        transform: translate3d(0, 32px, 0);
    }

    .showcase-hero.is-inspecting .inspect-panel {
        transform: translate3d(0, 0, 0);
    }

    .inspect-title-row {
        gap: 12px;
        margin-bottom: 10px;
    }

    .inspect-icon {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .inspect-title {
        font-size: 1.9rem;
    }

    .inspect-lead {
        font-size: 0.84rem;
        margin-bottom: 12px;
    }

    .inspect-meta-bar {
        padding: 10px 0 8px;
        font-size: 0.6rem;
    }

    .inspect-btn-primary,
    .inspect-btn-secondary {
        min-height: 38px;
        font-size: 0.62rem;
    }

    .inspect-step-btn {
        width: 36px;
        height: 36px;
    }

    .no-webgl .showcase-fallback {
        gap: 12px;
        padding: 140px 16px 140px;
    }

    .fallback-monograph {
        width: 140px;
    }
}

/* ---------- Reduced Motion ---------- */

@media (prefers-reduced-motion: reduce) {
    .showcase-backdrop-word,
    .showcase-footer,
    .showcase-close,
    .inspect-panel,
    .archive-drawer,
    .archive-sheet,
    .showcase-dot::after,
    .fallback-monograph {
        transition: none;
    }
}
