/* =========================================================
   HOME STORY HERO
   Consolidated drop-in replacement
   ========================================================= */

.homeStoryHero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 3.4vw, 48px) 20px 22px;
  background:
    radial-gradient(circle at 50% 10%, rgba(31, 111, 74, 0.12), transparent 38rem),
    var(--page, #f5f8f5);
}

.homeStoryField {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 20%, rgba(31, 111, 74, 0.07), transparent 25rem),
    radial-gradient(circle at 88% 45%, rgba(174, 199, 184, 0.12), transparent 30rem);
}

.homeStoryInner {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.homeStoryIntro {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.homeStoryMark {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.homeStoryMark img {
  display: block;
  width: 38px;
  height: 38px;
}

.homeStoryEyebrow {
  margin: 0 0 15px;
  color: var(--brand, #1f6f4a);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.homeStoryIntro h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text, #15231d);
  font-size: clamp(42px, 4.8vw, 64px);
  line-height: 0.99;
  font-weight: 850;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.homeStoryLead {
  max-width: 750px;
  margin: 18px auto 0;
  color: var(--muted, #64756d);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  text-wrap: balance;
}

/* Carousel */

.homeStoryCarousel {
  width: min(100%, 1040px);
  margin: clamp(24px, 2.7vw, 34px) auto 0;
}

.homeStoryViewport {
  width: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 111, 74, 0.15);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 241, 0.92));
  box-shadow:
    0 28px 70px rgba(22, 47, 36, 0.13),
    0 2px 7px rgba(22, 47, 36, 0.05);
}

.homeStoryTrack {
  display: flex;
  align-items: flex-start;
  transition: transform 620ms cubic-bezier(0.22, 0.78, 0.22, 1);
  will-change: transform;
}

.homeStorySlide {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: clamp(18px, 2vw, 26px);
}

.homeStoryVisual,
.homeStoryVisual--full,
.homeStoryVisual--full .homeStoryImageFrame,
.homeStoryVisual--full .homeStoryZoom {
  width: 100%;
  min-width: 0;
  height: auto;
}

.homeStoryImageFrame {
  position: relative;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
}

.homeStoryZoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.homeStoryVisual--full .homeStoryZoom img,
.homeStoryImageFrame img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 20px;
  filter: drop-shadow(0 24px 34px rgba(7, 18, 13, 0.18));
  transition: transform 220ms ease, filter 220ms ease;
}

.homeStoryZoom:hover img {
  transform: scale(1.008);
  filter: drop-shadow(0 30px 42px rgba(7, 18, 13, 0.22));
}

.homeStoryZoom:focus-visible {
  outline: 3px solid rgba(31, 111, 74, 0.27);
  outline-offset: 5px;
  border-radius: 18px;
}

.homeStoryZoomLabel {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  color: #fff;
  background: rgba(8, 30, 22, 0.82);
  box-shadow: 0 5px 18px rgba(10, 32, 24, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.homeStoryZoomLabel::before {
  content: "⌕";
  font-size: 17px;
  line-height: 1;
}

.homeStoryZoom:hover .homeStoryZoomLabel,
.homeStoryZoom:focus-visible .homeStoryZoomLabel {
  opacity: 1;
  transform: translateY(0);
}

/* Controls */

.homeStoryControls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
  padding: 0 5px;
}

.homeStoryDots {
  display: flex;
  align-items: center;
  gap: 9px;
}

.homeStoryDot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c8d7ce;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.homeStoryDot:hover { transform: scale(1.12); }
.homeStoryDot.isActive { width: 36px; background: var(--brand, #1f6f4a); }

.homeStoryArrows {
  display: flex;
  gap: 10px;
}

.homeStoryArrow {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(31, 111, 74, 0.16);
  border-radius: 50%;
  color: var(--text, #15231d);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 7px 20px rgba(23, 52, 40, 0.07);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.homeStoryArrow:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 74, 0.32);
  box-shadow: 0 10px 25px rgba(23, 52, 40, 0.11);
}

.homeStoryArrow span { font-size: 20px; line-height: 1; }

.homeStoryArrow:focus-visible,
.homeStoryDot:focus-visible,
.homeStorySecondary:focus-visible {
  outline: 3px solid rgba(31, 111, 74, 0.27);
  outline-offset: 3px;
}

/* Footer */

.homeStoryFooter {
  margin-top: 8px;
  text-align: center;
}

.homeStoryPromise {
  margin: 0;
  color: var(--brand, #1f6f4a);
  font-size: clamp(15px, 1.55vw, 18px);
  font-weight: 800;
}

.homeStoryPromise span {
  display: inline-block;
  margin: 0 4px;
  color: rgba(31, 111, 74, 0.5);
}

.homeStoryActions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 12px;
}

.homeStorySecondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 13px;
  color: var(--brand, #1f6f4a);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, transform 180ms ease;
}

.homeStorySecondary:hover {
  transform: translateY(-1px);
  background: rgba(31, 111, 74, 0.07);
}

.homeStoryMission {
  margin: 18px 0 0;
  color: var(--muted, #64756d);
  font-size: 13px;
  line-height: 1.45;
}

.homeStoryHelp {
  margin: 7px 0 0;
  color: var(--muted, #64756d);
  font-size: 13px;
}

.homeStoryHelp a {
  color: var(--brand, #1f6f4a);
  font-weight: 750;
}

/* Lightbox */

.homeStoryLightbox[hidden] { display: none; }

.homeStoryLightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(4, 10, 7, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.homeStoryLightboxImage {
  display: block;
  width: auto;
  max-width: min(94vw, 1500px);
  height: auto;
  max-height: 91vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.48);
}

.homeStoryLightboxClose {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.42);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.homeStoryLightboxClose:hover { background: rgba(0, 0, 0, 0.68); }

.homeStoryLightboxClose:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
}

/* Tablet */

@media (max-width: 820px) {
  .homeStoryHero { padding: 32px 12px 20px; }
  .homeStoryIntro h1 { font-size: clamp(40px, 11vw, 58px); }

  .homeStoryCarousel {
    width: calc(100% - 12px);
    margin-top: 24px;
  }

  .homeStorySlide { padding: 18px; }

  .homeStoryVisual--full .homeStoryZoom img,
  .homeStoryImageFrame img { border-radius: 16px; }

  .homeStoryZoomLabel {
    left: 50%;
    right: auto;
    bottom: 12px;
    transform: translate(-50%, 0);
    padding: 10px 15px;
    white-space: nowrap;
    opacity: 1;
  }

  .homeStoryZoom:hover .homeStoryZoomLabel,
  .homeStoryZoom:focus-visible .homeStoryZoomLabel {
    transform: translate(-50%, 0);
  }

  .homeStoryControls { margin-top: 10px; }
  .homeStoryFooter { margin-top: 6px; }
}

/* Small mobile */

@media (max-width: 520px) {
  .homeStoryHero { padding: 24px 8px 18px; }
  .homeStoryIntro { padding: 0 9px; }

  .homeStoryIntro h1 {
    font-size: clamp(37px, 11.7vw, 51px);
    line-height: 0.99;
  }

  .homeStoryLead {
    margin-top: 17px;
    font-size: 17px;
  }

  .homeStoryCarousel {
    width: calc(100% - 8px);
    margin-top: 22px;
  }

  .homeStoryViewport { border-radius: 22px; }
  .homeStorySlide { padding: 12px; }

  .homeStoryVisual--full .homeStoryZoom img,
  .homeStoryImageFrame img { border-radius: 13px; }

  .homeStoryZoomLabel {
    bottom: 10px;
    padding: 9px 13px;
    font-size: 0;
  }

  .homeStoryZoomLabel::before {
    content: "⌕";
    font-size: 16px;
  }

  .homeStoryZoomLabel::after {
    content: "Tap to view full size";
    font-size: 12px;
  }

  .homeStoryControls {
    margin-top: 9px;
    padding: 0 3px;
  }

  .homeStoryArrow {
    width: 43px;
    height: 43px;
  }

  .homeStoryPromise {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.55;
  }

  .homeStoryPromise span { margin: 0 2px; }

  .homeStoryActions {
    flex-direction: column;
    margin-top: 10px;
  }

  .homeStoryActions .cta {
    width: min(310px, 100%);
    text-align: center;
  }

  .homeStoryMission { margin-top: 15px; }

  .homeStoryLightbox { padding: 52px 8px 12px; }

  .homeStoryLightboxImage {
    max-width: 96vw;
    max-height: 88vh;
    border-radius: 8px;
  }

  .homeStoryLightboxClose {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .homeStoryTrack,
  .homeStoryDot,
  .homeStoryArrow,
  .homeStorySecondary,
  .homeStoryImageFrame img,
  .homeStoryZoomLabel {
    transition: none;
  }
}

/* =========================================================
   HERO FLOW — HOMEPAGE ONLY
   Preserved from the existing file
   ========================================================= */

.heroFlowCard {
  display: flex;
  justify-content: center;
  margin: 24px auto 18px;
}

.heroFlow {
  width: 100%;
  max-width: 460px;
  padding: 18px 20px 16px;
  text-align: center;
  border: 1px solid rgba(16, 32, 24, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow:
    0 8px 24px rgba(16, 32, 24, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.flowTop {
  font-size: 16px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
  letter-spacing: 0.2px;
}

.flowPlusDivider {
  width: 34px;
  height: 34px;
  margin: 8px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--btn);
  background: rgba(16, 32, 24, 0.05);
  border-radius: 50%;
}

.flowBottom {
  font-size: 18px;
  font-weight: 900;
  color: var(--btn);
  line-height: 1.2;
}

.flowSub,
.flowSubIntro {
  font-size: 15px;
  line-height: 1.35;
  color: var(--muted);
}

.flowSub { margin-top: 8px; }
.flowSubIntro { margin-bottom: 8px; }

.flowRow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.flowItem {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.flowItemStrong {
  font-size: 16px;
  font-weight: 800;
  color: var(--btn);
}

.flowPlus {
  font-size: 14px;
  color: var(--muted);
  opacity: 0.6;
}

.heroPrimaryCta {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

@media (max-width: 640px) {
  .heroFlowCard { margin: 20px auto 16px; }

  .heroFlow {
    max-width: 100%;
    padding: 16px 14px 14px;
    border-radius: 18px;
  }

  .flowTop { font-size: 15px; }
  .flowDivider { height: 22px; margin: 10px auto; }
  .flowBottom { font-size: 17px; }
  .flowSub { margin-top: 6px; font-size: 14px; }

  .heroPrimaryCta {
    margin-top: 10px;
    margin-bottom: 8px;
  }
}
