/* Final Ridge Foundry hero refinement: split mountain image + warm grid-paper text panel. */
.theme-ridgefoundry.layout-home .rf-home-hero {
  background: #f3efe6;
  border-bottom: 1px solid rgba(107,95,74,.14);
}

.theme-ridgefoundry.layout-home .rf-home-hero::before {
  opacity: .10;
  background-image:
    linear-gradient(rgba(107,95,74,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,95,74,.07) 1px, transparent 1px);
  background-size: 52px 52px;
}

.theme-ridgefoundry.layout-home .rf-home-hero__shell {
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-height: clamp(620px, 72vh, 760px);
}

.theme-ridgefoundry.layout-home .rf-home-hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  padding: clamp(54px,5vw,76px) clamp(18px,2.4vw,32px) clamp(48px,5vw,68px) 0;
}

.theme-ridgefoundry.layout-home .rf-home-hero__content::before {
  content: "";
  position: absolute;
  inset: -80px -72px -80px -180px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(107,95,74,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107,95,74,.075) 1px, transparent 1px),
    linear-gradient(90deg,
      rgba(243,239,230,.99) 0%,
      rgba(243,239,230,.98) 66%,
      rgba(243,239,230,.90) 78%,
      rgba(243,239,230,.70) 88%,
      rgba(243,239,230,.30) 97%,
      rgba(243,239,230,0) 100%);
  background-size: 52px 52px, 52px 52px, 100% 100%;
}

.theme-ridgefoundry.layout-home .rf-home-hero__image {
  min-height: 100%;
}

.theme-ridgefoundry.layout-home .rf-home-hero__image::before {
  background: linear-gradient(90deg,
    rgba(243,239,230,.96) 0%,
    rgba(243,239,230,.78) 8%,
    rgba(243,239,230,.48) 16%,
    rgba(243,239,230,.24) 24%,
    rgba(243,239,230,.10) 32%,
    rgba(243,239,230,0) 40%);
}

.theme-ridgefoundry.layout-home .rf-home-hero__image::after {
  background: linear-gradient(180deg, transparent, rgba(74,62,48,.05));
}

.theme-ridgefoundry.layout-home .rf-home-hero__image img {
  min-height: clamp(620px,72vh,760px);
  object-position: 58% 50%;
  filter: saturate(.92) contrast(1.02) brightness(.96);
}

.theme-ridgefoundry.layout-home .rf-home-hero .rf-kicker {
  color: #c98349;
  margin-bottom: 16px;
  letter-spacing: .14em;
}

.theme-ridgefoundry.layout-home .rf-home-hero .rf-kicker span {
  background: #c98349;
}

.theme-ridgefoundry.layout-home .rf-home-hero h1 {
  max-width: 520px;
  color: #142026;
  font-size: clamp(3.4rem,5.4vw,5.8rem);
  line-height: .9;
  letter-spacing: -.05em;
}

.theme-ridgefoundry.layout-home .rf-home-hero__lead {
  max-width: 500px;
  margin-top: 22px;
  color: #5f6a6d;
  font-size: clamp(1rem,1.05vw,1.1rem);
  line-height: 1.6;
}

.theme-ridgefoundry.layout-home .rf-home-hero__actions {
  gap: 12px;
  margin-top: 24px;
}

.theme-ridgefoundry.layout-home .rf-home-hero .btn-primary {
  background: #142026;
  border-color: #142026;
  color: #f3efe6;
  box-shadow: inset 3px 0 0 #c98349;
}

.theme-ridgefoundry.layout-home .rf-home-hero .btn-primary:hover {
  background: #1b2a31;
  border-color: #1b2a31;
  color: #fffaf4;
}

.theme-ridgefoundry.layout-home .rf-home-hero .btn-secondary {
  background: rgba(243,239,230,.46);
  border-color: rgba(20,32,38,.22);
  color: #142026;
}

.theme-ridgefoundry.layout-home .rf-home-hero .btn-secondary:hover {
  background: rgba(201,131,73,.07);
  border-color: rgba(20,32,38,.36);
  color: #142026;
}

.theme-ridgefoundry.layout-home .rf-home-hero__proof {
  max-width: 520px;
  margin-top: 20px;
  padding-top: 14px;
  border-top-color: rgba(107,95,74,.14);
  color: #707778;
  font-size: .66rem;
}

.theme-ridgefoundry.layout-home .rf-home-hero__proof span::before {
  color: #c98349;
}

/* Restore subtle homepage interaction states. */
.theme-ridgefoundry.layout-home .rf-capability-grid article,
.theme-ridgefoundry.layout-home .rf-method-grid > div,
.theme-ridgefoundry.layout-home .rf-friction-map,
.theme-ridgefoundry.layout-home .rf-beacon-terminal {
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    background-color .2s ease;
}

.theme-ridgefoundry.layout-home .rf-capability-grid article:hover,
.theme-ridgefoundry.layout-home .rf-method-grid > div:hover {
  transform: translateY(-4px);
  border-color: rgba(201,131,73,.45);
  background-color: rgba(255,255,255,.48);
  box-shadow: 0 10px 24px rgba(17,25,29,.08);
}

.theme-ridgefoundry.layout-home .rf-capability-grid article:hover .rf-capability-number,
.theme-ridgefoundry.layout-home .rf-method-grid > div:hover > span {
  color: #c98349;
}

.theme-ridgefoundry.layout-home .rf-friction-map:hover {
  transform: translateY(-3px);
  border-color: rgba(201,131,73,.38);
  box-shadow: 10px 12px 0 rgba(112,135,127,.12), 0 12px 24px rgba(17,25,29,.06);
}

.theme-ridgefoundry.layout-home .rf-beacon-terminal:hover {
  transform: translateY(-3px);
  border-color: rgba(201,131,73,.32);
  box-shadow: 18px 20px 0 rgba(70,94,104,.14), 0 16px 30px rgba(0,0,0,.14);
}

/* Footer: keep the decorative stripe behind content and give nav enough room. */
.theme-ridgefoundry .site-footer::before {
  pointer-events: none;
  z-index: 0;
}

.theme-ridgefoundry .site-footer__top,
.theme-ridgefoundry .site-footer__bottom {
  position: relative;
  z-index: 1;
}

.theme-ridgefoundry .site-footer__top > nav,
.theme-ridgefoundry .site-footer__nav {
  flex: 1 1 auto;
  min-width: 0;
}

.theme-ridgefoundry .footer-nav {
  width: 100%;
  max-width: none;
  justify-content: flex-end;
  column-gap: 24px;
  row-gap: 10px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-ridgefoundry.layout-home .rf-capability-grid article,
  .theme-ridgefoundry.layout-home .rf-method-grid > div,
  .theme-ridgefoundry.layout-home .rf-friction-map,
  .theme-ridgefoundry.layout-home .rf-beacon-terminal {
    transition: none;
  }

  .theme-ridgefoundry.layout-home .rf-capability-grid article:hover,
  .theme-ridgefoundry.layout-home .rf-method-grid > div:hover,
  .theme-ridgefoundry.layout-home .rf-friction-map:hover,
  .theme-ridgefoundry.layout-home .rf-beacon-terminal:hover {
    transform: none;
  }
}

@media (max-width: 1100px) {
  .theme-ridgefoundry.layout-home .rf-home-hero__shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .theme-ridgefoundry.layout-home .rf-home-hero__content {
    max-width: 640px;
    padding: 48px 0 28px;
  }

  .theme-ridgefoundry.layout-home .rf-home-hero__content::before {
    inset: -60px -24px -24px -44px;
    background:
      linear-gradient(rgba(107,95,74,.075) 1px, transparent 1px),
      linear-gradient(90deg, rgba(107,95,74,.075) 1px, transparent 1px),
      linear-gradient(180deg,
        rgba(243,239,230,.99) 0%,
        rgba(243,239,230,.97) 72%,
        rgba(243,239,230,.78) 88%,
        rgba(243,239,230,.42) 100%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
  }

  .theme-ridgefoundry.layout-home .rf-home-hero__image::before {
    background: linear-gradient(180deg,
      rgba(243,239,230,.60) 0%,
      rgba(243,239,230,.24) 16%,
      rgba(243,239,230,.08) 28%,
      rgba(243,239,230,0) 40%);
  }

  .theme-ridgefoundry.layout-home .rf-home-hero__image img {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .theme-ridgefoundry.layout-home .rf-home-hero h1 {
    font-size: clamp(2.8rem,12vw,4.2rem);
  }
}
