/* ═══════════════════════════════════════════════════════════
   CONCEPTS — the descent (overlay)
   A fixed stage that fades over the homepage. No scroll: click
   advances. Words are drawn by concepts.js as chromatic particles;
   this file only positions the chrome around them.
   ═══════════════════════════════════════════════════════════ */

.concepts-overlay {
    position: fixed;
    inset: 0;
    z-index: 9400;            /* above ravenfish (800), the WIP toast (9000) and everything else on the homepage */
    background: #000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s linear 1.6s;
    cursor: pointer;
    overflow: hidden;
    -webkit-user-select: none;
    user-select: none;
}
.concepts-overlay.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0s;
}
body.concepts-open { overflow: hidden; }
body.concepts-standalone { background: #000; }
body.concepts-standalone main { min-height: 100vh; }

#concepts-field {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* ─── Stage: plate + words as ONE group, centred in the viewport. The plate box collapses when empty. ─── */
.concepts-stage {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(88vw, 1100px);
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    animation: concepts-float 11s ease-in-out infinite;   /* transform-only: no layout per frame */
    will-change: transform;
}
.concepts-plate {
    position: relative;
    width: min(64vw, 760px);
    height: 0;
    margin-bottom: 0;
    opacity: 0;
    transition: height 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), margin-bottom 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1.2s ease;
}
.concepts-overlay.has-plate .concepts-plate { height: min(42vh, 440px); margin-bottom: 4vh; opacity: 1; }
.concepts-plate-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.96) translateY(6px);
    filter: blur(18px) drop-shadow(0 0 30px rgba(212, 165, 116, 0.16)) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.75));
    transition: opacity 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 3s cubic-bezier(0.16, 1, 0.3, 1), filter 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform, filter;
}
.concepts-plate-img.is-on {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0) drop-shadow(0 0 30px rgba(212, 165, 116, 0.16)) drop-shadow(0 20px 44px rgba(0, 0, 0, 0.75));
}
/* ─── Words: per-letter DOM glyphs, chromatic dissolve driven by JS (the chamber's DRIFT / GÖDELESE vocabulary, bigger) ─── */
.concepts-words {
    position: relative;
    width: 100%;
    text-align: center;
    /* fixed height budget: title + a two-line sentence. Content anchors to the top, so swapping a
       title+sentence for a lone line never changes the group's height — the bronze stays put. */
    min-height: clamp(150px, 24vh, 230px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
.concepts-title.is-intro { min-height: 0; }
@keyframes concepts-float {
    0%, 100% { transform: translate(-50%, -50%) translate(0, 0); }
    33%      { transform: translate(-50%, -50%) translate(4px, -7px); }
    66%      { transform: translate(-50%, -50%) translate(-5px, 5px); }
}
.concepts-title {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 700;
    font-size: clamp(44px, 6.4vw, 96px);
    line-height: 1.0;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
}
.concepts-title.is-intro { font-size: clamp(64px, 12vw, 170px); letter-spacing: 0.1em; }
.concepts-title.is-long  { font-size: clamp(26px, 3.4vw, 52px); letter-spacing: 0.04em; line-height: 1.15; text-transform: none; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; font-style: italic; }
.concepts-sentence {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(18px, 1.75vw, 27px);
    line-height: 1.5;
    color: rgba(236, 214, 178, 0.92);
    max-width: 780px;
    margin: 22px auto 0;
}
.concepts-sentence:empty { margin-top: 0; }
.wrd { display: inline-block; white-space: nowrap; }       /* words never break mid-glyph */
.ltr { display: inline-block; white-space: pre; will-change: transform; }
.sp  { display: inline; white-space: pre; }

/* ─── Chrome ─── */
.concepts-meter {
    position: absolute;
    right: 22px;
    top: 12vh;
    bottom: 12vh;
    width: 1px;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}
.concepts-meter-fill {
    position: absolute;
    top: 0;
    left: -1px;
    width: 3px;
    height: 0;
    background: rgba(212, 165, 116, 0.55);
    transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.concepts-close {
    position: absolute;
    top: 26px;
    left: 32px;
    background: none;
    border: 0;
    padding: 6px 0;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(232, 230, 225, 0.3);
    cursor: pointer;
    transition: color 0.4s;
}
.concepts-close:hover { color: rgba(212, 165, 116, 0.85); }

@media (max-width: 720px) {
    .concepts-plate { width: 88vw; }
    .concepts-words { min-height: clamp(120px, 26vh, 200px); }
    .concepts-overlay.has-plate .concepts-plate { height: 36vh; }
    .concepts-meter { right: 12px; }
    .concepts-close { left: 22px; top: 20px; }
}
