/* ============================================================
   HOME — scroll-snap container, hero, investment approach
   ============================================================ */

/* ============ SCROLL SNAP CONTAINER ============ */

.scroll-container{
  height: calc(var(--vh, 1vh) * 100);
  overflow-y: scroll;
  overflow-x: hidden;
  scroll-snap-type: y mandatory;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.scroll-container::-webkit-scrollbar{
  display: none;
}

.panel{
  scroll-snap-align: start;
  scroll-snap-stop: always;
  width: 100%;
  position: relative;
}

/* ============ SECTION 1: HERO ============ */

.hero{
  height: calc(var(--vh, 1vh) * 100);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3.2vh, 44px) clamp(20px, 4vw, 56px) clamp(24px, 4vh, 48px);
}

.hero-image-wrap{
  flex: 1 1 auto;
  min-height: 0;
  border-radius: clamp(12px, 1.6vw, 24px);
  overflow: hidden;
}

.hero-image-wrap picture{
  display: block;
  width: 100%;
  height: 100%;
}

.hero-image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-caption{
  flex: 0 0 auto;
  padding-top: clamp(16px, 2.6vh, 30px);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
}

.hero-caption h1{
  font-family: var(--font-garamond);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.1vw, 2.95rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.hero-caption p{
  font-family: var(--font-garamond);
  font-weight: 400;
  font-size: clamp(1.31rem, 2.5vw, 1.90rem);
  color: var(--ink-soft);
}

/* Down arrow, aligned with the heading row, scrolls to section 2 */
.hero-scroll-btn{
  flex: 0 0 auto;
  width: clamp(44px, 4.2vw, 56px);
  height: clamp(44px, 4.2vw, 56px);
  margin-top: 0.35rem; /* optically aligns with the h1 line */
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-scroll-btn svg{
  width: 45%;
  height: 45%;
}

.hero-scroll-btn:hover,
.hero-scroll-btn:focus-visible{
  background: var(--ink);
  color: var(--paper);
  transform: translateY(2px);
}

.hero-scroll-btn:focus-visible{
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* ============ SECTION 2: INVESTMENT APPROACH ============ */

.approach{
  height: calc(var(--vh, 1vh) * 100);
  background-color: var(--green);
  background-image: radial-gradient(circle at top left, rgba(0, 0, 0, 0.08) 1px, transparent 1px),
                    radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 22px 22px, 18px 18px;
  background-position: 0 0, 12px 12px;
  background-repeat: repeat;
  display: flex;
  align-items: center;
  overflow-y: auto; /* safety net only — auto-fit sizing below should make this unnecessary */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.approach::-webkit-scrollbar{
  display: none;
}

.approach-grid{
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: calc(clamp(40px, 9vh, 110px) * var(--approach-scale)) clamp(24px, 5vw, 64px) calc(clamp(40px, 6vh, 80px) * var(--approach-scale));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(clamp(16px, 2.5vw, 28px) * var(--approach-scale));
}

.approach-heading,
.approach-body{
  width: 100%;
  text-align: left;
}

.approach-heading h2{
  font-family: var(--font-garamond);
  font-weight: 400;
  font-size: calc(clamp(1.8rem, 2.8vw, 2.2rem) * var(--approach-scale));
  line-height: 1.2;
  color: var(--ink);
}

.approach-body p{
  font-family: var(--font-wix-text);
  font-weight: 320;
  font-size: calc(clamp(0.86rem, 0.95vw, 0.77rem) * var(--approach-scale));
  line-height: 1.4;
  color: var(--ink-soft);
  margin-bottom: calc(1.3rem * var(--approach-scale));
}

.approach-item{
  margin-bottom: calc(1.1rem * var(--approach-scale));
}

.approach-item h3{
  font-family: var(--font-wix-text);
  font-size: calc(clamp(0.84rem, 0.92vw, 0.85rem) * var(--approach-scale));
  font-weight: 700;
  color: var(--ink);
  margin-bottom: calc(0.3rem * var(--approach-scale));
}

.approach-item p{
  margin-bottom: 0;
}

/* ============ RESPONSIVE ============ */

@media (max-width: 900px){
  .approach-grid{
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
}

@media (max-width: 600px){
  .hero-caption h1{
    font-size: 1.7rem;
  }
  .hero-caption p{
    font-size: 1.05rem;
  }
  .hero-scroll-btn{
    width: 40px;
    height: 40px;
    margin-top: 0;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce){
  .scroll-container{
    scroll-behavior: auto;
  }
  .hero-scroll-btn{
    transition: none;
  }
}
