/* Homepage hero redesign based on the supplied visual. */
body.home .home-brand-hero,
body.home .home-brand-hero *,
body.home .home-brand-stats,
body.home .home-brand-stats * {
  box-sizing: border-box;
}

body.home .home-brand-hero {
  position: relative;
  min-height: 465px;
  overflow: hidden;
  font-family: var(--ui-font);
  background: #dff2eb url("../img/home-hero-bg.webp") center center / cover no-repeat;
}

body.home .home-brand-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(245, 252, 249, 0.08), transparent 46%, rgba(10, 61, 44, 0.03));
}

body.home .home-brand-hero .wrap,
body.home .home-brand-stats .wrap {
  width: min(1280px, calc(100% - 48px));
  margin-right: auto;
  margin-left: auto;
}

body.home .home-brand-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 465px;
  padding-top: 113px;
  padding-bottom: 70px;
}

body.home .home-brand-copy {
  width: 53%;
  max-width: 650px;
}

body.home .home-brand-kicker {
  margin: 0 0 12px;
  color: #278267;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

body.home .home-brand-copy h1 {
  margin: 0;
  color: #101a16;
  font-size: clamp(42px, 3.65vw, 51px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

body.home .home-brand-copy h1 span {
  color: #07895e;
}

body.home .home-brand-copy > p:not(.home-brand-kicker) {
  margin: 16px 0 0;
  color: #0b2419;
  font-size: 13px;
  line-height: 1.75;
  font-weight: 750;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.9), 0 0 10px rgba(255, 255, 255, 0.68);
}

body.home .home-brand-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
}

body.home .home-brand-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 154px;
  min-height: 45px;
  padding: 0 21px;
  color: #08704e;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #21966f;
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(20, 97, 70, 0.1);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

body.home .home-brand-button:hover {
  color: #08704e;
  transform: translateY(-2px);
}

body.home .home-brand-button.is-primary {
  color: #fff;
  background: linear-gradient(135deg, #0c9d6c, #08764f);
  border-color: transparent;
  box-shadow: 0 12px 26px rgba(8, 125, 84, 0.23);
}

body.home .home-brand-button.is-primary:hover {
  color: #fff;
}

body.home .home-brand-note {
  position: absolute;
  top: 122px;
  left: 58%;
  margin: 0;
  color: #087d59;
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
  line-height: 1.5;
  font-style: italic;
  font-weight: 650;
  transform: rotate(-8deg);
}

body.home .home-brand-note i {
  display: block;
  width: 112px;
  height: 2px;
  margin: 6px 0 0 67px;
  background: #087d59;
}

body.home .home-brand-mantra {
  position: absolute;
  top: 155px;
  right: 28px;
  margin: 0;
  color: #fff;
  font-size: 9px;
  line-height: 1.45;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 5px rgba(5, 35, 27, 0.92), 0 0 12px rgba(5, 35, 27, 0.55);
}

body.home .home-brand-stats {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  padding-bottom: 10px;
}

body.home .home-brand-stats-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(222, 235, 228, 0.95);
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(20, 82, 57, 0.1);
  backdrop-filter: blur(13px);
}

body.home .home-brand-stat {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 0 22px;
}

body.home .home-brand-stat + .home-brand-stat {
  border-left: 1px solid #e0ebe6;
}

body.home .home-brand-stat-icon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  color: #07865d;
  background: #e7f6ef;
  border-radius: 50%;
}

body.home .home-brand-stat-icon svg {
  width: 23px;
  height: 23px;
  stroke-width: 1.8;
}

body.home .home-brand-stat strong,
body.home .home-brand-stat b,
body.home .home-brand-stat small {
  display: block;
}

body.home .home-mobile-shortcuts {
  display: none;
}

body.home .home-mobile-updates {
  display: none;
}

body.home .home-brand-stat strong {
  color: #0c2018;
  font-size: 25px;
  line-height: 1;
  font-weight: 950;
}

body.home .home-brand-stat b {
  margin-top: 4px;
  color: #233b30;
  font-size: 11px;
  font-weight: 850;
}

body.home .home-brand-stat small {
  margin-top: 2px;
  color: #829188;
  font-size: 8px;
  font-weight: 650;
}

@media (max-width: 1100px) {
  body.home .home-brand-copy { width: 59%; }
  body.home .home-brand-note { left: 60%; }
  body.home .home-brand-stat { grid-template-columns: 42px 1fr; gap: 10px; padding: 0 13px; }
  body.home .home-brand-stat-icon { width: 39px; height: 39px; }
}

@media (max-width: 760px) {
  body.home .home-brand-hero .wrap,
  body.home .home-brand-stats .wrap { width: min(100% - 28px, 1280px); }
  body.home .home-brand-hero {
    min-height: 320px;
    background-position: 68% center;
    background-size: cover;
  }
  body.home .home-brand-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(236, 249, 244, 0.18) 0 52%, rgba(224, 245, 236, 0.05));
  }
  body.home .home-brand-hero-inner { min-height: 320px; padding-top: 34px; padding-bottom: 54px; }
  body.home .home-brand-copy { width: 72%; max-width: 275px; }
  body.home .home-brand-kicker { margin-bottom: 7px; font-size: 8px; letter-spacing: .13em; }
  body.home .home-brand-copy h1 { font-size: 27px; line-height: 1.08; }
  body.home .home-brand-copy > p:not(.home-brand-kicker) {
    display: -webkit-box;
    max-width: 270px;
    margin-top: 8px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  body.home .home-brand-copy > p:not(.home-brand-kicker) br { display: none; }
  body.home .home-brand-actions { flex-wrap: nowrap; gap: 7px; margin-top: 11px; }
  body.home .home-brand-button { min-width: 0; min-height: 34px; padding: 0 12px; font-size: 9px; }
  body.home .home-brand-note { top: 48px; left: auto; right: 14px; font-size: 11px; }
  body.home .home-brand-note i { width: 56px; margin: 3px 0 0 30px; }
  body.home .home-brand-mantra { top: auto; right: 8px; bottom: 35px; color: rgba(255, 255, 255, 0.94); font-size: 6px; }
  body.home .home-brand-stats { margin-top: -27px; padding-bottom: 7px; }
  body.home .home-brand-stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 7px 5px; border-radius: 10px; }
  body.home .home-brand-stat {
    min-height: 51px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 5px;
  }
  body.home .home-brand-stat + .home-brand-stat { border-left: 1px solid #e0ebe6; }
  body.home .home-brand-stat:nth-child(3),
  body.home .home-brand-stat:nth-child(4) { border-top: 0; }
  body.home .home-brand-stat-icon { width: 28px; height: 28px; flex: 0 0 28px; }
  body.home .home-brand-stat-icon svg { width: 15px; height: 15px; }
  body.home .home-brand-stat strong { font-size: 14px; }
  body.home .home-brand-stat b { margin-top: 2px; font-size: 7px; white-space: nowrap; }
  body.home .home-brand-stat small { display: none; }

  body.home .home-mobile-shortcuts {
    width: calc(100% - 28px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
  }

  body.home .home-mobile-shortcuts a {
    min-width: 0;
    min-height: 64px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    gap: 1px 7px;
    padding: 8px;
    color: #20352d;
    background: #fff;
    border: 1px solid #e3ece8;
    border-radius: 9px;
    box-shadow: 0 8px 22px rgba(21,77,57,.05);
    text-decoration: none;
  }

  body.home .home-mobile-shortcuts a > span {
    width: 30px;
    height: 30px;
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #078b62;
    background: #e7f7f0;
  }

  body.home .home-mobile-shortcuts svg { width: 17px; height: 17px; }
  body.home .home-mobile-shortcuts strong { align-self: end; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  body.home .home-mobile-shortcuts small { align-self: start; color: #88968f; font-size: 7px; }
  body.home .home-mobile-shortcuts .is-violet { color: #6954e8; background: #f0edff; }
  body.home .home-mobile-shortcuts .is-orange { color: #ef8a28; background: #fff1e4; }
  body.home .home-mobile-shortcuts .is-blue { color: #397ce7; background: #eaf2ff; }
  body.home .home-mobile-shortcuts .is-teal { color: #0b9c78; background: #e5f7f2; }
  body.home .home-mobile-shortcuts .is-coral { color: #ef6f72; background: #ffebec; }

  body.home #explore.section { padding-top: 17px; }
  body.home #explore .section-heading { display: none; }
  body.home #explore .explore-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  body.home #explore .feature-card { min-height: 166px; padding: 11px 9px 9px; border-radius: 9px; }
  body.home #explore .feature-card h3 { min-height: 29px; margin-bottom: 3px; font-size: 10px; line-height: 1.4; }
  body.home #explore .feature-card p { min-height: 22px; margin-bottom: 7px; font-size: 7px; line-height: 1.45; }
  body.home #explore .mini-list { width: 58%; gap: 2px; margin-bottom: 5px; font-size: 6px; }
  body.home #explore .mini-list li { gap: 4px; }
  body.home #explore .mini-list li::before { width: 3px; height: 3px; }
  body.home #explore .feature-link { font-size: 7px; }
  body.home #explore .feature-art,
  body.home #explore .feature-card:nth-child(2) .feature-art,
  body.home #explore .feature-card:nth-child(3) .feature-art {
    right: 4px;
    bottom: 18px;
    width: 48%;
    max-width: none;
    max-height: 64px;
  }

  body.home #articles,
  body.home #lab {
    display: none !important;
  }

  body.home .home-mobile-updates {
    width: calc(100% - 28px);
    display: grid;
    gap: 13px;
    margin-top: 16px;
    padding-bottom: 14px;
  }

  body.home .home-mobile-feed {
    padding: 14px 13px 8px;
    background: linear-gradient(145deg, #ffffff 0%, #fbf8f2 100%);
    border: 1px solid #e8e4db;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(41,75,61,.055);
  }

  body.home .home-mobile-feed.is-market {
    background: linear-gradient(145deg, #ffffff 0%, #eef9f4 100%);
    border-color: #d9ece3;
  }

  body.home .home-mobile-feed > header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
  }

  body.home .home-mobile-feed > header small {
    color: #0a9167;
    font-size: 6px;
    font-weight: 900;
    letter-spacing: .16em;
  }

  body.home .home-mobile-feed > header h2 {
    margin: 2px 0 0;
    color: #102019;
    font-size: 17px;
    line-height: 1.2;
  }

  body.home .home-mobile-feed > header a {
    color: #07865c;
    font-size: 8px;
    font-weight: 850;
    text-decoration: none;
  }

  body.home .home-mobile-feed-list {
    display: grid;
  }

  body.home .home-mobile-feed-list > a {
    min-height: 64px;
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    color: inherit;
    border-top: 1px solid #e8eee9;
    text-decoration: none;
  }

  body.home .home-mobile-feed-list time {
    color: #88978f;
    font-size: 8px;
    font-weight: 750;
  }

  body.home .home-mobile-feed-list > a > span {
    min-width: 0;
    display: grid;
    gap: 2px;
  }

  body.home .home-mobile-feed-list > a small {
    color: #0a966a;
    font-size: 7px;
    font-weight: 850;
  }

  body.home .home-mobile-feed-list > a strong {
    overflow: hidden;
    color: #1d2e27;
    font-size: 10px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home .home-mobile-feed-list > a em {
    overflow: hidden;
    color: #7a8881;
    font-size: 7px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.home .home-mobile-feed-list > a > i {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    color: #07865c;
    background: #e7f6ef;
    border-radius: 50%;
    font-size: 10px;
    font-style: normal;
  }
}

@media (max-width: 390px) {
  body.home .home-brand-copy h1 { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  body.home .home-brand-button { transition: none; }
}

/* Closing story banner above the shared footer. */
body.home .home-story-banner,
body.home .home-story-banner * {
  box-sizing: border-box;
}

body.home .home-story-banner {
  width: min(1280px, calc(100% - 48px));
  min-height: 132px;
  margin: 24px auto 30px;
  overflow: hidden;
  color: #10261d;
  background: #e9f6f1 url("../img/home-story-banner.webp") center 64% / cover no-repeat;
  border: 1px solid rgba(216, 235, 226, 0.9);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(27, 94, 68, 0.08);
}

body.home .home-story-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 132px;
  padding: 18px 74px;
}

body.home .home-story-quote {
  align-self: flex-start;
  margin: 8px 17px 0 0;
  color: #9edfc8;
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 0.9;
  font-weight: 800;
}

body.home .home-story-copy strong {
  display: block;
  font-size: 18px;
  line-height: 1.42;
  font-weight: 900;
  letter-spacing: 0.01em;
}

body.home .home-story-copy p {
  margin: 5px 0 0;
  color: #536b61;
  font-size: 10px;
  line-height: 1.55;
  font-weight: 650;
}

body.home .home-story-signature {
  margin: 40px 0 0 30px;
  color: #067b55;
  font-family: "Segoe Script", "Brush Script MT", cursive;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  transform: rotate(-7deg);
}

body.home .home-story-motto {
  position: absolute;
  top: 27px;
  right: 132px;
  color: #427162;
  font-size: 9px;
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: 0.24em;
}

@media (max-width: 760px) {
  body.home .home-story-banner {
    width: min(100% - 28px, 1280px);
    min-height: 178px;
    margin-top: 18px;
    margin-bottom: 22px;
    background-position: 64% center;
    background-size: auto 100%;
    border-radius: 8px;
  }

  body.home .home-story-banner::before {
    content: "";
    position: absolute;
  }

  body.home .home-story-banner-inner {
    min-height: 178px;
    padding: 24px 20px;
    background: linear-gradient(90deg, rgba(244, 252, 249, 0.96) 0 48%, rgba(244, 252, 249, 0.5) 70%, transparent 100%);
  }

  body.home .home-story-quote {
    margin-right: 9px;
    font-size: 42px;
  }

  body.home .home-story-copy strong { font-size: 15px; }
  body.home .home-story-copy p { font-size: 9px; }
  body.home .home-story-signature { display: none; }
  body.home .home-story-motto { top: auto; right: 12px; bottom: 16px; font-size: 7px; }
}
