/* about section — layered over acg.css (loads after it). */

/* Intro + CTA sit side by side; the CTA card no longer hangs under the copy. */
.about__grid {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
}

.about .cta-card {
    margin-top: 0;
}

.about {
    padding-bottom: clamp(24px, 4vw, 48px);
}

.stage__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Award stage lineup ---------- */

.stage {
    --c: var(--sky);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: clamp(8px, 1.6vw, 24px);
    margin: clamp(56px, 8vw, 104px) 0 0;
    padding: 0;
    list-style: none;
}

.act--prize { --c: var(--sun); --rgb: 251, 230, 140; }
.act--karsa { --c: var(--sky); --rgb: 140, 202, 247; }
.act--karya { --c: var(--pink); --rgb: 241, 162, 240; }
.act--rasa { --c: var(--mint); --rgb: 147, 230, 212; }
.act--perkasa { --c: var(--orange); --rgb: 253, 161, 80; }

.act {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.act--prize {
    order: 0;
    padding-bottom: 8px;
}

.act__figure {
    position: relative;
    display: grid;
    place-items: end center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1;
    margin-bottom: 18px;
}

.act--prize .act__figure {
    max-width: 270px;
    margin-bottom: 26px;
    margin-top: 14px;
}

/* Pedestal: a glowing glass disc seen from slightly above. */
.act__pedestal {
    position: absolute;
    left: 50%;
    bottom: -2%;
    width: 92%;
    height: 22%;
    translate: -50% 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 70% 60% at 50% 30%, rgba(255, 255, 255, 0.75), transparent 70%),
        radial-gradient(ellipse at 50% 50%, rgba(var(--rgb), 0.95), rgba(var(--rgb), 0.35) 70%, rgba(var(--rgb), 0.1));
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.7),
        inset 0 -6px 12px rgba(var(--rgb), 0.5),
        0 10px 24px rgba(var(--rgb), 0.45),
        0 0 40px rgba(var(--rgb), 0.35);
    transition: box-shadow 0.4s, filter 0.4s;
}

.act--prize .act__pedestal {
    height: 28%;
    width: 100%;
    bottom: -4%;
}

/* Soft aura behind the character. */
.act__glow {
    position: absolute;
    inset: 4% -6% 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 60%, rgba(var(--rgb), 0.45), transparent 68%);
    opacity: 0.7;
    transition: opacity 0.4s, transform 0.5s var(--ease-spring);
}

.act__rays {
    position: absolute;
    inset: -34%;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(251, 230, 140, 0.55), transparent 55%),
        repeating-conic-gradient(from 0deg, rgba(251, 230, 140, 0.34) 0 7deg, transparent 7deg 22deg);
    -webkit-mask: radial-gradient(circle, #000 18%, transparent 68%);
    mask: radial-gradient(circle, #000 18%, transparent 68%);
    pointer-events: none;
}

.act__ribbon {
    position: absolute;
    top: -14px;
    left: 50%;
    z-index: 3;
    translate: -50% 0;
    padding: 6px 16px 6px;
    border-radius: 999px;
    font: 700 11px/1 var(--font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    background: linear-gradient(90deg, #fbe68c, #fda150);
    box-shadow: 0 6px 18px rgba(253, 161, 80, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

/* Mascot: idle bob on the wrapper, hop on hover via a separate property so they compose. */
.act__mascot {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: end center;
    width: 86%;
    aspect-ratio: 1;
    margin-bottom: 8%;
    transform-origin: 50% 100%;
    animation: act-bob 4.2s ease-in-out calc(var(--n, 0) * -0.7s) infinite;
    transition: scale 0.5s var(--ease-spring), translate 0.5s var(--ease-spring);
    /* No filter here: this element bobs, and a filter would be re-rendered every frame. */
}

.act--prize .act__mascot {
    width: 92%;
    margin-bottom: 10%;
}

.act__mascot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.act__ghost {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    width: 72%;
    aspect-ratio: 1;
    margin-bottom: 14%;
    padding: 6% 10% 8%;
    border-radius: 46% 54% 50% 50% / 56% 52% 48% 44%;
    background:
        radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), transparent 42%),
        linear-gradient(160deg, rgba(var(--rgb), 0.95), rgba(var(--rgb), 0.25));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 0 30px rgba(var(--rgb), 0.35);
}

/* Borel has tall ascender metrics: fixed line-height box, nudged down to centre optically. */
.act__ghost b {
    display: block;
    height: 1em;
    font: 400 clamp(40px, 5.2vw, 76px)/1 var(--font-script);
    color: var(--navy);
    transform: translateY(14%);
}

.act--prize .act__ghost b {
    font-size: clamp(48px, 6.2vw, 90px);
}

.act__ghost small {
    max-width: 100%;
    margin-top: 0;
    text-align: center;
    font: 600 9px/1.2 var(--font);
    letter-spacing: 0.02em;
    color: var(--navy);
    opacity: 0.85;
}

.act:hover .act__mascot,
.act:focus-within .act__mascot {
    animation: act-hop 0.7s var(--ease-spring) both;
}

.act:hover .act__pedestal,
.act:focus-within .act__pedestal {
    filter: brightness(1.3) saturate(1.2);
    box-shadow:
        inset 0 3px 6px rgba(255, 255, 255, 0.85),
        inset 0 -6px 12px rgba(var(--rgb), 0.6),
        0 10px 30px rgba(var(--rgb), 0.7),
        0 0 70px rgba(var(--rgb), 0.65);
}

.act:hover .act__glow,
.act:focus-within .act__glow {
    opacity: 1;
    transform: scale(1.08);
}

/* ---------- Caption ---------- */

.act__name {
    font-size: clamp(16px, 1.7vw, 20px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.act--prize .act__name {
    font-size: clamp(19px, 2.1vw, 26px);
}

.act__tag {
    margin: 6px 0 8px;
    font: 700 11px/1.3 var(--font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--c);
}

.act__text {
    margin: 0;
    max-width: 26ch;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-2);
}

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

@keyframes act-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

@keyframes act-hop {
    0% { translate: 0 0; scale: 1.04 0.94; }
    30% { translate: 0 -26px; scale: 0.96 1.06; }
    60% { translate: 0 0; scale: 1.05 0.93; }
    100% { translate: 0 -6px; scale: 1.04; }
}

@keyframes act-spin {
    to { rotate: 360deg; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .act__text {
        font-size: 13px;
    }
}

@media (max-width: 860px) {
    .about__grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    /* Horizontal scroll-snap row, Prize first in view via order. */
    .stage {
        display: flex;
        align-items: flex-end;
        gap: 12px;
        margin-inline: calc(var(--gutter) * -1);
        padding: 40px calc((100vw - 62vw) / 2) 12px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: calc((100vw - 62vw) / 2);
        scrollbar-width: none;
    }

    .stage::-webkit-scrollbar {
        display: none;
    }

    .act {
        flex: 0 0 62vw;
        max-width: 260px;
        scroll-snap-align: center;
    }

    .act--prize {
        flex-basis: 74vw;
        max-width: 310px;
    }

    .act__figure,
    .act--prize .act__figure {
        max-width: none;
    }

    .act__text {
        font-size: 14px;
    }
}

/* Tentang: one-line title and tighter vertical rhythm so intro, CTA and lineup sit in one frame. */
.about .section__head {
    max-width: none;
    margin-bottom: clamp(18px, 2.6vw, 32px);
}

.about .section__title {
    font-size: clamp(26px, 4.4vw, 54px);
    white-space: nowrap;
}

.about .stage {
    margin-top: clamp(24px, 3.4vw, 52px);
}

@media (max-width: 640px) {
    /* ~31 glyphs don't fit a phone at a readable size, so let it wrap there. */
    .about .section__title {
        white-space: normal;
        font-size: clamp(26px, 8vw, 34px);
    }
}
