/* Home — frames "Home - 1" to "Home - 7" (Figma 649:3048 / 649:10310). */

/* ---------- 1. Hero ---------- */
.h-hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
  background: #1d120c;
  color: var(--cream);
}
.h-hero__media, .h-hero__bg, .h-hero__farmer { position: absolute; inset: 0; }
.h-hero__bg img, .h-hero__farmer img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.h-hero__bg, .h-hero__farmer { will-change: transform; }
/* Figma "Rectangle 4" and "Rectangle 5": two multiply gradients, darkest on the left. */
.h-hero__shade { position: absolute; inset: 0; }
.h-hero__shade::before, .h-hero__shade::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; mix-blend-mode: multiply;
}
.h-hero__shade::before { width: 71.2%; background: linear-gradient(to left, rgba(47, 28, 11, 0) 0%, rgba(47, 28, 11, .73) 100%); }
.h-hero__shade::after { width: 80.3%; background: linear-gradient(to left, rgba(47, 28, 11, 0) 0%, rgba(47, 28, 11, .57) 100%); }
.h-hero__content { position: relative; z-index: 2; padding-top: var(--header-h); padding-bottom: 80px; }
.h-hero__eyebrow { margin-bottom: 4px; }
.h-hero__title { margin-bottom: clamp(16px, 1.6vw, 22px); letter-spacing: -.01em; }
.h-hero__sub { font-weight: 600; font-size: clamp(18px, 1.62vw, 23px); line-height: 1.6; margin-bottom: 6px; max-width: 640px; }
.h-hero__body { max-width: 614px; margin-bottom: clamp(40px, 6vw, 90px); }
.h-hero__stat {
  position: absolute; z-index: 3;
  right: 10%; bottom: 7.5%;
  width: 292px; min-height: 173px; padding: 22px 17px;
  font-size: 17px; line-height: 1.6;
  background: rgba(39, 31, 16, .33);
}
.h-hero__stat p { margin: 0; }

/* ---------- 2. Vulnerable ---------- */
.h-vuln {
  position: relative;
  min-height: max(100svh, 900px);
  overflow: hidden;
  background: #3a2414;
  color: var(--cream);
}
.h-vuln__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
/* Shifted up so the farmer stands just under "support." as in the Figma frame; both layers share one canvas. */
.h-vuln__bg, .h-vuln__farmer { position: absolute; left: 0; top: -16%; width: 100%; height: 116%; object-fit: cover; object-position: 50% 30%; }
/* Figma layer blur 2.5 ≈ CSS blur(1.25px): Figma radii are about twice the CSS value. */
/* The Figma layer blur (2.5) and the -20% brightness match are baked into vulnerable-bg.webp:
   it compresses about 5x smaller and the scroll zoom no longer re-filters every frame. */
/* Figma "Home 2 gradient 1/2" are rotated -90deg: multiply, transparent at the top to 57% at the bottom.
   The second starts at 29% of the height, which deepens the lower half where the cards and orange line sit. */
.h-vuln__media::before, .h-vuln__media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; mix-blend-mode: multiply;
  background: linear-gradient(to bottom, rgba(47, 28, 11, 0) 0%, rgba(47, 28, 11, .57) 100%);
}
.h-vuln__media::before { top: 0; }
.h-vuln__media::after { top: 29%; }
.h-vuln__farmer { z-index: 2; pointer-events: none; }
.h-vuln__inner { padding-top: calc(var(--header-h) + 50px); padding-bottom: 80px; }
.h-vuln__head { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.h-vuln__eyebrow {
  position: relative; z-index: 3; grid-column: 1 / -1;
  font-family: var(--font-display); font-size: clamp(22px, 2.1vw, 30px); line-height: 1.15; margin: 0;
}
.h-vuln__title-stack { position: relative; max-width: 900px; }
.h-vuln__title {
  display: block;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 5.8vw, 84px); line-height: .82; letter-spacing: -.01em;
  padding-bottom: .1em;
  color: #fff;
  mix-blend-mode: soft-light;
}
.h-vuln__title--echo { position: absolute; inset: 0; }
/* Browsers render soft-light darker than Figma; one overlay pass on the base copy brings back Figma's cream-gold. */
h2.h-vuln__title { mix-blend-mode: overlay; }
.h-vuln__btn { position: relative; z-index: 3; margin-bottom: 1.2em; }
.h-vuln__cards {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 292fr 292fr 540fr; gap: 27px;
  margin-top: clamp(80px, 9.4vw, 136px);
}
.h-vuln__card { min-height: 291px; padding: 30px 17px; font-size: 17px; line-height: 1.6; background: rgba(255, 251, 244, .13); }
.h-vuln__card p { margin: 0; }
.h-vuln__dots { display: none; }
.h-vuln__after {
  position: relative; z-index: 3;
  margin: 36px auto 0; text-align: center;
  font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6;
  color: var(--orange);
}


/* ---------- 3. Threats ---------- */
.h-threats { padding: 13.4vw 0 clamp(40px, 5vw, 70px); background: var(--cream); color: var(--black); overflow: hidden; }
.h-threats__grid {
  display: grid; grid-template-columns: minmax(0, 729fr) minmax(0, 536fr); gap: clamp(32px, 4.3vw, 62px);
  align-items: center;
  padding-left: clamp(20px, 2.6vw, 37px); padding-right: clamp(20px, 5.3vw, 76px);
}
.h-threats__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 729 / 402; }
.h-threats__img img { width: 100%; height: 100%; object-fit: cover; }
.h-threats__title { font-size: clamp(26px, 2.32vw, 33.3px); line-height: 1.15; margin-bottom: 22px; }
.h-threats__text p { color: var(--ink); margin-bottom: 28px; }
.h-strip { margin-top: clamp(48px, 6vw, 88px); overflow: hidden; }
.h-strip__track { display: flex; gap: clamp(12px, 1.25vw, 18px); width: max-content; padding-left: 33px; }
.h-strip__track img { height: clamp(140px, 14.1vw, 203px); width: auto; aspect-ratio: 1; object-fit: cover; border-radius: 25px; flex: none; }
/* Figma order: square, wide, wide, square, square, wide. */
.h-strip__track img:nth-child(6n + 2), .h-strip__track img:nth-child(6n + 3), .h-strip__track img:nth-child(6n) { aspect-ratio: 305 / 203; }

/* ---------- 4. Disappears ---------- */
.h-disappear {
  position: relative;
  min-height: max(100svh, 900px);
  padding: calc(var(--header-h) + 30px) 0 0;
  overflow: hidden;
  background: var(--cream);
  color: var(--black);
}
.h-disappear__mark { position: absolute; width: 45vw; max-width: 650px; right: -6vw; top: 17%; }
.h-disappear__text { position: relative; z-index: 3; padding-left: calc(var(--gutter) + 35px); }
.h-disappear__title { display: flex; flex-direction: column; margin-bottom: 18px; }
.h-disappear__accent { font-size: clamp(34px, 3.81vw, 55px); line-height: 1.15; }
.h-disappear__text > p { max-width: 720px; color: var(--ink); }
.h-disappear__map {
  display: flex; gap: 24px; align-items: flex-start;
  max-width: 557px; min-height: 181px; margin: 30px 0 30px; padding: 20px 28px 18px 18px;
  /* Figma "home 4 container": warm tint, hairline rust stroke, glass. */
  background: rgba(255, 218, 182, .18);
  border: .5px solid var(--rust); border-radius: 12.5px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 17px; line-height: 1.6; color: var(--ink);
}
.h-disappear__map img { width: 48px; flex: none; }
.h-disappear__map p { margin: 0; }
.h-disappear__scene { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.h-disappear__combine { position: absolute; left: -.5%; bottom: 0; width: 125%; max-width: none; height: auto; aspect-ratio: 1803 / 757; object-fit: cover; object-position: 50% 0%; }
.h-disappear__boy { position: absolute; left: 50.6%; bottom: 0; height: 50%; width: auto; }
.h-disappear__rancher { position: absolute; left: 62.5%; bottom: 0; height: 92.8%; width: auto; }

/* ---------- 5. Counting on you ---------- */
.h-count { position: relative; min-height: max(100svh, 64.65vw); background: var(--cream); color: var(--black); overflow: hidden; }
.h-count__photo { position: absolute; top: 0; right: 0; width: 42.5%; height: 100%; overflow: hidden; }
.h-count__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.h-count__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 597px) 1fr; gap: 48px;
  padding-top: calc(var(--header-h) + 98px);
  padding-left: calc(var(--gutter) + 15px);
}
.h-count__text p { margin: 22px 0 28px; font-size: 17px; color: var(--ink); max-width: 591px; }
.h-count__card {
  align-self: start; justify-self: end;
  width: 100%; max-width: 464px; min-height: 222px; margin-top: 56px; margin-right: -40px;
  padding: 22px 17px; font-size: 17px;
  background: rgba(43, 28, 0, .27);
}
.h-count__card p { margin: 0; }
.h-collage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.h-collage img { position: absolute; object-fit: cover; border-radius: 28.6px; }
.h-collage__a  { left: -3.47vw; bottom: -12.29vw; width: 20.9vw;  height: 31.39vw; }
.h-collage__b  { left: 18.47vw; bottom: 2.15vw;   width: 14.31vw; height: 14.31vw; }
.h-collage__b2 { left: 18.47vw; bottom: -17.92vw; width: 14.31vw; height: 19.03vw; }
.h-collage__c  { left: 33.82vw; bottom: -9.38vw;  width: 20.9vw;  height: 20.9vw; }
.h-collage__d  { position: absolute; left: 55.76vw; bottom: -11.81vw; width: 28.61vw; height: 34.51vw; border-radius: 25px; overflow: hidden; }
/* Figma masks the 1455x952 photo inside the 412x497 tile, offset (-540, -388): a zoomed crop on the farmer's face. */
.h-collage__d img { position: absolute; left: -131%; top: -78%; width: 353%; max-width: none; height: auto; border-radius: 0; }
.h-collage__e  { left: 85.42vw; bottom: -11.46vw; width: 20.9vw;  height: 27.92vw; }

/* ---------- 6. Stand together ---------- */
.h-together { background: var(--cream); }
.h-together__pin { height: 100svh; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) - 10px) var(--gutter) 40px; }
.h-together__card {
  position: relative; width: 100%; max-width: 1175px; height: 100%; max-height: 695px;
  border-radius: 28.7px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: clamp(40px, 6vw, 92px) 24px clamp(28px, 3vw, 44px);
  color: #fff; text-align: center;
}
.h-together__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.h-together__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 12, 6, .35) 0%, rgba(20, 12, 6, 0) 40%, rgba(20, 12, 6, .2) 100%); }
.h-together__title { position: relative; display: flex; flex-direction: column; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.h-together__l1 { font-size: clamp(30px, 3.07vw, 44px); line-height: 1.15; }
.h-together__l2 { font-size: clamp(34px, 3.76vw, 54px); line-height: 1.15; }
.h-together__btn { position: relative; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .h-vuln__cards { grid-template-columns: 1fr 1fr; }
  .h-vuln__card--wide { grid-column: 1 / -1; min-height: 0; }
  .h-count__photo { width: 50%; }
  .h-count__grid { grid-template-columns: 1fr; padding-right: 52%; }
  .h-count__card {
    justify-self: start; margin: 0;
    background: var(--cream-2); color: var(--ink); border-color: rgba(62, 34, 21, .12);
  }
  .h-count__card .glass__icon { filter: invert(18%) sepia(25%) saturate(1600%) hue-rotate(345deg) brightness(.5); }
  .h-disappear__text > p, .h-disappear__map { max-width: min(720px, 56vw); }
}

/* ---------- Mobile (Figma 440 frames) ---------- */
@media (max-width: 760px) {
  .h-hero { align-items: flex-start; min-height: 100svh; text-align: center; }
  .h-hero__bg img { object-position: 50% 50%; }
  /* The mobile background photo already contains the farmer. */
  .h-hero__farmer { display: none; }
  /* Figma m Home-1 "Rectangle 5/6" (rotated 90deg): multiply, 44% at the top fading out by 88% / 91% of the height. */
  .h-hero__shade { background: none; }
  .h-hero__shade::before, .h-hero__shade::after { width: 100%; bottom: auto; background: linear-gradient(to bottom, rgba(47, 28, 11, .44) 0%, rgba(47, 28, 11, 0) 100%); }
  .h-hero__shade::before { height: 88.3%; }
  .h-hero__shade::after { height: 91.5%; }
  .h-hero__content { padding-top: calc(var(--header-h) + 34px); }
  .h-hero__title { font-size: clamp(48px, 13vw, 60px); }
  .h-hero__sub { margin-inline: auto; font-size: 18px; line-height: 1.4; }
  .h-hero__body { font-size: 14px; margin-inline: auto; }
  .h-hero__btn { display: none; }
  .h-hero__stat { left: 20px; right: auto; bottom: 20px; width: 62%; padding: 18px 16px; font-size: 14px; text-align: left; }

  .h-vuln { min-height: 100svh; text-align: center; }
  .h-vuln__head { grid-template-columns: 1fr; justify-items: center; }
  .h-vuln__title { font-size: clamp(44px, 12vw, 56px); line-height: .9; }
  .h-vuln__btn { display: none; }
  .h-vuln__cards {
    display: flex; gap: 14px; margin: 70px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; text-align: left;
  }
  .h-vuln__cards::-webkit-scrollbar { display: none; }
  .h-vuln__card { flex: 0 0 68%; min-height: 220px; scroll-snap-align: center; font-size: 15px; }
  .h-vuln__card--wide { min-height: 220px; }
  .h-vuln__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .h-vuln__dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 251, 244, .4); transition: background .3s; }
  .h-vuln__dots span.is-active { background: var(--cream); }

  .h-threats { padding-top: 0; }
  .h-threats__grid { grid-template-columns: 1fr; padding: 0; text-align: center; }
  .h-threats__img { border-radius: 0; aspect-ratio: 440 / 380; }
  .h-threats__text { padding-inline: var(--gutter); }
  .h-threats__title { font-size: 26px; }
  .h-threats__text p { font-size: 14px; }

  .h-disappear { min-height: 0; padding-top: calc(var(--header-h) + 10px); }
  .h-disappear__text { padding-left: var(--gutter); }
  .h-disappear__accent { font-size: clamp(36px, 10vw, 46px); }
  .h-disappear__text > p { font-size: 14px; }
  .h-disappear__map { font-size: 13px; padding: 16px; }
  .h-disappear__map img { width: 34px; }
  .h-disappear__scene { position: relative; height: 105vw; margin-top: -10vw; z-index: 1; }
  .h-disappear__combine { left: -5%; width: 140%; }
  .h-disappear__boy { left: 30%; height: 55%; }
  .h-disappear__rancher { left: 48%; height: 92%; }
  .h-disappear__mark { width: 90vw; right: -20vw; top: auto; bottom: 30vw; }

  .h-count { min-height: 0; text-align: center; }
  .h-count__photo { position: relative; width: 100%; height: 60vw; order: 2; display: none; }
  .h-count__grid { padding: calc(var(--header-h) + 10px) var(--gutter) 0; }
  .h-count__text p { font-size: 14px; }
  .h-count__card {
    justify-self: stretch; max-width: none; text-align: left; font-size: 14px;
    background: var(--cream-2); color: var(--ink); border-color: rgba(62, 34, 21, .12);
  }
  .h-count__card .glass__icon { filter: invert(18%) sepia(25%) saturate(1600%) hue-rotate(345deg) brightness(.5); }
  .h-collage { position: relative; inset: auto; height: 62vw; margin-top: 40px; }
  .h-collage img { bottom: -10vw; border-radius: 18px; }
  .h-collage__a { left: 0; width: 30%; height: 52vw; }
  .h-collage__b { left: 31%; width: 26%; height: 36vw; }
  .h-collage__d { left: 58%; width: 44%; height: 60vw; bottom: -10vw; border-radius: 18px; }
  .h-collage__b2, .h-collage__c, .h-collage__e { display: none; }

  .h-together__pin { height: auto; padding: var(--header-h) 12px 24px; }
  .h-together__card { height: 92svh; max-height: 760px; justify-content: flex-start; gap: 24px; padding-top: 40px; }
  .h-together__img { left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 40%; }

  /* ----- Exact Figma 440 values (text_styles: m Home 1-5) ----- */
  .h-hero__content { padding-top: 160px; }
  .h-hero__eyebrow { font-size: 30px; line-height: 34px; margin-bottom: 0; }
  .h-hero__title { font-size: 56px; line-height: 65px; margin-bottom: 14px; }
  .h-hero__sub { font-size: 18px; line-height: 25px; margin-bottom: 20px; }
  .h-hero__body { font-size: 14px; line-height: 20px; }
  .h-hero__stat { top: auto; bottom: 26px; width: 272px; }
  .h-hero__stat p { font-size: 14px; line-height: 22px; }

  .h-vuln__inner { padding-top: 133px; }
  .h-vuln__eyebrow { font-size: 30px; line-height: 34px; margin-bottom: 0; padding-inline: 24px; }
  .h-vuln__head { gap: 12px; }
  .h-vuln__title-stack { max-width: 362px; margin-inline: auto; }
  .h-vuln__title { font-size: 60px; line-height: 49px; }
  .h-vuln__cards { margin-top: 110px; }
  .h-vuln__card { font-size: 14px; line-height: 22px; }
  .h-vuln__after { font-size: 18px; line-height: 29px; padding-inline: 36px; }

  .h-threats__title { font-size: 30px; line-height: 34px; }
  .h-threats__text p { font-size: 14px; line-height: 22px; }

  .h-disappear__title .h-sm { font-size: 30px; line-height: 34px; }
  .h-disappear__accent { font-size: min(50px, 11.2vw); line-height: 1.16; letter-spacing: -.01em; }
  .h-disappear__text { padding-right: 12px; }
  .h-disappear__text > p { font-size: 14px; line-height: 22px; }
  .h-disappear__text > p, .h-disappear__map { max-width: none; }
  .h-disappear__map p { font-size: 12px; line-height: 19px; }
  .h-disappear__map { min-height: 0; }

  .h-count__text h2 { font-size: 30px; line-height: 34px; }
  .h-count__text p, .h-count__card p { font-size: 14px; line-height: 22px; }
}
