/* Automatic case-study carousel. Three stories, one second per story. */
.sj-home-hero { --hero-accent: #245940; background: #14231f; color: #17221c; min-height: 100vh; min-height: 100dvh; display: flex; padding: 5.7rem clamp(.7rem, 2.5vw, 2.5rem) 1.25rem; box-sizing: border-box; }
.sj-home-hero__panel { position: relative; width: 100%; display: flex; flex-direction: column; gap: .7rem; padding: clamp(1.2rem, 3vh, 2.25rem) clamp(.5rem, 2vw, 2rem) .75rem; border-radius: clamp(1.5rem, 3vw, 3rem); background: #fcfdf9; border: 1px solid #d9e1d5; }
.sj-home-hero__heading { text-align: center; }
.sj-home-hero__heading > p { font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #607064; margin-bottom: .7rem; }
.sj-home-hero__heading h1 { font-size: clamp(2rem, 3.6vw, 3.5rem); font-weight: 500; line-height: 1.12; letter-spacing: -.05em; }
.sj-hero-heading-break { display: none; }
.sj-hero-deck { display: grid; flex: 1; align-items: center; width: 100%; max-width: 1180px; margin-inline: auto; min-width: 0; padding-block: .75rem; }
.sj-hero-slide { position: relative; grid-area: 1 / 1; min-width: 0; opacity: 0; visibility: hidden; }
.sj-hero-slide--pricing { opacity: 1; visibility: visible; }
.sj-hero-card { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); width: 82%; margin-inline: auto; min-height: clamp(19rem, 42dvh, 29rem); border-radius: 2.2rem; background: #f0f2ed; border: 1px solid #e5e9e1; box-shadow: 0 10px 28px -24px #243c3040; }
.sj-hero-card__image { display: block; position: relative; min-width: 0; overflow: hidden; border-radius: 2.2rem; }
.sj-hero-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sj-hero-card__body { padding: clamp(1.2rem, 2.3vw, 2.3rem); display: flex; flex-direction: column; align-items: start; min-width: 0; }
.sj-hero-card__topic { display: flex; align-items: center; gap: .65rem; color: #42624a; font-size: .7rem; line-height: 1.4; }
.sj-hero-card__topic > span { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border: 1px solid #bdccb8; border-radius: 50%; font-size: .6rem; }
.sj-hero-card h2 { margin-top: 1rem; font-size: clamp(1.4rem, 2.1vw, 2rem); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; }
.sj-hero-card__description { margin-top: .8rem; color: #536157; font-size: .85rem; line-height: 1.65; max-width: 30rem; }
.sj-hero-card__link { display: inline-flex; align-items: center; min-height: 44px; gap: .65rem; color: #234e37; font-size: .8rem; text-decoration: underline; text-underline-offset: .25em; margin-block: .35rem 1rem; }
.sj-hero-card__link > span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dae4d4; text-decoration: none; }
.sj-hero-card__facts { display: grid; grid-template-columns: 1fr 1fr 1fr; width: 100%; gap: 1rem; align-items: end; margin-top: auto; padding-top: .85rem; border-top: 1px solid #d5ddcf; }
.sj-hero-card__facts > div { display: flex; flex-direction: column-reverse; gap: .4rem; }
.sj-hero-card__facts dt { color: #58665c; font-size: .63rem; line-height: 1.4; }
.sj-hero-card__facts dd { font-size: clamp(.95rem, 1.4vw, 1.3rem); line-height: 1.15; font-weight: 500; letter-spacing: -.03em; }
.sj-hero-card__facts > div:first-child dd { font-size: 2rem; }
.sj-hero-preview { position: absolute; z-index: 0; top: 15%; width: 28%; height: 70%; overflow: hidden; border-radius: 2rem; background: #eff1eb; opacity: .3; display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.sj-hero-preview--previous { left: 1%; }
.sj-hero-preview--next { right: 1%; }
.sj-hero-preview img { height: 100%; width: 100%; object-fit: cover; }
.sj-hero-preview > span { padding: 1rem; font-size: 1rem; font-weight: 500; }

.sj-hero-footer { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.sj-hero-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem .75rem; }
.sj-hero-controls label { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 44px; cursor: pointer; font-size: .68rem; color: #617064; }

.sj-hero-controls .sj-hero-pause { width: 44px; border: 1px solid #c3d0be; border-radius: 50%; font-size: .95rem; }
.sj-hero-pause__start { display: none; }
.sj-hero-explore { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; min-height: 44px; padding: .7rem 1.3rem; border-radius: 100px; background: #17221c; color: #fff; font-size: .8rem; }
.sj-hero-explore:hover { background: #365f44; }
.sj-hero-scroll { align-self: center; display: inline-flex; align-items: center; gap: .6rem; min-height: 32px; color: #617064; font-size: .62rem; }
.sj-home-hero a:focus-visible { outline: 2px solid #28593b; outline-offset: 4px; }
.sj-hero-state { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#hero-pause:focus-visible ~ .sj-home-hero__panel label[for="hero-pause"] { outline: 2px solid #28593b; outline-offset: 3px; }
#hero-pause:checked ~ .sj-home-hero__panel .sj-hero-pause__stop { display: none; }
#hero-pause:checked ~ .sj-home-hero__panel .sj-hero-pause__start { display: inline; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes sj-story-cycle {
    0%, 30% { opacity: 1; visibility: visible; }
    33%, 97% { opacity: 0; visibility: hidden; }
    100% { opacity: 1; visibility: visible; }
  }
  .sj-hero-slide { animation: sj-story-cycle 3s linear var(--slide-delay) infinite; }
  #hero-pause:checked ~ .sj-home-hero__panel .sj-hero-slide,
  .sj-home-hero:has(.sj-hero-deck a:focus) .sj-hero-slide { animation-play-state: paused !important; }
  @media (hover: hover) and (pointer: fine) {
    .sj-home-hero:has(.sj-hero-card:hover) .sj-hero-slide { animation-play-state: paused !important; }
  }
}
@media (prefers-reduced-motion: reduce) {
  #hero-pause, .sj-hero-pause { display: none !important; }

}
@media (max-width: 63.99rem) {
  .sj-hero-card { width: 84%; border-radius: 1.5rem; }
  .sj-hero-card__image { border-radius: 1.5rem; }
  .sj-hero-card__body { padding: 1.2rem; }
  .sj-hero-card__facts { gap: .6rem; }

}
@media (min-width: 48rem) and (max-width: 64rem) {
  .sj-home-hero__panel { padding-top: 1.2rem; gap: .35rem; }
  .sj-hero-card__body { padding: 1rem; }
}
@media (max-width: 47.99rem) {
  .sj-home-hero { padding-top: 4.8rem; padding-bottom: .65rem; }
  .sj-home-hero__panel { padding: 1rem .5rem .35rem; gap: .4rem; }
  .sj-home-hero__heading > p { font-size: .55rem; margin-bottom: .5rem; }
  .sj-home-hero__heading h1 { font-size: clamp(1.65rem, 6vw, 2.5rem); }
  .sj-hero-heading-break { display: block; }
  .sj-hero-deck { padding-block: .5rem; }
  .sj-hero-card { width: 85%; grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 1.4rem; }
  .sj-hero-card__image { height: clamp(7rem, 20dvh, 14rem); border-radius: 1.4rem; }
  .sj-hero-card__body { padding: 1rem; }
  .sj-hero-card__topic { font-size: .6rem; gap: .5rem; }
  .sj-hero-card__topic > span { width: 22px; height: 22px; font-size: .55rem; }
  .sj-hero-card h2 { font-size: 1.2rem; margin-top: .65rem; }
  .sj-hero-card__description { margin-top: .5rem; font-size: .75rem; line-height: 1.5; }
  .sj-hero-card__link { font-size: .7rem; margin-block: 0 .3rem; }
  .sj-hero-card__facts { padding-top: .6rem; gap: .5rem; }
  .sj-hero-card__facts > div { gap: .3rem; }
  .sj-hero-card__facts dt { font-size: .55rem; }
  .sj-hero-card__facts dd { font-size: .8rem; }
  .sj-hero-card__facts > div:first-child dd { font-size: 1.5rem; }
  .sj-hero-preview { height: 65%; top: 17%; border-radius: 1rem; grid-template-columns: 1fr; }
  .sj-hero-preview > span { display: none; }

  .sj-hero-controls { gap: .15rem .4rem; }
  .sj-hero-controls label { font-size: .6rem; }

  .sj-hero-controls .sj-hero-pause { width: 32px; border: 0; }
  .sj-hero-footer { gap: .4rem; }
  .sj-hero-explore { font-size: .72rem; padding-block: .6rem; }
  .sj-hero-scroll { font-size: .55rem; min-height: 24px; }
}
@media (max-width: 47.99rem) and (max-height: 43rem) {
  .sj-home-hero__panel { padding-top: .7rem; gap: .2rem; }
  .sj-home-hero__heading h1 { font-size: 1.45rem; }
  .sj-home-hero__heading > p { margin-bottom: .3rem; }
  .sj-hero-card__image { height: 6rem; }
  .sj-hero-card__body { padding: .7rem .8rem; }
  .sj-hero-card h2 { font-size: 1.05rem; margin-top: .45rem; }
  .sj-hero-card__description { font-size: .7rem; }
  .sj-hero-card__topic > span { display: none; }
  .sj-hero-card__facts > div:not(:first-child) { display: none; }
  .sj-hero-card__facts { grid-template-columns: 1fr; padding-top: .4rem; }
  .sj-hero-card__facts > div:first-child { flex-direction: row-reverse; align-items: center; justify-content: end; gap: .7rem; }
  .sj-hero-card__facts dt { font-size: .62rem; }
  .sj-hero-card__facts > div:first-child dd { font-size: 1.4rem; }
  .sj-hero-footer { gap: .2rem; }
  .sj-hero-scroll { display: none; }
}
@media (min-width: 48rem) and (max-height: 43rem) {
  .sj-home-hero { padding-top: 5rem; padding-bottom: .7rem; }
  .sj-home-hero__panel { padding-top: 1rem; gap: .35rem; }
  .sj-home-hero__heading h1 { font-size: 2rem; }
  .sj-hero-card { min-height: 0; }
  .sj-hero-card__body { padding: 1rem; }
  .sj-hero-card h2 { font-size: 1.3rem; margin-top: .5rem; }
  .sj-hero-card__description { font-size: .75rem; margin-top: .5rem; }
  .sj-hero-card__link { margin-bottom: .3rem; }
  .sj-hero-card__facts > div:first-child dd { font-size: 1.5rem; }
  .sj-hero-footer { flex-direction: row; justify-content: center; gap: 1rem; }
  .sj-hero-scroll { display: none; }
}
@media (min-width: 48rem) and (max-height: 30rem) {
  .sj-home-hero { padding-top: 4.5rem; padding-bottom: .5rem; }
  .sj-home-hero__panel { padding-top: .6rem; }
  .sj-home-hero__heading > p { display: none; }
  .sj-home-hero__heading h1 { font-size: 1.6rem; }
  .sj-hero-deck { padding-block: .3rem; }
  .sj-hero-card { grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); }
  .sj-hero-card__body { padding: .75rem 1rem; }
  .sj-hero-card__topic { font-size: .6rem; }
  .sj-hero-card__topic > span { display: none; }
  .sj-hero-card h2 { font-size: 1.1rem; margin-top: .4rem; }
  .sj-hero-card__description { font-size: .68rem; line-height: 1.4; }
  .sj-hero-card__facts { grid-template-columns: 1fr; padding-top: .3rem; }
  .sj-hero-card__facts > div:not(:first-child) { display: none; }
  .sj-hero-card__facts > div:first-child { flex-direction: row-reverse; align-items: center; justify-content: end; gap: .7rem; }
}

@media (max-width: 47.99rem) and (max-height: 37.5rem) {
  .sj-hero-card__description { display: none; }
  .sj-hero-card__image { height: 7rem; }

}
/* A narrower light panel leaves more of the green surround visible. */
.sj-home-hero { padding: 6rem clamp(1rem, 5vw, 5rem) 2.5rem; }
.sj-home-hero__panel { max-width: 1280px; margin-inline: auto; border-radius: 20px; padding-inline: clamp(.5rem, 1.5vw, 1.5rem); }
.sj-hero-card__image { background: #eaf0e9; }
.sj-hero-card__image img { object-fit: contain; }
.sj-hero-preview img { object-fit: contain; }
.sj-hero-controls { position: absolute; right: 1rem; bottom: .7rem; }
.sj-hero-controls .sj-hero-pause { width: 36px; min-height: 36px; font-size: .8rem; background: #fcfdf9; }
@media (max-width: 47.99rem) {
  .sj-home-hero { padding: 5rem 1rem 1rem; }
  .sj-home-hero__panel { border-radius: 16px; }
  .sj-hero-controls { right: .4rem; bottom: .4rem; }
}
@media (min-width: 48rem) and (max-height: 30rem) {
  .sj-home-hero { padding: 4.5rem 2rem .5rem; }
}
