/* mystery.boo -- haunted storybook with torn pages */
/* Palette:
   #f5f0e8 aged linen   #1a1210 charcoal ink   #8b4565 dried rose
   #4a6741 faded moss   #d4a574 aged paper     #2d1f2f night purple
   #c4937a terracotta blush
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background: #f5f0e8;
    color: #1a1210;
    font-family: "Cormorant Garamond", "Lora", Georgia, serif;
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.85;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Aged paper grain over the entire page */
.paper-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image:
        radial-gradient(circle at 12% 22%, rgba(196, 147, 122, 0.04) 0 1px, transparent 2px),
        radial-gradient(circle at 78% 64%, rgba(45, 31, 47, 0.05) 0 1px, transparent 2px),
        radial-gradient(circle at 42% 88%, rgba(139, 69, 101, 0.04) 0 1px, transparent 2px),
        radial-gradient(circle at 88% 12%, rgba(74, 103, 65, 0.04) 0 1px, transparent 2px);
    background-size: 220px 220px, 310px 310px, 180px 180px, 260px 260px;
    mix-blend-mode: multiply;
    opacity: 0.9;
}

/* Subtle vignette like a candle in another room */
.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(ellipse at center, transparent 30%, rgba(26, 18, 16, 0.18) 100%);
}

/* ------------------------------------------------------------------ */
/* Site chrome                                                         */
/* ------------------------------------------------------------------ */
.site-chrome {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 2.4rem;
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.92) 0%, rgba(245, 240, 232, 0.0) 100%);
    transition: background 0.6s ease, padding 0.4s ease;
}

.site-chrome.is-condensed {
    padding: 0.85rem 2.4rem;
    background: linear-gradient(to bottom, rgba(245, 240, 232, 0.96) 0%, rgba(245, 240, 232, 0.84) 100%);
    box-shadow: 0 1px 0 rgba(26, 18, 16, 0.08);
}

.chrome-mark {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.82rem;
    color: #2d1f2f;
}

.mark-glyph {
    color: #8b4565;
    font-size: 1rem;
    transform: translateY(2px);
}

.chrome-nav {
    display: flex;
    gap: 1.8rem;
}

.nav-link {
    color: #2d1f2f;
    text-decoration: none;
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.98rem;
    letter-spacing: 0.04em;
    position: relative;
    transition: color 0.4s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 1px;
    background: #8b4565;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.6, 0.05, 0.2, 1);
}

.nav-link:hover {
    color: #8b4565;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

@media (max-width: 720px) {
    .chrome-nav {
        display: none;
    }
    .site-chrome {
        padding: 1rem 1.4rem;
    }
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 7vw 6rem;
    overflow: hidden;
    z-index: 3;
    background:
        radial-gradient(circle at 25% 25%, rgba(139, 69, 101, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(74, 103, 65, 0.06) 2px, transparent 2px),
        linear-gradient(135deg, #f5f0e8 0%, #efe6d6 100%);
    background-size: 60px 60px, 60px 60px, 100% 100%;
}

.hero-watercolor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 95% 20%, rgba(139, 69, 101, 0.22) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 70%, rgba(196, 147, 122, 0.18) 0%, transparent 60%),
        radial-gradient(ellipse at 110% 100%, rgba(45, 31, 47, 0.20) 0%, transparent 50%),
        radial-gradient(ellipse at 5% 90%, rgba(74, 103, 65, 0.10) 0%, transparent 55%);
    mix-blend-mode: multiply;
}

.hero-floral {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 18% 32%, rgba(139, 69, 101, 0.10) 3px, transparent 4px),
        radial-gradient(circle at 22% 36%, rgba(139, 69, 101, 0.06) 2px, transparent 3px),
        radial-gradient(circle at 14% 36%, rgba(139, 69, 101, 0.06) 2px, transparent 3px),
        radial-gradient(circle at 18% 28%, rgba(74, 103, 65, 0.08) 2px, transparent 3px),
        radial-gradient(circle at 18% 36%, rgba(74, 103, 65, 0.08) 2px, transparent 3px);
    background-size: 180px 180px;
    opacity: 0.85;
}

.hero-inner {
    position: relative;
    z-index: 4;
    max-width: 720px;
    transform: translateZ(0);
}

.kicker {
    font-family: "Dancing Script", "Cormorant Garamond", cursive;
    font-size: 1.2rem;
    color: #8b4565;
    letter-spacing: 0.05em;
    margin-bottom: 1.2rem;
    transform: rotate(-1.5deg);
    display: inline-block;
}

.hero-title {
    font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.95;
    color: #1a1210;
    margin-bottom: 1.8rem;
    letter-spacing: 0.01em;
}

.title-line {
    display: inline-block;
    transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.9s ease;
}

.title-line-1 {
    color: #1a1210;
}

.title-dot {
    display: inline-block;
    color: #8b4565;
    transform: translateY(-0.05em);
}

.title-line-2 {
    color: #2d1f2f;
    font-style: italic;
    margin-left: 0.05em;
}

.hero-sub {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.7;
    color: #2d1f2f;
    max-width: 560px;
    margin-bottom: 2.4rem;
}

.hero-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: "Dancing Script", cursive;
    font-size: 1.1rem;
    color: #8b4565;
}

.byline-rule {
    width: 64px;
    height: 1px;
    background: linear-gradient(to right, transparent, #8b4565 30%, #8b4565 70%, transparent);
}

.scroll-cue {
    position: absolute;
    bottom: 2.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    z-index: 4;
    color: #2d1f2f;
    font-family: "Dancing Script", cursive;
    font-size: 1rem;
    opacity: 0.75;
    transition: opacity 0.6s ease;
}

.cue-arrow {
    transform: rotate(90deg);
    color: #8b4565;
    font-size: 1.4rem;
    animation: cue-bob 2.6s ease-in-out infinite;
}

@keyframes cue-bob {
    0%, 100% { transform: rotate(90deg) translateX(0); }
    50%      { transform: rotate(90deg) translateX(6px); }
}

/* ------------------------------------------------------------------ */
/* Torn dividers (between sections)                                    */
/* ------------------------------------------------------------------ */
.torn-divider {
    position: relative;
    height: 90px;
    margin-top: -40px;
    margin-bottom: -40px;
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.torn-divider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(26, 18, 16, 0.18) 30%, rgba(26, 18, 16, 0.18) 70%, transparent);
    height: 1px;
    top: 50%;
}

.divider-flourish {
    position: relative;
    z-index: 2;
    background: #f5f0e8;
    padding: 0 1.4rem;
    color: #8b4565;
    font-size: 1.6rem;
    transform: translateY(-2px);
}

.chapter-dark + .torn-divider .divider-flourish,
.colophon + .torn-divider .divider-flourish {
    background: #2d1f2f;
    color: #d4a574;
}

/* ------------------------------------------------------------------ */
/* Chapter sections (alternating diagonal)                             */
/* ------------------------------------------------------------------ */
.chapter {
    position: relative;
    padding: 9rem 7vw;
    overflow: hidden;
    z-index: 4;
}

.chapter-light {
    background:
        radial-gradient(ellipse at 80% 20%, rgba(139, 69, 101, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 10% 90%, rgba(74, 103, 65, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, #f5f0e8 0%, #efe7d7 100%);
    color: #1a1210;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin-top: -2rem;
    margin-bottom: -2rem;
}

.chapter-dark {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(139, 69, 101, 0.30) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 80%, rgba(196, 147, 122, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #2d1f2f 0%, #1a1210 100%);
    color: #f5f0e8;
    clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
    margin-top: -3rem;
    margin-bottom: -3rem;
}

.chapter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.chapter-grid.reversed {
    grid-template-columns: 2fr minmax(220px, 1fr);
}

@media (max-width: 880px) {
    .chapter {
        padding: 7rem 6vw;
    }
    .chapter-grid,
    .chapter-grid.reversed {
        grid-template-columns: 1fr;
        gap: 2.4rem;
    }
}

.chapter-side {
    position: relative;
    padding-right: 2rem;
    border-right: 1px solid rgba(139, 69, 101, 0.4);
}

.chapter-grid.reversed .chapter-side {
    padding-right: 0;
    padding-left: 2rem;
    border-right: none;
    border-left: 1px solid rgba(212, 165, 116, 0.4);
    text-align: right;
}

.chapter-side-dark {
    border-color: rgba(212, 165, 116, 0.5);
}

.chapter-marker {
    font-family: "Dancing Script", cursive;
    font-size: 1.05rem;
    color: #8b4565;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.chapter-side-dark .chapter-marker {
    color: #d4a574;
}

.chapter-numeral {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: clamp(4rem, 9vw, 7rem);
    line-height: 1;
    color: #8b4565;
    margin-bottom: 1.4rem;
    transform: translateX(-4px);
}

.chapter-side-dark .chapter-numeral {
    color: #c4937a;
}

.chapter-pull {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.55;
    color: #2d1f2f;
    border-top: 1px solid rgba(139, 69, 101, 0.3);
    padding-top: 1rem;
    max-width: 320px;
}

.chapter-side-dark .chapter-pull {
    color: #f5f0e8;
    border-color: rgba(212, 165, 116, 0.35);
}

.chapter-grid.reversed .chapter-pull {
    margin-left: auto;
}

.chapter-body {
    max-width: 640px;
}

.chapter-title {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.05;
    color: #1a1210;
    margin-bottom: 1.6rem;
    letter-spacing: 0.005em;
}

.chapter-title-dark {
    color: #f5f0e8;
}

.chapter-lede {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    color: inherit;
}

.chapter-body p {
    margin-bottom: 1.1rem;
}

.chapter-body p::first-letter {
    /* tasteful drop, applied loosely */
}

.chapter-body-dark p {
    color: #efe7d7;
}

.chapter-list {
    list-style: none;
    margin-top: 1.6rem;
    padding-left: 0;
    border-top: 1px dashed rgba(139, 69, 101, 0.4);
    padding-top: 1.2rem;
}

.chapter-list li {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
    font-family: "Dancing Script", cursive;
    font-size: 1.2rem;
    color: #8b4565;
}

.list-glyph {
    color: #4a6741;
    font-size: 0.9rem;
    transform: translateY(-2px);
}

/* Stains placed at section corners */
.chapter-stain {
    position: absolute;
    width: 380px;
    height: 380px;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.stain-tl {
    top: -120px;
    left: -120px;
    background: radial-gradient(circle at 60% 60%, rgba(139, 69, 101, 0.20) 0%, rgba(139, 69, 101, 0.10) 30%, transparent 65%);
}

.stain-br {
    bottom: -140px;
    right: -120px;
    background: radial-gradient(circle at 40% 40%, rgba(196, 147, 122, 0.25) 0%, rgba(196, 147, 122, 0.10) 30%, transparent 65%);
}

.stain-tr {
    top: -140px;
    right: -120px;
    background: radial-gradient(circle at 40% 60%, rgba(139, 69, 101, 0.30) 0%, rgba(139, 69, 101, 0.10) 35%, transparent 70%);
}

.stain-bl {
    bottom: -140px;
    left: -120px;
    background: radial-gradient(circle at 60% 40%, rgba(74, 103, 65, 0.20) 0%, rgba(74, 103, 65, 0.10) 35%, transparent 70%);
}

.dark-stain {
    mix-blend-mode: screen;
    opacity: 0.6;
}

/* Herbarium for chapter two */
.herbarium {
    margin-top: 2.4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.6rem;
    border-top: 1px dashed rgba(212, 165, 116, 0.4);
    padding-top: 2rem;
}

.herb {
    position: relative;
    padding: 1.2rem 1.2rem 1.4rem;
    background: rgba(245, 240, 232, 0.05);
    border-left: 1px solid rgba(212, 165, 116, 0.4);
    transform: rotate(-0.5deg);
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1), background 0.5s ease;
}

.herb:nth-child(2) { transform: rotate(0.7deg); }
.herb:nth-child(3) { transform: rotate(-0.3deg); }

.herb:hover {
    transform: rotate(0deg);
    background: rgba(245, 240, 232, 0.10);
}

.herb-name {
    font-family: "Cinzel Decorative", serif;
    font-size: 1.05rem;
    color: #d4a574;
    letter-spacing: 0.06em;
    margin-bottom: 0.2rem;
}

.herb-latin {
    font-family: "Cormorant Garamond", serif;
    font-size: 0.95rem;
    color: #c4937a;
    margin-bottom: 0.6rem;
}

.herb-note {
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    line-height: 1.5;
    color: #efe7d7;
}

/* Letters list (chapter three) */
.letter-list {
    list-style: none;
    counter-reset: letters;
    margin-top: 1.6rem;
    padding-left: 0;
}

.letter {
    position: relative;
    padding: 1.2rem 1.4rem 1.4rem 2.2rem;
    margin-bottom: 1.4rem;
    background: rgba(212, 165, 116, 0.10);
    border-left: 3px solid #8b4565;
    transform: rotate(-0.4deg);
    transition: transform 0.6s ease, background 0.4s ease;
}

.letter:nth-child(2) { transform: rotate(0.5deg); }
.letter:nth-child(3) { transform: rotate(-0.2deg); }

.letter:hover {
    transform: rotate(0deg);
    background: rgba(212, 165, 116, 0.18);
}

.letter::before {
    content: "\2709";
    position: absolute;
    left: 0.6rem;
    top: 1.1rem;
    color: #8b4565;
    font-size: 1.05rem;
}

.letter-meta {
    font-family: "Dancing Script", cursive;
    color: #8b4565;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.letter-body {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.65;
    color: #1a1210;
}

/* ------------------------------------------------------------------ */
/* Ghost annotations                                                   */
/* ------------------------------------------------------------------ */
.ghost-annotation {
    position: absolute;
    font-family: "Dancing Script", cursive;
    font-size: 1.5rem;
    color: rgba(45, 31, 47, 0.12);
    pointer-events: none;
    user-select: none;
    z-index: 2;
    white-space: nowrap;
}

.ghost-light {
    color: rgba(245, 240, 232, 0.10);
}

.ghost-1 {
    top: 18%;
    right: 8%;
    transform: rotate(-8deg);
    font-size: 2.1rem;
}

.ghost-2 {
    top: 60%;
    left: 6%;
    transform: rotate(4deg);
    font-size: 1.8rem;
}

.ghost-3 {
    top: 82%;
    right: 18%;
    transform: rotate(-3deg);
    font-size: 1.6rem;
}

.ghost-4 {
    top: 14%;
    right: 12%;
    transform: rotate(-6deg);
    font-size: 1.9rem;
}

.ghost-5 {
    top: 78%;
    left: 8%;
    transform: rotate(5deg);
    font-size: 2rem;
}

.ghost-6 {
    top: 16%;
    right: 6%;
    transform: rotate(-4deg);
    font-size: 1.7rem;
}

.ghost-7 {
    top: 8%;
    left: 8%;
    transform: rotate(-3deg);
    font-size: 1.8rem;
}

/* ------------------------------------------------------------------ */
/* Colophon                                                            */
/* ------------------------------------------------------------------ */
.colophon {
    position: relative;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(139, 69, 101, 0.18) 0%, transparent 55%),
        linear-gradient(180deg, #2d1f2f 0%, #1a1210 100%);
    color: #f5f0e8;
    padding: 9rem 7vw 7rem;
    overflow: hidden;
    z-index: 4;
    clip-path: polygon(0 3%, 100% 0, 100% 100%, 0 100%);
    margin-top: -3rem;
    text-align: center;
}

.colophon-stain {
    position: absolute;
    width: 600px;
    height: 600px;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle at 50% 50%, rgba(196, 147, 122, 0.18) 0%, rgba(139, 69, 101, 0.10) 35%, transparent 65%);
    pointer-events: none;
}

.colophon-inner {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 0 auto;
}

.colophon-monogram {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: 2.6rem;
    color: #d4a574;
    letter-spacing: 0.4em;
    margin-bottom: 1.4rem;
}

.colophon-title {
    font-family: "Cinzel Decorative", serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #f5f0e8;
    margin-bottom: 1.4rem;
    line-height: 1.05;
}

.colophon-text {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.7;
    color: #efe7d7;
    margin-bottom: 2.2rem;
}

.colophon-sign {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: "Dancing Script", cursive;
    color: #c4937a;
    font-size: 1.25rem;
    margin-bottom: 1.4rem;
}

.sign-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right, transparent, #c4937a, transparent);
}

.colophon-foot {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.6);
    letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ */
/* Page turner (corner button)                                         */
/* ------------------------------------------------------------------ */
.page-turner {
    position: fixed;
    bottom: 1.6rem;
    right: 1.6rem;
    width: 64px;
    height: 64px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-turner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.turner-arc {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(245, 240, 232, 0.95) 0%, rgba(212, 165, 116, 0.9) 60%, rgba(139, 69, 101, 0.9) 100%);
    box-shadow: 0 4px 18px rgba(26, 18, 16, 0.25), inset 0 0 0 1px rgba(26, 18, 16, 0.15);
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.turner-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2d1f2f;
    font-size: 1.4rem;
    transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.page-turner:hover .turner-arc {
    transform: scale(1.06) rotate(-6deg);
}

.page-turner:hover .turner-glyph {
    transform: translateX(3px);
}

/* ------------------------------------------------------------------ */
/* Reveal animations                                                   */
/* ------------------------------------------------------------------ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.1, 1), transform 1.1s cubic-bezier(0.2, 0.7, 0.1, 1);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }
.reveal.delay-4 { transition-delay: 0.48s; }

.ghost-annotation {
    transition: opacity 1.4s ease, transform 1.4s ease;
}

.ghost-annotation.is-stirring {
    opacity: 1;
}

/* Title letters get a soft fade-in */
.hero-title .title-line,
.hero-title .title-dot {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.4s cubic-bezier(0.2, 0.7, 0.1, 1), transform 1.4s cubic-bezier(0.2, 0.7, 0.1, 1);
}

body.is-ready .hero-title .title-line-1 { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
body.is-ready .hero-title .title-dot    { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
body.is-ready .hero-title .title-line-2 { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }

/* Parallax for floral pattern (driven by JS variable) */
.hero-floral {
    transform: translate3d(var(--floral-x, 0), var(--floral-y, 0), 0);
    transition: transform 0.6s ease-out;
}

.hero-watercolor {
    transform: translate3d(calc(var(--floral-x, 0) * -0.6), calc(var(--floral-y, 0) * -0.6), 0);
    transition: transform 0.6s ease-out;
}

/* Cursor smudge -- a soft blooming watercolor */
.cursor-smudge {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 220px;
    pointer-events: none;
    z-index: 9;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 50% 50%, rgba(139, 69, 101, 0.18) 0%, rgba(196, 147, 122, 0.10) 35%, transparent 70%);
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.cursor-smudge.is-active {
    opacity: 1;
}

@media (max-width: 720px) {
    .cursor-smudge { display: none; }
    .hero { padding: 7rem 6vw 5rem; }
    .ghost-annotation { font-size: 1.2rem; }
    .ghost-1, .ghost-2, .ghost-3, .ghost-4, .ghost-5, .ghost-6, .ghost-7 { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hero-title .title-line,
    .hero-title .title-dot,
    .ghost-annotation,
    .cue-arrow {
        transition: none !important;
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}
