:root {
    --emerald-abyss: #030d0b;
    --emerald-deep: #061814;
    --emerald-mid: #0c2c23;
    --ivory: #f5f0e3;
    --ivory-soft: #e6ede5;
    --sage-muted: #c6d8cb;
    --gold: #f2d280;
    --gold-rich: #f6dc96;
    --gold-soft: rgba(242, 210, 128, 0.58);
    --font-display: "Bahnschrift Condensed", "Bahnschrift", "DIN Condensed", "Franklin Gothic Medium Cond", "Arial Narrow", sans-serif;
    --font-serif: "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;
    --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
}

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

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background-color: var(--emerald-abyss);
    color: var(--ivory);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

/* Full-bleed cinematic movie poster canvas */
.poster {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--emerald-abyss);
    overflow-x: clip;
    isolation: isolate;
}

/* Layered illustration & atmosphere anchored to initial viewport so opening <details> never shifts the tree */
.poster-art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    height: 100svh;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse 72% 54% at 50% 42%, #0c2d24 0%, #051612 46%, #030d0b 84%);
}

.poster-backlight {
    position: absolute;
    left: 50%;
    top: 40%;
    width: min(1040px, 96vw);
    height: min(640px, 76vh);
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse at center,
        rgba(241, 224, 173, 0.16) 0%,
        rgba(64, 142, 113, 0.18) 28%,
        rgba(15, 58, 45, 0.14) 55%,
        rgba(3, 13, 11, 0) 78%
    );
}

.poster-tree {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: min(1240px, 94vw);
    height: auto;
    max-height: 90svh;
    object-fit: contain;
    display: block;
    user-select: none;
}

.poster-mist {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 68% 16% at 50% 56%, rgba(154, 206, 185, 0.08) 0%, rgba(154, 206, 185, 0) 72%),
        radial-gradient(ellipse 46% 12% at 24% 52%, rgba(118, 178, 154, 0.05) 0%, rgba(3, 13, 11, 0) 70%),
        radial-gradient(ellipse 46% 12% at 76% 54%, rgba(118, 178, 154, 0.05) 0%, rgba(3, 13, 11, 0) 70%);
}

/* Calm dark scrims at top (behind campus identity) and bottom (behind title, theme, coming soon) */
.poster-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(3, 13, 11, 0.94) 0%,
            rgba(3, 13, 11, 0.72) 15%,
            rgba(3, 13, 11, 0.24) 26%,
            rgba(3, 13, 11, 0) 36%,
            rgba(3, 13, 11, 0) 50%,
            rgba(3, 13, 11, 0.64) 64%,
            rgba(3, 13, 11, 0.93) 76%,
            rgba(3, 13, 11, 0.99) 90%,
            rgba(3, 13, 11, 1) 100%
        ),
        radial-gradient(ellipse 88% 82% at 50% 44%, rgba(3, 13, 11, 0) 56%, rgba(2, 9, 8, 0.72) 100%);
}

/* Foreground typography & branding */
.poster-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: clamp(0.9rem, 2.4vh, 2rem) clamp(1.25rem, 3.5vw, 2.75rem) clamp(1.1rem, 3vh, 2rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
}

/* 1. Top-center UIKA Logo & Institution Credits */
.poster-credits {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
}

.poster-logo {
    width: auto;
    height: clamp(68px, 8.6vh, 76px);
    aspect-ratio: 1598 / 1610;
    object-fit: contain;
    display: block;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.65));
}

.poster-org {
    margin: 0;
    font-family: var(--font-sans);
    font-size: clamp(1.0625rem, 1.35vw, 1.1875rem);
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: 0.08em;
    color: var(--ivory);
    text-shadow:
        0 2px 14px rgba(2, 10, 8, 0.98),
        0 0 22px rgba(2, 10, 8, 0.92);
}

.poster-univ {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.0625rem, 1.3vw, 1.15rem);
    font-weight: 400;
    line-height: 1.24;
    letter-spacing: 0.03em;
    color: var(--sage-muted);
    text-shadow:
        0 2px 14px rgba(2, 10, 8, 0.98),
        0 0 22px rgba(2, 10, 8, 0.92);
}

/* Responsive middle stage: stays stable when <details> expands so the title never jumps upward */
.poster-spacer {
    flex: 1 0 auto;
    min-height: clamp(185px, 30svh, 280px);
}

/* 3-5. Movie Title Billing Block */
.poster-billing {
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.poster-title {
    margin: 0;
    max-width: 100%;
    font-family: var(--font-display);
    font-variation-settings: "wdth" 75, "wght" 600;
    font-stretch: condensed;
    font-weight: 600;
    font-size: clamp(4.75rem, 7.5vw, 6.75rem);
    line-height: 0.92;
    letter-spacing: 0.075em;
    padding-left: 0.075em;
    text-transform: uppercase;
    color: var(--ivory);
    text-shadow:
        0 4px 28px rgba(2, 10, 8, 0.96),
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 0 42px rgba(242, 210, 128, 0.14);
}

.poster-theme {
    margin: 0.65rem 0 0;
    width: 100%;
    max-width: 940px;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 2.35vw, 2.0625rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.005em;
    color: var(--ivory-soft);
    text-wrap: balance;
    hyphens: none;
    word-break: normal;
    text-shadow:
        0 2px 18px rgba(2, 10, 8, 0.98),
        0 0 28px rgba(2, 10, 8, 0.95);
}

.poster-status {
    margin: 0.95rem 0 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 1.8vw, 1.35rem);
    font-family: var(--font-sans);
    font-size: clamp(1.5rem, 2.7vw, 2.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: 0.14em;
    padding-left: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow:
        0 2px 16px rgba(2, 10, 8, 0.98),
        0 0 26px rgba(242, 210, 128, 0.28);
}

.poster-status::before,
.poster-status::after {
    content: "";
    width: clamp(28px, 4vw, 54px);
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--gold-soft));
    flex-shrink: 0;
}

.poster-status::after {
    background: linear-gradient(90deg, var(--gold-soft), transparent);
}

/* Partnership Disclosure (<details> / <summary>) */
.poster-partnership {
    width: 100%;
    max-width: 680px;
    margin-top: 0.35rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partnership-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--sage-muted);
    text-decoration: underline;
    text-decoration-color: rgba(242, 210, 128, 0.48);
    text-underline-offset: 0.32em;
    text-decoration-thickness: 1px;
    transition: color 180ms ease, text-decoration-color 180ms ease, background-color 180ms ease;
    user-select: none;
}

.partnership-trigger::-webkit-details-marker {
    display: none;
}

.partnership-trigger:hover {
    color: var(--gold-rich);
    text-decoration-color: var(--gold-rich);
    background-color: rgba(242, 210, 128, 0.06);
}

.partnership-trigger:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    color: var(--gold-rich);
}

.partnership-chevron {
    width: 0.5rem;
    height: 0.5rem;
    border-right: 1.75px solid currentColor;
    border-bottom: 1.75px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 200ms ease;
    flex-shrink: 0;
}

.poster-partnership[open] .partnership-chevron {
    transform: translateY(2px) rotate(-135deg);
}

.partnership-panel {
    width: 100%;
    margin: 0.85rem auto 0.75rem;
    padding: clamp(1.35rem, 3vw, 2rem) clamp(1.25rem, 3.2vw, 2.25rem);
    background: linear-gradient(180deg, rgba(8, 30, 24, 0.94) 0%, rgba(4, 17, 14, 0.98) 100%);
    border: 1px solid rgba(242, 210, 128, 0.24);
    border-radius: 14px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.58);
    text-align: center;
}

.partnership-heading {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.3;
    color: var(--ivory);
    text-wrap: balance;
}

.partnership-body {
    margin: 0.85rem auto 0;
    max-width: 56ch;
    font-family: var(--font-sans);
    font-size: 0.98rem;
    line-height: 1.64;
    color: var(--ivory-soft);
}

.partnership-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 1.35rem;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    background: var(--gold);
    color: #051612;
    font-family: var(--font-sans);
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 180ms ease, transform 180ms ease;
}

.partnership-cta:hover {
    background: var(--gold-rich);
    transform: translateY(-1px);
}

.partnership-cta:focus-visible {
    outline: 2px solid var(--ivory);
    outline-offset: 4px;
}

.partnership-notice {
    margin: 1.2rem auto 0;
    padding-top: 0.95rem;
    max-width: 44ch;
    border-top: 1px solid rgba(242, 210, 128, 0.2);
    font-family: var(--font-sans);
    font-size: 0.94rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: var(--gold);
}

/* Vertical theatrical cinema poster composition on mobile */
@media (max-width: 767px) {
    .poster-content {
        padding: 1.35rem 20px 1.75rem;
    }

    .poster-logo {
        height: 70px;
        margin-bottom: 0.4rem;
    }

    .poster-org {
        font-size: 1.0625rem;
        letter-spacing: 0.04em;
    }

    .poster-univ {
        font-size: 1.0625rem;
        letter-spacing: 0.015em;
    }

    .poster-backlight {
        top: 39%;
        width: 132vw;
        height: 48vh;
    }

    .poster-tree {
        top: 40%;
        width: min(560px, 130vw);
        max-height: 52svh;
    }

    .poster-vignette {
        background:
            linear-gradient(
                to bottom,
                rgba(3, 13, 11, 0.94) 0%,
                rgba(3, 13, 11, 0.65) 16%,
                rgba(3, 13, 11, 0) 28%,
                rgba(3, 13, 11, 0) 48%,
                rgba(3, 13, 11, 0.72) 60%,
                rgba(3, 13, 11, 0.95) 72%,
                rgba(3, 13, 11, 1) 100%
            ),
            radial-gradient(ellipse 92% 80% at 50% 40%, rgba(3, 13, 11, 0) 50%, rgba(2, 9, 8, 0.76) 100%);
    }

    .poster-spacer {
        min-height: clamp(290px, 36svh, 330px);
    }

    .poster-title {
        font-size: clamp(3rem, 13.3vw, 3.5rem);
        line-height: 0.96;
        letter-spacing: 0.045em;
        padding-left: 0.045em;
        hyphens: none;
        word-break: normal;
    }

    .poster-theme {
        margin-top: 0.8rem;
        max-width: 100%;
        font-size: clamp(1.25rem, 5.4vw, 1.375rem);
        line-height: 1.32;
        text-wrap: balance;
        hyphens: none;
        word-break: normal;
    }

    .poster-status {
        margin-top: 1rem;
        gap: 0.75rem;
    }

    .poster-partnership {
        margin-top: 0.55rem;
    }

    .partnership-trigger {
        min-height: 48px;
        padding: 0.65rem 1.25rem;
        font-size: 0.98rem;
    }

    .partnership-panel {
        padding: 1.35rem 1.15rem;
    }
}

/* Short-height laptop viewports (e.g. 1360x635): tighten vertical spacing so COMING SOON + Jadi Mitra Workshop stay fully visible */
@media (min-width: 768px) and (max-height: 720px) {
    .poster-content {
        padding-top: 12px;
        padding-bottom: 14px;
    }

    .poster-logo {
        height: 68px;
        margin-bottom: 0.25rem;
    }

    .poster-tree {
        top: 42%;
        width: min(1080px, 88vw);
        max-height: 86svh;
    }

    .poster-spacer {
        min-height: 192px;
    }

    .poster-title {
        font-size: clamp(4.5rem, 7.1vw, 6.1rem);
        line-height: 0.9;
    }

    .poster-theme {
        margin-top: 0.5rem;
    }

    .poster-status {
        margin-top: 0.7rem;
    }

    .poster-partnership {
        margin-top: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .partnership-trigger,
    .partnership-chevron,
    .partnership-cta {
        transition: none;
    }
}
