:root {
    --ink: #252743;
    --blue: #111a49;
    --cream: #f7f2e9;
    --paper: #fbfaf6;
    --lilac: #eceaf4;
    --coral: #ef6f72;
    --gold: #e7ae4d;
    --line: rgba(37, 39, 67, .16);
    --serif: 'Noto Serif SC', serif;
    --display: 'ZCOOL XiaoWei', serif;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--serif);
    font-size: 16px;
    line-height: 1.8;
    overflow-x: hidden
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10;
    opacity: .055;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
    mix-blend-mode: multiply
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    right: 0;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    color: #fff;
    background: linear-gradient(180deg, rgba(5, 8, 33, .72), transparent);
    transition: .35s
}

.site-header.scrolled {
    background: rgba(13, 18, 58, .93);
    backdrop-filter: blur(14px)
}

.brand {
    color: inherit;
    text-decoration: none;
    font-family: var(--display);
    font-size: 1.2rem;
    letter-spacing: .12em
}

.brand span {
    color: #ffcc6a;
    margin-right: 7px
}

.site-header nav {
    display: flex;
    gap: 2rem;
    font-size: .8rem;
    letter-spacing: .2em
}

.site-header nav a {
    color: inherit;
    text-decoration: none;
    opacity: .74;
    transition: .25s
}

.site-header nav a:hover {
    opacity: 1;
    color: #ffcf74
}

.header-cta,
.outline-button,
.pill-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none
}

.header-cta {
    border-bottom: 1px solid rgba(255, 255, 255, .6);
    color: #fff;
    font-size: .76rem;
    letter-spacing: .12em;
    padding: 4px 0
}

.header-cta span,
.text-link span,
.outline-button span,
.pill-button span {
    font-size: 1.2rem;
    transition: transform .25s
}

.header-cta:hover span,
.text-link:hover span,
.outline-button:hover span,
.pill-button:hover span {
    transform: translateX(5px)
}

.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    background: #11143f url('https://res.cloudinary.com/js8rdscp/image/upload/v1790319100/yanhua/ce9122c435dd2124252cdb8428cf71df.png') center/cover no-repeat
}

.hero:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 14, 52, .64), rgba(15, 18, 62, .13) 64%, rgba(15, 18, 62, .42)), linear-gradient(0deg, rgba(10, 14, 52, .3), transparent 55%)
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(90%, 1100px);
    margin: 10vh auto 0;
    padding-left: 9vw
}

.eyebrow,
.kicker {
    font-size: .7rem;
    letter-spacing: .27em;
    opacity: .76;
    margin: 0 0 1.5rem
}

.hero h1 {
    margin: 0;
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(4.3rem, 10vw, 9.4rem);
    line-height: .98;
    letter-spacing: .04em;
    text-shadow: 0 8px 30px rgba(0, 0, 0, .23)
}

.hero h1 span {
    color: #ff8a84
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: .35em;
    margin: 1.2rem 0 1.5rem;
    color: #ffe4bf
}

.hero-intro {
    font-size: .91rem;
    opacity: .86;
    line-height: 2.15
}

.scroll-cue {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 4.5rem;
    color: #fff;
    text-decoration: none;
    font-size: .72rem;
    letter-spacing: .18em
}

.scroll-cue b {
    display: flex;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 1rem
}

.hero-character {
    position: absolute;
    z-index: 2;
    right: 4%;
    bottom: -4%;
    width: min(24vw, 280px);
    max-height: 35vh;
    object-fit: contain;
    object-position: bottom;
    filter: drop-shadow(0 12px 10px rgba(7, 8, 31, .28));
    animation: float 6s ease-in-out infinite
}

.hero-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 50%;
    transform: rotate(-25deg)
}

.orbit-a {
    width: 480px;
    height: 175px;
    right: 10%;
    bottom: 28%
}

.orbit-b {
    width: 390px;
    height: 120px;
    right: 17%;
    bottom: 31%;
    transform: rotate(34deg)
}

.hero-sparkle {
    position: absolute;
    z-index: 2;
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 0 0 25px white
}

.sparkle-a {
    right: 28%;
    bottom: 40%
}

.sparkle-b {
    right: 36%;
    bottom: 28%;
    font-size: 2rem
}

.content-grid {
    width: min(1120px, 88vw);
    margin-inline: auto
}

.section-light,
.section-cream,
.section-lilac {
    position: relative;
    padding: 9rem 0 10rem
}

.section-light {
    background: var(--paper)
}

.section-cream {
    background: var(--cream)
}

.section-lilac {
    background: var(--lilac)
}

.section-label {
    position: absolute;
    top: 8rem;
    left: 4vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--coral);
    font-family: var(--display);
    line-height: 1
}

.section-label span {
    font-size: 3.3rem
}

.section-label small {
    font-family: var(--serif);
    font-size: .65rem;
    letter-spacing: .25em;
    margin-top: 8px
}

.intro-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 9vw;
    align-items: end
}

.intro-heading h2,
.timeline h2,
.spectacle h2,
.ritual h2,
.future h2,
.epilogue h2 {
    font-family: var(--display);
    font-size: clamp(2.6rem, 5vw, 5.2rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: .02em;
    margin: 0
}

.intro-heading h2 em,
.timeline h2 em,
.spectacle h2 em,
.ritual h2 em,
.epilogue h2 em {
    font-style: normal;
    color: var(--coral)
}

.kicker {
    color: var(--coral);
    font-weight: 600
}

.lead {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #555675
}

.intro-text {
    max-width: 440px
}

.intro-text p:not(.lead) {
    color: #616175;
    font-size: .9rem
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--coral);
    padding-bottom: 3px;
    margin-top: 1.1rem;
    font-size: .82rem
}

.brush-line {
    font-family: cursive;
    color: #f5a32c;
    font-size: 5rem;
    line-height: .4;
    transform: rotate(-6deg);
    margin-top: 1rem
}

.origin-gallery {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 9vw;
    align-items: center;
    margin-top: 7rem
}

.polaroid {
    background: #fff;
    padding: 12px 12px 22px;
    box-shadow: 0 25px 45px rgba(46, 35, 27, .14);
    transform: rotate(-3deg);
    max-width: 600px
}

.polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 1.62;
    object-fit: cover;
    filter: saturate(.84)
}

.polaroid figcaption {
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: .08em;
    color: #7a6870;
    padding: 13px 5px 0
}

.origin-side {
    position: relative;
    padding: 4rem 1rem
}

.sticker {
    position: absolute;
    width: 130px;
    right: 0;
    top: -30px;
    opacity: .84;
    transform: rotate(10deg)
}

.quote-mark {
    font-family: Georgia;
    font-size: 8rem;
    color: #f4b3a0;
    line-height: .7
}

.origin-side blockquote {
    margin: 0;
    font-family: var(--display);
    font-size: 1.65rem;
    line-height: 1.6;
    letter-spacing: .09em
}

.timeline-head {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: end;
    gap: 8vw;
    margin-bottom: 5rem
}

.timeline-head>p {
    font-size: .9rem;
    color: #716b6a
}

.craft-grid {
    position: relative;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 8vw;
    align-items: center
}

.craft-copy {
    padding-left: 5vw
}

.craft-copy .roman {
    font-family: var(--display);
    font-size: 4rem;
    color: var(--gold)
}

.craft-copy h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: .5rem 0
}

.craft-copy p {
    color: #6f6869;
    font-size: .92rem;
    max-width: 350px
}

.detail-row {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 2.2rem;
    color: #9a8065
}

.detail-row b {
    font-size: 3rem;
    color: var(--coral);
    font-family: var(--display);
    font-weight: 400
}

.detail-row span {
    font-size: .72rem;
    line-height: 1.6;
    border-left: 1px solid var(--line);
    padding-left: 13px
}

.image-stack {
    position: relative;
    padding: 16px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(44, 36, 30, .14);
    transform: rotate(2.4deg)
}

.image-stack img {
    display: block;
    width: 100%;
    aspect-ratio: 1.55;
    object-fit: cover;
    filter: saturate(.9)
}

.tape {
    position: absolute;
    width: 70px;
    height: 22px;
    background: rgba(194, 147, 95, .72);
    top: -11px;
    left: 36%;
    transform: rotate(-3deg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1)
}

.craft-orbit {
    position: absolute;
    right: -3vw;
    top: -2rem;
    color: #e8b64f;
    font-size: 2rem;
    display: flex;
    gap: 1.6rem
}

.spectacle-grid {
    display: grid;
    grid-template-columns: .75fr 1.25fr;
    gap: 8vw;
    align-items: center
}

.spectacle-copy {
    padding-left: 4vw
}

.spectacle-copy>p:not(.kicker) {
    color: #5c6079;
    font-size: .95rem;
    max-width: 380px;
    margin-top: 2rem
}

.mini-facts {
    display: flex;
    gap: 2rem;
    border-top: 1px solid rgba(37, 39, 67, .2);
    margin-top: 3rem;
    padding-top: 1rem;
    color: #76768c;
    font-size: .72rem
}

.mini-facts b {
    display: block;
    font-family: var(--display);
    font-size: 2rem;
    color: var(--coral);
    font-weight: 400;
    line-height: 1
}

.photo-collage {
    position: relative;
    min-height: 410px
}

.photo-collage img {
    position: absolute;
    object-fit: cover;
    box-shadow: 0 22px 30px rgba(28, 25, 54, .18)
}

.collage-large {
    width: 72%;
    height: 330px;
    left: 0;
    top: 35px;
    transform: rotate(-3deg)
}

.collage-small {
    width: 43%;
    height: 235px;
    right: 0;
    bottom: 0;
    transform: rotate(5deg);
    border: 9px solid var(--cream)
}

.collage-note {
    position: absolute;
    right: 8%;
    top: 0;
    font-family: var(--display);
    font-size: 1.1rem;
    letter-spacing: .18em;
    color: #77798f;
    transform: rotate(-8deg)
}

.ritual-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 9vw;
    align-items: center
}

.ritual-photo {
    position: relative
}

.ritual-photo img {
    width: 100%;
    max-height: 530px;
    object-fit: cover;
    filter: grayscale(.12) sepia(.12)
}

.photo-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: #fff;
    font-size: .75rem;
    letter-spacing: .1em;
    text-shadow: 0 1px 6px #000
}

.ritual-copy p:not(.kicker) {
    color: #706e79;
    font-size: .9rem
}

.history-strip {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 7vw;
    align-items: center;
    margin-top: 9rem;
    padding-top: 5rem;
    border-top: 1px solid var(--line)
}

.history-strip img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    filter: sepia(.3) grayscale(.3);
    transform: rotate(-2deg);
    box-shadow: 10px 13px 0 #e6dfd0
}

.history-strip .year {
    font-size: 3.2rem;
    font-family: var(--display);
    color: var(--coral)
}

.history-strip h3 {
    font-family: var(--display);
    font-size: 2rem;
    line-height: 1.35;
    margin: .4rem 0
}

.history-strip p {
    max-width: 370px;
    color: #737179;
    font-size: .88rem
}

.future {
    position: relative;
    min-height: 78vh;
    display: grid;
    place-items: center;
    color: #fff;
    text-align: center;
    background: #14235e url('https://res.cloudinary.com/js8rdscp/image/upload/v1790319070/yanhua/6c325531418545df3db55c03e23c36d0.png') center/cover no-repeat;
    overflow: hidden
}

.future-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 35%, transparent, rgba(6, 10, 44, .5) 70%)
}

.future-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    padding: 4rem 1rem
}

.future h2 {
    font-size: clamp(3rem, 6vw, 6rem)
}

.future .kicker {
    color: #ffcf74
}

.future p:not(.kicker) {
    font-size: .95rem;
    opacity: .85;
    max-width: 520px;
    margin: 2rem auto
}

.outline-button {
    border: 1px solid rgba(255, 255, 255, .7);
    padding: 10px 20px;
    color: #fff;
    font-size: .8rem;
    letter-spacing: .15em;
    transition: .25s
}

.outline-button:hover {
    background: #fff;
    color: var(--blue)
}

.future-ring {
    position: absolute;
    width: 620px;
    height: 180px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    transform: rotate(-25deg);
    right: -7%;
    bottom: 18%
}

.epilogue {
    position: relative;
    min-height: 83vh;
    display: grid;
    place-items: center;
    text-align: center;
    color: #fff;
    background: #17203f url('https://res.cloudinary.com/js8rdscp/image/upload/v1790319045/yanhua/2c4f9c543f2c1fb723048ffadac90b93.png') center/cover no-repeat
}

.epilogue:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(23, 32, 63, .23), rgba(23, 32, 63, .58))
}

.epilogue-content {
    position: relative;
    z-index: 1
}

.epilogue .kicker {
    color: #ffcf74
}

.epilogue h2 {
    font-size: clamp(3.2rem, 7vw, 7rem)
}

.epilogue h2 em {
    color: #ffd079
}

.epilogue p:not(.kicker) {
    opacity: .88
}

.pill-button {
    margin-top: 2rem;
    border-radius: 999px;
    padding: 12px 26px;
    background: var(--coral);
    color: #fff;
    font-size: .8rem;
    letter-spacing: .13em;
    transition: .25s
}

.pill-button:hover {
    background: #ff8985;
    transform: translateY(-3px)
}

.footer-note {
    position: absolute;
    bottom: 2rem;
    z-index: 1;
    left: 0;
    right: 0;
    font-size: .68rem;
    letter-spacing: .2em;
    opacity: .63
}

.footer-note span {
    color: #ffcf74;
    margin-left: 1rem
}

.back-top {
    position: fixed;
    z-index: 15;
    right: 24px;
    bottom: 24px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(37, 39, 67, .25);
    background: rgba(255, 255, 255, .83);
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
    opacity: 0;
    transform: translateY(10px);
    transition: .3s
}

.back-top.show {
    opacity: 1;
    transform: none
}

.reveal {
    opacity: 1;
    transform: none
}

.delay-1 {
    transition-delay: .12s
}

.delay-2 {
    transition-delay: .24s
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-13px)
    }
}

@media(max-width:800px) {
    .site-header {
        height: 62px;
        padding: 0 5vw
    }

    .site-header nav {
        display: none
    }

    .header-cta {
        font-size: .68rem
    }

    .hero {
        min-height: 92vh;
        background-position: 62% center
    }

    .hero-copy {
        padding: 0 8vw;
        margin-top: 4vh
    }

    .hero h1 {
        font-size: clamp(4rem, 19vw, 7rem)
    }

    .hero-character {
        width: 35vw;
        right: 0;
        bottom: -2%
    }

    .orbit-a {
        width: 300px;
        height: 120px;
        right: -15%;
        bottom: 28%
    }

    .orbit-b {
        width: 250px;
        height: 95px;
        right: -5%;
        bottom: 30%
    }

    .hero-sparkle {
        right: 28%;
        bottom: 33%;
        font-size: 2rem
    }

    .section-light,
    .section-cream,
    .section-lilac {
        padding: 6rem 0 6.5rem
    }

    .section-label {
        position: static;
        width: min(88vw, 1120px);
        margin: 0 auto 3rem;
        flex-direction: row;
        gap: 12px;
        justify-content: flex-start
    }

    .section-label span {
        font-size: 2.8rem
    }

    .section-label small {
        margin-top: 6px
    }

    .intro-layout,
    .timeline-head,
    .spectacle-grid,
    .ritual-grid,
    .history-strip {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .intro-text,
    .spectacle-copy {
        max-width: none;
        padding-left: 0
    }

    .origin-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 4rem
    }

    .origin-side {
        min-height: 170px;
        padding: 1rem
    }

    .sticker {
        width: 90px;
        top: -10px
    }

    .craft-grid {
        grid-template-columns: 1fr;
        gap: 3rem
    }

    .craft-copy {
        padding-left: 0
    }

    .craft-orbit {
        right: 3vw;
        top: 42%;
        font-size: 1.5rem
    }

    .photo-collage {
        min-height: 320px
    }

    .collage-large {
        height: 250px
    }

    .collage-small {
        height: 170px
    }

    .ritual-photo img {
        max-height: 380px
    }

    .history-strip {
        margin-top: 5rem;
        padding-top: 3rem
    }

    .future {
        min-height: 72vh
    }

    .future-ring {
        width: 400px;
        height: 130px;
        right: -32%;
        bottom: 15%
    }

    .epilogue {
        min-height: 74vh
    }

    .footer-note {
        padding: 0 1rem;
        font-size: .58rem
    }
}

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

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important
    }
}