/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --deep-twilight: #2b1f3b;
    --midnight: #120e1e;
    --dark-purple: #1a1529;
    --plum: #3d2a52;
    --lavender: #8e7bae;
    --mist: #d4cce0;
    --frost: #e6dff0;
    --parchment: #f4efe6;
    --bioluminescent: #a8e6cf;
    --bark: #5c4a3a;
    --shadow: #4a3f5e;
    --golden: #c9a87c;
    --rose: #e8b4c8;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color: var(--mist);
    background: var(--midnight);
    overflow-x: hidden;
    line-height: 1.7;
    font-size: 16px;
    letter-spacing: 0.01em;
}

/* === SCENES === */
.scene {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    overflow: hidden;
}

/* === THE CANOPY (HERO) === */
#canopy {
    background: linear-gradient(180deg, #0a0812 0%, var(--midnight) 40%, var(--dark-purple) 100%);
}

#fireflies {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.canopy-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1.08;
    letter-spacing: 0.02em;
    color: var(--parchment);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.5s ease forwards 0.3s;
}

.hero-title .accent {
    color: var(--bioluminescent);
    display: block;
    font-weight: 700;
    font-size: 0.6em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-style: italic;
    color: var(--lavender);
    opacity: 0;
    animation: fadeUp 1.5s ease forwards 0.8s;
    margin-bottom: 4rem;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: fadeUp 1.5s ease forwards 1.3s;
}

.scroll-hint span {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--lavender);
    opacity: 0.6;
}

.scroll-arrow {
    animation: bobDown 2s ease-in-out infinite;
}

/* Tree silhouettes */
.tree-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.tree {
    position: absolute;
    bottom: 0;
    height: 70%;
}

.tree-left {
    left: -2%;
    width: 15%;
}

.tree-right {
    right: -2%;
    width: 15%;
    transform: scaleX(-1);
}

/* === FIRST CLEARING === */
#clearing {
    background: radial-gradient(ellipse at center bottom, #1e1635 0%, var(--midnight) 70%);
}

.clearing-content {
    text-align: center;
    max-width: 700px;
    padding: 2rem;
}

.section-icon {
    margin-bottom: 2rem;
    opacity: 0.8;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--parchment);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
    line-height: 1.08;
}

.section-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: var(--mist);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.rune-divider {
    margin-top: 1rem;
    opacity: 0.6;
}

/* === TALENT SPRITES === */
#sprites {
    background: linear-gradient(180deg, var(--midnight) 0%, #15102a 50%, var(--midnight) 100%);
    min-height: 100vh;
    padding: 6rem 2rem;
}

.sprites-content {
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.sprite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.sprite-card {
    position: relative;
    background: rgba(61, 42, 82, 0.25);
    border: 1px solid rgba(142, 123, 174, 0.2);
    border-radius: 16px;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    overflow: hidden;
}

.sprite-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 230, 207, 0.4);
    box-shadow: 0 20px 60px rgba(168, 230, 207, 0.08);
}

.sprite-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(168, 230, 207, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -60%);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.sprite-card:hover .sprite-glow {
    opacity: 1;
}

.sprite-icon {
    margin-bottom: 1.5rem;
}

.sprite-name {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--parchment);
    margin-bottom: 0.4rem;
}

.sprite-type {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.95rem;
    color: var(--lavender);
}

/* === ANCIENT ROOTS (SERVICES) === */
#roots {
    background: radial-gradient(ellipse at center, #1a1230 0%, var(--midnight) 80%);
    padding: 6rem 2rem;
}

.roots-content {
    text-align: center;
    max-width: 1000px;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(27, 19, 43, 0.6);
    border: 1px solid rgba(61, 42, 82, 0.5);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--lavender);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--parchment);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--mist);
    line-height: 1.7;
    opacity: 0.8;
}

/* === DEEP ROOTS (CONTACT) === */
#deeproots {
    background: linear-gradient(180deg, var(--midnight) 0%, #0d0a16 100%);
    padding: 6rem 2rem;
}

.deeproots-content {
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.contact-sigil {
    margin-bottom: 2rem;
    animation: slowSpin 30s linear infinite;
}

.contact-form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: rgba(61, 42, 82, 0.2);
    border: 1px solid rgba(142, 123, 174, 0.3);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: var(--parchment);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--lavender);
    opacity: 0.5;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--bioluminescent);
    box-shadow: 0 0 20px rgba(168, 230, 207, 0.1);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border: 1px solid var(--bioluminescent);
    color: var(--bioluminescent);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    margin-top: 0.5rem;
}

.submit-btn:hover {
    background: var(--bioluminescent);
    color: var(--midnight);
    box-shadow: 0 0 30px rgba(168, 230, 207, 0.2);
}

/* === FOOTER === */
#footer {
    background: #0a0812;
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(61, 42, 82, 0.3);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-sigil {
    margin-bottom: 1rem;
    opacity: 0.6;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--lavender);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--lavender);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--bioluminescent);
}

/* Accent color utilities */
.sprite-card:nth-child(2) .sprite-name { color: var(--rose); }
.sprite-card:nth-child(3) .sprite-name { color: var(--golden); }

/* === ANIMATIONS === */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bobDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes slowSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .sprite-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tree {
        height: 50%;
        width: 20%;
    }
}

@media (max-width: 480px) {
    .sprite-grid {
        grid-template-columns: 1fr;
    }
}
