/*
    Autor:  Łukasz Bryk 
    Rok: 2026
*/
:root {
    --sky-top: #8fe2ff;
    --sky-bottom: #eefbe9;
    --sun: #ffd84d;
    --school-wing-top: #ececb8;
    --school-wing-bottom: #dfe197;
    --school-center-top: #abc2ea;
    --school-center-bottom: #90abd9;
    --school-band: #82a7d8;
    --school-plinth: #d8d8c8;

    --roof-top: #b0aeaa;
    --roof-bottom: #979590;
    --roof-dark: #6f6d68;

    --window-frame: #777166;
    --window-glass-1: #fbfdff;
    --window-glass-2: #dfe8f0;
    --window-glass-3: #c4d3df;

    --porch-top: #5a3b2d;
    --porch-bottom: #3f281d;
    --door: #44291f;
    --door-dark: #26150f;

    --tree-dark: #2f4b2f;
    --tree-mid: #3d5d39;
    --tree-light: #5e7b55;
    --trunk: #5f4332;

    --hedge-1: #4d8242;
    --hedge-2: #376a31;
    --path: #cfc5b0;
    --path-line: #b3a892;

    --annex-wall: #e3e4cf;
    --annex-roof: #c9cacc;
    --annex-metal: #9aa0a6;

    --grass-1: #4a932a;
    --grass-2: #3d7f22;
    --grass-3: #68b43f;

    --shadow: rgba(0, 0, 0, 0.18);
    --white: #ffffff;
    --paper: #fbfbfb;
    --accent: #ffefb0;
    --flower-1: #ff86b7;
    --flower-2: #ffd45e;
    --flower-3: #b38cff;
    --flower-4: #ff8a65;
    --text: #1f1f1f;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(to bottom, var(--sky-top), var(--sky-bottom));
    overflow: hidden;
    color: var(--text);
}

.scene {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.34), transparent 10%),
        linear-gradient(to bottom, #8fe2ff 0%, #b9effd 40%, #dff8df 100%);
}

.scene::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center bottom, rgba(255, 255, 255, .18), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.sun {
    position: absolute;
    width: 120px;
    height: 120px;
    left: 5%;
    top: 4%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff7bc 0%, #ffe765 35%, #ffca28 70%, #f7b500 100%);
    box-shadow: 0 0 24px rgba(255, 210, 70, 0.85), 0 0 60px rgba(255, 219, 92, 0.45);
    animation: sunPulse 6s ease-in-out infinite;
    z-index: 2;
}

.sun::before {
    content: "";
    position: absolute;
    inset: -34px;
    border-radius: 50%;
    background:
        repeating-conic-gradient(from 0deg,
            rgba(255, 194, 68, .95) 0deg 7deg,
            transparent 7deg 15deg);
    -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 47% 100%);
    mask: radial-gradient(circle, transparent 0 46%, #000 47% 100%);
    animation: spinSlow 16s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 201, 71, .75));
    z-index: -1;
}

.clouds,
.flowers,
.butterflies,
.birds {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cloud {
    position: absolute;
    width: 190px;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 999px;
    filter: drop-shadow(0 7px 10px rgba(0, 0, 0, .08));
    animation: cloudMove linear infinite;
}

.cloud::before,
.cloud::after {
    content: "";
    position: absolute;
    background: inherit;
    border-radius: 50%;
}

.cloud::before {
    width: 70px;
    height: 70px;
    left: 28px;
    top: -24px;
}

.cloud::after {
    width: 90px;
    height: 90px;
    left: 82px;
    top: -34px;
}

.cloud.c1 {
    top: 13%;
    left: -20%;
    animation-duration: 28s;
    transform: scale(.85);
}

.cloud.c2 {
    top: 22%;
    left: -28%;
    animation-duration: 36s;
    transform: scale(1.1);
}

.cloud.c3 {
    top: 9%;
    left: -34%;
    animation-duration: 46s;
    transform: scale(.68);
}

.cloud.c4 {
    top: 31%;
    left: -26%;
    animation-duration: 40s;
    transform: scale(.92);
    opacity: .95;
}

.bird {
    position: absolute;
    width: 22px;
    height: 12px;
    border-top: 3px solid rgba(40, 40, 40, .9);
    border-radius: 50% 50% 0 0;
    transform-origin: center;
    animation: flap 2s ease-in-out infinite;
}

.bird::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 12px;
    left: 12px;
    top: -3px;
    border-top: 3px solid rgba(40, 40, 40, .9);
    border-radius: 50% 50% 0 0;
}

.bird.b1 {
    top: 12%;
    left: 26%;
    transform: scale(.85);
    animation-delay: -.4s;
}

.bird.b2 {
    top: 9%;
    left: 30%;
    transform: scale(.6);
    animation-delay: -.9s;
}

.bird.b3 {
    top: 14%;
    left: 33%;
    transform: scale(.5);
    animation-delay: -1.2s;
}

.ground {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 36%;
    background:
        linear-gradient(to top, #63b62f 0%, #74c53f 65%, transparent 100%);
    z-index: 2;
}

.hill {
    position: absolute;
    bottom: 20%;
    background: linear-gradient(to top, #4d982e, #67b43c);
    border-radius: 50% 50% 0 0;
    filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .08));
    z-index: 2;
}

.hill.left {
    left: -4%;
    width: 26vw;
    height: 18vh;
    min-width: 220px;
}

.hill.right {
    right: -3%;
    width: 25vw;
    height: 15vh;
    min-width: 220px;
}

.school-wrap {
    position: absolute;
    left: 50%;
    bottom: 18%;
    width: min(78vw, 1220px);
    min-width: 920px;
    aspect-ratio: 2.22 / 1;
    transform: translateX(-50%) translateY(80px) scale(.85);
    opacity: 0;
    animation: schoolEnter 1.8s cubic-bezier(.2, .8, .2, 1) .25s forwards;
    z-index: 4;
}

.school {
    position: absolute;
    inset: 0;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .18));
}

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

/* === główny budynek === */

.main-building {
    position: absolute;
    left: 8%;
    bottom: 17%;
    width: 70%;
    height: 47%;
    z-index: 5;
}

.roof {
    position: absolute;
    left: -1.7%;
    top: -12%;
    width: 103%;
    height: 18%;
    background:
        repeating-linear-gradient(to right,
            #b2b0ac 0 5px,
            #a3a19d 5px 10px);
    clip-path: polygon(0 100%, 4.5% 12%, 95.5% 12%, 100% 100%);
    border-top: 4px solid var(--roof-dark);
    z-index: 8;
}

.roof-shadow {
    position: absolute;
    left: 0;
    top: 3.8%;
    width: 100%;
    height: 1.1%;
    background: rgba(0, 0, 0, .18);
    z-index: 8;
}

.chimney {
    position: absolute;
    width: 2.5%;
    background: linear-gradient(to bottom, #c5c4c1, #8d8b87);
    border: 2px solid rgba(70, 70, 70, .35);
    z-index: 7;
}

.chimney.c1 {
    left: 73%;
    top: -15.5%;
    height: 9%;
}

.chimney.c2 {
    left: 79%;
    top: -13%;
    height: 6.8%;
}

.body {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.wing,
.center-block {
    position: absolute;
    bottom: 0;
    height: 100%;
    border: 2px solid rgba(90, 90, 75, .35);
}

.wing {
    width: 36%;
    background: linear-gradient(to bottom,
            var(--school-wing-top) 0%,
            var(--school-wing-bottom) 78%,
            #d6d88f 100%);
    z-index: 1;
}

.wing.left {
    left: 0;
}

.wing.right {
    right: 0;
}

.center-block {
    left: 34%;
    width: 32%;
    background: linear-gradient(to bottom,
            var(--school-center-top) 0%,
            var(--school-center-bottom) 78%,
            #83a2d2 100%);
    border-color: rgba(75, 84, 110, .35);
    z-index: 2;
}

.band {
    position: absolute;
    left: 0;
    right: 0;
    top: 48%;
    height: 3.1%;
    background: var(--school-band);
    z-index: 3;
}

.plinth {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.6%;
    background: var(--school-plinth);
    z-index: 3;
}

/* prawa dobudówka techniczna */
.annex {
    position: absolute;
    right: 2%;
    bottom: 17%;
    width: 24%;
    height: 28%;
    z-index: 4;
}

.annex-body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72%;
    background: linear-gradient(to bottom, var(--annex-wall), #d8d9c6);
    border: 2px solid rgba(120, 120, 110, .28);
    border-top-right-radius: 6px;
    z-index: 2;
}

.annex-roof {
    position: absolute;
    left: -1%;
    right: -1%;
    top: 6%;
    height: 18%;
    background: linear-gradient(to bottom, var(--annex-roof), #b3b5b8);
    clip-path: polygon(0 100%, 12% 18%, 100% 0, 100% 100%);
    z-index: 3;
    border-top: 3px solid #8c8f93;
}

.annex-unit,
.annex-unit::before,
.annex-unit::after {
    position: absolute;
    background: linear-gradient(to bottom, #9da3a9, #7b8188);
    border-radius: 2px;
}

.annex-unit {
    width: 16%;
    height: 18%;
    top: -8%;
    z-index: 4;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .16);
}

.annex-unit::before,
.annex-unit::after {
    content: "";
    inset: 18% 12%;
    background:
        repeating-linear-gradient(to bottom,
            #61676c 0 2px,
            #8e959a 2px 4px);
}

.annex-unit.u1 {
    left: 42%;
}

.annex-unit.u2 {
    left: 61%;
}

.annex-unit.u3 {
    left: 80%;
}

.annex-door {
    position: absolute;
    right: 7%;
    bottom: 0;
    width: 24%;
    height: 55%;
    background: linear-gradient(to bottom, #fbfbfb, #ececec);
    border: 2px solid rgba(110, 110, 110, .35);
    z-index: 3;
}

.annex-window {
    position: absolute;
    left: 12%;
    bottom: 18%;
    width: 12%;
    height: 18%;
    background: linear-gradient(to bottom, #f8fcff, #dbe5ed);
    border: 2px solid #868178;
    z-index: 3;
}

/* === wejście === */

.entrance {
    position: absolute;
    left: 41%;
    bottom: 0;
    width: 18%;
    height: 42%;
    z-index: 14;
}

.porch-roof {
    position: absolute;
    left: -7%;
    bottom: calc(100% - 4px);
    width: 114%;
    height: 28%;
    background: linear-gradient(to bottom, var(--porch-top), var(--porch-bottom));
    clip-path: polygon(8% 100%, 16% 18%, 84% 18%, 92% 100%);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .2);
    z-index: 15;
}

.porch-sign {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 4px 10px;
    background: #8a2f2f;
    color: #fff;
    font-weight: 800;
    font-size: clamp(8px, .55vw, 11px);
    border-radius: 3px;
    white-space: nowrap;
    letter-spacing: .04em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .14);
    z-index: 16;
}

.stairs {
    position: absolute;
    left: 10%;
    bottom: 0;
    width: 80%;
    height: 8%;
    background: linear-gradient(to bottom, #9a7358, #724f3d);
    box-shadow: 0 5px 0 #5d3d2d;
    z-index: 13;
}

.door-stage {
    position: absolute;
    left: 15%;
    bottom: 8%;
    width: 70%;
    height: 74%;
    perspective: 1400px;
    z-index: 17;
}

.door-frame {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, #5b3b2d, #41291e);
    border: 3px solid #3a2118;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .16);
    overflow: hidden;
    z-index: 1;
}

.corridor {
    position: absolute;
    inset: 6px;
    background:
        linear-gradient(to bottom, #fff7e8 0 16%, #d9f0ff 16% 46%, #bdd7e5 46% 54%, #a8c4d0 54% 62%, #fefefe 62% 64%, #d58d43 64% 100%);
    overflow: hidden;
    z-index: 1;
}

.corridor::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to right, rgba(0, 0, 0, .18) 0, transparent 12%, transparent 88%, rgba(0, 0, 0, .16) 100%),
        linear-gradient(145deg, rgba(255, 255, 255, .22), transparent 45%),
        linear-gradient(to bottom, transparent 0 60%, rgba(0, 0, 0, .15) 100%);
}

.corridor::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 66%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .55), transparent 15%),
        linear-gradient(to bottom, transparent 0 64%, rgba(111, 65, 28, .28) 64% 66%, transparent 66%),
        linear-gradient(to right, transparent 0 32%, rgba(255, 255, 255, .14) 32% 33%, transparent 33% 66%, rgba(255, 255, 255, .14) 66% 67%, transparent 67%),
        linear-gradient(170deg, transparent 0 30%, rgba(81, 47, 22, .18) 30% 31%, transparent 31% 60%, rgba(81, 47, 22, .2) 60% 61%, transparent 61%);
    clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
}

.notice-board,
.water-dispenser,
.ceiling-light {
    position: absolute;
    z-index: 2;
}

.notice-board {
    left: 9%;
    top: 17%;
    width: 26%;
    height: 22%;
    border: 5px solid #916038;
    background: linear-gradient(to bottom, #c8ab7f, #b18d62);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25);
}

.notice-board::before,
.notice-board::after {
    content: "";
    position: absolute;
    background: #f5e9d1;
    box-shadow: 14px 2px 0 #efe2c2, 8px 28px 0 #f4ead7;
}

.notice-board::before {
    width: 18px;
    height: 24px;
    left: 12px;
    top: 10px;
}

.notice-board::after {
    width: 14px;
    height: 18px;
    left: 42px;
    top: 12px;
}

.water-dispenser {
    right: 13%;
    bottom: 12%;
    width: 12%;
    height: 28%;
    background: linear-gradient(to bottom, #d9dcde, #a6adb3);
    border-radius: 6px 6px 4px 4px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
}

.water-dispenser::before {
    content: "";
    position: absolute;
    width: 55%;
    height: 28%;
    left: 22%;
    top: -12%;
    background: linear-gradient(to bottom, rgba(202, 236, 255, .9), rgba(142, 200, 231, .85));
    border-radius: 50% 50% 40% 40%;
    border: 2px solid rgba(80, 130, 160, .4);
}

.ceiling-light {
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    width: 36%;
    height: 10%;
    background: linear-gradient(to bottom, #fffef4, #e0dfd3);
    clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
    box-shadow: 0 0 20px rgba(255, 255, 210, .45);
    animation: glowSoft 4s ease-in-out infinite;
}

.door-link {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    z-index: 6;
    outline: none;
}

.door-link:focus-visible {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 0 0 8px rgba(34, 111, 220, .45);
}

.door {
    position: absolute;
    top: 6px;
    width: calc(50%);
    height: calc(100% - 6px);
    background:
        linear-gradient(to right, rgba(255, 255, 255, .05), transparent 18%, transparent 82%, rgba(0, 0, 0, .14)),
        linear-gradient(to bottom, #4e3328, #2d1b14);
    border: 2px solid var(--door-dark);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04);
    transform-style: preserve-3d;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
    overflow: hidden;
    z-index: 7;
}

.door::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18);
}

.door::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: 8px;
    height: 42%;
    background:
        linear-gradient(to right, transparent 46%, rgba(100, 110, 120, .82) 46% 54%, transparent 54%),
        linear-gradient(to bottom, transparent 48%, rgba(100, 110, 120, .82) 48% 52%, transparent 52%),
        linear-gradient(to bottom, rgba(233, 241, 247, .98), rgba(182, 199, 213, .95));
    border: 2px solid rgba(52, 35, 26, .72);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .2);
}

.door .knob {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff2a6, #d1a63b 70%, #8d6520);
    top: 62%;
    box-shadow: 0 0 0 2px rgba(69, 38, 17, .15);
}

.door.left {
    left: 0;
    transform-origin: left center;
}

.door.right {
    right: 0;
    transform-origin: right center;
}

.door.left .knob {
    right: 10px;
}

.door.right .knob {
    left: 10px;
}

.door-stage:hover .door.left,
.door-stage:focus-within .door.left {
    transform: rotateY(-73deg);
    filter: brightness(1.05);
}

.door-stage:hover .door.right,
.door-stage:focus-within .door.right {
    transform: rotateY(73deg);
    filter: brightness(1.05);
}

.door-stage:hover+.welcome,
.door-stage:focus-within+.welcome {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.welcome {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 42px);
    transform: translateX(-50%) translateY(8px);
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fffaf2;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: clamp(14px, 1.1vw, 20px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, .22);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12), inset 0 0 0 1px rgba(255, 255, 255, .15);
    opacity: .88;
    animation: inviteFloat 3.5s ease-in-out infinite;
    z-index: 20;
}

.welcome::after {
    content: "✨";
    margin-left: 8px;
    display: inline-block;
    animation: twinkle 2s ease-in-out infinite;
}

/* === okna === */

.window {
    position: absolute;
    width: 4.05%;
    height: 16%;
    background:
        linear-gradient(to right, transparent 47%, rgba(115, 121, 128, .86) 47% 53%, transparent 53%),
        linear-gradient(to bottom, transparent 48%, rgba(115, 121, 128, .82) 48% 52%, transparent 52%),
        linear-gradient(to bottom, var(--window-glass-1), var(--window-glass-2) 65%, var(--window-glass-3));
    border: 2px solid var(--window-frame);
    box-shadow:
        inset 0 0 0 3px rgba(255, 255, 255, .58),
        0 3px 0 rgba(210, 210, 198, .8);
    z-index: 9;
    overflow: hidden;
}

.window::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            rgba(255, 255, 255, .14) 8%,
            rgba(255, 255, 255, .46) 22%,
            transparent 40%);
    animation: glassShine 7s linear infinite;
}

/* lewe skrzydło */
.w1 {
    left: 4.2%;
    top: 13%;
}

.w2 {
    left: 10.2%;
    top: 13%;
}

.w3 {
    left: 16.2%;
    top: 13%;
}

.w4 {
    left: 22.2%;
    top: 13%;
}

.w5 {
    left: 4.2%;
    top: 58%;
}

.w6 {
    left: 10.2%;
    top: 58%;
}

.w7 {
    left: 16.2%;
    top: 58%;
}

.w8 {
    left: 22.2%;
    top: 58%;
}

/* środek */
.w9 {
    left: 37.5%;
    top: 11.8%;
}

.w10 {
    left: 43.2%;
    top: 11.8%;
}

.w11 {
    left: 48.9%;
    top: 11.8%;
}

.w12 {
    left: 54.6%;
    top: 11.8%;
}

.w13 {
    left: 37.5%;
    top: 57.3%;
}

.w14 {
    left: 54.6%;
    top: 57.3%;
}

/* prawe skrzydło */
.w15 {
    left: 73.7%;
    top: 13%;
}

.w16 {
    left: 79.7%;
    top: 13%;
}

.w17 {
    left: 85.7%;
    top: 13%;
}

.w18 {
    left: 91.7%;
    top: 13%;
}

.w19 {
    left: 73.7%;
    top: 58%;
}

.w20 {
    left: 79.7%;
    top: 58%;
}

.w21 {
    left: 85.7%;
    top: 58%;
}

.w22 {
    left: 91.7%;
    top: 58%;
}

/* === drzewa przed wejściem === */

.tree {
    position: absolute;
    bottom: 17%;
    width: 8.5%;
    height: 44%;
    z-index: 18;
    pointer-events: none;
}

.tree.t1 {
    left: 27%;
}

.tree.t2 {
    left: 56.8%;
}

.tree .trunk {
    position: absolute;
    left: 45%;
    bottom: 0;
    width: 10%;
    height: 28%;
    background: linear-gradient(to bottom, #7a5a43, var(--trunk));
    border-radius: 4px;
    z-index: 1;
}

.tree .crown {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    border-radius: 50%;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .14));
}

.tree .c1 {
    width: 62%;
    height: 28%;
    bottom: 20%;
    background: radial-gradient(circle at 50% 35%, var(--tree-light), var(--tree-mid) 60%, var(--tree-dark));
    z-index: 2;
}

.tree .c2 {
    width: 78%;
    height: 34%;
    bottom: 32%;
    background: radial-gradient(circle at 50% 35%, #6c8960, #4a6941 62%, #2d442d);
    z-index: 3;
}

.tree .c3 {
    width: 58%;
    height: 24%;
    bottom: 53%;
    background: radial-gradient(circle at 50% 35%, #708d66, #496741 62%, #2c412c);
    z-index: 4;
}

/* === żywopłoty i chodnik === */

.front-path {
    position: absolute;
    left: 35.5%;
    bottom: 0;
    width: 15%;
    height: 28%;
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, .15), transparent 12%),
        repeating-linear-gradient(to right,
            transparent 0 10%,
            rgba(0, 0, 0, .05) 10% 10.6%,
            transparent 10.6% 20%),
        repeating-linear-gradient(to bottom,
            rgba(0, 0, 0, .04) 0 7%,
            transparent 7% 14%),
        linear-gradient(to bottom, #d4ccbc, var(--path));
    clip-path: polygon(39% 0, 61% 0, 100% 100%, 0 100%);
    box-shadow: 0 14px 12px rgba(0, 0, 0, .1);
    z-index: 3;
}

.hedge {
    position: absolute;
    bottom: 7.5%;
    width: 12%;
    height: 11%;
    background: linear-gradient(to bottom, var(--hedge-1), var(--hedge-2));
    border-radius: 999px;
    box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), 0 4px 8px rgba(0, 0, 0, .08);
    z-index: 10;
}

.hedge.left {
    left: 27%;
    transform: perspective(300px) rotateY(18deg);
}

.hedge.right {
    right: 34.6%;
    transform: perspective(300px) rotateY(-18deg);
}

.hedge::before,
.hedge::after {
    content: "";
    position: absolute;
    top: 10%;
    width: 17%;
    height: 80%;
    background: inherit;
    border-radius: 999px;
}

.hedge::before {
    left: -9%;
}

.hedge::after {
    right: -9%;
}

/* flaga */
.flag-pole {
    position: absolute;
    left: 7%;
    bottom: 1%;
    width: 4px;
    height: 70%;
    background: linear-gradient(to right, #8b9499, #c2c6c9, #7d8387);
    z-index: 10;
}

.flag {
    position: absolute;
    left: calc(7% + 4px);
    bottom: 60%;
    width: 5.8%;
    height: 6%;
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #ffffff 50%,
            #d4213d 50%,
            #d4213d 100%);
    clip-path: polygon(0 0, 100% 8%, 92% 50%, 100% 92%, 0 100%, 8% 50%);
    animation: flagWave 2.6s ease-in-out infinite;
    transform-origin: left center;
    z-index: 11;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .15));
}

/* boczna tablica */
.signboard {
    position: absolute;
    right: -3%;
    top: 8%;
    width: 27%;
    min-height: 40%;
    background: linear-gradient(to bottom, #fff, #f6f6f6);
    border-radius: 6px;
    padding: 22px 18px 20px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .15), inset 0 0 0 1px rgba(0, 0, 0, .05);
    transform: rotate(2deg);
    z-index: 10;
    animation: paperFloat 6s ease-in-out infinite;
}

.signboard::before {
    content: "";
    position: absolute;
    right: 18px;
    top: -2px;
    width: 42px;
    height: 18px;
    background: linear-gradient(to bottom, rgba(230, 230, 230, .95), rgba(210, 210, 210, .9));
    transform: rotate(-7deg);
    border-radius: 2px;
    opacity: .85;
}

.signboard h2,
.signboard p {
    margin: 0;
    text-align: center;
    position: static;
}

.signboard h2 {
    font-size: clamp(16px, 1.55vw, 28px);
    line-height: 1.1;
    font-weight: 1000;
    text-transform: uppercase;
}

.signboard h2 span {
    display: block;
    text-transform: none;
    font-size: .76em;
    margin-top: 8px;
    font-weight: 900;
}

.signboard p {
    margin-top: 26px;
    font-size: clamp(12px, 1.1vw, 22px);
    line-height: 1.18;
    font-weight: 800;
}

/* pierwszy plan */
.grass-front {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 26%;
    z-index: 12;
    pointer-events: none;
}

.blade {
    position: absolute;
    bottom: -8px;
    width: 14px;
    border-radius: 999px 999px 0 0;
    transform-origin: bottom center;
    animation: sway 4s ease-in-out infinite;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.foreground-items {
    position: absolute;
    inset: 0;
    z-index: 11;
    pointer-events: none;
}

.pencil,
.book-stack {
    position: absolute;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .15));
    animation: peek 4.8s ease-in-out infinite;
}

.pencil {
    left: 4%;
    bottom: 6%;
    width: 54px;
    height: 190px;
    transform: rotate(28deg);
}

.pencil .pencil-body {
    position: absolute;
    inset: 16px 10px 0 10px;
    background: repeating-linear-gradient(to bottom, #ffd94d 0 20px, #f4c92f 20px 40px);
    border: 3px solid #9c7b1f;
    border-bottom: none;
}

.pencil .eraser {
    position: absolute;
    top: 0;
    left: 12px;
    right: 12px;
    height: 22px;
    background: linear-gradient(to bottom, #ff94b6, #f36b93);
    border: 3px solid #93506e;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}

.pencil .metal {
    position: absolute;
    top: 20px;
    left: 12px;
    right: 12px;
    height: 14px;
    background: repeating-linear-gradient(to right, #b9c1c8 0 5px, #a6aeb5 5px 10px);
    border-left: 3px solid #778089;
    border-right: 3px solid #778089;
}

.pencil .tip {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 24px;
    background: linear-gradient(to bottom, #f0cc9d 0 70%, #333 70% 100%);
    clip-path: polygon(50% 100%, 100% 0, 0 0);
    border-left: 3px solid #8e6c45;
    border-right: 3px solid #8e6c45;
}

.book-stack {
    right: 5%;
    bottom: 4.5%;
    width: 120px;
    height: 110px;
    transform: rotate(9deg);
    animation-delay: -.8s;
}

.book {
    position: absolute;
    inset: auto 0 0 auto;
    width: 82px;
    height: 54px;
    border-radius: 4px 6px 6px 4px;
    transform-origin: bottom center;
}

.book.b1 {
    right: 22px;
    bottom: 14px;
    background: linear-gradient(to bottom, #9e6438, #7b4d2d);
    border: 3px solid #5d3921;
}

.book.b1::before,
.book.b2::before {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    top: 7px;
    bottom: 7px;
    border: 2px solid rgba(255, 245, 220, .22);
    border-right-width: 10px;
    border-right-color: #efe3c7;
    border-radius: 2px 4px 4px 2px;
}

.book.b2 {
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, #c29058, #94653a);
    border: 3px solid #6e4726;
    transform: rotate(-6deg);
}

.flowers .flower {
    position: absolute;
    width: 18px;
    height: 18px;
    animation: floatFlower linear infinite;
    opacity: .95;
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .12));
}

.flower .petal {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.flower .center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #ffdf59;
    border-radius: 50%;
    left: 5px;
    top: 5px;
    z-index: 2;
}

.butterfly {
    position: absolute;
    width: 26px;
    height: 20px;
    animation: butterflyPath linear infinite;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .1));
}

.butterfly::before,
.butterfly::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 16px;
    background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .5), transparent 35%), linear-gradient(to bottom, #ff9fdf, #b765ff);
    border-radius: 80% 20% 80% 20%;
    animation: wingFlap .35s ease-in-out infinite;
    transform-origin: center bottom;
}

.butterfly::before {
    left: 0;
    transform: rotate(-18deg);
}

.butterfly::after {
    right: 0;
    transform: scaleX(-1) rotate(-18deg);
}

.butterfly span {
    position: absolute;
    left: 50%;
    top: 2px;
    width: 3px;
    height: 16px;
    background: #53413a;
    transform: translateX(-50%);
    border-radius: 3px;
}

.sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 9;
}

.sparkle {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: twinkle 2.2s ease-in-out infinite;
    opacity: .8;
}

.sparkle::before,
.sparkle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: rgba(255, 255, 255, .92);
    transform: translate(-50%, -50%);
    border-radius: 999px;
}

.sparkle::before {
    width: 2px;
    height: 10px;
}

.sparkle::after {
    width: 10px;
    height: 2px;
}

.cta-hint {
    position: absolute;
    left: 50%;
    bottom: 1.6%;
    transform: translateX(-50%);
    z-index: 14;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .35);
    color: #17404a;
    font-weight: 800;
    font-size: clamp(11px, .9vw, 14px);
    letter-spacing: .06em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
    animation: hintPulse 3s ease-in-out infinite;
}

@keyframes schoolEnter {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(100px) scale(.8);
        filter: blur(6px);
    }

    70% {
        opacity: 1;
        transform: translateX(-50%) translateY(-10px) scale(1.02);
        filter: blur(0);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes cloudMove {
    from {
        transform: translateX(0) scale(var(--scale, 1));
    }

    to {
        transform: translateX(150vw) scale(var(--scale, 1));
    }
}

@keyframes sway {

    0%,
    100% {
        transform: rotate(-4deg) scaleY(1);
    }

    50% {
        transform: rotate(4deg) scaleY(1.03);
    }
}

@keyframes flagWave {

    0%,
    100% {
        transform: skewY(0deg) scaleX(1);
    }

    25% {
        transform: skewY(3deg) scaleX(1.04);
    }

    50% {
        transform: skewY(-3deg) scaleX(.98);
    }

    75% {
        transform: skewY(2deg) scaleX(1.03);
    }
}

@keyframes inviteFloat {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes paperFloat {

    0%,
    100% {
        transform: rotate(2deg) translateY(0);
    }

    50% {
        transform: rotate(1deg) translateY(-10px);
    }
}

@keyframes floatFlower {
    0% {
        transform: translateY(108vh) translateX(0) rotate(0deg) scale(.8);
        opacity: 0;
    }

    10% {
        opacity: .95;
    }

    50% {
        transform: translateY(52vh) translateX(32px) rotate(140deg) scale(1);
    }

    100% {
        transform: translateY(-15vh) translateX(-24px) rotate(320deg) scale(.9);
        opacity: 0;
    }
}

@keyframes butterflyPath {
    0% {
        transform: translate(-10vw, 84vh) scale(.8) rotate(6deg);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translate(18vw, 66vh) scale(.9) rotate(-4deg);
    }

    50% {
        transform: translate(46vw, 50vh) scale(1) rotate(4deg);
    }

    75% {
        transform: translate(76vw, 38vh) scale(.85) rotate(-8deg);
    }

    100% {
        transform: translate(108vw, 22vh) scale(.7) rotate(0deg);
        opacity: 0;
    }
}

@keyframes wingFlap {

    0%,
    100% {
        transform: rotate(-20deg) scaleY(1);
    }

    50% {
        transform: rotate(18deg) scaleY(.84);
    }
}

@keyframes spinSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .35;
        transform: scale(.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.28);
    }
}

@keyframes peek {

    0%,
    100% {
        transform: translateY(16px) rotate(var(--rotate, 0deg));
    }

    50% {
        transform: translateY(0) rotate(var(--rotate, 0deg));
    }
}

@keyframes glassShine {
    0% {
        transform: translateX(-110%);
    }

    30%,
    100% {
        transform: translateX(160%);
    }
}

@keyframes sunPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

@keyframes glowSoft {

    0%,
    100% {
        opacity: .8;
        box-shadow: 0 0 16px rgba(255, 255, 210, .32);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 28px rgba(255, 255, 210, .55);
    }
}

@keyframes flap {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }
}

@keyframes hintPulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.03);
    }
}

@media (max-width: 1220px) {
    .scene {
        min-height: 600px;
    }

    .school-wrap {
        min-width: 760px;
    }

    .signboard {
        width: 30%;
        right: -5%;
    }
}

@media (max-width: 900px) {
    .school-wrap {
        width: 95vw;
        min-width: 0;
    }

    .signboard {
        right: 1%;
        top: 4%;
        width: 34%;
        min-height: 35%;
    }

    .sun {
        width: 86px;
        height: 86px;
    }

    .cta-hint {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}