/* DUAL INTERACTIVE SCRATCH PLAYGROUND */

/* =========================================================
   DUAL INTERACTIVE PLAYGROUND — SCRATCH EMBEDS
   ========================================================= */

.creative-stage-showcase {
    width: calc(100% + clamp(28px, 4vw, 72px));
    margin-inline: calc(clamp(14px, 2vw, 36px) * -1);
    padding: 90px clamp(25px, 3.5vw, 54px) 110px;
}

.creative-stage-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(25px, 3vw, 42px);
}

.interactive-project-card {
    position: relative;
    min-width: 0;
    padding: clamp(18px, 1.45vw, 23px);
    transform: translateY(34px) rotate(-0.7deg);
    border: 3px solid var(--ink);
    border-radius: 25px;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.6) 0 2px, transparent 3px),
        color-mix(in srgb, var(--project-accent) 72%, white);
    background-size: 25px 25px, auto;
    box-shadow: 9px 10px 0 var(--ink);
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.interactive-project-card:nth-child(2n) {
    transform: translateY(34px) rotate(0.7deg);
}

.creative-stage-showcase.is-open .interactive-project-card {
    animation: interactive-player-enter 0.76s calc(0.12s + var(--stage-delay, 0s)) cubic-bezier(0.18, 0.89, 0.27, 1.12) both;
}

.interactive-project-card:hover {
    transform: translateY(-8px) rotate(0);
    box-shadow: 13px 15px 0 var(--ink);
}

.interactive-project-topbar {
    display: flex;
    min-height: 36px;
    margin-bottom: 13px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-family: monospace;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.interactive-project-number,
.interactive-project-live {
    padding: 7px 9px;
    border: 2px solid var(--ink);
    background: var(--paper);
    box-shadow: 3px 3px 0 var(--ink);
}

.interactive-project-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--yellow);
}

.interactive-project-live i,
.scratch-power-light {
    width: 9px;
    aspect-ratio: 1;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 4px rgba(85, 230, 165, 0.22);
    animation: interactive-player-light 1.5s ease-in-out infinite;
}

.scratch-console {
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 18px;
    background: var(--ink);
    box-shadow: 6px 7px 0 rgba(36, 34, 56, 0.34);
}

.scratch-console-chrome {
    display: flex;
    height: 36px;
    padding: 0 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid var(--ink);
    background: var(--paper);
    font-family: monospace;
    font-size: 8px;
}

.scratch-console-chrome > span:first-child {
    display: flex;
    gap: 5px;
}

.scratch-console-chrome i {
    display: block;
    width: 9px;
    aspect-ratio: 1;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
}

.scratch-console-chrome i:nth-child(1) { background: var(--pink); }

.scratch-console-chrome i:nth-child(2) { background: var(--yellow); }

.scratch-console-chrome i:nth-child(3) { background: var(--mint); }

.scratch-fullscreen-button {
    display: inline-flex;
    min-height: 25px;
    padding: 4px 7px;
    align-items: center;
    gap: 5px;
    border: 1.5px solid var(--ink);
    border-radius: 7px;
    background: var(--yellow);
    color: var(--ink);
    font-family: monospace;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.05em;
    box-shadow: 2px 2px 0 var(--ink);
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.scratch-fullscreen-button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 3px 3px 0 var(--ink);
    background: var(--mint);
}

.scratch-fullscreen-button:active {
    transform: translate(2px, 2px);
    box-shadow: none;
}

.scratch-fullscreen-button:focus-visible {
    outline: 3px solid var(--purple);
    outline-offset: 2px;
}

.scratch-fullscreen-button svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scratch-fullscreen-button.is-active {
    background: var(--pink);
}

.scratch-console:fullscreen {
    display: flex;
    width: 100vw;
    height: 100vh;
    padding: 14px;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    background: var(--ink);
    box-shadow: none;
}

.scratch-console:fullscreen .scratch-console-chrome,
.scratch-console:fullscreen .scratch-console-controls {
    flex: 0 0 44px;
}

.scratch-console:fullscreen .scratch-embed-frame {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: hidden;
    background: #ffffff;
}

.scratch-console:fullscreen .scratch-embed-frame iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    width: 485px;
    height: 402px;
    max-width: none;
    transform: translate(-50%, -50%) scale(var(--scratch-fullscreen-scale, 1));
    transform-origin: center;
}

.scratch-embed-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 485 / 402;
    background: #e9e9e9;
}

.scratch-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.scratch-embed-frame.is-loaded iframe {
    opacity: 1;
}

.scratch-lazy-placeholder {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    padding: 20px;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 48%),
        #4d96f7;
    color: #ffffff;
    text-align: center;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.scratch-lazy-placeholder span {
    display: grid;
    width: 50px;
    aspect-ratio: 1;
    place-items: center;
    padding-left: 4px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    font-size: 19px;
}

.scratch-lazy-placeholder strong {
    font-family: monospace;
    font-size: clamp(12px, 1.2vw, 17px);
    letter-spacing: 0.08em;
}

.scratch-lazy-placeholder small {
    font-size: 12px;
    font-weight: 700;
}

.scratch-embed-frame.is-loading .scratch-lazy-placeholder strong::after {
    content: "...";
    animation: scratch-loading-dots 1s steps(4, end) infinite;
}

.scratch-embed-frame.is-loaded .scratch-lazy-placeholder {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@keyframes scratch-loading-dots {
    0% { clip-path: inset(0 100% 0 0); }
    100% { clip-path: inset(0 0 0 0); }
}

.scratch-console-controls {
    display: flex;
    height: 39px;
    padding: 0 13px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 2px solid var(--ink);
    background: var(--yellow);
    color: var(--ink);
}

.scratch-speaker {
    display: flex;
    gap: 3px;
}

.scratch-speaker i {
    width: 4px;
    height: 13px;
    border-radius: 999px;
    background: var(--ink);
}

.scratch-console-label {
    font-family: monospace;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.interactive-project-info {
    margin-top: 15px;
    padding: 19px 18px 18px;
    border: 2.5px solid var(--ink);
    border-radius: 15px;
    background:
        linear-gradient(rgba(101, 214, 255, 0.13) 1px, transparent 1px),
        var(--paper);
    background-size: 100% 27px;
    box-shadow: 5px 6px 0 var(--ink);
    color: var(--ink);
}

.interactive-project-heading {
    display: flex;
    margin-bottom: 12px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.interactive-project-heading > div {
    min-width: 0;
}

.interactive-project-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--purple-dark);
    font-family: "Caveat", cursive;
    font-size: 19px;
    font-weight: 700;
}

.interactive-project-heading h3 {
    margin: 0;
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(23px, 2.4vw, 34px);
    font-weight: 400;
    line-height: 1.04;
    overflow-wrap: break-word;
}

.interactive-project-heading time {
    padding: 6px 8px;
    transform: rotate(3deg);
    border: 2px solid var(--ink);
    background: var(--project-accent);
    box-shadow: 2px 2px 0 var(--ink);
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
}

.interactive-project-info > p {
    min-height: 58px;
    margin: 0 0 16px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.6;
}

.interactive-project-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
}

.interactive-project-tags {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 7px;
}

.interactive-project-tags span {
    padding: 6px 8px;
    border: 2px solid var(--ink);
    border-radius: 999px;
    background: color-mix(in srgb, var(--project-accent) 65%, white);
    box-shadow: 2px 2px 0 var(--ink);
    font-family: monospace;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
}

.interactive-project-footer > a {
    display: inline-flex;
    min-width: max-content;
    min-height: 39px;
    padding: 8px 11px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px solid var(--ink);
    border-radius: 11px;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 9px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.interactive-project-footer > a:hover {
    transform: translateY(-3px);
    box-shadow: 6px 7px 0 var(--ink);
}

.interactive-project-footer svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.interactive-project-sticker {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: -24px;
    display: grid;
    width: 60px;
    aspect-ratio: 1;
    place-items: center;
    transform: rotate(9deg);
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.05;
    text-align: center;
}

.interactive-project-card:nth-child(2n) .interactive-project-sticker {
    right: auto;
    left: -24px;
    transform: rotate(-9deg);
    background: var(--blue);
}

@keyframes interactive-player-enter {
    0% { transform: translateY(55px) rotate(-3deg) scale(0.94); opacity: 0; }
    72% { transform: translateY(-6px) rotate(0.7deg) scale(1.01); opacity: 1; }
    100% { transform: translateY(0) rotate(-0.7deg) scale(1); opacity: 1; }
}

/* Project pertama: masuk dari kiri */
.creative-stage-showcase.is-open .interactive-project-card:nth-child(odd) {
    animation: interactive-player-enter-left 0.76s
        calc(0.12s + var(--stage-delay, 0s))
        cubic-bezier(0.18, 0.89, 0.27, 1.12) both;
}

/* Project kedua: masuk dari kanan */
.creative-stage-showcase.is-open .interactive-project-card:nth-child(even) {
    animation: interactive-player-enter-right 0.76s
        calc(0.12s + var(--stage-delay, 0s))
        cubic-bezier(0.18, 0.89, 0.27, 1.12) both;
}

@keyframes interactive-player-enter-left {
    from {
        opacity: 0;
        transform: translateX(-70px) rotate(-3deg) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
    }
}

@keyframes interactive-player-enter-right {
    from {
        opacity: 0;
        transform: translateX(70px) rotate(3deg) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateX(0) rotate(0) scale(1);
    }
}

@keyframes interactive-player-enter-right {
    0% { transform: translateY(55px) rotate(3deg) scale(0.94); opacity: 0; }
    72% { transform: translateY(-6px) rotate(-0.7deg) scale(1.01); opacity: 1; }
    100% { transform: translateY(0) rotate(0.7deg) scale(1); opacity: 1; }
}

@keyframes interactive-player-light {
    0%, 100% { filter: brightness(0.78); transform: scale(0.88); }
    50% { filter: brightness(1.18); transform: scale(1.08); }
}

/* Projects */
.projects-section {
    padding: 125px 0 135px;
    overflow: hidden;
    background: var(--purple);
    color: white;
    isolation: isolate;
}

.projects-section::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1.7px, transparent 1.7px);
    background-size: 28px 28px;
    content: "";
}

/* =========================================================
   CREATIVE PROJECT STAGE
   Concept 01 — medium artwork, layered story card
   ========================================================= */

.creative-stage-showcase {
    --gallery-light-x: 50%;
    --gallery-light-y: 22%;
    position: relative;
    padding: 92px clamp(28px, 5vw, 68px) 118px;
    overflow: hidden;
    border: 3px solid var(--ink);
    border-radius: 38px;
    background:
        radial-gradient(circle at var(--gallery-light-x) var(--gallery-light-y), rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 13% 19%, rgba(255, 217, 61, 0.25) 0 3px, transparent 4px),
        radial-gradient(circle at 82% 74%, rgba(101, 214, 255, 0.18) 0 2px, transparent 3px),
        linear-gradient(145deg, #1a029f 0%, #3d2c9d 48%, #21175f 100%);
    background-size: auto, 38px 38px, 48px 48px, auto;
    box-shadow: 13px 14px 0 #171331;
    transition: background-position 0.2s ease-out;
    isolation: isolate;
}

.creative-stage-showcase::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    pointer-events: none;
}

.creative-stage-showcase::after {
    position: absolute;
    z-index: -1;
    right: -130px;
    bottom: -170px;
    width: 390px;
    aspect-ratio: 1;
    border: 3px solid rgba(255, 217, 61, 0.62);
    border-radius: 50%;
    background: rgba(255, 217, 61, 0.1);
    box-shadow:
        0 0 0 34px rgba(255, 217, 61, 0.055),
        0 0 0 68px rgba(255, 217, 61, 0.035);
    content: "";
}

.creative-stage-topbar {
    position: absolute;
    z-index: 8;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 49px;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 3px solid var(--ink);
    background: var(--paper);
    color: var(--ink);
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.creative-stage-topbar span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.creative-stage-topbar i {
    width: 10px;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 3px rgba(85, 230, 165, 0.22);
    animation: creative-stage-pulse 1.9s ease-in-out infinite;
}

.creative-stage-topbar strong {
    padding: 7px 10px;
    transform: rotate(1deg);
    border: 2px solid var(--ink);
    background: var(--yellow);
    box-shadow: 2px 2px 0 var(--ink);
}

.creative-stage-side-label {
    position: absolute;
    z-index: 7;
    top: 95px;
    right: -18px;
    display: flex;
    min-width: 112px;
    padding: 11px 24px 11px 15px;
    transform: rotate(90deg) translateX(100%);
    transform-origin: top right;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 2px solid var(--ink);
    background: var(--pink);
    color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
    font-family: monospace;
}

.creative-stage-side-label small {
    font-size: 7px;
    font-weight: 900;
}

.creative-stage-side-label strong {
    font-size: 9px;
}

.creative-stage-list {
    display: grid;
    gap: 88px;
}

.creative-stage-sticker {
    position: absolute;
    z-index: 9;
    display: grid;
    place-items: center;
    border: 3px solid var(--ink);
    color: var(--ink);
    box-shadow: 5px 5px 0 var(--ink);
    font-weight: 900;
    line-height: 0.98;
    text-align: center;
    pointer-events: none;
}

.stage-sticker-one {
    top: 41%;
    left: 8px;
    width: 72px;
    aspect-ratio: 1;
    transform: translateX(-33%) rotate(-10deg);
    border-radius: 22px 44px 25px 41px;
    background: var(--pink);
    font-size: 10px;
    animation: creative-sticker-float 4.2s ease-in-out infinite;
}

.stage-sticker-two {
    right: 12px;
    bottom: 25%;
    width: 62px;
    aspect-ratio: 1;
    transform: translateX(28%) rotate(9deg);
    border-radius: 50%;
    background: var(--yellow);
    font-size: 26px;
    animation: creative-sticker-float 4.2s -2.1s ease-in-out infinite;
}

.creative-stage-footer-note {
    position: absolute;
    right: 88px;
    bottom: 30px;
    transform: rotate(-2deg);
    color: var(--yellow);
    font-family: "Caveat", cursive;
    font-size: 18px;
    font-weight: 700;
}

.creative-stage-empty {
    width: min(100%, 620px);
    margin: 20px auto;
    padding: 58px 34px;
    border: 3px dashed var(--blue);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    text-align: center;
}

.creative-stage-empty > span {
    display: grid;
    width: 62px;
    margin: 0 auto 17px;
    aspect-ratio: 1;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--ink);
    font-size: 25px;
}

.creative-stage-empty h3 {
    margin: 0 0 9px;
    font-family: "Bowlby One", sans-serif;
    font-size: 28px;
    font-weight: 400;
}

.creative-stage-empty p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
}

.creative-stage-showcase.is-preparing .creative-project-stage {
    opacity: 0;
}

.creative-stage-showcase.is-open .creative-project-stage {
    animation: creative-stage-enter 0.82s calc(0.1s + var(--stage-delay, 0s)) cubic-bezier(0.18, 0.89, 0.27, 1.08) both;
}

.creative-stage-showcase.is-open .stage-image-frame img {
    animation: creative-image-reveal 0.9s calc(0.32s + var(--stage-delay, 0s)) cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.creative-stage-showcase.is-open .project-stage-info {
    animation: creative-info-reveal 0.72s calc(0.52s + var(--stage-delay, 0s)) cubic-bezier(0.18, 0.89, 0.27, 1.14) both;
}

.creative-stage-showcase.is-open .stage-tech-list span {
    animation: creative-tag-pop 0.4s calc(0.78s + var(--stage-delay, 0s)) cubic-bezier(0.18, 0.89, 0.27, 1.3) both;
}

.creative-stage-showcase.is-open .stage-tech-list span:nth-child(2) {
    animation-delay: calc(0.86s + var(--stage-delay, 0s));
}

.creative-stage-showcase.is-open .stage-tech-list span:nth-child(3) {
    animation-delay: calc(0.94s + var(--stage-delay, 0s));
}

.creative-stage-showcase.is-open .stage-tech-list span:nth-child(4) {
    animation-delay: calc(1.02s + var(--stage-delay, 0s));
}

@keyframes creative-stage-enter {
    0% { transform: translateY(66px) scale(0.965); opacity: 0; }
    72% { transform: translateY(-6px) scale(1.006); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes creative-stage-pulse {
    0%, 100% { transform: scale(0.84); filter: brightness(0.82); }
    50% { transform: scale(1.08); filter: brightness(1.18); }
}

/* =========================================================
   PROJECT CASE FILES + ACHIEVEMENT PINBOARD
   ========================================================= */

.projects-section {
    padding: 124px 0 145px;
    background:
        radial-gradient(circle at 13% 18%, rgba(255, 217, 61, 0.28) 0 2px, transparent 3px),
        radial-gradient(circle at 86% 78%, rgba(255, 255, 255, 0.16) 0 2px, transparent 3px),
        #654de1;
    background-size: 42px 42px, 54px 54px, auto;
}

.projects-section::before {
    opacity: 0.32;
}

.projects-section .section-heading {
    margin-bottom: 58px;
}

.projects-section .section-heading h2 {
    max-width: 820px;
}

/* =========================================================
   PROJECT SKETCHBOOK
   ========================================================= */

.projects-section {
    background:
        radial-gradient(circle at 12% 22%, rgba(255, 217, 61, 0.25) 0 2px, transparent 3px),
        radial-gradient(circle at 86% 76%, rgba(255, 255, 255, 0.15) 0 2px, transparent 3px),
        #654de1;
    background-size: 43px 43px, 55px 55px, auto;
}

/* =========================================================
   PROJECT SECTION — CREATIVE STUDIO BACKGROUND
   ========================================================= */

.projects-section {
    background:
        radial-gradient(circle at 12% 17%, rgba(255, 217, 61, 0.28) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 72%, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px),
        linear-gradient(145deg, #5034c8 0%, #7357ff 48%, #563bcf 100%);
    background-size: 42px 42px, 55px 55px, auto;
}

.projects-section::before {
    z-index: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.72;
}

.projects-section .content-container {
    position: relative;
    z-index: 3;
}

.projects-section > .edge-sticker {
    display: none;
}

/* =========================================================
   MINI PROJECT EXHIBITION
   ========================================================= */

.projects-section {
    position: relative;
    padding: 142px 0 158px;
    overflow: hidden;
    background:
        radial-gradient(circle at 14% 21%, rgba(255, 255, 255, 0.38) 0 2px, transparent 3px),
        radial-gradient(circle at 87% 36%, rgba(255, 217, 61, 0.34) 0 2px, transparent 3px),
        linear-gradient(135deg, #ffffff 0%, #ffffff 52%, #ffffff 100%);
    background-size: 44px 44px, 58px 58px, auto;
    color: black;
    isolation: isolate;
}

.projects-section::before {
    position: absolute;
    z-index: -3;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 42px 42px;
    content: "";
    opacity: 0.72;
}

.projects-section::after {
    position: absolute;
    z-index: -2;
    right: -8%;
    bottom: -150px;
    left: -8%;
    height: 390px;
    transform: perspective(460px) rotateX(58deg);
    transform-origin: bottom;
    border-top: 3px solid rgba(255, 255, 255, 0.23);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        rgba(21, 13, 79, 0.3);
    background-size: 64px 64px;
    content: "";
}

.exhibition-container {
    position: relative;
    z-index: 3;
}

.exhibition-ambient {
    position: absolute;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.exhibition-orbit {
    position: absolute;
    border: 3px solid rgba(255, 217, 61, 0.44);
    border-radius: 50%;
    animation: exhibition-orbit-float 8s ease-in-out infinite;
}

.exhibition-orbit-one {
    top: 8%;
    right: -130px;
    width: 390px;
    height: 390px;
}

.exhibition-orbit-two {
    bottom: 12%;
    left: -115px;
    width: 250px;
    height: 250px;
    border-color: rgba(85, 230, 165, 0.4);
    animation-delay: -3s;
}

.exhibition-spark {
    position: absolute;
    color: var(--yellow);
    font-size: 42px;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--ink);
    animation: exhibition-spark-pulse 3.2s ease-in-out infinite;
}

.exhibition-spark-one { top: 8%; left: 4%; }

.exhibition-spark-two { top: 42%; right: 3%; color: var(--mint); animation-delay: -1.1s; }

.exhibition-spark-three { bottom: 10%; left: 7%; color: var(--pink); animation-delay: -2.2s; }

.exhibition-heading {
    display: grid;
    margin-bottom: 74px;
    grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.62fr);
    align-items: end;
    gap: clamp(45px, 7vw, 105px);
}

.exhibition-title-block {
    position: relative;
}

.exhibition-title-block h2 {
    max-width: 820px;
    font-size: clamp(54px, 7.1vw, 98px);
}

.exhibition-title-block h2 span {
    display: block;
}

.exhibition-title-doodle {
    display: flex;
    margin-top: 23px;
    align-items: center;
    gap: 8px;
}

.exhibition-title-doodle i {
    display: block;
    width: 82px;
    height: 7px;
    transform: rotate(-2deg);
    border-radius: 999px;
    background: var(--pink);
    box-shadow: 2px 2px 0 var(--ink);
}

.exhibition-title-doodle i:nth-child(2) {
    width: 38px;
    transform: rotate(5deg);
    background: var(--blue);
}

.exhibition-title-doodle i:nth-child(3) {
    width: 13px;
    aspect-ratio: 1;
    height: auto;
    transform: rotate(12deg);
    background: var(--yellow);
}

.exhibition-curator-note {
    position: relative;
    padding: 32px 30px 27px;
    transform: rotate(2deg);
    border: var(--border);
    background:
        repeating-linear-gradient(to bottom, transparent 0 27px, rgba(101, 214, 255, 0.22) 28px),
        var(--paper);
    color: var(--ink);
    box-shadow: 9px 10px 0 var(--ink);
}

.exhibition-curator-note::after {
    position: absolute;
    right: 17px;
    bottom: 15px;
    width: 42px;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    content: "✦";
    display: grid;
    place-items: center;
    font-size: 19px;
    box-shadow: 3px 3px 0 var(--ink);
}

.curator-note-tape {
    position: absolute;
    top: -15px;
    left: 50%;
    width: 92px;
    height: 26px;
    transform: translateX(-50%) rotate(-3deg);
    border: 1px solid rgba(36, 34, 56, 0.32);
    background: rgba(255, 217, 61, 0.82);
}

.exhibition-curator-note small {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 8px;
    transform: rotate(-1deg);
    background: var(--pink);
    font-family: monospace;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.exhibition-curator-note p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
}

.exhibition-curator-note strong {
    display: inline-block;
    margin-top: 17px;
    padding-bottom: 3px;
    border-bottom: 3px solid var(--purple);
    color: var(--purple-dark);
    font-family: "Caveat", cursive;
    font-size: 19px;
    transform: rotate(-2deg);
}

.exhibition-marquee-sign {
    position: absolute;
    z-index: 8;
    top: 24px;
    left: 50%;
    display: flex;
    padding: 12px 25px 13px;
    transform: translateX(-50%) rotate(-1deg);
    align-items: center;
    gap: 13px;
    border: 2.5px solid var(--ink);
    background: var(--yellow);
    box-shadow: 5px 6px 0 var(--ink);
    white-space: nowrap;
}

.exhibition-marquee-sign i {
    width: 10px;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--pink);
    animation: exhibition-status-pulse 1.25s ease-in-out infinite;
}

.exhibition-marquee-sign strong {
    font-family: "Bowlby One", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.035em;
}

.exhibition-marquee-sign small {
    padding-left: 13px;
    border-left: 2px solid var(--ink);
    font-family: monospace;
    font-size: 8px;
    font-weight: 900;
}

.exhibition-ceiling-lights {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 5%;
    left: 5%;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
}

.exhibition-ceiling-lights > span {
    position: relative;
    width: 120px;
    height: 210px;
    transform-origin: top center;
    animation: exhibition-light-sweep 6s ease-in-out infinite alternate;
}

.exhibition-ceiling-lights > span:nth-child(2) { animation-delay: -2s; }

.exhibition-ceiling-lights > span:nth-child(3) { animation-delay: -4s; }

.exhibition-ceiling-lights > span::before {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 150px;
    height: 185px;
    transform: translateX(-50%);
    clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
    background: linear-gradient(rgba(255, 226, 99, 0.25), rgba(255, 226, 99, 0.025));
    content: "";
}

.exhibition-ceiling-lights > span::after {
    position: absolute;
    top: 0;
    left: 50%;
    width: 54px;
    height: 23px;
    transform: translateX(-50%);
    border: 2.5px solid var(--ink);
    border-radius: 5px 5px 18px 18px;
    background: var(--purple);
    box-shadow: 0 5px 0 rgba(36, 34, 56, 0.28);
    content: "";
}

.exhibition-gallery-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 128px;
}

.exhibition-empty {
    grid-column: 1 / -1;
    width: min(100%, 580px);
    margin: 30px auto 20px;
    padding: 48px 35px;
    transform: rotate(-1deg);
    border: 3px dashed var(--ink);
    background: rgba(255, 253, 247, 0.86);
    box-shadow: 8px 9px 0 var(--ink);
    text-align: center;
}

.exhibition-empty > span {
    display: grid;
    width: 58px;
    margin: 0 auto 16px;
    aspect-ratio: 1;
    place-items: center;
    border: 2.5px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 26px;
}

.exhibition-empty h3 {
    margin: 0 0 9px;
    font-family: "Bowlby One", sans-serif;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 400;
    line-height: 1.05;
}

.exhibition-empty p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.exhibition-piece {
    position: relative;
    z-index: 1;
    width: min(72%, 800px);
    margin-left: 4%;
    min-width: 0;
    transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transform-style: preserve-3d;
    transition: transform 0.18s ease;
    isolation: isolate;
}

.exhibition-piece:nth-child(2n) {
    margin-right: 4%;
    margin-left: auto;
}

.exhibition-piece::before {
    position: absolute;
    z-index: -1;
    inset: -75px -90px -55px;
    background: radial-gradient(ellipse at 50% 36%, color-mix(in srgb, var(--project-accent) 24%, transparent) 0, transparent 68%);
    content: "";
    pointer-events: none;
}

.exhibition-piece:not(:last-child)::after {
    position: absolute;
    z-index: -1;
    right: -10%;
    bottom: -112px;
    width: 70px;
    height: 90px;
    transform: rotate(12deg);
    border-right: 3px dashed rgba(36, 34, 56, 0.65);
    border-bottom: 3px dashed rgba(36, 34, 56, 0.65);
    border-radius: 0 0 32px;
    content: "";
}

.exhibition-piece:nth-child(2n):not(:last-child)::after {
    right: auto;
    left: -10%;
    transform: rotate(-12deg) scaleX(-1);
}

.exhibition-piece:nth-child(2n) .exhibit-number {
    right: auto;
    left: -20px;
    transform: rotate(-8deg);
}

.exhibition-piece:nth-child(2n) .exhibit-side-note {
    right: auto;
    left: -164px;
    transform: rotate(-5deg);
}

.exhibition-piece:nth-child(2n) .exhibit-artwork {
    transform: rotate(1.2deg) translateZ(24px);
}

.exhibition-piece:hover .exhibit-artwork {
    transform: translateY(-8px) rotate(0) translateZ(35px);
    box-shadow: 14px 17px 0 rgba(36, 34, 56, 0.72), inset 0 0 0 5px var(--project-accent);
}

.exhibition-piece:hover .exhibit-screen img {
    transform: scale(1.045);
    filter: saturate(1.08) contrast(1.02);
}

.exhibition-piece:hover .exhibit-screen-shine {
    transform: translateX(135%) skewX(-17deg);
}

.exhibition-piece:nth-child(2n) .exhibit-plaque {
    margin-right: 7%;
    margin-left: auto;
    transform: rotate(-0.9deg) translateZ(38px);
}

.exhibition-rope {
    position: absolute;
    z-index: 5;
    right: 10%;
    bottom: 47px;
    left: 10%;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: end;
}

.exhibition-rope i {
    position: relative;
    display: block;
    height: 67px;
    border: 3px solid var(--ink);
    border-radius: 999px 999px 5px 5px;
    background: var(--yellow);
    box-shadow: 4px 4px 0 rgba(36, 34, 56, 0.55);
}

.exhibition-rope i::after {
    position: absolute;
    right: -12px;
    bottom: -8px;
    left: -12px;
    height: 12px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--yellow);
    content: "";
}

.exhibition-rope span {
    align-self: center;
    height: 27px;
    transform: translateY(8px);
    border-bottom: 8px solid var(--pink);
    border-radius: 0 0 50% 50%;
    filter: drop-shadow(0 3px 0 var(--ink));
}

.exhibition-ticket {
    position: absolute;
    z-index: 7;
    right: 31px;
    bottom: 24px;
    display: flex;
    width: 128px;
    min-height: 76px;
    padding: 11px 12px;
    transform: rotate(8deg);
    flex-direction: column;
    justify-content: center;
    border: 2.5px solid var(--ink);
    border-radius: 8px;
    background: var(--mint);
    box-shadow: 5px 5px 0 var(--ink);
    color: var(--ink);
    animation: exhibition-ticket-float 4.8s ease-in-out infinite;
}

.exhibition-ticket::before,
.exhibition-ticket::after {
    position: absolute;
    left: 24px;
    width: 9px;
    aspect-ratio: 1;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: #d6bc8f;
    content: "";
}

.exhibition-ticket::before { top: -6px; }

.exhibition-ticket::after { bottom: -6px; }

.exhibition-ticket small,
.exhibition-ticket i {
    font-family: monospace;
    font-size: 7px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.exhibition-ticket strong {
    margin-block: 3px;
    font-family: "Bowlby One", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 0.95;
}

.exhibition-floor-note {
    position: absolute;
    z-index: 4;
    bottom: 20px;
    left: 31px;
    transform: rotate(-2deg);
    font-family: "Caveat", cursive;
    font-size: 18px;
    font-weight: 700;
}

@keyframes exhibition-orbit-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
    50% { transform: translate3d(0, -18px, 0) rotate(7deg); }
}

@keyframes exhibition-spark-pulse {
    0%, 100% { transform: rotate(-8deg) scale(0.82); opacity: 0.58; }
    50% { transform: rotate(7deg) scale(1.12); opacity: 1; }
}

@keyframes exhibition-light-sweep {
    0% { transform: rotate(-5deg); }
    100% { transform: rotate(5deg); }
}

@keyframes exhibition-status-pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.62; }
    50% { transform: scale(1.12); opacity: 1; }
}

@keyframes exhibition-ticket-float {
    0%, 100% { transform: translateY(0) rotate(8deg); }
    50% { transform: translateY(-8px) rotate(4deg); }
}

/* Final layout placement for the dual Scratch players. */
.creative-stage-showcase {
    padding: 90px clamp(25px, 3.5vw, 54px) 110px;
}

.creative-stage-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(25px, 3vw, 42px);
}

.creative-stage-showcase.is-open .interactive-project-card:nth-child(2n) {
    animation-name: interactive-player-enter-right;
}

@media (max-width: 900px) {
    .creative-stage-showcase {
        width: 100%;
        margin-inline: 0;
    }
}

@media (max-width: 520px) {
    .scratch-fullscreen-button span {
        display: none;
    }

    .scratch-fullscreen-button {
        width: 28px;
        padding: 4px;
        justify-content: center;
    }
}
