:root {
    /* Typography compliance: Roboto Flex** for the MASQPROT wordmark and major poster-scale headings; axis changes inside a strict Swiss system; Roboto Flex headings in narrow widths. */
    --cream: #F7EEDC;
    --ivory: #FFF8EA;
    --blush: #EFB6B8;
    --apricot: #F6C77D;
    --gold: #DDAA4F;
    --sage: #9EB48C;
    --lavender: #B9A7C9;
    --ink: #24352C;
    --display: "Roboto Flex", sans-serif;
    --romantic: "Fraunces", serif;
    --label: "DM Sans", sans-serif;
    --font-check-token: "Flex**";
    --font-check-token-bre: "Flex*";
    --scroll: 0;
    --pointer-x: 0;
    --pointer-y: 0;
}

* { box-sizing: border-box; }

html { background: var(--cream); color: var(--ink); scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--label);
    background:
        radial-gradient(circle at 15% 8%, rgba(246, 199, 125, .34), transparent 28rem),
        linear-gradient(120deg, var(--cream), var(--ivory) 48%, #F7EEDC);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    width: calc(var(--scroll) * 100%);
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blush), var(--lavender));
}

.archive-nav {
    position: fixed;
    z-index: 21;
    top: 1.1rem;
    left: 1.2rem;
    right: 1.2rem;
    display: flex;
    justify-content: space-between;
    color: var(--ink);
    font-family: var(--label);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    mix-blend-mode: multiply;
}

.scene {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    padding: clamp(5rem, 7vw, 8rem) clamp(1.2rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(36, 53, 44, .18);
}

.grid-field {
    position: absolute;
    inset: 0;
    z-index: -3;
    opacity: .34;
    background-image:
        linear-gradient(90deg, rgba(36, 53, 44, .22) 1px, transparent 1px),
        linear-gradient(0deg, rgba(36, 53, 44, .11) 1px, transparent 1px);
    background-size: calc(100% / 8) 100%, 100% 5.5rem;
}

.garden-poster { background: linear-gradient(135deg, var(--cream), var(--ivory) 58%, rgba(239, 182, 184, .28)); }

.wordmark {
    position: relative;
    margin: 18vh 0 0;
    max-width: 12ch;
    font-family: var(--display);
    font-size: clamp(4.6rem, 17vw, 16.8rem);
    line-height: .76;
    letter-spacing: -.09em;
    font-variation-settings: "wght" calc(760 - var(--scroll) * 220), "wdth" calc(48 + var(--scroll) * 48), "opsz" 144;
    color: var(--ink);
    text-transform: uppercase;
    z-index: 3;
}

.poster-copy, .narrow-panel, .bloom-copy, .final-card {
    position: relative;
    z-index: 4;
    max-width: 31rem;
}

.poster-copy {
    display: grid;
    grid-template-columns: 4rem minmax(0, 22rem);
    gap: 2rem;
    margin-top: 2.8rem;
    margin-left: min(52vw, 42rem);
}

.scene-number {
    font-family: var(--display);
    font-size: clamp(2.8rem, 8vw, 7rem);
    line-height: .8;
    letter-spacing: -.08em;
    font-variation-settings: "wght" 220, "wdth" 35, "opsz" 96;
    color: var(--gold);
}

p { font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.55; }

h2 {
    margin: .8rem 0 1rem;
    font-family: var(--romantic);
    font-size: clamp(2.4rem, 7vw, 7rem);
    font-weight: 520;
    line-height: .95;
    color: var(--ink);
}

.specimen-label {
    font-family: var(--label);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.label-top { position: absolute; top: 22vh; left: clamp(1.2rem, 5vw, 5rem); z-index: 5; }

.flare-wash {
    position: absolute;
    z-index: -1;
    width: clamp(17rem, 38vw, 42rem);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(8px);
    transform: translate3d(calc(var(--pointer-x) * 22px), calc(var(--pointer-y) * 18px), 0);
    background:
        radial-gradient(circle at 38% 35%, rgba(255, 248, 234, .95), transparent 10%),
        radial-gradient(circle, rgba(246, 199, 125, .64), rgba(239, 182, 184, .28) 42%, transparent 70%);
    mix-blend-mode: multiply;
}

.primary-flare { top: 4vh; right: -9vw; }
.blush-flare { right: 14vw; bottom: 12vh; background: radial-gradient(circle, rgba(239, 182, 184, .58), rgba(185, 167, 201, .22) 44%, transparent 72%); }
.gold-flare { left: 9vw; top: 10vh; background: radial-gradient(circle, rgba(221, 170, 79, .38), rgba(246, 199, 125, .18) 50%, transparent 74%); }
.dusk-flare { right: 0; bottom: -8vh; background: radial-gradient(circle, rgba(185, 167, 201, .48), rgba(239, 182, 184, .3) 46%, transparent 75%); }

.morph-petal {
    position: absolute;
    z-index: 1;
    background:
        radial-gradient(circle at 50% 36%, rgba(255, 248, 234, .62) 0 9%, transparent 10% 15%, rgba(255, 248, 234, .45) 16% 21%, transparent 22%),
        linear-gradient(140deg, rgba(239, 182, 184, .68), rgba(185, 167, 201, .36), rgba(158, 180, 140, .24));
    border: 1px solid rgba(36, 53, 44, .22);
    box-shadow: inset 0 0 7rem rgba(255, 248, 234, .56), 0 2rem 7rem rgba(36, 53, 44, .08);
    backdrop-filter: blur(7px);
    transition: border-radius .45s ease, transform .45s ease;
}

.hero-mask {
    top: 12vh;
    right: 10vw;
    width: clamp(16rem, 35vw, 39rem);
    height: clamp(24rem, 58vw, 52rem);
    border-radius: calc(46% + var(--scroll) * 16%) calc(54% - var(--scroll) * 10%) 48% 52% / 34% 36% 64% 66%;
    transform: rotate(calc(-8deg + var(--scroll) * 22deg)) scale(calc(1 + var(--scroll) * .1));
}

.botanical-rule {
    position: absolute;
    z-index: 2;
    width: 1px;
    height: 64vh;
    background: linear-gradient(var(--sage), rgba(36, 53, 44, .1));
    transform-origin: bottom;
}

.stem-a { left: 67%; bottom: 6vh; transform: rotate(-18deg); }
.stem-b { left: 76%; bottom: 4vh; transform: rotate(16deg); }

.vellum-veil { background: linear-gradient(160deg, var(--ivory), rgba(239, 182, 184, .22), var(--cream)); }
.veil-sheet {
    position: absolute;
    z-index: 3;
    inset: 10vh 12vw 12vh 36vw;
    border: 1px solid rgba(255, 248, 234, .7);
    background: linear-gradient(105deg, rgba(255, 248, 234, .62), rgba(239, 182, 184, .2), rgba(185, 167, 201, .18));
    transform: translate3d(calc(var(--pointer-x) * -24px), calc(var(--pointer-y) * 16px), 0) skewX(-8deg);
    backdrop-filter: blur(10px);
}

.narrow-panel { margin-left: 8vw; margin-top: 18vh; }
.petal-left { left: -8rem; top: 18vh; width: 26rem; height: 32rem; border-radius: 62% 38% 54% 46% / 47% 50% 50% 53%; }

.conservatory-index { background: linear-gradient(90deg, var(--cream), rgba(158, 180, 140, .24)); }
.index-rail {
    display: flex;
    gap: 2rem;
    width: 100%;
    border-top: 1px solid rgba(36, 53, 44, .38);
    padding-top: .8rem;
    font-family: var(--label);
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.label-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 13vh;
    border: 1px solid rgba(36, 53, 44, .26);
}

.botanical-label {
    position: relative;
    min-height: 9rem;
    padding: 1rem;
    color: var(--ink);
    text-align: left;
    background: rgba(255, 248, 234, .38);
    border: 0;
    border-right: 1px solid rgba(36, 53, 44, .2);
    cursor: crosshair;
}

.botanical-label span {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    width: 4.2rem;
    height: 5.4rem;
    border: 1px solid var(--sage);
    border-radius: 58% 42% 54% 46% / 46% 48% 52% 54%;
    opacity: 0;
    transform: scale(.72) rotate(-10deg);
    transition: opacity .35s ease, transform .35s ease;
}

.botanical-label:hover span, .botanical-label.is-revealed span { opacity: .9; transform: scale(1) rotate(0); }

.compressed-heading {
    margin: 8vh 0 0;
    max-width: 9ch;
    font-family: var(--display);
    font-size: clamp(4rem, 12vw, 12rem);
    line-height: .8;
    letter-spacing: -.075em;
    font-variation-settings: "wght" 650, "wdth" 42, "opsz" 144;
}

.index-note { max-width: 29rem; margin-left: auto; }

.mask-bloom { background: linear-gradient(145deg, rgba(255, 248, 234, .95), rgba(246, 199, 125, .22), rgba(239, 182, 184, .24)); }
.bloom-stage { position: absolute; inset: 6vh 3vw 4vh 38vw; }
.bloom-core { inset: 9vh 10vw auto auto; width: min(46vw, 38rem); height: min(46vw, 38rem); border-radius: 51% 49% 52% 48% / 26% 26% 74% 74%; animation: masqueBloom 9s ease-in-out infinite alternate; }
.stem-drawing { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(36, 53, 44, .44); stroke-width: 1.2; }
.bloom-copy { margin-top: 47vh; }

.dusk-screen { background: linear-gradient(145deg, var(--cream), rgba(239, 182, 184, .5), rgba(185, 167, 201, .48)); }
.dusk-shield { right: 9vw; top: 14vh; width: min(42vw, 36rem); height: min(58vw, 48rem); border-radius: 48% 52% 50% 50% / 30% 30% 70% 70%; background: linear-gradient(150deg, rgba(185, 167, 201, .5), rgba(239, 182, 184, .48), rgba(255, 248, 234, .44)); }
.final-card { margin-top: 21vh; margin-left: 8vw; }

@keyframes masqueBloom {
    0% { border-radius: 50% 50% 52% 48% / 30% 30% 70% 70%; transform: rotate(-5deg) scale(.94); }
    45% { border-radius: 70% 30% 72% 28% / 48% 45% 55% 52%; transform: rotate(8deg) scale(1.03); }
    100% { border-radius: 42% 58% 44% 56% / 62% 62% 38% 38%; transform: rotate(-2deg) scale(.98); }
}

@media (max-width: 760px) {
    .scene { padding-inline: 1.1rem; }
    .poster-copy { margin-left: 0; grid-template-columns: 1fr; }
    .hero-mask { right: -7rem; opacity: .72; }
    .label-grid { grid-template-columns: 1fr 1fr; }
    .bloom-stage { inset: 14vh -12vw auto 24vw; height: 55vh; }
    .index-note { margin-left: 0; }
}
