.jm-hero { position: relative; min-height: 480px; overflow: hidden; background: var(--jm-ivory); touch-action: pan-y; }
.jm-hero__slides, .jm-hero__slide, .jm-hero__veil { position: absolute; inset: 0; width: 100%; height: 100%; }
.jm-hero__slide { object-fit: cover; opacity: 0; transition: opacity 700ms var(--jm-ease); }
.jm-hero__slide.is-active { opacity: 1; }
.jm-hero__veil { background: linear-gradient(90deg, rgba(247, 241, 232, .5), rgba(247, 241, 232, .14) 54%, transparent); }
.jm-hero[data-jm-hero-theme="dark"] .jm-hero__veil { background: linear-gradient(90deg, rgba(8, 14, 29, .38), rgba(8, 14, 29, .08) 56%, transparent); }
.jm-hero__content { position: relative; z-index: 1; min-height: 480px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 60px; color: var(--jm-ink); }
.jm-hero h1 { max-width: 660px; margin: 0; color: var(--jm-ink); font-family: var(--jm-serif); font-size: clamp(54px, 5.3vw, 76px); font-weight: 400; letter-spacing: -.04em; line-height: .96; }
.jm-hero h1 span { display: block; white-space: nowrap; }
.jm-hero__content > p { max-width: 360px; margin-top: 24px; color: rgba(44, 36, 31, .86); line-height: 1.65; }
.jm-hero[data-jm-hero-theme="dark"] h1 { color: var(--jm-white); }
.jm-hero[data-jm-hero-theme="dark"] .jm-hero__content > p { color: rgba(255, 249, 242, .9); }
.jm-hero__actions { display: flex; flex-wrap: wrap; gap: 29px; margin-top: 29px; }
.jm-hero .jm-button--outline { border-color: var(--jm-white); background: var(--jm-white); color: var(--jm-ink); }
.jm-hero .jm-button--outline:hover { border-color: var(--jm-ink); background: var(--jm-ink); color: var(--jm-white); }
.jm-hero__controls { position: absolute; z-index: 2; right: max(16px, calc((100% - min(var(--jm-shell), var(--jm-shell-max))) / 2)); bottom: 24px; display: flex; align-items: center; border: 1px solid rgba(44, 36, 31, .18); background: rgba(255, 249, 242, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.jm-hero__control { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 0; background: transparent; color: var(--jm-ink); cursor: pointer; transition: background-color 180ms var(--jm-ease), color 180ms var(--jm-ease); }
.jm-hero__control:hover { background: var(--jm-ink); color: var(--jm-white); }
.jm-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.jm-icon__play { display: none; fill: currentColor; stroke: none; }
.jm-hero__control.is-paused .jm-icon__pause { display: none; }
.jm-hero__control.is-paused .jm-icon__play { display: block; }
.jm-hero__status { min-width: 64px; color: var(--jm-ink); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-align: center; }

.jm-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.jm-section-heading h2 { font-family: var(--jm-serif); font-size: clamp(42px, 4.3vw, 64px); font-weight: 400; letter-spacing: -.04em; line-height: .96; }
.jm-section-heading__note { display: none; color: var(--jm-muted); font-size: 13px; }
.jm-category-section { padding-block: 44px 60px; }
.jm-category-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.jm-category-card { min-width: 0; min-height: 148px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(112px, .95fr); align-items: center; padding: 20px 18px 20px 22px; background: var(--jm-ivory); transition: background-color 220ms var(--jm-ease), transform 220ms var(--jm-ease); }
.jm-category-card:hover { background: var(--jm-sand); transform: translateY(-2px); }
.jm-category-card__copy { min-width: 0; display: grid; gap: 7px; align-content: center; }
.jm-category-card__copy strong { font-size: 12px; letter-spacing: .08em; line-height: 1.25; }
.jm-category-card__copy span { color: var(--jm-muted); font-size: 14px; line-height: 1.4; }
.jm-category-card__media { display: block; min-width: 0; height: 118px; }
.jm-category-card__media img, .jm-category-card__media .jm-category-card__placeholder { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.jm-category-card__placeholder { display: block; background: var(--jm-sand); }

.jm-product-section { padding-block: clamp(72px, 7vw, 96px); }
.jm-product-section--ivory { background: var(--jm-ivory); }
.jessemonkey-template .jm-product-section .products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 0; }
.jessemonkey-template .jm-product-section .products > li { width: auto; margin: 0; }

.jm-services { border-top: 1px solid var(--jm-soft-line); border-bottom: 1px solid var(--jm-soft-line); }
.jm-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.jm-service-item { min-height: 146px; display: grid; grid-template-columns: 28px 1fr; gap: 18px; align-content: center; padding: 28px 30px; }
.jm-service-item + .jm-service-item { border-left: 1px solid var(--jm-soft-line); }
.jm-service-item__icon { width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--jm-olive); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.jm-service-item h3 { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.jm-service-item p { margin-top: 8px; color: var(--jm-muted); font-size: 13px; line-height: 1.6; }

@media (max-width: 980px) {
  .jessemonkey-template .jm-product-section .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .jm-product-section { padding-block: 64px; }
  .jm-hero { min-height: 610px; }
  .jm-hero__slide { object-position: 66% center; }
  .jm-hero .jm-hero__veil { background: linear-gradient(0deg, rgba(44, 36, 31, .74), rgba(44, 36, 31, .1) 72%); }
  .jm-hero__content { min-height: 610px; justify-content: flex-end; padding-bottom: 48px; color: var(--jm-white); }
  .jm-hero h1 { color: var(--jm-white); font-size: clamp(48px, 13vw, 56px); }
  .jm-hero__content > p { color: rgba(255, 249, 242, .92); }
  .jm-hero__actions { width: 100%; flex-direction: column; gap: 18px; }
  .jm-hero__actions .jm-button { width: 100%; }
  .jm-hero__controls { display: none; }
  .jm-section-heading { align-items: start; flex-direction: column; margin-bottom: 24px; }
  .jm-section-heading h2 { font-size: 43px; }
  .jm-category-section { padding-block: 40px 48px; }
  .jm-section-heading__note { display: block; }
  .jm-category-rail { grid-auto-columns: minmax(260px, 82%); grid-auto-flow: column; grid-template-columns: none; margin-right: -16px; overflow-x: auto; padding: 0 16px 8px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .jm-category-card { min-height: 140px; scroll-snap-align: start; }
  .jessemonkey-template .jm-product-section .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .jm-services__grid { grid-template-columns: 1fr; }
  .jm-service-item { min-height: 120px; padding-inline: 0; }
  .jm-service-item + .jm-service-item { border-top: 1px solid var(--jm-soft-line); border-left: 0; }
}

@media (prefers-reduced-transparency: reduce) {
  .jm-hero__controls { background: var(--jm-white); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
