/* ==========================================================================
   MINIMALIST EDITORIAL WATERFALL VIEW
   100% Transparent backgrounds, fluid downward cascade reveals, zero visual clutter
   ========================================================================== */

#explore-view {
    max-width: 46rem;
    margin: 0 auto;
    padding-top: 0.75rem;
    padding-bottom: 3.5rem;
    padding-left: clamp(1rem, 4vw, 2rem);
    padding-right: clamp(1rem, 4vw, 2rem);
    background: transparent !important;
}

/* Category Waterfall Stream */
.waterfall-stream {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent !important;
}

/* Category Block */
.category-block {
    position: relative;
    border: none !important;
    background: transparent !important;
}

.category-block:first-child {
    border-top: none !important;
}

.category-block.is-active {
    border-bottom: none !important;
}

/* Category Header Trigger */
.category-trigger {
    width: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    background: transparent !important;
    border: none;
    padding: 0.95rem clamp(0.5rem, 2vw, 1.25rem);
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.2, 1);
}

.category-trigger:hover {
    padding-left: clamp(0.75rem, 2.5vw, 1.65rem);
}

.category-title {
    font-family: var(--font-tall);
    font-size: clamp(1.25rem, 4.2vw, 1.55rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text-high);
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: color 0.5s ease;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 1.65rem;
    }
}

.category-trigger:hover .category-title {
    color: var(--color-accent-coral) !important;
}
.category-block.is-active .category-title {
    color: #ffffff;
}

.category-indicator {
    font-family: var(--font-archival);
    font-size: 1rem;
    color: var(--color-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 1.1s cubic-bezier(0.16, 1, 0.18, 1), color 0.7s ease;
}

.category-trigger:hover .category-indicator {
    color: var(--color-text-high);
}

.category-block.is-active .category-indicator {
    transform: rotate(90deg);
    color: var(--color-accent-coral);
}

/* Stepped Downward Waterfall Tray (Slower Organic Fluid Physical Easing) */
.waterfall-tray {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 1.85s cubic-bezier(0.16, 1, 0.18, 1), opacity 1.45s cubic-bezier(0.2, 0, 0, 1);
    opacity: 0;
    background: transparent !important;
}

.category-block.is-active .waterfall-tray {
    grid-template-rows: 1fr;
    opacity: 1;
}

.waterfall-tray-inner {
    overflow: hidden;
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
    padding-left: clamp(0.5rem, 2vw, 1.25rem);
    background: transparent !important;
}

@media (min-width: 768px) {
    .waterfall-tray-inner {
        padding-left: 1.5rem;
    }
}

/* Works List */
.category-works-list {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    list-style: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
}

/* Individual Work Node */
.waterfall-work {
    position: relative;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    background: transparent !important;
    border: none !important;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.2, 1);
    opacity: 0;
    transform: translateY(6px);
}

.category-block.is-active .waterfall-work {
    animation: waterfallSmoothDrop 1.7s cubic-bezier(0.16, 1, 0.2, 1) forwards;
    animation-delay: calc(var(--item-idx, 0) * 110ms);
}

@keyframes waterfallSmoothDrop {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waterfall-work:hover {
    padding-left: 0.85rem;
}

.waterfall-work.drawer-open {
    padding-left: 0.85rem;
}

/* Summary Row */
.work-summary-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.25rem 0.75rem;
    cursor: pointer;
    user-select: none;
    background: transparent !important;
}

.work-left-content {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    min-width: 0;
}

.work-title-link {
    font-family: var(--font-editorial);
    font-size: clamp(1.05rem, 3.5vw, 1.15rem);
    font-weight: 500;
    line-height: 1.3;
    color: var(--color-text-high);
    text-decoration: none;
    transition: color 0.4s ease;
}

@media (min-width: 768px) {
    .work-title-link {
        font-size: 1.25rem;
    }
}

.work-title-link:hover {
    color: var(--color-accent-coral) !important;
}

.work-title-link .external-icon {
    font-family: var(--font-archival);
    font-size: 0.65em;
    color: var(--color-accent-coral);
    margin-left: 0.25rem;
    vertical-align: super;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.work-title-link:hover .external-icon {
    opacity: 1;
    transform: translate(2px, -2px);
}

/* Subtle, Minimalist Expand Cue */
.expand-cue {
    font-family: var(--font-archival);
    font-size: 0.65rem;
    color: var(--color-text-muted);
    opacity: 0.45;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.2, 1);
    user-select: none;
    display: inline-block;
    vertical-align: middle;
}

.work-summary-row:hover .expand-cue {
    opacity: 0.9;
    color: var(--color-accent-coral);
    transform: translateY(1px);
}

.waterfall-work.drawer-open .expand-cue {
    transform: rotate(45deg);
    opacity: 0.8;
    color: var(--color-accent-coral);
}

.work-date {
    font-family: var(--font-tall);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    white-space: nowrap;
}

/* Monograph Drawer (Level 3 Cascade) */
.work-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 1.5s cubic-bezier(0.16, 1, 0.18, 1), opacity 1.2s ease;
    opacity: 0;
    background: transparent !important;
}

.waterfall-work.drawer-open .work-drawer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.work-drawer-inner {
    overflow: hidden;
    padding-top: 0.45rem;
    padding-left: clamp(0.85rem, 3vw, 1.75rem);
    margin-top: 0.35rem;
    border-top: none !important;
    background: transparent !important;
}

.drawer-summary {
    font-family: var(--font-editorial);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-body);
    font-style: italic;
    margin: 0 0 0.5rem 0;
}

/* Visual Art Media Thumbnail & Logo */
.drawer-media-wrap {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    max-width: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: zoom-in;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    transition: transform 0.3s ease;
}

.drawer-media-wrap:hover {
    transform: scale(1.03);
    border: none !important;
}

.drawer-art-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.drawer-meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-family: var(--font-archival);
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.35rem;
}

.drawer-org-link {
    font-family: var(--font-tall);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-accent-eucalypt);
    text-decoration: none;
    transition: color 0.2s ease;
}

.drawer-org-link:hover {
    color: var(--color-accent-coral) !important;
    text-decoration: underline;
}

.drawer-view-link {
    font-family: var(--font-tall);
    color: var(--color-accent-coral);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: transform 0.2s ease;
}

.drawer-view-link:hover {
    transform: translateX(3px);
    color: var(--color-accent-coral) !important;
}

/* Minimalist Center-Aligned Profile Drawer in Bio Section */
#bio-portrait-toggle {
    margin-top: 2rem;
    font-family: var(--font-archival);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: transparent !important;
    border: 1px solid var(--color-stone-line);
    color: var(--color-text-muted);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    margin-right: auto;
}

#bio-portrait-toggle:hover {
    color: #ffffff;
    border-color: rgba(149, 178, 107, 0.6);
    background: rgba(28, 25, 23, 0.4) !important;
}

#bio-portrait-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    margin-top: 1.5rem;
    background: transparent !important;
}

#bio-portrait-drawer.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

#bio-portrait-drawer-inner {
    overflow: hidden;
    display: flex;
    justify-content: center;
    background: transparent !important;
}

.bio-modal-portrait {
    width: 13rem;
    height: 13rem;
    object-fit: cover;
    object-position: top;
    border-radius: 50% !important;
    border: 2px solid var(--color-stone-border);
    box-shadow: 0 0 0 1px rgba(68, 64, 60, 0.4), 0 10px 30px -5px rgba(0, 0, 0, 0.85);
    margin: 0.5rem auto;
    cursor: zoom-in;
    transition: transform 0.4s ease, border-color 0.3s ease;
    display: block;
}

.bio-modal-portrait:hover {
    transform: scale(1.03);
}

/* Footer Minimalist Social Icon Links */
.footer-icon-link {
    color: var(--color-text-muted);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid transparent;
}

.footer-icon-link:hover {
    color: var(--color-accent-coral);
    border-color: rgba(255, 117, 117, 0.35);
    transform: translateY(-2px);
}

.drawer-photo-attribution {
    font-family: var(--font-archival);
    font-size: 0.72rem;
    color: var(--color-text-muted);
    font-style: normal;
    margin: 0.35rem 0 0.5rem 0;
    opacity: 0.8;
}
/* Bio Category Waterfall Details */
.bio-waterfall-inner {
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;
}

.bio-waterfall-text {
    font-family: var(--font-editorial);
    font-size: clamp(1.05rem, 3.5vw, 1.18rem);
    font-weight: 500;
    line-height: 1.65;
    color: var(--color-text-high);
    margin: 0 0 1.25rem 0;
}

@media (min-width: 768px) {
    .bio-waterfall-text {
        font-size: 1.22rem;
    }
}

.bio-portrait-wrap {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.75rem;
}


/* Minimalist Global Cascade Master Toggle (++ / --) */
#waterfall-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 clamp(0.5rem, 2vw, 1.25rem) 0.65rem clamp(0.5rem, 2vw, 1.25rem);
    margin-bottom: 0.25rem;
}

.master-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent !important;
    border: none;
    color: var(--color-text-muted);
    font-family: var(--font-tall);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.master-toggle-btn:hover {
    color: var(--color-accent-coral);
}

.master-toggle-glyph {
    display: inline-block;
    font-family: var(--font-archival);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
    transform-origin: center center;
    transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.4s ease;
}

/* Clockwise and Anticlockwise rotation animations */
.master-toggle-btn.is-all-open .master-toggle-glyph {
    transform: rotate(180deg);
    color: var(--color-accent-coral);
}
