@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,200..800;1,6..72,200..800&display=swap');


body {
    margin: 0;
    font-family: sans-serif;
    overflow-x: hidden;
    background: #faf3e8;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(250, 243, 232, 1) 100%);
}

.content-wrapper {
    max-width: 1200px;
    /* or whatever width matches your 13" screen content width */
    margin-left: auto;
    margin-right: auto;
    /* optional */
    box-sizing: border-box;
}


.subtitle {
    font-size: 22px;
    font-weight: 200;
}

h1 {
    font-style: italic;
    text-decoration: underline
}

h4 {
    font-size: 30px;
    z-index: 3;
}

.author {
    font-style: italic;
    color: #C1B3B3;
    font-style: italic;
    margin-bottom: -25px;
}

a {
        color: #C1B3B3;
}

.name {
          color: #C1B3B3;

}

.name a {
   color: #FFA6A6;
}

a:hover {
    color: #EDB0B0;
    }

p {
    font-family: "DM Serif Display", serif;
    font-weight: 200;
    font-style: normal;
    line-height: 1.5;
}

.p-text {
    /* font-family: Arial, Helvetica, sans-serif; */
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: "Newsreader", serif;
    font-weight: 400;
    /* FIXED */
    font-style: normal;
}


.scene {
    width: 100%;
    position: relative;
}

.intro {
    margin: 50px auto 0;
    /* top 50px, horizontally auto centered */
    max-width: 600px;
    /* or whatever width fits your design */
    padding: 0 20px;
    /* horizontal padding */
    text-align: center;
}



.section-frame {
    padding: 50px;
}

.sun-wrapper {
    position: fixed;
    top: 20vh;
    z-index: -1;
}

/* SCROLLYTELLING SECTION */
.scrolly {
    position: relative;
    min-height: 300vh;
}

/* Sticky graphic: pinned scene */
.sticky-graphic {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    z-index: 2;
    /* Above sun, behind text/lake */
    background: linear-gradient(to top, #fef4ea 0%, transparent 100%);
    pointer-events: none;
}

/* Position all visual elements full-screen */
.graphic {
    position: relative;
    width: 100%;
    height: 100vh;
}

.gradient-layer {
    width: 100%;
    height: 120px;
    background: WHITE;
    background: linear-gradient(0deg, rgb(255, 255, 255) 0%, rgba(250, 243, 232, 1) 100%);
}

/* Tree and lake images - full height */
.graphic img {
    position: absolute;
    bottom: -200px;
    height: 120%;
    width: auto;
    object-fit: contain;
    pointer-events: none;
}

/* BACK trees: under everything */
.trees-back {
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}

.lake {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    bottom: 0;
    height: 120vh;
    width: auto;
    object-fit: contain;
    pointer-events: none;
    z-index: 3;
}

.tree-front.left {
    left: 0;
    z-index: 3;
}
.tree-front.right {
    right: 0;
    z-index: 3;
}

/* 🟩 Text: centered and between layers */
.scroll-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-size: 1.8rem;
}

.fade-overlay {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20vh;
    /* How tall the fade is */
    pointer-events: none;
    /* So it doesn't block interaction */
    z-index: 3;
    /* ✅ Put it above text, but below front trees if needed */

    background: linear-gradient(to top, #fef4ea 0%, transparent 100%);
}

/* Each paragraph block */
.step {
    /* margin: 50vh 0; */
    font-size: 1.5rem;
    padding: 2rem;
    text-align: center;
    /*   background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
}
.scroll-text p {
    margin-bottom: 300px;
}

.next-section {
    background: #faf3e8;
    min-height: 100vh;
    padding-top: 280px;
}

.text-wrapper {
    padding: 0 80px;
}

@media (max-width: 768px) {

   .next-section .p-text {
        margin-bottom: 16px !important;
        font-size: 0.8rem;
        }


    .tree-front.left,
    .tree-front.right {
        /* Shrink trees to fit in viewport */
        max-width: 80vh;
        /* Cap size */
    }

    .tree-front.left {
        left: -30vw;
        /* Slight overlap without overflow */
    }

    .tree-front.right {
        right: -30vw;
    }

    .graphic img {
        height: 110vh;
        margin-top: 180px;
        /* Slightly smaller image height on mobile */
    }

    .intro {
        margin: 40px 20px 80px;
        /* Reduce horizontal margin */
    }

    .scroll-text {
        max-width: 50%;
        font-size: 0.8rem;
    }
}


/* === TIMELINE SECTION === */
.scrolly-timeline {
    display: flex;
    position: relative;
    background: #faf3e8;
}

.timeline-content {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
}

.sticky-media {
    position: sticky;
    top: 0;
    height: 100vh;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#timeline-image {
    max-height: 80vh;
    width: auto;
    transition: opacity 0.8s ease;
}

.timeline-scroll {
    padding-right: 50px;
    margin-left: -50px;
    height: 100%;
}

.timeline-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.timeline-text .step {
    margin-bottom: 20vh;
    font-family: "DM Serif Display", serif;
    font-size: 1.5rem;
    max-width: 500px;
    line-height: 1.6;
    color: #333;
}

.timeline-text .first-step {
    margin-bottom: 20vh;
    font-family: "DM Serif Display", serif;
    max-width: 500px;
    line-height: 1.6;
    color: #333;
}
/* 
.timeline-text .last-step {
    margin-bottom: 0 !important;

} */



/* Optional: decorative background image or illustration */
.timeline-image {
    height: 100%;
    margin-top: 100px;
    margin-right: 30px;
    margin-left: -60px;
    pointer-events: none;
}

@media screen and (min-width: 768px) {
    .only-mobile {
        display: none !important;
    }
}
/* Hide desktop section on small screens */
@media (max-width: 767px) {
    .desktop-scroll-section {
        display: none;
    }
}

/* Unified mobile styles */

/* Unified mobile styles */
@media screen and (max-width: 768px) {

    .next-section {
       padding: 40px; /* margin: 20px 40px; */
    }

    .sticky-graphic {

        overflow-x: hidden;
    }


    .only-mobile {
        display: block;
    }
.scrolly-timeline-mobile {
  position: relative;
}

.timeline-container-mobile {
  display: block;
   background: #faf3e8;
}

.sticky-image-wrapper-mobile {
  position: sticky;
  top: 0;
  height: 100vh; /* full screen height */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf3e8; /* optional: avoid text showing behind transparent PNGs */
  z-index: 2;
}

.sticky-image-wrapper-mobile img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.text-steps-mobile {
  position: relative;
  z-index: 1;
}

.step-mobile {
  min-height: 100vh; /* so each step fills one screen scroll */
  display: flex;
  align-items: center;
  padding: 2rem;
  box-sizing: border-box;
}

    .step-mobile p {
        margin-bottom: 250px;
    }

    .sticky-image-wrapper-mobile {
      position: sticky;
        bottom: 0;
        height: 50vh;
        background: white;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 0; 
        padding-top: 20px;  
       }

    #mobile-timeline-image {
        max-height: 100%;
        width: auto;
        opacity: 1;
        transition: opacity 0.6s ease-in-out;
    }
}

/* Mobile timeline image, always apply */
.mobile-timeline-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    z-index: 0;
    opacity: 0.3;
    pointer-events: none;
}

/* Ensure non-interactive image layers stay behind and inactive */
.mobile-timeline-image,
.sticky-image-wrapper-mobile {
    pointer-events: none !important;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(0deg,rgba(255, 255, 255, 0) 0%, rgba(250, 243, 232, 1) 10%);
    padding-bottom: 40px;
}


/* Mobile timeline image, always apply */
.mobile-timeline-image {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

/* Ensure non-interactive image layers stay behind and inactive */
.sticky-image-wrapper-mobile {
    pointer-events: none !important;
    z-index: 4;
    pointer-events: none;
}

.mobile-timeline-image{
    pointer-events: none !important;
    z-index: 4;
    pointer-events: none;
    background: none;
}
/* section tank */

.image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: #faf3e8;
}

.tank-img {
    width: 90%;
    display: block;
}

.target-img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

/* Reset original flex on .tank-section for desktop */
.tank-section {
    display: block;
    /* For now, switch to block, we'll handle layout in children */
    padding: 2rem;
    padding-top: 120px;
    background: #faf3e8;
}

/* Desktop styles only */
@media(min-width: 1024px) {
    .tank-section {
        display: block;
    }

    .text-content {
        width: 100%;
        padding: 0 80px;
    }

    /* The middle row is flex with 2 columns */
    .middle-row {
        display: flex;
        gap: 2rem;
        margin: 2rem 0;
        /* add spacing */
        margin-bottom: 120px;
    }

    .middle-text {
        flex: 2;
    }

    .desktop-image-wrapper {
        flex: 1;
        position: relative;
    }

    .full-width {
        width: 100%;
        margin-bottom: 2rem;
    }

    .map-content {
        padding: 0 0px 0 300px;
    }

    .map-content p {
        padding-left: 0.2rem;
    }

    .map-content .text-column p {
        padding-left: 10rem;
    }
}

/* Mobile styles - keep current setup */
@media(max-width: 1023px) {
    .tank-section {
        display: block;
    }

    .middle-row {
        display: block;
    }

}

.tank {
    width: 100%;
    padding: 0 80px;
}

/* === MAP SECTION === */

.map-section {
    position: relative;
    height: 300vh;
    background: white;
}

.scroll-triggers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.trigger {
    height: 100vh;
}

.map-content {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    padding: 0 4rem;
    box-sizing: border-box;
    z-index: 1;
}

.text-column {
    flex: 3;
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 2rem;
}

.map-column {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-img {
    padding-top: 100px;
    max-height: 450px;
    width: auto;
}

/* Lines overlaying the map */
.line {
    position: absolute;
    height: 2px;
    background-color: hotpink;
    opacity: 0;
    transform-origin: left;
    transition: all 1s ease-in-out;
}

.line-1 {
    width: 320%;
    top: 270px;
    right: 100px;
}

.line-2 {
    width: 320%;
    top: 350px;
    right: 130px;
}

.line-3 {
    top: 430px;
    right: 150px;
    width: 300%;
}

/* Triggered animation */
.map-section.line-1-active .line-1,
.map-section.line-2-active .line-2,
.map-section.line-3-active .line-3 {
    opacity: 1;
}

/* trip map section */

.fade-scroll-section {
    position: relative;
    background: white;
}

.fade-sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    background: white;
    pointer-events: none;
    /* disables accidental clicks during scroll */
}

.fade-scroll-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    pointer-events: auto;
}

.fade-top-text,
.fade-bottom-text {
    text-align: left;
}

#fade-image-scroll {
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

/* Invisible triggers driving the scroll */
.fade-scroll-steps {
    height: 400vh;
    position: relative;
    z-index: 1;
}

.fade-step {
    height: 100vh;
}

/* text section lines */

.text-section {
    position: relative;
    padding: 6rem;
    padding-top: 80px;
    background: white;
}

.text-final {
    padding: 1rem 10rem;
}

.special-text {
    position: relative;
    color: #EDB0B0;
    padding: 0 0 3rem;
    font-size: 2rem;
    line-height: 1.6;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.img-text-right {
    float: right;
    width: 30%;
}


.img-text-left {
    float: left;
    position: relative;
    z-index: 10;
    margin-right: 30px;
    margin-bottom: 50px;
    margin-left: 60px
}

.special-text-2 {
    position: relative;
    color: #C1B3B3;
    padding: 2rem;
    font-size: 2rem;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
    font-style: italic;
}

/* leaf section */

.leaf-sway-section {
    height: 100%;
    padding: 20px 100px 100px;
    padding-bottom: 15px;
    height: 100%;
    background: linear-gradient(180deg, rgb(255 255 255) 0%, rgba(250, 243, 232, 1) 50%, rgb(255 255 255) 100%);
}

.leaf-images-contain {
    position: relative;
}


.leaf {
    height: 350px;
    transform-origin: center center;
    transition: transform 0.1s linear;
}

.leaf-sway-content {
    flex: 1 1 400px;
    max-width: 600px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.sway-1 {
    left: 0;
    margin-right: 30px;
    ;

}

.sway-2 {
    left: -40px;
    top: 30px;
    position: absolute;

}

.sway-3 {
    position: absolute;
}

strong {
    color: #EDB0B0;
    font-style: italic
}

.special-2 {
    /* “Certainly. The eucalyptus is a large, impressive, beautiful tree. It has a wonderful scent. Obviously, I also love it. There is something moving about its size and power. And there is of course the historical memory – my father planted eucalyptus trees to drain the swamps. This tree has entered the Jewish heritage as a Zionist symbol. Ironically, the swamps disappeared, and now we are trying to rehabilitate and restore some of them to the landscape. The eucalyptus stayed with us and became a ‘founding father’ of the Israeli environment. But we must always remember that it is an Australian tree. Not one of ours.” */

    font-family: 'Newsreader';
    font-style: italic;
    font-weight: 700;
    font-size: 32px;
    background: linear-gradient(360deg, #FFA6A6 0%, #8D4C4C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-section {
    padding-top: 0;
}

.sway-3 {
    left: -120px;
}

/* Responsive */
@media screen and (max-width: 768px)  {

    .graphic {
        height: 70vh;
    }

  .tank {
    display: none;
  }

    .leaf-sway-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 20px;
    }

      .leaf-sway-section p {
        padding: 0 20px;
    }

    .leaf-sway-images {
        flex-direction: row;
        position: relative;
        top: auto;
        margin-bottom: 2rem;
    }

    .img-text-left {
      float: none;
      margin-left: 30%;
    }

    .fade-scroll-section {
      padding: 0 20px;
    }


    .text-wrapper {
        padding: 0;
    }

     .text-wrapper p{
        margin: 0;
    }


    .fade-bottom {
        bottom: -220px;
        height: 100vh;
    }


    .desktop-only {
        display: none !important;
    }

.map-section-mobile {
    position: relative;
    background: #fff;
    padding: 1rem 0 2rem;
    overflow: visible;          /* ensure stacking context works */
    z-index: 3;   
    height: 550vh;        /* keep above previous/next sticky stuff */
  }

  .map-section-mobile .map-content {
    display: block;             /* not flex on mobile */
    position: relative;
  }

  .map-section-mobile .text-column {
    display: block;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 1rem;
  }

  /* Sticky map box */
  .map-section-mobile .map-column {
    position: sticky;
    top: 0;                     /* stick to top of the viewport */
    height: 100vh;              /* reserve full screen for sticky area */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;           /* prevents previous/next peeking through */
    margin: 2rem 0;
    z-index: 4;                 /* above text in this section */
  }

  .map-section-mobile .map-img {
    max-height: 70vh;
    width: auto;
    display: block;
    padding-top: 0;
    margin-right: -180px;
  }

  /* Lines overlay the image */
  .map-section-mobile .line {
    position: absolute;
    left: 50%;
    width: 80vw;
    height: 2px;
    background: hotpink;
    transform: translateX(-50%) scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform .6s ease, opacity .6s ease;
    z-index: 5;                 /* above the map image */
    pointer-events: none;
  }
  .map-section-mobile .line-1 { 
        margin-left: 0px;
        width: 120%;
        margin-top: -80px;
 }

    .line-1 p{
        margin: 0;
        margin-top: -20px;
        font-size: 0.8rem;
    }

  .map-section-mobile .line-2 { 
        width: 90%;
        margin-left: -40px;
        margin-top: -80px;
   }

    .line-2 p{
        margin: 0;
        margin-top: -20px;
        font-size: 0.8rem;
    }

  .map-section-mobile .line-3 { 
        width: 90%;
        margin-left: -40px;
        margin-top: -140px;
   }


    .line-3 p{
        margin: 0;
        margin-top: 5px;
        font-size: 0.8rem;
    }

  .map-section-mobile .line.visible {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
  }

  /* Triggers must contribute height (not absolute) */
  .map-section-mobile .scroll-triggers {
    position: relative;         /* was absolute in desktop version */
  }
  .map-section-mobile .trigger {
    height: 100vh;              /* each trigger = one screen of scroll */
  }

  /* Optional: make later sticky sections not overlap while you’re in map section */
  .fade-sticky-wrapper { z-index: 1; }


    .text-final {
      padding: 0;
    }

    .text-section {
        padding: 20px 40px;
    }

    .special-text {
        font-size: 1.5rem;
        padding:0px 40px;
    }

    .special-2 {
      font-size: 1.2rem;
    }

    .img-text-right {
    padding-top: 40px;
    width: 50%;
  }

  .special-text-2 {
    font-size: 1.2rem;
    padding: 20px 0;
  }

}


