/* The Impact — frames "The impact" d16–d23 / m16–m23 (Figma 680:32791 … 680:33462, 699:11443 … 699:12010). */

.page-impact { --i-h2: clamp(34px, 3.75vw, 54px); }

/* ---------- 1. Hero ---------- */
.i-hero {
  position: relative;
  min-height: max(100svh, 760px);
  overflow: hidden;
  background: #fff;
  color: var(--brown);
}
.i-hero__media { position: absolute; inset: 0; overflow: hidden; }
/* Figma "tractor 2": 1658x1053 at 0,0 of the 1440x914 frame, so the right 218px (part of the farmer) fall outside. */
.i-hero__bg {
  position: absolute; top: 0; left: 0; width: 115.14%; height: 115.2%; max-width: none;
  object-fit: cover; object-position: 50% 50%; transform-origin: 0 0; will-change: transform;
}
/* Figma "Rectangle 6535": white-to-clear OVERLAY gradient, 50% opacity, over the top 358px. */
.i-hero__shade {
  position: absolute; top: 0; left: 0; right: 0; height: 39.2%;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
  mix-blend-mode: overlay; opacity: .5;
}
.i-hero__content {
  position: relative; z-index: 2;
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 100px));
  padding-left: clamp(20px, 5.8vw, 84px);
  padding-bottom: 80px;
}
.i-hero__title { display: flex; flex-direction: column; margin-bottom: clamp(14px, 1.4vw, 20px); }
.i-hero__l1 { font-size: clamp(36px, 4.17vw, 60px); line-height: 1.15; }
.i-hero__l2 { font-size: clamp(48px, 7.42vw, 107px); line-height: 1; letter-spacing: -.005em; }
.i-hero__body { max-width: 823px; color: var(--brown); line-height: 1.6; }

/* ---------- 2. Distributed total ---------- */
.i-total { padding: calc(var(--header-h) + clamp(30px, 4.4vw, 64px)) 0 clamp(80px, 10vw, 140px); background: var(--cream); color: var(--brown); text-align: center; }
.i-total__title { display: flex; flex-direction: column; align-items: center; }
/* Figma letter spacing: -1.38px at 45.9px, 2.22px at 73.9px. */
.i-total__l1 { font-size: clamp(26px, 3.19vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.i-total__l2 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; column-gap: .3em; margin-top: 4px; }
.i-total__amount { font-size: clamp(46px, 5.13vw, 74px); line-height: 1.15; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.i-total__since { font-size: clamp(26px, 3.19vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.i-total__lead {
  max-width: 1019px; margin: clamp(28px, 3vw, 44px) auto 0;
  font-weight: 600; font-size: clamp(18px, 1.95vw, 28px); line-height: 1.6;
}
.i-total__boxes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 263px)); justify-content: center; gap: clamp(20px, 2.8vw, 40px);
  margin-top: clamp(40px, 4.5vw, 64px); text-align: left;
}
.i-total__box { min-height: 247px; padding: 22px 26px; background: var(--cream); border: 1px solid var(--brown); border-radius: 14px; }
.i-total__pct { margin: 0 0 10px; font: 400 clamp(50px, 4.86vw, 70px)/1.4 var(--font-display); font-variant-numeric: tabular-nums; }
.i-total__label { margin: 0; max-width: 208px; font: 400 18px/1.22 var(--font-display); }

/* ---------- 3. Farm by farm ---------- */
.i-grows { padding: calc(var(--header-h) + 16px) 0 clamp(60px, 7vw, 100px); background: var(--brown); color: var(--cream); overflow: hidden; }
.i-grows__grid {
  display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 537px); justify-content: center; gap: clamp(32px, 4.4vw, 63px);
  align-items: start;
}
.i-grows__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 560 / 705; }
.i-grows__img img { width: 100%; height: 100%; object-fit: cover; }
.i-grows__title { max-width: 520px; font-size: var(--i-h2); line-height: 1.15; margin-bottom: 22px; }
.i-grows__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 15px; color: var(--brown); }
.i-grows__stat { min-height: 227px; padding: 21px 16px 24px 26px; background: var(--cream); border: 1px solid var(--brown); border-radius: 14px; }
.i-grows__stat p { margin: 0; font: 400 18px/1.22 var(--font-display); }
/* 70/98 in Figma. */
.i-grows__stat .i-grows__num { margin-bottom: 0; font-size: clamp(50px, 4.86vw, 70px); line-height: 1.4; font-variant-numeric: tabular-nums; }
.i-grows__stat--wide { grid-column: 1 / -1; min-height: 194px; padding: 19px 54px 24px; margin-top: 4px; }
.i-grows__stat--wide .i-grows__num { margin-bottom: -9px; }
.i-grows__cta { margin-top: 28px; text-align: center; }
.i-grows__cta p { font-weight: 600; margin-bottom: 18px; }

/* ---------- 4. We meet farmers ---------- */
.i-meet {
  position: relative;
  min-height: max(100svh, 880px);
  padding-top: calc(var(--header-h) - 16px);
  overflow: hidden;
  background: #fff;
  color: var(--black);
  text-align: center;
}
/* Figma "Hero image" layer: the combine plus a rgba(47,28,11,.18) fill over the whole frame, which turns white into #dad6d3. */
.i-meet::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(47, 28, 11, .18); pointer-events: none; }
.i-meet__text { position: relative; z-index: 2; }
.i-meet__title { max-width: 880px; margin-inline: auto; }
.i-meet__title { font-size: var(--i-h2); line-height: 1.15; margin-bottom: 22px; }
.i-meet__text p { max-width: 823px; margin-inline: auto; color: var(--brown); }
/* The scene sits in flow under the text, tall enough for the visible combine (image 1672x941, roof begins
   25.5% down, bottom offset below): the roof can never reach the paragraph, whatever the window shape. */
.i-meet { display: flex; flex-direction: column; }
.i-meet__scene {
  position: relative; z-index: 1; pointer-events: none;
  flex: 1 0 auto; margin-top: 24px;
  height: calc(.4193 * max(108vw, 1180px) - max(10.6vw, 120px));
}
/* Sized against the d19 render (header reel spans x110–1340, wheat line at y~770); Figma's own layer box carries a crop
   transform the API does not expose. Positioned with left/bottom, not a transform, so the GSAP rise owns the transform. */
.i-meet__combine {
  position: absolute; left: 50%; bottom: min(-10.6vw, -120px);
  width: max(108%, 1180px); max-width: none; height: auto;
  margin-left: calc(max(108%, 1180px) / -2);
}

/* ---------- 5. Support can take many forms ---------- */
.i-forms { position: relative; background: #2a1a0e; color: var(--cream); }
.i-forms__pin { position: relative; min-height: max(100svh, 860px); display: flex; align-items: center; overflow: hidden; }
.i-forms__media { position: absolute; inset: 0; overflow: hidden; }
/* Figma "AdobeStock_79835582 3": 1792x1196 at -231,-241 of the 1440x914 frame. */
.i-forms__bg {
  position: absolute; left: -16.04%; top: -26.37%; width: 124.44%; height: 130.85%; max-width: none;
  object-fit: cover; will-change: transform;
}
/* Figma "Rectangle 5": MULTIPLY, rgba(47,28,11,0) at the right edge to .57 at the left (layer spans -103..1446). */
.i-forms__shade {
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(47, 28, 11, 0) 0%, rgba(47, 28, 11, .53) 100%);
  mix-blend-mode: multiply;
}
.i-forms__inner {
  position: relative; z-index: 2;
  max-width: 1440px; padding: calc(var(--header-h) + 10px) clamp(20px, 5.2vw, 75px) 60px;
  text-align: center;
}
.i-forms__title { font-size: var(--i-h2); line-height: 1.15; margin-bottom: clamp(40px, 4.4vw, 64px); }
.i-forms__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 23px); text-align: left; }
.i-forms__card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 187px; padding: 46px 20px 20px;
  /* Figma GLASS: fill rgba(255,251,244,.13), radius 15. */
  background: rgba(255, 251, 244, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.i-forms__card p { margin: 0; font-size: 18px; line-height: 1.6; }
.i-forms__goal {
  max-width: 869px; margin: clamp(32px, 3.9vw, 56px) auto clamp(28px, 2.9vw, 41px);
  font-weight: 600; font-size: clamp(20px, 1.95vw, 28px); line-height: 1.6;
}

/* ---------- 6. Real stories ---------- */
.i-stories { padding: calc(var(--header-h) + clamp(30px, 5.6vw, 80px)) 0 clamp(80px, 10vw, 140px); background: var(--cream); color: var(--brown); }
.i-stories__grid {
  /* d21: left column at x60, story column at x700 (632 wide). */
  display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 632px); gap: 0;
  justify-content: start;
  padding-inline: clamp(20px, 4.2vw, 60px);
}
.i-stories__title { font-size: var(--i-h2); line-height: 1.15; }
.i-stories__sub { margin-top: 18px; font: 400 clamp(22px, 2.1vw, 30px)/1.15 var(--font-display); }
.i-stories__slider { position: relative; }
.i-stories__track { display: grid; }
.i-story { grid-area: 1 / 1; }
.i-story[hidden] { display: none; }
.i-story__quote { margin: 0 0 22px; font: 400 clamp(22px, 1.94vw, 28px)/1.15 var(--font-display); }
.i-story__body p { font-size: 15px; line-height: 1.73; color: var(--black); margin-bottom: 1.73em; }
.i-story__body p:last-child { margin-bottom: 0; }
.i-story__meta {
  display: grid; grid-template-columns: 1fr 1.6fr 1.5fr; gap: 16px 24px;
  margin: 24px 0 0; padding-top: 26px; max-width: 606px;
  border-top: 1px solid rgba(62, 34, 21, .45);
}
.i-story__meta dt { margin-bottom: 8px; font: 700 12px/1.25 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #9ca3af; }
.i-story__meta dd { margin: 0; font: 600 15px/1.2 var(--font-body); color: #111827; max-width: 200px; }
.i-stories__nav { display: flex; justify-content: center; gap: 6px; margin-top: 22px; max-width: 606px; }
.i-stories__arrow {
  width: 28px; height: 28px; padding: 0; border: 0; background: none; color: var(--brown); cursor: pointer;
  transition: transform .25s ease, color .25s ease;
}
.i-stories__arrow:hover { color: var(--rust); transform: scale(1.08); }
.i-stories__arrow svg { width: 100%; height: 100%; }

/* ---------- 7. Every gift ---------- */
.i-gifts { padding: calc(var(--header-h) + 28px) 0 clamp(70px, 8vw, 110px); background: var(--cream); color: var(--brown); }
.i-gifts .container { padding-inline: clamp(20px, 5.6vw, 80px); }
.i-gifts__head { text-align: center; }
.i-gifts__title { max-width: 860px; margin: 0 auto; font-size: var(--i-h2); line-height: 1.15; }
.i-gifts__sub { margin: 26px auto 0; font: 400 clamp(20px, 2.1vw, 30px)/1.15 var(--font-display); color: var(--rust); }
.i-gifts__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  max-width: 1280px; margin: clamp(32px, 2.8vw, 40px) auto 0; padding: 0; list-style: none;
}
.i-gift {
  min-height: 220px; padding: 20px 20px 24px 24px;
  background: #fff7f2; border: 1px solid rgba(62, 34, 21, .08); border-radius: 24px;
  transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}
/* `translate`, not `transform`, since the reveal tween owns the transform. GSAP also writes an inline `translate: none`, hence !important. */
.i-gift:hover { translate: 0 -4px !important; box-shadow: 0 18px 40px -26px rgba(62, 34, 21, .45); }
.i-gift__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brown); color: var(--cream); font: 700 16px/1 var(--font-body);
}
.i-gift__title { margin: 20px 0 16px; font: 700 20px/1.25 var(--font-body); }
.i-gift p { margin: 0; font-size: 15px; line-height: 1.6; }
.i-gifts__dots { display: none; }

/* ---------- 8. Closing CTA ---------- */
.i-cta { padding: clamp(96px, 9.9vw, 142px) 0 clamp(16px, 1.3vw, 18px); background: var(--cream); }
.i-cta .container { padding-inline: clamp(12px, 6.1vw, 88px); }
.i-cta__card {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  padding: clamp(40px, 3.9vw, 56px) 24px clamp(36px, 3vw, 44px);
  background: var(--brown); color: var(--cream); border-radius: var(--radius-lg); text-align: center;
}
.i-cta__text { max-width: 880px; margin: 0; font: 400 clamp(24px, 2.1vw, 30px)/1.3 var(--font-display); }

/* Every Impact CTA in Figma is a 161x58 button with a 10px radius and 18px label. */
.page-impact main .btn { min-width: 161px; min-height: 58px; padding: 14px 22px; border-radius: 10px; font-size: 18px; }

/* Short laptop screens: the pinned scene has to fit one viewport. */
@media (min-width: 761px) and (max-height: 900px) {
  .i-forms__pin { min-height: 100vh; }
  .i-forms__inner { padding-top: calc(var(--header-h) * .7); padding-bottom: 24px; }
  .i-forms__title { margin-bottom: clamp(20px, 3.5vh, 40px); }
  .i-forms__card { min-height: 0; padding: 22px 18px 18px; }
  .i-forms__card .glass__icon { margin-bottom: 12px; }
  .i-forms__card p { font-size: 16px; line-height: 1.5; }
  .i-forms__goal { margin: clamp(20px, 4vh, 44px) auto clamp(16px, 3vh, 32px); font-size: clamp(18px, 2.6vh, 26px); line-height: 1.5; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .i-forms__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i-gifts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .i-stories__grid { grid-template-columns: 1fr; gap: 40px; }
  .i-hero__body {
    max-width: 560px; padding: 18px 20px; border-radius: var(--radius);
    background: rgba(255, 251, 244, .8);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}

/* ---------- Mobile (Figma 440 frames) ---------- */
@media (max-width: 760px) {
  .i-hero { min-height: 100svh; }
  .i-hero { background: #8ab2c3; }
  /* Figma m16 "tractor 2": 1535x1137 at -560,-136 of the 440x956 frame; no overlay on mobile. */
  .i-hero__bg { left: -131%; top: -5%; width: 348.9%; height: 118.9%; }
  .i-hero__shade { display: none; }
  .i-hero__content { padding: calc(var(--header-h) + 14px) 16px 60px; }
  .i-hero__l1 { font-size: 40px; max-width: 320px; }
  .i-hero__l2 { font-size: clamp(40px, 11.4vw, 50px); }
  .i-hero__body { font-size: 16px; max-width: 360px; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .i-total { padding-top: calc(var(--header-h) + 10px); }
  .i-total .container { padding-inline: 12px; }
  .i-total__l1 { font-size: clamp(16px, 4.2vw, 18.5px); letter-spacing: 0; }
  .i-total__amount { font-size: 46px; }
  .i-total__since { flex-basis: 100%; font-size: 28px; letter-spacing: 0; }
  .i-total__lead { font-size: 18px; margin-top: 18px; }
  .i-total__boxes { grid-template-columns: repeat(2, minmax(0, 192px)); gap: 12px; margin-top: 40px; }
  .i-total__box { min-height: 180px; padding: 18px 20px; border-radius: 10px; }
  .i-total__box:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); max-width: 192px; }
  .i-total__pct { font-size: 51px; margin-bottom: 6px; }
  .i-total__label { font-size: 13px; }

  .i-grows { padding-top: calc(var(--header-h) + 40px); text-align: center; }
  .i-grows__grid { grid-template-columns: 1fr; gap: 0; padding-inline: 28px; }
  .i-grows__img { display: none; }
  .i-grows__l2 { display: block; }
  .i-grows__title { max-width: 380px; margin: 0 auto 30px; font-size: 44px; }
  .i-grows__stats { gap: 12px; text-align: left; }
  .i-grows__stat { min-height: 161px; padding: 14px 18px 18px; border-radius: 10px; }
  .i-grows__stat p { font-size: 13px; }
  .i-grows__stat .i-grows__num { font-size: 50px; margin-bottom: 0; }
  .i-grows__stat--wide { min-height: 138px; padding: 12px 38px 18px; margin-top: 0; }
  .i-grows__cta { margin-top: 44px; }
  .i-grows__cta p { max-width: 364px; margin: 0 auto 30px; }

  .i-meet { min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 10px); background: #dad6d3; }
  .i-meet__text { padding-inline: 16px; }
  .i-meet__title { font-size: 40px; }
  .i-meet__text p { font-size: 16px; }
  .i-meet__scene { position: relative; inset: auto; flex: 1 0 84vw; height: auto; margin-top: 0; }
  .i-meet__combine { width: 230%; margin-left: -114%; bottom: -21vw; }

  .i-forms__pin { min-height: 100svh; }
  /* Figma m20: 1492x996 at -482,0; multiply layer spans -139..1481, so .52 at the left edge to .37 at the right. */
  .i-forms__bg { left: -109.5%; top: 0; width: 339.1%; height: 104.2%; }
  .i-forms__shade { background: linear-gradient(to left, rgba(47, 28, 11, .37) 0%, rgba(47, 28, 11, .52) 100%); }
  .i-forms__inner { padding: calc(var(--header-h) + 40px) 20px 60px; }
  .i-forms__title { font-size: 40px; max-width: 360px; margin: 0 auto 36px; }
  .i-forms__cards { gap: 12px; }
  .i-forms__card { min-height: 116px; padding: 26px 12px 12px; border-radius: 9px; }
  .i-forms__card .glass__icon { width: 14px; height: 14px; margin-bottom: 14px; }
  .i-forms__card p { font-size: 13px; line-height: 1.5; }
  .i-forms__goal { font-size: 20px; margin: 30px auto 24px; }

  .i-stories { text-align: center; padding-top: calc(var(--header-h) + 50px); }
  .i-stories__grid { padding-inline: 20px; gap: 32px; }
  .i-stories__title { font-size: 34px; }
  .i-stories__sub { font-size: 30px; max-width: 360px; margin-inline: auto; }
  .i-story__quote { font-size: 18px; }
  .i-story__body p { font-size: 14px; line-height: 1.65; }
  .i-story__meta { grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-inline: auto; padding-top: 18px; }
  .i-story__meta dt { font-size: 10px; margin-bottom: 4px; }
  .i-story__meta dd { font-size: 12px; margin-inline: auto; }
  .i-stories__nav { margin-inline: auto; }

  .i-gifts { padding-top: calc(var(--header-h) + 40px); }
  .i-gifts .container { padding-inline: 0; }
  .i-gifts__head { padding-inline: 14px; }
  .i-gifts__title { font-size: 34px; }
  .i-gifts__sub { font-size: 20px; line-height: 1.3; max-width: 320px; margin-top: 18px; }
  .i-gifts__grid {
    display: flex; gap: 24px; margin-top: 28px;
    padding: 0 calc((100% - 302px) / 2) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .i-gifts__grid::-webkit-scrollbar { display: none; }
  .i-gift { flex: 0 0 302px; scroll-snap-align: center; }
  .i-gift:hover { translate: none !important; box-shadow: none; }
  .i-gifts__dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
  .i-gifts__dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(62, 34, 21, .42); transition: background .3s; }
  .i-gifts__dots span.is-active { background: var(--brown); }

  .i-cta { padding-top: 96px; }
  .i-cta__card { padding: 56px 16px 32px; gap: 52px; border-radius: 24px; }
  .i-cta__text { font-size: 24px; line-height: 1.28; max-width: 360px; }
}
