/* The Crisis — frames "the crisis - 12, 9, 10, 5, 6, 7, 3" (desktop 1440) and the matching 440 mobile frames. */

/* ---------- 1. Hero: on the brink ---------- */
.c-hero {
  position: relative;
  min-height: max(100svh, 720px);
  overflow: hidden;
  background: #8fb3d9;
  color: var(--black);
}
.c-hero__media, .c-hero__bg { position: absolute; inset: 0; }
.c-hero__bg { overflow: hidden; will-change: transform; transform-origin: 30% 60%; }
/* Figma "Legacy in the Furrows 1": 1617x1025 at (-177, -56) of the 1440 frame. No overlay. */
.c-hero__bg img {
  position: absolute; left: -12.29vw; top: -3.89vw;
  width: 112.29vw; height: max(71.18vw, calc(100% + 3.89vw)); max-width: none;
  object-fit: cover; object-position: 0 0;
}
.c-hero__content {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 42px) 40px 80px 55.3vw;
}
.c-hero__title {
  display: flex; flex-direction: column;
  font-size: clamp(30px, 3.125vw, 45px); line-height: 1.16;
  margin-bottom: 6px;
}
.c-hero__body { max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; }

/* ---------- 2. Backbone of agriculture ---------- */
.c-backbone {
  display: flex; align-items: flex-start;
  min-height: max(100svh, 760px);
  /* Frame "crisis - 9": photo top at y 269, kicker at y 318. */
  padding: 18.68vw 0 60px;
  background: var(--brown);
  color: #fffaf5;
}
.c-backbone__grid {
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 670fr) minmax(0, 689fr); align-items: start;
  padding: 0 2.85vw 0 2.8vw;
}
.c-backbone__text { padding-right: 2vw; margin-top: 3.4vw; }
.c-backbone__title { display: flex; flex-direction: column; margin-bottom: 18px; }
.c-backbone__kicker { font-size: clamp(18px, 1.67vw, 24px); line-height: 1.05; margin-bottom: 10px; }
.c-backbone__main { font-size: clamp(36px, 4.17vw, 60px); line-height: 1.18; }
.c-backbone__text p { max-width: 611px; margin: 0; color: var(--cream); }
.c-backbone__img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 689 / 486; }
/* Figma "image 1": 827x552 inside the 689x486 clip, offset (-79, -39). */
.c-backbone__img img { position: absolute; left: -11.47%; top: -8.02%; width: 120.03%; height: 113.58%; max-width: none; object-fit: cover; }

/* ---------- 3. When a farm fails + staggered strip ---------- */
.c-fails { position: relative; padding-top: calc(var(--header-h) + 98px); background: var(--cream); color: var(--ink); overflow: hidden; }
.c-fails__text { position: relative; z-index: 2; text-align: center; }
.c-fails__text > p:first-child { max-width: 660px; margin: 0 auto 36px; }
.c-fails__lead {
  max-width: 540px; margin: 0 auto;
  font-family: var(--font-display); font-size: clamp(20px, 1.67vw, 24px); line-height: 1.58;
}
/* Figma "Placeholder Image 1–8": each tile at its own x/y/size (top of the strip = frame y 429), radius 24.46. */
.c-strip { position: relative; z-index: 1; height: 45.21vw; margin-top: -6.4vw; }
.c-strip__track { position: absolute; inset: 0; will-change: transform; }
.c-strip__tile { position: absolute; margin: 0; width: 17.92vw; border-radius: 1.7vw; overflow: hidden; }
.c-strip__tile img { width: 100%; height: 100%; object-fit: cover; }
.c-strip__tile--1 { left: -4.17vw; top: 0;       height: 34.24vw; }
.c-strip__tile--2 { left: 14.65vw; top: 12.64vw; height: 27.64vw; width: 12.22vw; }
.c-strip__tile--3 { left: 27.78vw; top: 18.19vw; height: 17.92vw; }
.c-strip__tile--4 { left: 46.6vw;  top: 15.49vw; height: 26.88vw; }
.c-strip__tile--5 { left: 65.42vw; top: 21.32vw; height: 23.89vw; }
.c-strip__tile--6 { left: 84.17vw; top: 7.64vw;  height: 26.6vw; }
.c-strip__tile--7 { left: 103vw;   top: 14vw;    height: 26vw; width: 12.22vw; }
.c-strip__tile--8 { left: 116.1vw; top: 4vw;     height: 30vw; }

/* ---------- 4–6. Three-column scenes: lead text | photo | closing text ---------- */
.c-split {
  position: relative;
  display: flex; align-items: center;
  min-height: max(100svh, 860px);
  padding: calc(var(--header-h) + 60px) 0 80px;
  background: var(--cream);
  color: var(--brown);
  overflow: hidden;
}
.c-split__grid {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 409fr) minmax(0, 467fr) minmax(0, 427fr);
  gap: 1.4vw;
  padding: 0 2.8vw 0 4vw;
}
.c-split__lead { align-self: start; max-width: 410px; }
.c-split__lead p { margin: 0; }
.c-split__img { align-self: start; border-radius: var(--radius); overflow: hidden; aspect-ratio: 467 / 622; }
.c-split__img picture, .c-split__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.c-split__after { align-self: end; margin: 0 0 -6px; }

/* Figma "Group" 2125x1908 at (-90, -1324), opacity .06. */
.c-present__mark {
  position: absolute; left: -6.25vw; top: -91.94vw;
  width: 147.57vw; height: 132.5vw; max-width: none;
  opacity: .06; pointer-events: none;
}
.c-present .c-split__lead { margin-top: 3.5vw; }
.c-present__title { display: flex; flex-direction: column; margin-bottom: 14px; }
.c-present__kicker { font-size: 16px; line-height: 1.25; letter-spacing: .06em; margin-bottom: 10px; } /* Figma .96px */
.c-present__main { font-size: clamp(38px, 3.75vw, 54px); line-height: 1.056; max-width: 24.3vw; }
/* The frame breaks after "present-"; SplitText treats "present-day" as one word, so the break is explicit (desktop only). */

.c-capacity .c-split__lead { max-width: 370px; }
.c-capacity__stat {
  margin: 8px 0 10px !important;
  font-family: var(--font-display); font-size: clamp(40px, 3.82vw, 55px); line-height: 1.05;
  font-variant-numeric: tabular-nums; white-space: nowrap;
  letter-spacing: -.02em; /* Figma "crisis - 6": -1.1px at 55px */
}
.c-capacity__post { max-width: 300px; }
.c-even .c-split__after { max-width: 385px; margin-left: 12px; }

/* ---------- 7. The land is at risk ---------- */
.c-risk { position: relative; background: #c9d6dc; }
.c-risk__pin { position: relative; height: max(100svh, 720px); overflow: hidden; }
.c-risk__canvas {
  /* Figma bg: 1715x1083 at (-41, -46). */
  position: absolute; left: -2.85vw; top: -3.19vw;
  width: max(119.1vw, calc(max(100svh, 720px) * 1.62));
  aspect-ratio: 1715 / 1083;
  transform-origin: 72% 40%;
  will-change: transform;
}
.c-risk__bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
/* Matched against the bg: the cut-out sits at 16.2% / 12.5% and spans 83.7% of the canvas. */
.c-risk__farmer { position: absolute; left: 16.2%; top: 12.52%; width: 83.7%; height: auto; max-width: none; }
.c-risk__shade {
  /* Figma: 1526x537 at (-41, 577), linear black 0% -> 80% top to bottom, BACKGROUND_BLUR 30. It runs past the bottom of the frame. */
  position: absolute; left: -2.85vw; top: 63.13%; width: 106vw; height: 58.75%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 100%);
  /* Matched by eye to the render: Figma's 30 reads as a light softening here, not a CSS blur(30px). */
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.c-risk__content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: calc(var(--header-h) + 57px) var(--gutter) clamp(48px, 9vh, 92px);
  text-align: center;
}
.c-risk__title { display: flex; flex-direction: column; color: var(--brown); margin-bottom: 24px; }
.c-risk__l1 { font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; }
.c-risk__l2 { font-size: clamp(44px, 4.17vw, 60px); line-height: 1.05; }
.c-risk__body { max-width: 636px; margin: 0 auto; color: var(--brown); }
.c-risk__bottom { display: flex; flex-direction: column; align-items: center; position: absolute; left: 0; right: 0; top: 72.87%; }
/* Figma "home 3 button": 188x58, radius 10. */
.c-risk__btn { min-height: 58px; min-width: 188px; border-radius: 10px; font-size: 18px; letter-spacing: .07em; } /* Figma: 18px, 1.26px tracking, both breakpoints */
.c-risk__story {
  max-width: 520px; margin: 0 0 41px;
  font-family: var(--font-display); font-size: clamp(20px, 1.74vw, 25px); line-height: 1.16;
  color: #fff;
}
.c-risk__btn--mobile { display: none; }

/* ---------- Blurred strip above the footer (Figma "the crisis - 11") ----------
   Same tiles as the strip, carried on up the page: each at its own Figma x/y/size, radius 24.46, 356px tall. */
.page-crisis .footer-fade { height: 24.72vw; }
.page-crisis .footer-fade::after { display: none; }
.page-crisis .footer-fade__row { position: relative; display: block; height: 100%; padding: 0; transform: none; }
.page-crisis .footer-fade__row img { position: absolute; margin: 0; width: 17.92vw; aspect-ratio: auto; border-radius: 1.7vw; }
.page-crisis .footer-fade__row img:nth-child(1) { left: -4.17vw; top: -17.71vw; height: 34.24vw; }
.page-crisis .footer-fade__row img:nth-child(2) { left: 14.65vw; top: -5.07vw;  height: 27.64vw; width: 12.22vw; }
.page-crisis .footer-fade__row img:nth-child(3) { left: 27.78vw; top: .49vw;    height: 17.92vw; }
.page-crisis .footer-fade__row img:nth-child(4) { left: 46.6vw;  top: -2.22vw;  height: 26.88vw; }
.page-crisis .footer-fade__row img:nth-child(5) { left: 65.42vw; top: 3.61vw;   height: 23.89vw; }
.page-crisis .footer-fade__row img:nth-child(6) { left: 84.17vw; top: -10.07vw; height: 26.6vw; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .c-hero__content { padding-left: 46vw; }
  .c-present__main { max-width: 420px; }
  .c-hero__copy {
    padding: 22px 24px; border-radius: var(--radius);
    background: rgba(255, 251, 244, .82);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
  .c-split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 4vw; padding-inline: var(--gutter); }
  .c-split__img { grid-row: span 2; }
  .c-split__after { align-self: start; }
}

/* ---------- Mobile (Figma 440 frames) ---------- */
@media (max-width: 760px) {
  .c-hero { min-height: 100svh; text-align: center; }
  .c-hero__content { padding: calc(var(--header-h) + 64px) 22px 60px; }
  .c-hero__title { font-size: clamp(28px, 7.3vw, 34px); line-height: 1.15; }
  .c-hero__body { margin-inline: auto; font-size: 15px; }
  /* Figma "Generations in the Soil 1": 650x1415 at (-77, -244) of the 440 frame. */
  .c-hero__bg img { left: -17.5vw; top: -55.45vw; width: 147.73vw; height: max(321.6vw, calc(100% + 55.45vw)); }
  .c-hero__copy { padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .c-backbone { min-height: 0; padding: calc(var(--header-h) + 34px) 0 64px; text-align: center; }
  .c-backbone__grid { grid-template-columns: 1fr; padding: 0 12px; }
  .c-backbone__text { padding: 0; }
  .c-backbone__title { margin-bottom: 40px; }
  .c-backbone__kicker { font-size: 16px; margin-bottom: 4px; }
  .c-backbone__main { font-size: clamp(26px, 7.05vw, 31px); line-height: 1.2; max-width: 391px; margin-inline: auto; }
  .c-backbone__text p { font-size: 16px; line-height: 1.625; margin-inline: auto; }
  .c-backbone__img { width: calc(100% - 28px); margin: 28px auto 0; aspect-ratio: 396 / 340; }

  .c-fails { padding-top: calc(var(--header-h) + 50px); }
  .c-fails__text { padding-inline: 15px; }
  .c-fails__text > p:first-child { font-size: 16px; line-height: 1.625; margin-bottom: 36px; }
  .c-fails__lead { font-size: 19px; line-height: 1.58; }
  /* m10: tiles at x -94 / 30 / 208 / 386 of the 440 frame, strip top = frame y 585, radius 24.46. */
  .c-strip { height: 70vw; margin-top: 30px; margin-bottom: 40px; }
  .c-strip__tile, .c-strip__tile--2, .c-strip__tile--7 { width: 38.41vw; border-radius: 5.56vw; }
  .c-strip__tile--1 { left: -21.36vw; top: 0;      width: 26.36vw; height: 59.32vw; }
  .c-strip__tile--3 { left: 6.82vw;   top: 12.05vw; height: 38.41vw; }
  .c-strip__tile--2 { left: 47.27vw;  top: 6.14vw;  height: 57.73vw; }
  .c-strip__tile--5 { left: 87.73vw;  top: 18.86vw; height: 51.36vw; }
  .c-strip__tile--4 { left: 128.2vw;  top: 4vw;     height: 52vw; }
  .c-strip__tile--6 { left: 168.6vw;  top: 14vw;    height: 46vw; }
  .c-strip__tile--7, .c-strip__tile--8 { display: none; }

  .c-split { display: block; min-height: 0; padding: calc(var(--header-h) + 40px) 0 72px; }
  .c-split__grid { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
  .c-split__lead, .c-capacity .c-split__lead { max-width: none; margin: 0; }
  .c-present .c-split__lead { margin: 0; }
  .c-split__lead p, .c-split__after { font-size: 16px; line-height: 1.625; }
  .c-split__img { grid-row: auto; width: calc(100% + 8px); margin: 44px -4px 0; aspect-ratio: 404 / 210; }
  .c-split__after { margin: 50px 0 0; }
  .c-present__kicker { font-size: 16px; letter-spacing: 0; } /* Figma 440: no tracking */
  .c-present__main { font-size: clamp(36px, 10vw, 44px); line-height: 1.05; max-width: 360px; }
  .c-br-desktop { display: none; }
  .c-present__title { margin-bottom: 56px; }
  /* m11 Group: 2125x1908 at (-89, -930) of the 440 frame. */
  .c-present__mark { left: -20.23vw; top: -211.4vw; width: 482.95vw; height: 433.6vw; }
  .c-split__lead .c-capacity__pre { font-size: 18px; }
  .c-split__lead .c-capacity__stat { font-size: clamp(44px, 12.5vw, 55px); line-height: 1.05; letter-spacing: .06em; } /* Figma 440: 3.3px at 55px */
  .c-capacity__post { max-width: 310px; }

  .c-risk__pin { height: max(100svh, 680px); }
  /* m14 bg (risk-mobile): 1592x1990 at (-699, -903) of the 440 frame. No cut-out and no gradient on mobile. */
  .c-risk__canvas { left: -158.86vw; top: -205.23vw; width: 361.82vw; aspect-ratio: 1592 / 1990; }
  .c-risk__farmer, .c-risk__shade { display: none; }
  .c-risk__content { padding: calc(var(--header-h) + 20px) 14px 72px; justify-content: flex-start; }
  .c-risk__bottom { position: static; margin-top: max(96px, 21svh); }
  .c-risk__title { margin-bottom: 26px; }
  .c-risk__l1 { font-size: clamp(24px, 6.6vw, 29px); }
  .c-risk__l2 { font-size: clamp(44px, 13vw, 60px); }
  .c-risk__body { font-size: 14px; line-height: 1.57; }
  .c-risk__story { font-size: 19px; margin-bottom: 52px; text-shadow: 0 1px 14px rgba(30, 18, 8, .55); }
  .c-risk__btn--desktop { display: none; }
  .c-risk__btn--mobile { display: inline-flex; }
  /* m15: four tiles, layer blur 20 (renders as blur(10px)), full opacity; the footer starts at frame y 417. */
  .page-crisis .footer-fade { height: 94.77vw; }
  .page-crisis .footer-fade__row { filter: blur(10px); opacity: 1; }
  .page-crisis .footer-fade__row img { width: 38.41vw; border-radius: 5.56vw; }
  .page-crisis .footer-fade__row img:nth-child(1) { left: -21.36vw; top: 7.95vw; width: 26.36vw; height: 59.32vw; }
  .page-crisis .footer-fade__row img:nth-child(3) { left: 6.82vw;   top: 20vw;    height: 38.41vw; }
  .page-crisis .footer-fade__row img:nth-child(2) { left: 47.27vw;  top: 14.09vw; width: 38.41vw; height: 57.73vw; }
  .page-crisis .footer-fade__row img:nth-child(5) { left: 87.73vw;  top: 26.82vw; height: 51.36vw; }
  .page-crisis .footer-fade__row img:nth-child(4), .page-crisis .footer-fade__row img:nth-child(6) { display: none; }
}
