/* adhoc.quest - Memphis Collage Corkboard */
/* Palette: #d4a574, #ffe066, #ff8fab, #a0d2ff, #e63946, #2b2d42, #fefae0, #f5f0e1 */

:root {
    --cork: #d4a574;
    --yellow: #ffe066;
    --pink: #ff8fab;
    --blue: #a0d2ff;
    --red: #e63946;
    --ink: #2b2d42;
    --paper: #fefae0;
    --tape: #f5f0e1;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cork);
    background-image:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.03) 0px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.03) 0px,
            transparent 1px,
            transparent 3px
        ),
        repeating-linear-gradient(
            45deg,
            rgba(139, 90, 43, 0.04) 0px,
            transparent 2px,
            transparent 6px
        );
    color: var(--ink);
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================= */
/* BOARD SECTIONS                                */
/* ============================================= */

.board-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
}

.quests-section {
    min-height: auto;
    padding: 6rem 2rem;
}

.wall-section {
    min-height: auto;
    padding: 6rem 2rem 8rem;
}

.complete-section {
    min-height: 70vh;
    padding: 4rem 2rem 8rem;
}

/* ============================================= */
/* COFFEE RING STAINS                            */
/* ============================================= */

.coffee-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.ring-1 {
    width: 90px;
    height: 90px;
    top: 12%;
    right: 18%;
    box-shadow:
        0 0 0 3px rgba(139, 90, 43, 0.10),
        0 0 0 5px rgba(139, 90, 43, 0.04),
        inset 0 0 15px 5px rgba(139, 90, 43, 0.03);
}

.ring-2 {
    width: 70px;
    height: 70px;
    bottom: 22%;
    left: 8%;
    box-shadow:
        0 0 0 2px rgba(139, 90, 43, 0.08),
        0 0 12px 6px rgba(139, 90, 43, 0.03);
}

.ring-3 {
    width: 55px;
    height: 55px;
    top: 65%;
    right: 8%;
    box-shadow:
        0 0 0 2px rgba(139, 90, 43, 0.06),
        0 0 10px 5px rgba(139, 90, 43, 0.02);
}

.ring-4 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 15%;
    box-shadow:
        0 0 0 3px rgba(139, 90, 43, 0.07),
        0 0 14px 7px rgba(139, 90, 43, 0.03);
}

.ring-5 {
    width: 65px;
    height: 65px;
    bottom: 15%;
    right: 20%;
    box-shadow:
        0 0 0 2px rgba(139, 90, 43, 0.08),
        0 0 10px 4px rgba(139, 90, 43, 0.03);
}

.ring-6 {
    width: 75px;
    height: 75px;
    top: 20%;
    left: 25%;
    box-shadow:
        0 0 0 2px rgba(139, 90, 43, 0.06),
        0 0 12px 6px rgba(139, 90, 43, 0.02);
}

/* ============================================= */
/* CUT-OUT SHAPES                                */
/* ============================================= */

.cutout-shape {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.shape-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: var(--pink);
    top: 18%;
    left: 6%;
    transform: rotate(10deg);
    opacity: 0.65;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 38px solid transparent;
    border-right: 38px solid transparent;
    border-bottom: 65px solid var(--blue);
    top: 55%;
    right: 10%;
    transform: rotate(-15deg);
    opacity: 0.55;
}

.shape-squiggle {
    width: 85px;
    height: 22px;
    background: var(--red);
    border-radius: 50%;
    bottom: 18%;
    left: 22%;
    transform: rotate(25deg);
    opacity: 0.45;
}

.shape-circle-2 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--yellow);
    top: 35%;
    right: 5%;
    transform: rotate(-5deg);
    opacity: 0.5;
}

.shape-diamond {
    width: 45px;
    height: 45px;
    background: var(--blue);
    bottom: 30%;
    right: 25%;
    transform: rotate(45deg);
    opacity: 0.35;
}

.shape-squiggle-2 {
    width: 70px;
    height: 18px;
    background: var(--pink);
    border-radius: 50%;
    top: 5%;
    right: 30%;
    transform: rotate(-20deg);
    opacity: 0.4;
}

/* ============================================= */
/* WASHI TAPE STRIPS                             */
/* ============================================= */

.washi-tape {
    position: absolute;
    pointer-events: none;
    z-index: 6;
}

.washi-1 {
    width: 120px;
    height: 24px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 224, 102, 0.5) 0px,
        rgba(255, 224, 102, 0.5) 4px,
        rgba(255, 224, 102, 0.3) 4px,
        rgba(255, 224, 102, 0.3) 8px
    );
    top: 8%;
    left: 5%;
    transform: rotate(-18deg);
}

.washi-2 {
    width: 100px;
    height: 22px;
    background: repeating-linear-gradient(
        90deg,
        rgba(160, 210, 255, 0.5) 0px,
        rgba(160, 210, 255, 0.5) 3px,
        rgba(160, 210, 255, 0.3) 3px,
        rgba(160, 210, 255, 0.3) 6px
    );
    bottom: 12%;
    right: 6%;
    transform: rotate(12deg);
}

.washi-3 {
    width: 110px;
    height: 22px;
    background: repeating-linear-gradient(
        90deg,
        rgba(255, 143, 171, 0.5) 0px,
        rgba(255, 143, 171, 0.5) 4px,
        rgba(255, 143, 171, 0.3) 4px,
        rgba(255, 143, 171, 0.3) 8px
    );
    bottom: 5%;
    left: 10%;
    transform: rotate(-8deg);
}

/* ============================================= */
/* DECORATIVE PUSHPIN DOTS                       */
/* ============================================= */

.pushpin-deco {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #e63946 50%, #b52a37 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
}

.pushpin-deco-1 {
    top: 10%;
    left: 50%;
}

.pushpin-deco-2 {
    top: 80%;
    right: 15%;
}

.pushpin-deco-3 {
    top: 15%;
    right: 30%;
}

/* ============================================= */
/* RANSOM-NOTE HERO TITLE                        */
/* ============================================= */

.hero-title {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.letter {
    display: inline-block;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transition: none;
}

.letter.assembled {
    opacity: 1;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.5s ease;
}

.l1 {
    font-family: 'Rubik', sans-serif;
    font-size: 5.5rem;
    color: var(--red);
    background: var(--paper);
    padding: 0 6px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}
.l1.assembled { transform: rotate(-5deg); }

.l2 {
    font-family: 'Caveat', cursive;
    font-size: 6.5rem;
    color: var(--ink);
}
.l2.assembled { transform: rotate(3deg); }

.l3 {
    font-family: 'Rubik', sans-serif;
    font-size: 5rem;
    color: var(--ink);
    background: var(--yellow);
    padding: 0 6px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.12);
}
.l3.assembled { transform: rotate(-2deg); }

.l4 {
    font-family: 'Nunito', sans-serif;
    font-size: 6rem;
    color: var(--pink);
}
.l4.assembled { transform: rotate(4deg); }

.l5 {
    font-family: 'Rubik', sans-serif;
    font-size: 4.5rem;
    color: var(--ink);
    background: var(--blue);
    padding: 0 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.10);
}
.l5.assembled { transform: rotate(-6deg); }

.l6 {
    font-family: 'Caveat', cursive;
    font-size: 5.5rem;
    color: var(--red);
}
.l6.assembled { transform: rotate(1deg); }

.l7 {
    font-family: 'Rubik', sans-serif;
    font-size: 5.5rem;
    color: var(--paper);
    background: var(--red);
    padding: 0 8px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}
.l7.assembled { transform: rotate(3deg); }

.l8 {
    font-family: 'Caveat', cursive;
    font-size: 6.5rem;
    color: var(--ink);
}
.l8.assembled { transform: rotate(-4deg); }

.l9 {
    font-family: 'Nunito', sans-serif;
    font-size: 5rem;
    color: var(--yellow);
    text-shadow: 1px 1px 0 rgba(0,0,0,0.1);
}
.l9.assembled { transform: rotate(5deg); }

.l10 {
    font-family: 'Rubik', sans-serif;
    font-size: 5.5rem;
    color: var(--blue);
}
.l10.assembled { transform: rotate(-3deg); }

.l11 {
    font-family: 'Caveat', cursive;
    font-size: 6rem;
    color: var(--red);
    background: var(--yellow);
    padding: 0 5px;
    box-shadow: 1px 1px 3px rgba(0,0,0,0.12);
}
.l11.assembled { transform: rotate(2deg); }

/* ============================================= */
/* START HERE NOTE                               */
/* ============================================= */

.start-note {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(-20px) rotate(-5deg);
    transition: opacity 0.6s ease 1.2s, transform 0.6s ease 1.2s;
}

.start-note.show {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

.start-text {
    font-size: 1.8rem;
    display: block;
}

.arrow-down {
    display: block;
    margin: 0.5rem auto 0;
}

.arrow-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease 1.6s;
}

.start-note.show .arrow-path {
    stroke-dashoffset: 0;
}

.caveat-text {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red);
}

/* ============================================= */
/* STICKY NOTES                                  */
/* ============================================= */

.sticky {
    padding: 2rem 1.8rem 1.8rem;
    transform: rotate(var(--rot, 0deg));
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    max-width: 420px;
    width: 100%;
}

.yellow-note { background: var(--yellow); }
.pink-note { background: var(--pink); }
.blue-note { background: var(--blue); }

/* Torn paper edges */
.torn-edge-top {
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 8px;
    clip-path: polygon(
        0% 100%, 3% 40%, 7% 80%, 12% 30%, 18% 70%, 22% 20%, 28% 60%,
        33% 40%, 38% 80%, 42% 30%, 48% 70%, 53% 20%, 58% 65%,
        63% 35%, 68% 75%, 73% 25%, 78% 60%, 83% 40%, 88% 80%,
        93% 30%, 97% 65%, 100% 100%
    );
}

.yellow-note .torn-edge-top { background: var(--yellow); }
.pink-note .torn-edge-top { background: var(--pink); }
.blue-note .torn-edge-top { background: var(--blue); }

.torn-edge-bottom {
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 8px;
    clip-path: polygon(
        0% 0%, 4% 60%, 9% 20%, 14% 70%, 19% 30%, 24% 55%,
        29% 15%, 34% 65%, 39% 25%, 44% 70%, 49% 10%, 54% 55%,
        59% 30%, 64% 75%, 69% 20%, 74% 60%, 79% 35%, 84% 70%,
        89% 15%, 94% 55%, 100% 0%
    );
}

.yellow-note .torn-edge-bottom { background: var(--yellow); }

.pushpin {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff 0%, #e63946 50%, #b52a37 100%);
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

.sticky-title {
    font-family: 'Rubik', sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.sticky-body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(43, 45, 66, 0.85);
}

/* ============================================= */
/* ANNOTATIONS                                   */
/* ============================================= */

.caveat-annotation {
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    color: var(--red);
    transform: rotate(var(--rot, 0deg));
    margin-top: 0.6rem;
}

.pencil-underline {
    display: block;
    margin-top: 0.3rem;
    overflow: visible;
}

.underline-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.tumble-in.visible .underline-path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.8s ease 0.4s;
}

/* ============================================= */
/* TAPE STRIPS                                   */
/* ============================================= */

.tape {
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.tape-angled {
    width: 85px;
    height: 22px;
    background: rgba(245, 240, 225, 0.7);
    border: 1px solid rgba(200, 195, 180, 0.2);
}

.tape-1 {
    top: -10px;
    right: 25px;
    transform: rotate(-14deg);
}

.tape-2 {
    top: 8px;
    left: -12px;
    transform: rotate(10deg);
}

/* ============================================= */
/* DOODLE ARROWS                                 */
/* ============================================= */

.doodle-arrow {
    z-index: 2;
    overflow: visible;
    display: block;
    margin: 0.5rem auto;
}

.doodle-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.doodle-arrow.visible .doodle-path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1s ease 0.3s;
}

/* ============================================= */
/* X MARKS                                       */
/* ============================================= */

.x-mark {
    position: absolute;
    bottom: -20px;
    right: 20px;
    font-size: 2rem;
    color: var(--ink);
    opacity: 0.4;
    transform: rotate(12deg);
}

/* ============================================= */
/* QUEST CLUSTERS                                */
/* ============================================= */

.quest-cluster {
    position: relative;
    margin-bottom: 2rem;
}

.cluster-2 {
    align-self: flex-end;
    margin-right: 3rem;
}

.cluster-3 {
    align-self: flex-start;
    margin-left: 3rem;
}

/* ============================================= */
/* TUMBLE-IN ANIMATION                           */
/* ============================================= */

.tumble-in {
    opacity: 0;
    transform: translateY(40px) rotate(8deg);
}

.tumble-in.visible {
    opacity: 1;
    transform: translateY(0) rotate(var(--rot, 0deg));
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Bounce variant for quest clusters */
.quest-cluster.tumble-in {
    opacity: 0;
    transform: translateY(50px) rotate(6deg) scale(0.95);
}

.quest-cluster.tumble-in.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
    transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================= */
/* WALL OF IDEAS                                 */
/* ============================================= */

.wall-heading {
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}

.wall-heading .caveat-text {
    font-size: 2.2rem;
    color: var(--ink);
    display: block;
}

.heading-arrow {
    display: block;
    margin: 0.3rem auto 0;
}

.idea-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
    max-width: 800px;
    perspective: 800px;
}

.mini-note {
    padding: 1.1rem 1rem;
    font-family: 'Caveat', cursive;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    transform: rotate(var(--rot, 0deg));
    box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.18);
    cursor: default;
    width: 150px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease,
                z-index 0s;
}

.mini-note:hover {
    transform: rotate(0deg) scale(1.15) translateY(-5px);
    box-shadow: 4px 6px 16px rgba(0, 0, 0, 0.25);
    z-index: 10;
}

.idea-wall.has-hover .mini-note:not(:hover) {
    opacity: 0.6;
    transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

.mn-yellow { background: var(--yellow); }
.mn-pink { background: var(--pink); }
.mn-blue { background: var(--blue); }

/* ============================================= */
/* FINAL NOTE / QUEST COMPLETE                   */
/* ============================================= */

.complete-section {
    position: relative;
}

.final-note {
    background: var(--paper);
    padding: 3rem 2.5rem;
    max-width: 480px;
    width: 100%;
    transform: rotate(var(--rot, 0deg));
    box-shadow: 3px 4px 12px rgba(0, 0, 0, 0.22);
    position: relative;
    text-align: center;
    z-index: 2;
}

.final-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: 1.8rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.check-path {
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
}

.final-note.visible .check-path {
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.7s ease 0.5s;
}

.check-label {
    font-size: 1.4rem;
}

/* ============================================= */
/* SCATTERED MARKS                               */
/* ============================================= */

.scattered-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.x-mark-small,
.check-mark-small {
    position: absolute;
    left: var(--x, 50%);
    top: var(--y, 50%);
    transform: rotate(var(--rot, 0deg));
    font-size: 1.6rem;
    opacity: 0.25;
    color: var(--ink);
}

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */

@media (max-width: 768px) {
    .letter {
        font-size: 2.8rem !important;
    }

    .l1, .l2, .l3, .l4, .l5, .l6, .l7, .l8, .l9, .l10, .l11 {
        font-size: 2.8rem !important;
    }

    .hero-title {
        gap: 0.05rem;
    }

    .cluster-2 {
        align-self: center;
        margin-right: 0;
    }

    .cluster-3 {
        align-self: center;
        margin-left: 0;
    }

    .cutout-shape {
        display: none;
    }

    .washi-tape {
        display: none;
    }

    .pushpin-deco {
        display: none;
    }

    .mini-note {
        width: 120px;
        font-size: 1rem;
        padding: 0.8rem;
    }

    .idea-wall {
        gap: 0.8rem;
    }

    .final-note {
        padding: 2rem 1.5rem;
    }

    .start-text {
        font-size: 1.4rem;
    }

    .wall-heading .caveat-text {
        font-size: 1.8rem;
    }

    .scattered-marks {
        display: none;
    }

    .board-section {
        padding: 3rem 1rem;
    }

    .doodle-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .letter {
        font-size: 2rem !important;
    }

    .l1, .l2, .l3, .l4, .l5, .l6, .l7, .l8, .l9, .l10, .l11 {
        font-size: 2rem !important;
    }

    .sticky {
        padding: 1.5rem 1.2rem 1.2rem;
    }

    .sticky-title {
        font-size: 1.1rem;
    }

    .sticky-body {
        font-size: 0.85rem;
    }

    .mini-note {
        width: 100px;
        font-size: 0.9rem;
    }
}
