/* Homepage below-fold redesign, grounded in the NWAFU editorial portal reference. */

body[data-page="home"] {
  --home-green: #087044;
  --home-green-deep: #075b38;
  --home-ink: #163126;
  --home-paper: #f7f8f3;
  --home-paper-deep: #eef3e8;
  --home-line: rgba(19, 82, 54, 0.22);
  --home-line-strong: rgba(11, 101, 61, 0.48);
  --home-soft-green: #dcebd4;
  --home-serif: "Songti SC", "STSong", "SimSun", serif;
}

/* Keep the transparent first-screen header intact; transform only after scroll. */
body[data-page="home"] .site-header,
body[data-page="home"] .header-inner,
body[data-page="home"] .brand-mark,
body[data-page="home"] .brand-copy,
body[data-page="home"] .header-contact {
  transition:
    height 420ms var(--ease-out),
    color 260ms ease,
    background-color 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out),
    opacity 260ms ease,
    transform 420ms var(--ease-out);
}

@media (min-width: 961px) {
  body[data-page="home"] .site-header:not(.is-scrolled),
  body[data-page="home"] .site-header:not(.is-scrolled) .header-inner {
    height: 68px;
  }

  body[data-page="home"] .site-header.is-scrolled {
    height: 68px;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: var(--home-green);
    box-shadow: 0 12px 30px rgba(3, 54, 31, 0.2);
    backdrop-filter: none;
  }

  body[data-page="home"] .site-header.is-scrolled .header-inner {
    height: 68px;
    grid-template-columns: 224px minmax(0, 1fr) 108px;
  }

  body[data-page="home"] .site-header.is-scrolled .brand-mark {
    transform: scale(0.94);
  }

  body[data-page="home"] .site-header.is-scrolled .brand-copy strong,
  body[data-page="home"] .site-header.is-scrolled .nav-primary,
  body[data-page="home"] .site-header.is-scrolled .header-icon {
    color: #fff;
  }

  body[data-page="home"] .site-header.is-scrolled .brand-copy small {
    color: rgba(255, 255, 255, 0.68);
  }

  body[data-page="home"] .site-header.is-scrolled .nav-primary::after {
    bottom: 8px;
    height: 2px;
    background: var(--lime);
  }

  body[data-page="home"] .site-header.is-scrolled .nav-cluster {
    animation: homeNavRise 520ms var(--ease-out) both;
  }

  body[data-page="home"] .site-header.is-scrolled .nav-cluster:nth-child(2) { animation-delay: 35ms; }
  body[data-page="home"] .site-header.is-scrolled .nav-cluster:nth-child(3) { animation-delay: 70ms; }
  body[data-page="home"] .site-header.is-scrolled .nav-cluster:nth-child(4) { animation-delay: 105ms; }
  body[data-page="home"] .site-header.is-scrolled .nav-cluster:nth-child(5) { animation-delay: 140ms; }
  body[data-page="home"] .site-header.is-scrolled .nav-cluster:nth-child(6) { animation-delay: 175ms; }

  body[data-page="home"] .site-header.is-scrolled .header-contact {
    max-width: 0;
    padding-inline: 0;
    overflow: hidden;
    border-width: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(14px);
  }

  body[data-page="home"] .site-header.is-scrolled .header-quick-actions {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.08);
  }

  body[data-page="home"] .site-header.is-scrolled .header-icon:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  body[data-page="home"] .site-header.is-scrolled .header-icon + .header-icon::before {
    background: rgba(255, 255, 255, 0.18);
  }

  body[data-page="home"] .site-header.is-scrolled .mega-menu {
    top: calc(100% - 1px);
  }
}

@keyframes homeNavRise {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-editorial {
  position: relative;
  overflow: hidden;
  padding: 112px 0 126px;
  color: var(--home-ink);
  background: var(--home-paper);
  isolation: isolate;
}

.home-news {
  padding-top: 122px;
  background: #fff;
}

.home-watermark {
  position: absolute;
  z-index: -1;
  top: 18px;
  left: max(18px, calc((100vw - var(--container)) / 2 - 76px));
  color: rgba(49, 129, 82, 0.065);
  font-family: var(--home-serif);
  font-size: clamp(126px, 13vw, 210px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.home-section-head {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  margin-bottom: 55px;
}

.home-section-kicker {
  margin-bottom: 10px;
  color: var(--home-green);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-section-head h2,
.home-collaboration h2 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-serif);
  font-size: clamp(38px, 3.45vw, 52px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.home-section-head > p {
  width: min(430px, 100%);
  margin: 0 0 5px;
  color: #66766e;
  font-size: 15px;
  line-height: 1.9;
}

.home-more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 7px;
  border-bottom: 1px solid var(--home-line-strong);
  color: var(--home-green-deep);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.04em;
  transition: color 180ms ease, border-color 180ms ease, gap 240ms var(--ease-out);
}

.home-more-link .ui-icon {
  width: 15px;
  height: 15px;
}

.home-more-link:hover,
.home-more-link:focus-visible {
  gap: 16px;
  border-color: var(--home-green);
  color: var(--home-green);
}

.home-news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr) minmax(238px, 0.76fr);
  align-items: start;
  gap: clamp(28px, 3vw, 48px);
}

.home-media {
  display: block;
  overflow: hidden;
}

.home-media-frame {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #dfe8dd;
}

.home-media img,
.home-resource-visual img,
.home-tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out), filter 420ms ease;
}

.home-media:hover img,
.home-media:focus-visible img,
.home-resource-visual:hover img,
.home-resource-visual:focus-visible img {
  transform: scale(1.045);
}

.home-news-feature-media {
  height: clamp(320px, 31vw, 438px);
  margin-bottom: 22px;
}

.home-news-feature-media img {
  object-position: 52% 50%;
}

.home-news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
  color: #718078;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.home-news-meta span {
  color: var(--home-green);
  font-weight: 700;
}

.home-news-feature h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: var(--home-serif);
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.48;
}

.home-news-feature h3 a {
  text-decoration-color: transparent;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color 180ms ease, text-decoration-color 260ms ease;
}

.home-news-feature h3 a:hover,
.home-news-feature h3 a:focus-visible {
  color: var(--home-green);
  text-decoration-color: currentColor;
}

.home-news-feature > p {
  max-width: 45em;
  margin: 14px 0 0;
  color: #68766f;
  font-size: 14px;
  line-height: 1.85;
}

.home-news-list {
  border-top: 2px solid var(--home-green);
}

.home-news-row {
  display: grid;
  position: relative;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 127px;
  border-bottom: 1px solid var(--home-line);
}

.home-news-row::after,
.home-index-row::after,
.home-tool-row::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--home-green);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 420ms var(--ease-out);
}

.home-news-row:hover::after,
.home-news-row:focus-visible::after,
.home-index-row:hover::after,
.home-index-row:focus-visible::after,
.home-tool-row:hover::after,
.home-tool-row:focus-visible::after,
.home-tool-row.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.home-news-row time {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  padding-right: 18px;
  border-right: 1px solid var(--home-line);
  line-height: 1;
}

.home-news-row time strong {
  color: var(--home-green);
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 500;
}

.home-news-row time span {
  margin-top: 9px;
  color: #849089;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.home-news-row > span:last-child {
  display: block;
  min-width: 0;
}

.home-news-row small,
.home-source-title small,
.home-index-row small,
.home-tool-row small {
  display: block;
  margin-bottom: 7px;
  color: #829087;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-news-row b {
  display: block;
  color: #22372e;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.65;
  transition: color 180ms ease, transform 260ms var(--ease-out);
}

.home-news-row:hover b,
.home-news-row:focus-visible b {
  color: var(--home-green);
  transform: translateX(4px);
}

.home-source-column {
  border-top: 2px solid var(--home-green);
}

.home-source-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid var(--home-line);
}

.home-source-title span {
  color: var(--home-ink);
  font-size: 17px;
  font-weight: 720;
}

.home-source-title small {
  margin: 0;
}

.home-source-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 13px;
  min-height: 83px;
  border-bottom: 1px solid var(--home-line);
  transition: color 180ms ease, padding 260ms var(--ease-out);
}

.home-source-item:hover,
.home-source-item:focus-visible {
  padding-left: 7px;
  color: var(--home-green);
}

.home-source-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--home-line-strong);
  color: var(--home-green);
  font-family: Georgia, serif;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.home-source-item b,
.home-source-item small {
  display: block;
}

.home-source-item b {
  margin-bottom: 3px;
  color: #263a31;
  font-size: 14px;
  font-weight: 680;
}

.home-source-item small {
  color: #859188;
  font-size: 11px;
}

.home-source-item .ui-icon {
  width: 14px;
  height: 14px;
  color: var(--home-green);
}

.home-source-image {
  height: 126px;
  margin-top: 20px;
}

.home-source-image img {
  object-position: 50% 46%;
}

.home-resources {
  min-height: 860px;
  background: var(--home-paper-deep);
}

.home-resources-bg {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("./visuals/about-roots.jpg");
  background-position: center 56%;
  background-size: cover;
  filter: saturate(0.45);
  opacity: 0.055;
  transform: scale(1.02);
}

.home-resources-inner {
  position: relative;
  z-index: 1;
}

.home-resource-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
  gap: clamp(42px, 6vw, 88px);
}

.home-resource-visual {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  background: #cbd9ca;
}

.home-resource-visual img {
  object-position: 51% 50%;
}

.home-image-caption {
  display: grid;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  min-height: 102px;
  padding: 20px 28px;
  color: #fff;
  background: rgba(5, 65, 39, 0.92);
}

.home-image-caption small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.home-image-caption b {
  font-size: 15px;
  font-weight: 620;
  line-height: 1.7;
}

.home-resource-index {
  border-top: 2px solid var(--home-green);
}

.home-index-row {
  display: grid;
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 22px;
  min-height: 152px;
  border-bottom: 1px solid var(--home-line);
  transition: padding 300ms var(--ease-out), background-color 220ms ease;
}

.home-index-row:hover,
.home-index-row:focus-visible {
  padding-left: 9px;
  background: rgba(255, 255, 255, 0.32);
}

.home-index-row > span,
.home-tool-number {
  color: var(--home-green);
  font-family: Georgia, serif;
  font-size: 18px;
}

.home-index-row h3,
.home-tool-row h3 {
  margin: 0 0 6px;
  color: var(--home-ink);
  font-family: var(--home-serif);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
  transition: color 180ms ease;
}

.home-index-row p,
.home-tool-row p {
  margin: 0;
  color: #6e7b73;
  font-size: 13px;
  line-height: 1.65;
}

.home-index-row > .ui-icon,
.home-tool-row > .ui-icon {
  width: 17px;
  height: 17px;
  color: var(--home-green);
  transition: transform 240ms var(--ease-out);
}

.home-index-row:hover h3,
.home-index-row:focus-visible h3,
.home-tool-row:hover h3,
.home-tool-row:focus-visible h3,
.home-tool-row.is-active h3 {
  color: var(--home-green);
}

.home-index-row:hover > .ui-icon,
.home-index-row:focus-visible > .ui-icon,
.home-tool-row:hover > .ui-icon,
.home-tool-row:focus-visible > .ui-icon,
.home-tool-row.is-active > .ui-icon {
  transform: translateX(6px);
}

.home-tools {
  background: #fff;
}

.home-tools-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(370px, 0.8fr);
  align-items: stretch;
  gap: clamp(40px, 5.5vw, 82px);
}

.home-tools-visual {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  background: #10231b;
}

.home-tool-image {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.025);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 520ms ease,
    clip-path 720ms var(--ease-out),
    transform 900ms var(--ease-out);
}

.home-tool-image.is-active {
  z-index: 2;
  opacity: 1;
  transform: scale(1);
  clip-path: inset(0 0 0 0);
}

.home-tool-image img {
  object-position: 50% 50%;
}

.home-tool-image:nth-child(2) img { object-position: 44% 50%; }
.home-tool-image:nth-child(3) img { object-position: 42% 50%; }

.home-tool-image figcaption {
  display: grid;
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 98px;
  padding: 20px 28px;
  color: #fff;
  background: rgba(6, 56, 36, 0.9);
}

.home-tool-image figcaption span {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 18px;
}

.home-tool-image figcaption b {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
}

.home-tool-list {
  border-top: 2px solid var(--home-green);
}

.home-tool-row {
  display: grid;
  position: relative;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 22px;
  min-height: 196px;
  border-bottom: 1px solid var(--home-line);
  transition: padding 300ms var(--ease-out), background-color 220ms ease;
}

.home-tool-row:hover,
.home-tool-row:focus-visible,
.home-tool-row.is-active {
  padding-left: 9px;
  background: #f4f8f0;
}

.home-collaboration {
  display: grid;
  position: relative;
  min-height: 610px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #09291d;
}

.home-collaboration::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(4, 35, 24, 0.74);
  content: "";
}

.home-collaboration-media {
  position: absolute;
  inset: -36px 0;
  transform: translate3d(0, var(--home-parallax-y, 0px), 0);
  will-change: transform;
}

.home-collaboration-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.home-collaboration-inner {
  display: grid;
  position: relative;
  z-index: 2;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.72fr);
  align-items: end;
  gap: clamp(54px, 9vw, 136px);
  padding: 100px 0;
}

.home-collaboration .home-section-kicker {
  color: #c9f29a;
}

.home-collaboration h2 {
  color: #fff;
  font-size: clamp(40px, 4.2vw, 62px);
  line-height: 1.2;
}

.home-collaboration-inner > div:last-child > p {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.9;
}

.home-collaboration-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 25px;
}

.home-more-link-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.home-more-link-light:hover,
.home-more-link-light:focus-visible {
  border-color: var(--lime);
  color: var(--lime);
}

/* The shared observer controls timing; home sections add the source-like mask reveal. */
.home-editorial .reveal.reveal-ready,
.home-collaboration .reveal.reveal-ready {
  transition-delay: var(--reveal-delay, 0ms);
}

html[data-theme="dark"] .home-editorial {
  color: var(--text);
  background: #101a15;
}

html[data-theme="dark"] .home-news,
html[data-theme="dark"] .home-tools {
  background: #121e18;
}

html[data-theme="dark"] .home-resources {
  background: #17231c;
}

html[data-theme="dark"] :where(.home-section-head h2, .home-news-feature h3, .home-news-row b, .home-source-title span, .home-source-item b, .home-index-row h3, .home-tool-row h3) {
  color: #edf6ef;
}

html[data-theme="dark"] :where(.home-section-head > p, .home-news-feature > p, .home-news-row small, .home-source-item small, .home-index-row p, .home-tool-row p) {
  color: #9caaa1;
}

html[data-theme="dark"] .home-tool-row:hover,
html[data-theme="dark"] .home-tool-row:focus-visible,
html[data-theme="dark"] .home-tool-row.is-active,
html[data-theme="dark"] .home-index-row:hover,
html[data-theme="dark"] .home-index-row:focus-visible {
  background: rgba(122, 182, 115, 0.08);
}

@media (max-width: 1120px) {
  .home-news-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }

  .home-source-column {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr repeat(3, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 18px;
  }

  .home-source-title,
  .home-source-item {
    min-height: 88px;
    padding-inline: 16px;
    border-right: 1px solid var(--home-line);
  }

  .home-source-title {
    display: grid;
    align-content: center;
  }

  .home-source-image { display: none; }

  .home-resource-layout,
  .home-tools-layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    gap: 44px;
  }
}

@media (max-width: 960px) {
  body[data-page="home"] .site-header.is-scrolled {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    background: var(--home-green);
    box-shadow: 0 9px 24px rgba(3, 54, 31, 0.2);
    backdrop-filter: none;
  }

  body[data-page="home"] .site-header.is-scrolled .brand-copy strong,
  body[data-page="home"] .site-header.is-scrolled .header-icon,
  body[data-page="home"] .site-header.is-scrolled .menu-toggle {
    color: #fff;
  }

  body[data-page="home"] .site-header.is-scrolled .brand-copy small {
    color: rgba(255, 255, 255, 0.65);
  }

  .home-editorial {
    padding: 90px 0 100px;
  }

  .home-section-head {
    margin-bottom: 42px;
  }

  .home-resource-layout,
  .home-tools-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .home-resource-visual,
  .home-tools-visual {
    min-height: min(64vw, 560px);
  }

  .home-index-row {
    min-height: 134px;
  }

  .home-tool-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-tool-row {
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: center;
    min-height: 176px;
    padding: 22px 18px;
    border-right: 1px solid var(--home-line);
  }

  .home-tool-row > .ui-icon,
  .home-tool-row p {
    display: none;
  }

  .home-tool-row:hover,
  .home-tool-row:focus-visible,
  .home-tool-row.is-active {
    padding-left: 23px;
  }

  .home-collaboration-inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

@media (max-width: 720px) {
  .home-editorial {
    padding: 74px 0 82px;
  }

  .home-watermark {
    top: 12px;
    left: 8px;
    font-size: 116px;
  }

  .home-section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
    margin-bottom: 34px;
  }

  .home-section-head h2 {
    font-size: 36px;
  }

  .home-section-head > p {
    font-size: 14px;
  }

  .home-more-link {
    width: fit-content;
  }

  .home-news-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-news-feature-media {
    height: min(74vw, 420px);
  }

  .home-news-feature h3 {
    font-size: 23px;
  }

  .home-news-row {
    min-height: 112px;
    grid-template-columns: 57px minmax(0, 1fr);
    gap: 15px;
  }

  .home-news-row time {
    padding-right: 13px;
  }

  .home-news-row time strong {
    font-size: 25px;
  }

  .home-source-column {
    display: block;
    margin-top: 0;
  }

  .home-source-title,
  .home-source-item {
    min-height: 76px;
    padding-inline: 0;
    border-right: 0;
  }

  .home-source-image {
    display: block;
    height: 180px;
  }

  .home-resource-visual,
  .home-tools-visual {
    min-height: 72vw;
  }

  .home-image-caption,
  .home-tool-image figcaption {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 88px;
    padding: 16px 18px;
  }

  .home-index-row {
    grid-template-columns: 37px minmax(0, 1fr) 15px;
    gap: 13px;
    min-height: 126px;
  }

  .home-index-row h3,
  .home-tool-row h3 {
    font-size: 21px;
  }

  .home-tool-list {
    display: block;
  }

  .home-tool-row {
    grid-template-columns: 38px minmax(0, 1fr) 15px;
    min-height: 120px;
    padding: 15px 0;
    border-right: 0;
  }

  .home-tool-row > .ui-icon,
  .home-tool-row p {
    display: block;
  }

  .home-tool-row:hover,
  .home-tool-row:focus-visible,
  .home-tool-row.is-active {
    padding-left: 7px;
  }

  .home-collaboration {
    min-height: 620px;
  }

  .home-collaboration-inner {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 42px;
    padding: 80px 0;
  }

  .home-collaboration h2 {
    font-size: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .site-header.is-scrolled .nav-cluster {
    animation: none;
  }

  .home-tool-image,
  .home-media img,
  .home-resource-visual img,
  .home-collaboration-media {
    transition: none;
    transform: none !important;
  }
}

/* -------------------------------------------------------------------------
   Homepage continuation: keep the first screen untouched, then join the
   shared warm, light portal system once the visitor scrolls past the hero.
   ------------------------------------------------------------------------- */

body[data-page="home"] {
  --home-green: #7f9f72;
  --home-green-deep: #647a66;
  --home-ink: #26352f;
  --home-paper: #f7f6f1;
  --home-paper-deep: #edf2e8;
  --home-line: rgba(70, 86, 76, .19);
  --home-line-strong: rgba(100, 122, 102, .48);
  --home-soft-green: #edf2e8;
}

body[data-page="home"] .site-header.is-scrolled {
  border-bottom: 0;
  background: rgba(255, 254, 250, .97);
  box-shadow: 0 8px 24px rgba(47, 61, 53, .08);
  backdrop-filter: blur(16px) saturate(125%);
}

body[data-page="home"] .site-header.is-scrolled .brand-mark {
  border: 1px solid #dcded6;
}

body[data-page="home"] .site-header.is-scrolled .brand-copy strong,
body[data-page="home"] .site-header.is-scrolled :is(.nav-primary, .nav-expand, .header-icon, .menu-toggle) {
  color: var(--home-ink);
}

body[data-page="home"] .site-header.is-scrolled .brand-copy small {
  color: #748079;
}

body[data-page="home"] .site-header.is-scrolled .nav-primary::after,
body[data-page="home"] .site-scroll-progress i {
  background: var(--home-green);
}

body[data-page="home"] .site-header.is-scrolled .header-quick-actions {
  border-color: #dcded6;
  background: rgba(255, 254, 250, .86);
}

/* Match the consultation action to the 48px quick-action frame on the
   unchanged first-screen header. `.button-sm` otherwise reduces it to 40px. */
body[data-page="home"] .site-header:not(.is-scrolled) .header-contact {
  height: 48px;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 12px;
}

body[data-page="home"] .site-header.is-scrolled .header-icon:hover {
  color: var(--home-green-deep);
  background: var(--home-soft-green);
}

body[data-page="home"] .site-header.is-scrolled .header-icon + .header-icon::before {
  background: #dcded6;
}

body[data-page="home"] :is(.home-news, .home-tools) {
  color: var(--home-ink);
  background: var(--home-paper);
}

body[data-page="home"] .home-resources {
  color: var(--home-ink);
  background: var(--home-paper-deep);
}

body[data-page="home"] .home-resources-bg {
  filter: saturate(.28);
  opacity: .035;
}

body[data-page="home"] .home-watermark {
  color: rgba(127, 159, 114, .07);
}

body[data-page="home"] :is(.home-section-head h2, .home-news-feature h3, .home-news-row b, .home-source-title span, .home-source-item b, .home-index-row h3, .home-tool-row h3) {
  color: var(--home-ink);
}

body[data-page="home"] :is(.home-section-head > p, .home-news-feature > p, .home-news-row small, .home-source-item small, .home-index-row p, .home-tool-row p) {
  color: #748079;
}

body[data-page="home"] :is(.home-image-caption, .home-tool-image figcaption) {
  color: var(--home-ink);
  border-top: 3px solid var(--home-green);
  background: rgba(255, 254, 250, .94);
}

body[data-page="home"] :is(.home-image-caption small, .home-tool-image figcaption span) {
  color: var(--home-green-deep);
}

body[data-page="home"] .home-tools-visual {
  background: #dfe4dc;
}

body[data-page="home"] :is(.home-tool-row:hover, .home-tool-row:focus-visible, .home-tool-row.is-active, .home-index-row:hover, .home-index-row:focus-visible) {
  background: rgba(237, 242, 232, .82);
}

body[data-page="home"] .home-collaboration {
  display: block;
  min-height: 620px;
  color: var(--home-ink);
  background: var(--home-paper);
}

body[data-page="home"] .home-collaboration::after {
  display: none;
}

body[data-page="home"] .home-collaboration-media {
  inset: 0 0 0 auto;
  width: 52%;
  height: 100%;
}

body[data-page="home"] .home-collaboration-inner {
  grid-template-columns: minmax(340px, .88fr) minmax(0, 1.12fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: start;
  min-height: 620px;
  gap: 24px clamp(54px, 7vw, 104px);
  padding: 72px 0;
}

body[data-page="home"] .home-collaboration-inner > div:first-child {
  grid-area: 1 / 1;
}

body[data-page="home"] .home-collaboration-inner > div:last-child {
  grid-area: 2 / 1;
}

body[data-page="home"] .home-collaboration .home-section-kicker {
  color: var(--home-green-deep);
}

body[data-page="home"] .home-collaboration h2 {
  color: var(--home-ink);
  font-size: clamp(40px, 4.2vw, 58px);
}

body[data-page="home"] .home-collaboration-inner > div:last-child > p {
  color: #748079;
}

body[data-page="home"] .home-more-link-light {
  border-color: var(--home-line-strong);
  color: var(--home-green-deep);
}

body[data-page="home"] .home-more-link-light:hover,
body[data-page="home"] .home-more-link-light:focus-visible {
  border-color: var(--home-green);
  color: var(--home-green-deep);
}

body[data-page="home"] .home-collaboration .button-lime {
  color: var(--home-ink);
  background: #b7cb8a;
}

body[data-page="home"] .site-footer,
html[data-theme="dark"] body[data-page="home"] .site-footer {
  color: #748079;
  border-top: 1px solid #dcded6;
  background: #f1f2ec;
}

body[data-page="home"] :is(.footer-intro, .footer-col a, .footer-col span, .footer-bottom),
html[data-theme="dark"] body[data-page="home"] :is(.footer-intro, .footer-col a, .footer-col span, .footer-bottom) {
  color: #748079;
}

body[data-page="home"] .footer-col strong,
html[data-theme="dark"] body[data-page="home"] .footer-col strong {
  color: var(--home-ink);
}

body[data-page="home"] .footer-bottom,
html[data-theme="dark"] body[data-page="home"] .footer-bottom {
  border-top-color: #dcded6;
}

body[data-page="home"] .footer-col a:hover {
  color: var(--home-green-deep);
}

html[data-theme="dark"] body[data-page="home"] :is(.home-news, .home-tools) {
  color: var(--home-ink);
  background: var(--home-paper);
}

html[data-theme="dark"] body[data-page="home"] .home-resources {
  color: var(--home-ink);
  background: var(--home-paper-deep);
}

html[data-theme="dark"] body[data-page="home"] :is(.home-section-head h2, .home-news-feature h3, .home-news-row b, .home-source-title span, .home-source-item b, .home-index-row h3, .home-tool-row h3) {
  color: var(--home-ink);
}

html[data-theme="dark"] body[data-page="home"] :is(.home-section-head > p, .home-news-feature > p, .home-news-row small, .home-source-item small, .home-index-row p, .home-tool-row p) {
  color: #748079;
}

@media (max-width: 960px) {
  body[data-page="home"] .home-collaboration {
    display: grid;
    grid-template-rows: auto minmax(320px, 58vw);
  }

  body[data-page="home"] .home-collaboration-inner {
    grid-row: 1;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
    gap: 24px;
    padding: 72px 0;
  }

  body[data-page="home"] .home-collaboration-inner > div:first-child {
    grid-area: 1 / 1;
  }

  body[data-page="home"] .home-collaboration-inner > div:last-child {
    grid-area: 2 / 1;
  }

  body[data-page="home"] .home-collaboration-media {
    position: relative;
    inset: auto;
    grid-row: 2;
    width: 100%;
    height: 100%;
    transform: none !important;
  }
}
