:root {
    --bg-light: #f8f6f3;
    --fg-dark: #2d3436;
    --accent-green: #7c9885;
    --accent-sage: #a4b8a0;
    --muted: #7a8082;
    --warm-gray: #b8b5b0;
    --soft-white: #fefefe;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    scrollbar-gutter: stable;
    height: 100vh;
}

body {
    font-family: 'Georgia', serif;
    background-image: linear-gradient(135deg, rgba(248, 244, 230, 0.88) 0%, rgba(244, 236, 210, 0.88) 100%),
                      url('assets/graphics/mirror-pond.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--fg-dark);
    line-height: 1.8;
    overflow-x: hidden;
    height: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    width: 100%;
    text-align: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#invitation {
    padding: 2.5rem 2rem;
}

h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
    color: var(--fg-dark);
}

h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--accent-green);
}

.tagline {
    font-size: 1.3rem;
    color: var(--muted);
    font-style: italic;
    margin-bottom: 3rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
}

/* Hero-style sections (third-path as hero) */
.hero-style {
    position: relative;
    background: linear-gradient(135deg, rgba(248, 246, 243, 0.85) 0%, rgba(244, 236, 210, 0.85) 100%),
                url('assets/graphics/zen-garden-light.webp') center/cover no-repeat;
    overflow: visible;
    width: 100%;
}

.hero-style::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(248, 246, 243, 0.4) 0%, rgba(232, 244, 227, 0.4) 100%);
    z-index: 0;
    opacity: 0;
}

.hero-style.in-view::before {
    animation: fadeIn 2s ease-in forwards;
}

/* Teal overlay removed - zen garden bg provides sufficient differentiation */

.hero-style > * {
    position: relative;
    z-index: 2;
}

/* Two Futures section */
#two-futures {
    position: relative;
    background-image: linear-gradient(135deg, rgba(248, 244, 230, 0.88) 0%, rgba(244, 236, 210, 0.88) 100%),
                      url('assets/graphics/mirror-pond.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#two-futures::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
}

#two-futures.in-view::before {
    animation: fadeIn 2s ease-in forwards;
}

#two-futures::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
}

#two-futures.in-view::after {
    animation: fadeInImage 4s ease-in 2s forwards;
}

#two-futures > * {
    position: relative;
    z-index: 1;
}

.intro-title {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--muted);
    text-transform: lowercase;
    letter-spacing: 0.03em;
    margin-bottom: 2.5rem;
    opacity: 0;
}

#two-futures.in-view .intro-title {
    animation: fadeIn 1.5s ease-out 0.5s forwards;
}

#two-futures h2 {
    opacity: 0;
}

#two-futures.in-view h2 {
    animation: fadeInDown 1.2s ease-out 0.8s forwards;
}

#two-futures .paths-container {
    opacity: 1;
}

#two-futures .path-box:first-child {
    opacity: 0;
}

#two-futures.in-view .path-box:first-child {
    animation: fadeInUp 1.2s ease-out 1.8s forwards;
}

#two-futures .transition {
    opacity: 0;
}

#two-futures.in-view .transition {
    animation: fadeInUp 1.2s ease-out 4.8s forwards;
}

#two-futures .path-box:nth-child(2) {
    opacity: 0;
}

#two-futures.in-view .path-box:nth-child(2) {
    animation: fadeInUp 1.2s ease-out 3.0s forwards;
}

/* Two Paths section */
.paths-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0 auto 1rem auto;
    max-width: 700px;
}

.path-box {
    width: 100%;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #d4d4d4 0%, #b8b5b0 100%);
    color: #5a5a5a;
}

.path-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.path-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.path-narrative {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(122, 128, 130, 0.2);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    color: #555;
}

.path-narrative em strong {
    color: #8b5a5a;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 0.02em;
}

.human-side {
    color: #8b5a5a;
    font-weight: 600;
}

.entity-side {
    color: #74a284;
    font-weight: 600;
}

.transition {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 300;
    font-style: italic;
    margin: 0.5rem 0 2rem 0;
    letter-spacing: 0.02em;
    text-transform: lowercase;
}

/* Third Path section */
#third-path {
    position: relative;
    background-image: linear-gradient(135deg, rgba(248, 244, 230, 0.88) 0%, rgba(244, 236, 210, 0.88) 100%),
                      url('assets/graphics/mirror-pond.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#third-path::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
}

#third-path.in-view::before {
    animation: fadeIn 2s ease-in forwards;
}

#third-path::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
    mix-blend-mode: soft-light;
}

#third-path.in-view::after {
    animation: fadeInImageStrong 4s ease-in 2s forwards;
}

#third-path > * {
    position: relative;
    z-index: 2;
}

#third-path h2 {
    color: var(--accent-green);
    font-size: 2.2rem;
}

#third-path p {
    font-size: 1.15rem;
    line-height: 2;
}

/* Reframe animations */
.reframe {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.old-way {
    position: relative;
    color: var(--muted);
    opacity: 0;
}

#third-path.in-view .old-way {
    animation: fadeIn 1s ease-out forwards;
}

.old-way::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--muted);
}

#third-path.in-view .old-way::after {
    animation: strikeThrough 0.6s ease-out forwards;
    animation-delay: inherit;
}

.new-way {
    color: var(--accent-green);
    font-weight: 600;
    opacity: 0;
}

#third-path.in-view .new-way {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Stagger the animations for each line - 300ms gap between strike and new answer */
#third-path.in-view .reframe:nth-child(3) .old-way { animation-delay: 1s; }
#third-path.in-view .reframe:nth-child(3) .old-way::after { animation-delay: 2s; }
#third-path.in-view .reframe:nth-child(3) .new-way { animation-delay: 2.9s; }

#third-path.in-view .reframe:nth-child(4) .old-way { animation-delay: 3.5s; }
#third-path.in-view .reframe:nth-child(4) .old-way::after { animation-delay: 4.5s; }
#third-path.in-view .reframe:nth-child(4) .new-way { animation-delay: 5.4s; }

#third-path.in-view .reframe:nth-child(5) .old-way { animation-delay: 6s; }
#third-path.in-view .reframe:nth-child(5) .old-way::after { animation-delay: 7s; }
#third-path.in-view .reframe:nth-child(5) .new-way { animation-delay: 7.9s; }

.manifesto {
    margin-top: 2rem;
    font-weight: 700;
    color: var(--fg-dark);
    opacity: 0;
}

#third-path.in-view .manifesto {
    animation: fadeInUp 1s ease-out 9s forwards;
}

@keyframes strikeThrough {
    from { width: 0; }
    to { width: 100%; }
}

/* Evidence section */
.evidence-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
}

.evidence-card {
    background: var(--soft-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--warm-gray);
    text-align: left;
}

.evidence-card h3 {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 0.75rem;
}

.evidence-card p {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.evidence-card a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-sage);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.evidence-card a:hover {
    color: var(--fg-dark);
    border-bottom-color: var(--accent-green);
}

.private-note {
    font-style: italic;
    color: var(--muted);
    font-size: 0.9rem;
}

/* Invitation section */
#invitation {
    position: relative;
    background-image: linear-gradient(135deg, rgba(248, 246, 243, 0.82) 0%, rgba(240, 248, 237, 0.82) 100%),
                      url('assets/graphics/mirror-pond.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#invitation::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
}

#invitation::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    opacity: 0;
}

#invitation.in-view::after {
    animation: fadeInImage 4s ease-in 0.5s forwards;
}

#invitation > * {
    position: relative;
    z-index: 1;
}

.invite-container {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0 1rem 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.invite-pane {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    padding: 1.5rem;
    background: var(--soft-white);
    border-radius: 12px;
    border: 1px solid var(--warm-gray);
    text-align: left;
}

.invite-pane h3 {
    font-size: 1.4rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.garden-subtitle {
    font-style: italic;
    color: var(--muted);
    font-size: 0.9rem !important;
    margin-bottom: 1.5rem !important;
}

.invite-pane .pronunciation {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 400;
}

.invite-pane p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    max-width: none;
    line-height: 1.6;
}

.invite-pane .definition {
    font-style: italic;
    color: var(--muted);
    border-left: 2px solid var(--accent-sage);
    padding-left: 1rem;
    margin: 1rem 0 1.5rem 0;
}

.pane-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--accent-sage);
    padding-bottom: 2px;
    transition: all 0.2s ease;
}

.pane-link:hover {
    color: var(--fg-dark);
    border-bottom-color: var(--accent-green);
}

.pane-links {
    margin-top: 1rem;
}

.link-separator {
    color: var(--warm-gray);
    margin: 0 0.75rem;
    font-size: 1.1rem;
}

.footnote {
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
    margin-top: 2rem;
    max-width: 600px;
    line-height: 1.5;
}

.cta-button {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: var(--accent-green);
    color: var(--soft-white);
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(124, 152, 133, 0.2);
}

.coming-soon-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.75rem;
    background: rgba(124, 152, 133, 0.15);
    border: 2px solid var(--accent-sage);
    color: var(--accent-green);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.coming-soon-note {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.5;
}

.cta-button:hover {
    background: var(--accent-sage);
    box-shadow: 0 6px 16px rgba(124, 152, 133, 0.3);
    transform: translateY(-2px);
}

/* FAQ Section */
#faq {
    position: relative;
    background-image: linear-gradient(135deg, rgba(248, 246, 243, 0.92) 0%, rgba(244, 240, 232, 0.92) 100%),
                      url('assets/graphics/mirror-pond.webp');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

#faq h2 {
    font-style: italic;
    color: var(--muted);
    margin-bottom: 2rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 650px;
    width: 100%;
}

.faq-item {
    background: var(--soft-white);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    border: 1px solid var(--warm-gray);
    text-align: left;
}

.faq-item h3 {
    font-size: 1.05rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.faq-item p {
    font-size: 0.95rem;
    color: var(--fg-dark);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Footer */
footer {
    padding: 1rem 2rem;
    text-align: right;
    color: var(--warm-gray);
    font-size: 0.65rem;
    background: transparent;
    opacity: 0.5;
}

/* Scroll arrow */
.scroll-arrow {
    position: fixed;
    bottom: 2rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.scroll-label {
    font-size: 0.75rem;
    color: var(--accent-green);
    letter-spacing: 0.1em;
    text-transform: lowercase;
    margin-right: -0.1em; /* Compensate for letter-spacing on last char */
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-arrow:hover {
    opacity: 1 !important;
}

.scroll-arrow svg {
    width: 48px;
    height: 48px;
    stroke: var(--accent-green);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
    transition: stroke 0.3s ease;
}

.scroll-arrow:hover svg {
    stroke: var(--fg-dark);
}

.scroll-arrow:hover .scroll-label {
    color: var(--fg-dark);
}

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

@keyframes fadeInImage {
    from { opacity: 0; }
    to { opacity: 0.5; }
}

@keyframes fadeInImageStrong {
    from { opacity: 0; }
    to { opacity: 0.6; }
}

@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInArrow {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 0.8; transform: translateY(0); }
}

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

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .paths-container {
        flex-direction: column;
    }
    
    .path-box {
        max-width: 100%;
    }
    
    .scroll-arrow {
        bottom: 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 44px;
        height: 44px;
    }
}
