.rim-home-hero { position: relative; --hero-green: #008e3c; color: #171b1d; background: #fff; width: 100%; }
.rim-home-hero * { box-sizing: border-box; }
.rim-home-hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rim-home-hero__track::-webkit-scrollbar { display: none; }
.rim-home-hero__slide { position: relative; isolation: isolate; flex: 0 0 100%; min-width: 0; height: clamp(400px, 40.125vw, 720px); scroll-snap-align: start; overflow: hidden; background: #fff; }
.rim-home-hero__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.rim-home-hero__slide--dark { background: #172127; color: #fff; }
.rim-home-hero__slide--h3c .rim-home-hero__copy { text-shadow: 0 2px 8px #172127; }
.rim-home-hero__slide--a2l .rim-home-hero__image { object-position: center 58%; }
.rim-home-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; width: 54%; padding: 30px 0 30px 13%; }
.rim-home-hero__copy h2 { color: inherit; font-size: clamp(40px, 5vw, 80px); font-weight: 700; line-height: 1.1; margin: 0 0 24px; letter-spacing: -.025em; }
.rim-home-hero__brand { display: block; width: clamp(130px, 12vw, 190px); height: auto; margin-bottom: 20px; }
.rim-home-hero__slide--dark .rim-home-hero__brand { filter: brightness(0) invert(1); }
.rim-home-hero__copy p { font-size: clamp(16px, 1.55vw, 25px); line-height: 1.8; margin: 0 0 30px; color: inherit; }
.rim-home-hero__link { display: inline-flex; align-items: center; gap: 28px; padding: 14px 26px; min-height: 48px; background: var(--hero-green); color: #fff; font-size: 16px; text-decoration: none; text-shadow: none; transition: background .2s; }
.rim-home-hero__link:hover { background: #006c2e; color: #fff; }
.rim-home-hero svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.rim-home-hero__controls { position: absolute; inset: 0; pointer-events: none; }
.rim-home-hero__controls[hidden] { display: none; }
.rim-home-hero button { color: #454b48; background: transparent; border: 0; border-radius: 0; font: inherit; cursor: pointer; min-height: 44px; }
.rim-home-hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 56px; pointer-events: auto; color: #fff !important; background: rgba(0,0,0,.25) !important; }
.rim-home-hero__arrow[data-hero-prev] { left: 16px; }
.rim-home-hero__arrow[data-hero-next] { right: 16px; }
.rim-home-hero button:hover { color: #006c2e; }
.rim-home-hero :focus-visible { outline: 3px solid #00ae42; outline-offset: 4px; }
.rim-home-hero ::selection { background: #007a33; color: #fff; }
/* Position each text block within the photograph's available negative space. */
@media (min-width: 768px) {
  .rim-home-hero__copy { width: 55%; padding-left: var(--hero-copy-left, 15%); padding-top: 20px; padding-bottom: 40px; }
  .rim-home-hero__slide--h3c { --hero-copy-left: 20%; }
  .rim-home-hero__slide--h2d-pro { --hero-copy-left: 18%; }
  .rim-home-hero__slide--x2d { --hero-copy-left: 16%; }
  .rim-home-hero__slide--a2l { --hero-copy-left: 15%; }
  .rim-home-hero__brand { margin-bottom: 16px; }
  .rim-home-hero__copy h2 { margin-bottom: 20px; }
  .rim-home-hero__copy p { margin-bottom: 26px; }
}
@media (max-width: 767px) {
  .rim-home-hero__slide { height: 640px; display: flex; flex-direction: column; }
  .rim-home-hero__copy { width: 100%; height: 290px; flex-shrink: 0; padding: 24px 10%; justify-content: flex-start; }
  .rim-home-hero__copy h2 { font-size: 46px; margin-bottom: 16px; }
  .rim-home-hero__brand { width: 130px; margin-bottom: 14px; }
  .rim-home-hero__copy p { font-size: 16px; margin-bottom: 20px; line-height: 1.7; }
  .rim-home-hero__link { padding: 12px 22px; font-size: 14px; }
  .rim-home-hero__image { inset: auto 0 0; height: 350px; object-position: 71% center; }
  .rim-home-hero__slide--h2d-pro { background: #10141e; }
  .rim-home-hero__slide--x2d { background: #eaeaea; }
  .rim-home-hero__slide--a2l { background: #eaeaea; }
  .rim-home-hero__slide--a2l .rim-home-hero__image { object-position: 72% center; }
  .rim-home-hero__arrow { width: 32px; top: 73%; }
  .rim-home-hero__arrow[data-hero-prev] { left: 8px; }
  .rim-home-hero__arrow[data-hero-next] { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rim-home-hero__link { transition: none; } }
