/* ============================================
   haskell.quest - Parallax Storytelling Journey
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #2D1B69;
    background: #2D1B69;
    overflow-x: hidden;
    position: relative;
}

/* --- Quest Path SVG --- */
#quest-path-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

#quest-path {
    transition: stroke-dashoffset 0.05s linear;
}

/* --- Parallax Sections --- */
.parallax-section {
    position: relative;
    overflow: hidden;
}

#quest-gate {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chapter-section {
    min-height: 120vh;
    position: relative;
    padding: 120px 20px 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

/* --- Landscape Layers (shared) --- */
.landscape-layer {
    position: absolute;
    left: 0;
    width: 100%;
    will-change: transform;
}

/* --- Quest Gate Landscape --- */
#quest-gate .layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #1a0f45 0%, #2D1B69 40%, #2D1B69 100%);
    z-index: 1;
}

#quest-gate .layer-far::before {
    content: '';
    position: absolute;
    bottom: 30%;
    left: 0;
    width: 100%;
    height: 40%;
    background: #2D1B69;
    clip-path: polygon(0% 100%, 5% 60%, 12% 75%, 20% 40%, 28% 55%, 35% 25%, 42% 45%, 50% 15%, 58% 40%, 65% 20%, 72% 50%, 80% 30%, 88% 55%, 95% 35%, 100% 60%, 100% 100%);
}

#quest-gate .layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

#quest-gate .layer-mid::before {
    content: '';
    position: absolute;
    bottom: 15%;
    left: 0;
    width: 100%;
    height: 45%;
    background: #4A3B8F;
    clip-path: polygon(0% 100%, 0% 70%, 8% 55%, 15% 65%, 22% 45%, 30% 58%, 38% 38%, 45% 52%, 52% 35%, 60% 50%, 68% 40%, 75% 55%, 82% 42%, 90% 58%, 100% 45%, 100% 100%);
}

#quest-gate .layer-near {
    top: 0;
    height: 100%;
    z-index: 3;
}

#quest-gate .layer-near::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: #6B5ECD;
    clip-path: polygon(0% 100%, 0% 60%, 5% 55%, 12% 48%, 20% 52%, 28% 45%, 35% 50%, 42% 42%, 50% 48%, 58% 40%, 65% 46%, 72% 42%, 80% 48%, 88% 44%, 95% 50%, 100% 45%, 100% 100%);
}

#quest-gate .layer-foreground {
    bottom: 0;
    height: 30%;
    z-index: 4;
    background: linear-gradient(180deg, transparent 0%, #2D5A27 30%, #234d1f 100%);
    clip-path: polygon(0% 30%, 3% 28%, 6% 32%, 10% 25%, 14% 30%, 18% 22%, 22% 28%, 26% 20%, 30% 26%, 34% 22%, 38% 28%, 42% 18%, 46% 24%, 50% 20%, 54% 26%, 58% 22%, 62% 28%, 66% 20%, 70% 24%, 74% 18%, 78% 26%, 82% 22%, 86% 28%, 90% 24%, 94% 30%, 98% 26%, 100% 22%, 100% 100%, 0% 100%);
}

/* --- Signpost --- */
.signpost {
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(40px);
    opacity: 0;
    animation: signpostReveal 500ms ease-out 1500ms forwards;
}

@keyframes signpostReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.signpost-plank {
    background: #8B7355;
    padding: 16px 40px 16px 32px;
    clip-path: polygon(0% 10%, 95% 0%, 100% 50%, 95% 100%, 0% 90%);
    transform: rotate(-3deg);
    box-shadow: 3px 4px 8px rgba(0,0,0,0.3);
    position: relative;
}

.signpost-plank::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent 0px,
        transparent 8px,
        rgba(0,0,0,0.05) 8px,
        rgba(0,0,0,0.05) 9px
    );
    pointer-events: none;
}

.signpost-text {
    font-family: 'MedievalSharp', cursive;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #FFF8E7;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    white-space: nowrap;
}

.signpost-post {
    width: 12px;
    height: 80px;
    background: linear-gradient(90deg, #6b5235 0%, #8B7355 40%, #6b5235 100%);
    border-radius: 2px;
    box-shadow: 2px 0 4px rgba(0,0,0,0.2);
}

/* --- Scroll Hint --- */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 600ms ease-out 2500ms forwards;
}

.scroll-hint span {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFD93D;
    text-shadow: 0 0 10px rgba(255, 217, 61, 0.4);
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #FFD93D;
    border-bottom: 2px solid #FFD93D;
    transform: rotate(45deg);
    animation: bounceArrow 1.5s ease-in-out infinite;
}

@keyframes bounceArrow {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* --- Chapter Landscapes --- */
.chapter-landscape {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

/* Chapter 1 - Types Forest (Greens) */
.ch1-layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #2D1B69 0%, #1a3a1a 40%, #2D5A27 100%);
    z-index: 1;
}

.ch1-layer-far::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 50%;
    background: #1a3a1a;
    clip-path: polygon(0% 100%, 5% 50%, 15% 70%, 25% 35%, 35% 60%, 45% 25%, 55% 50%, 65% 30%, 75% 55%, 85% 40%, 95% 65%, 100% 50%, 100% 100%);
}

.ch1-layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

.ch1-layer-mid::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 50%;
    background: #2D5A27;
    clip-path: polygon(0% 100%, 3% 65%, 10% 50%, 18% 62%, 25% 42%, 32% 55%, 40% 38%, 48% 52%, 55% 35%, 62% 48%, 70% 40%, 78% 55%, 85% 45%, 92% 58%, 100% 42%, 100% 100%);
}

.ch1-layer-near {
    top: 0;
    height: 100%;
    z-index: 3;
}

.ch1-layer-near::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(180deg, #3a7a35 0%, #2D5A27 100%);
}

/* Chapter 2 - Recursion Lake (Blues) */
.ch2-layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #2D5A27 0%, #1a3d5c 30%, #3A7CA5 100%);
    z-index: 1;
}

.ch2-layer-far::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 40%;
    background: #1a3d5c;
    clip-path: polygon(0% 100%, 8% 60%, 18% 72%, 28% 48%, 38% 65%, 48% 40%, 58% 58%, 68% 42%, 78% 60%, 88% 50%, 100% 65%, 100% 100%);
}

.ch2-layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

.ch2-layer-mid::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 0;
    width: 100%;
    height: 45%;
    background: #3A7CA5;
    clip-path: polygon(0% 100%, 5% 55%, 15% 65%, 25% 45%, 35% 58%, 45% 40%, 55% 52%, 65% 38%, 75% 50%, 85% 42%, 95% 55%, 100% 48%, 100% 100%);
}

.ch2-layer-near {
    top: 0;
    height: 100%;
    z-index: 3;
}

.ch2-layer-near::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(180deg, rgba(58, 124, 165, 0.6) 0%, #2a6085 60%, #1a4a6a 100%);
}

/* Lake water reflection effect */
.ch2-layer-near::after {
    content: '';
    position: absolute;
    bottom: 5%;
    left: 10%;
    width: 80%;
    height: 15%;
    background: linear-gradient(180deg, rgba(58, 124, 165, 0.3) 0%, rgba(255, 255, 255, 0.08) 50%, rgba(58, 124, 165, 0.3) 100%);
    border-radius: 50%;
    animation: lakeShimmer 4s ease-in-out infinite;
}

@keyframes lakeShimmer {
    0%, 100% { opacity: 0.3; transform: scaleX(1); }
    50% { opacity: 0.6; transform: scaleX(1.05); }
}

/* Chapter 3 - Functor Peaks (Purples/Silvers) */
.ch3-layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #3A7CA5 0%, #2D1B69 40%, #4A3B8F 100%);
    z-index: 1;
}

.ch3-layer-far::before {
    content: '';
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    height: 55%;
    background: #2D1B69;
    clip-path: polygon(0% 100%, 3% 70%, 10% 40%, 15% 55%, 22% 20%, 28% 42%, 35% 10%, 42% 35%, 50% 5%, 58% 30%, 65% 15%, 72% 40%, 80% 25%, 88% 50%, 95% 35%, 100% 55%, 100% 100%);
}

.ch3-layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

.ch3-layer-mid::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #6B5ECD 0%, #B8C4D0 100%);
    clip-path: polygon(0% 100%, 5% 60%, 12% 45%, 20% 55%, 28% 30%, 35% 48%, 42% 25%, 50% 42%, 58% 28%, 65% 45%, 72% 35%, 80% 50%, 88% 38%, 95% 52%, 100% 40%, 100% 100%);
}

.ch3-layer-near {
    top: 0;
    height: 100%;
    z-index: 3;
}

.ch3-layer-near::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, #6B5ECD 0%, #4A3B8F 100%);
}

/* Chapter 4 - Monad Kingdom (Golds) */
.ch4-layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #4A3B8F 0%, #2D1B69 20%, #3a2a10 80%, #D4A017 100%);
    z-index: 1;
}

.ch4-layer-far::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    width: 100%;
    height: 40%;
    background: #2D1B69;
    clip-path: polygon(0% 100%, 10% 65%, 20% 50%, 30% 60%, 40% 35%, 50% 55%, 60% 40%, 70% 58%, 80% 45%, 90% 60%, 100% 50%, 100% 100%);
}

.ch4-layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

.ch4-layer-mid::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, #8B7355 0%, #D4A017 100%);
    clip-path: polygon(0% 100%, 5% 55%, 15% 42%, 25% 52%, 35% 35%, 45% 48%, 55% 30%, 65% 45%, 75% 38%, 85% 50%, 95% 42%, 100% 55%, 100% 100%);
}

/* Golden castle silhouette */
.ch4-layer-mid::after {
    content: '';
    position: absolute;
    top: 8%;
    left: 35%;
    width: 30%;
    height: 25%;
    background: #D4A017;
    clip-path: polygon(
        10% 100%, 10% 40%, 15% 40%, 15% 20%, 20% 20%, 20% 40%,
        30% 40%, 30% 30%, 35% 30%, 35% 10%, 40% 10%, 40% 0%, 45% 0%, 45% 5%, 50% 5%, 50% 0%, 55% 0%, 55% 5%, 60% 5%, 60% 0%, 65% 0%, 65% 10%, 70% 10%, 70% 30%,
        75% 30%, 75% 40%, 85% 40%, 85% 20%, 90% 20%, 90% 40%, 95% 40%, 95% 100%
    );
    opacity: 0.6;
}

.ch4-layer-near {
    top: 0;
    height: 100%;
    z-index: 3;
}

.ch4-layer-near::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25%;
    background: linear-gradient(180deg, #D4A017 0%, #b8860b 100%);
}

/* --- Chapter Milestones --- */
.chapter-milestone {
    position: relative;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: scale(0);
}

.chapter-milestone.visible {
    animation: milestoneReveal 500ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes milestoneReveal {
    0% { opacity: 0; transform: scale(0); }
    70% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 1; transform: scale(1); }
}

.chapter-milestone.visible .milestone-icon {
    animation: milestoneGlow 300ms ease-out 400ms forwards;
}

@keyframes milestoneGlow {
    0% { filter: drop-shadow(0 0 0px #FFD93D); }
    50% { filter: drop-shadow(0 0 20px #FFD93D); }
    100% { filter: drop-shadow(0 0 5px rgba(255, 217, 61, 0.3)); }
}

.milestone-label {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFD93D;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* --- Parchment Cards --- */
.parchment-card {
    position: relative;
    z-index: 12;
    max-width: 560px;
    width: 100%;
    background: #FFF8E7;
    border: 2px solid #8B7355;
    border-radius: 4px;
    padding: 40px 36px;
    box-shadow: 3px 3px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transform: translateX(-40px);
}

/* Parchment paper texture */
.parchment-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(139, 115, 85, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 30%, rgba(139, 115, 85, 0.03) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 80%, rgba(139, 115, 85, 0.02) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 4px;
}

.parchment-card.card-right {
    transform: translateX(40px);
    align-self: flex-end;
}

.parchment-card.card-left {
    align-self: flex-start;
}

.parchment-card.revealed {
    animation: cardRevealLeft 400ms ease-out forwards;
}

.parchment-card.card-right.revealed {
    animation: cardRevealRight 400ms ease-out forwards;
}

@keyframes cardRevealLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes cardRevealRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Card corner decorations */
.card-corner {
    position: absolute;
    width: 20px;
    height: 20px;
}

.card-corner::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-color: #8B7355;
    border-style: solid;
    border-width: 0;
}

.card-corner.tl { top: 6px; left: 6px; }
.card-corner.tl::before { border-top-width: 1px; border-left-width: 1px; border-top-left-radius: 6px; }
.card-corner.tr { top: 6px; right: 6px; }
.card-corner.tr::before { border-top-width: 1px; border-right-width: 1px; border-top-right-radius: 6px; }
.card-corner.bl { bottom: 6px; left: 6px; }
.card-corner.bl::before { border-bottom-width: 1px; border-left-width: 1px; border-bottom-left-radius: 6px; }
.card-corner.br { bottom: 6px; right: 6px; }
.card-corner.br::before { border-bottom-width: 1px; border-right-width: 1px; border-bottom-right-radius: 6px; }

/* --- Typography --- */
.chapter-title {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #2D1B69;
    margin-bottom: 20px;
}

.quest-text {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.8;
    color: #2D1B69;
    margin-bottom: 20px;
}

.quest-text:last-child {
    margin-bottom: 0;
}

.quest-text strong {
    font-weight: 600;
    color: #4A3B8F;
}

.quest-text code {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    background: #F5ECD7;
    padding: 2px 6px;
    border-radius: 3px;
    color: #2D1B69;
}

/* --- Code Blocks --- */
.code-block {
    background: #F5ECD7;
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    position: relative;
    border-left: 3px solid #8B7355;
}

.code-block[data-chapter-accent="types"] {
    border-left-color: #2D5A27;
}

.code-block[data-chapter-accent="recursion"] {
    border-left-color: #3A7CA5;
}

.code-block[data-chapter-accent="functors"] {
    border-left-color: #6B5ECD;
}

.code-block[data-chapter-accent="monads"] {
    border-left-color: #D4A017;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    font-weight: 400;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2D1B69;
    white-space: pre;
}

/* Typewriter cursor for active code blocks */
.code-block.typing::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #2D1B69;
    animation: blink 600ms step-end infinite;
    vertical-align: text-bottom;
    margin-left: 1px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* --- Chapter color transition overlays --- */
.chapter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    z-index: 5;
    pointer-events: none;
}

#chapter-types::before {
    background: linear-gradient(180deg, #2D1B69 0%, transparent 100%);
}

#chapter-recursion::before {
    background: linear-gradient(180deg, #2D5A27 0%, transparent 100%);
}

#chapter-functors::before {
    background: linear-gradient(180deg, #1a3d5c 0%, transparent 100%);
}

#chapter-monads::before {
    background: linear-gradient(180deg, #4A3B8F 0%, transparent 100%);
}

/* --- Achievement Shrine --- */
#achievement-shrine {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 20px;
}

.shrine-landscape {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.shrine-layer-far {
    top: 0;
    height: 100%;
    background: linear-gradient(180deg, #8B7355 0%, #D4A017 30%, #FFD93D 60%, #FFF8E7 100%);
    z-index: 1;
}

.shrine-layer-mid {
    top: 0;
    height: 100%;
    z-index: 2;
}

.shrine-layer-mid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(180deg, transparent 0%, rgba(255, 248, 231, 0.3) 100%);
}

.shrine-banner {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 600px;
    padding: 60px 50px;
    background: linear-gradient(135deg, #FFF8E7 0%, #F5ECD7 100%);
    clip-path: polygon(5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%, 0% 5%);
    box-shadow: 0 0 40px rgba(255, 217, 61, 0.3), 3px 3px 8px rgba(0,0,0,0.15);
    border: 2px solid #D4A017;
}

.shrine-title {
    font-family: 'MedievalSharp', cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    color: #D4A017;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.shrine-text {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #2D1B69;
    margin-bottom: 30px;
}

.shrine-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.badge span {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8B7355;
}

/* --- Responsive --- */
@media (max-width: 700px) {
    .chapter-section {
        padding: 80px 16px 120px;
        gap: 60px;
    }

    .parchment-card {
        max-width: 100%;
        padding: 28px 24px;
    }

    .parchment-card.card-left,
    .parchment-card.card-right {
        align-self: center;
    }

    .shrine-banner {
        padding: 40px 30px;
    }

    .shrine-badges {
        gap: 16px;
    }
}

@media (min-width: 701px) {
    .chapter-section {
        padding-left: 60px;
        padding-right: 60px;
    }

    .parchment-card.card-left {
        margin-right: auto;
        margin-left: 5%;
    }

    .parchment-card.card-right {
        margin-left: auto;
        margin-right: 5%;
    }
}

/* --- Opening animation layers --- */
#quest-gate .layer-far {
    opacity: 0;
    animation: layerFadeIn 800ms ease-out forwards;
}

#quest-gate .layer-mid {
    opacity: 0;
    animation: layerFadeIn 800ms ease-out 600ms forwards;
}

#quest-gate .layer-near {
    opacity: 0;
    animation: layerFadeIn 800ms ease-out 1200ms forwards;
}

#quest-gate .layer-foreground {
    opacity: 0;
    animation: layerFadeIn 600ms ease-out 1400ms forwards;
}

@keyframes layerFadeIn {
    to { opacity: 1; }
}
