/* JIARON default theme — merchandising layer.

   Loads after pages.css and owns the parts of the homepage a merchant tunes
   from Website: the six product-card presentations, the per-section column
   rhythm, and the sections added for a home-goods style storefront (wide
   banners, category tiles, testimonials, contact strip).

   Nothing here introduces a raw colour — everything resolves through the
   merchant palette in tokens.css, so a store keeps its own brand while the
   composition matches the reference layout. */

/* ============================================================
   Column rhythm — one knob for grids and carousels alike
   ============================================================ */
.jr-grid--cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .jr-grid--cols {
    grid-template-columns: repeat(min(3, var(--jr-cols, 5)), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .jr-grid--cols {
    grid-template-columns: repeat(var(--jr-cols, 5), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .jr-section[style*="--jr-cols"] .jr-carousel__track {
    grid-auto-columns: calc(
      (100% - (var(--jr-cols, 5) - 1) * 1.5rem) / var(--jr-cols, 5)
    );
  }
}

@media (min-width: 1536px) {
  .jr-section[style*="--jr-cols"] .jr-carousel__track {
    grid-auto-columns: calc(
      (100% - (var(--jr-cols, 5) - 1) * 1.5rem) / var(--jr-cols, 5)
    );
  }
}

/* ============================================================
   Card presentations
   ============================================================ */

/* Aspect ratio is a card option, so the media link — not the image — owns it. */
.jr-product--ratio-square .jr-product__media-link {
  aspect-ratio: 1;
}

.jr-product--ratio-portrait .jr-product__media-link {
  aspect-ratio: 3 / 4;
}

.jr-product--ratio-landscape .jr-product__media-link {
  aspect-ratio: 4 / 3;
}

.jr-product--ratio-auto .jr-product__media-link {
  aspect-ratio: auto;
}

/* Hover: zoom is the theme default and already lives in components.css.
   'none' opts out; 'swap' cross-fades to a genuine second image. */
.jr-product--hover-none:hover .jr-product__media img {
  transform: none;
}

.jr-product__media-alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--jr-dur) var(--jr-ease);
}

.jr-product--hover-swap:hover .jr-product__media img {
  transform: none;
}

.jr-product--hover-swap:hover .jr-product__media-alt {
  opacity: 1;
}

.jr-product__brand {
  font-size: var(--jr-text-xs, 0.75rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jr-muted);
}

/* ---------- compact: dense price-first tile ---------- */
.jr-product--compact {
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.jr-product--compact:hover {
  box-shadow: none;
  border-color: transparent;
}

.jr-product--compact .jr-product__media {
  border-radius: var(--jr-r-media);
  margin-bottom: 0.65rem;
}

.jr-product--compact .jr-product__body {
  gap: 0.3rem;
}

.jr-product--compact .jr-product__name {
  font-size: var(--jr-text-sm);
  line-height: 1.4;
  font-weight: 500;
  -webkit-line-clamp: 1;
}

.jr-product--compact .jr-price {
  font-size: var(--jr-text-sm);
  gap: 0.4rem;
}

/* ---------- minimal: image, name, price, nothing else ---------- */
.jr-product--minimal {
  padding: 0;
  border: 0;
  background: transparent;
}

.jr-product--minimal:hover {
  box-shadow: none;
  border-color: transparent;
}

.jr-product--minimal .jr-product__media {
  margin-bottom: 0.75rem;
}

.jr-product--minimal .jr-product__body {
  gap: 0.35rem;
  text-align: center;
}

.jr-product--minimal .jr-product__name {
  -webkit-line-clamp: 1;
  font-weight: 500;
}

.jr-product--minimal .jr-price {
  justify-content: center;
}

/* ---------- showcase: tall card with an outlined buy button ---------- */
.jr-product--showcase {
  padding: 0 0 1rem;
  border-radius: var(--jr-r-card);
  overflow: hidden;
}

.jr-product--showcase .jr-product__media {
  border-radius: 0;
  margin-bottom: 0.9rem;
}

.jr-product--showcase .jr-product__body {
  padding-inline: 0.9rem;
  gap: 0.5rem;
}

.jr-product--showcase .jr-product__name {
  font-size: var(--jr-text-sm);
  font-weight: 500;
  -webkit-line-clamp: 1;
}

.jr-product--showcase .jr-price__now {
  color: var(--jr-sale);
  font-weight: 700;
}

.jr-product--showcase .jr-product__buy {
  margin-top: 0.65rem;
}

.jr-product--showcase .jr-product__buy .jr-btn {
  border-radius: var(--jr-r-pill);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: var(--jr-text-xs, 0.75rem);
}

/* ---------- overlay: copy burned onto the artwork ---------- */
.jr-product--overlay {
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: var(--jr-r-card);
}

.jr-product--overlay .jr-product__media {
  margin-bottom: 0;
  border-radius: 0;
  height: 100%;
}

.jr-product--overlay .jr-product__media img {
  object-fit: cover;
  padding: 0;
}

.jr-product__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 2.5rem 1rem 1rem;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

.jr-product__overlay-name {
  font-weight: 600;
  font-size: var(--jr-text-sm);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jr-product__overlay-price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: var(--jr-h4-size, 1.15rem);
}

.jr-product__overlay-price s {
  font-size: var(--jr-text-sm);
  opacity: 0.75;
}

/* ---------- list: media left, detail right ---------- */
@media (min-width: 560px) {
  .jr-product--list {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 1.25rem;
    align-items: center;
  }

  .jr-product--list .jr-product__media {
    margin-bottom: 0;
  }

  .jr-product--list .jr-product__buy {
    margin-top: 0.75rem;
    max-width: 14rem;
  }
}

/* ============================================================
   Category tiles / grid
   ============================================================ */
.jr-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .jr-cat-grid {
    grid-template-columns: repeat(min(3, var(--jr-cols, 5)), minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .jr-cat-grid {
    grid-template-columns: repeat(var(--jr-cols, 5), minmax(0, 1fr));
  }
}

.jr-cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--jr-r-card);
  background: var(--jr-plate);
  text-decoration: none;
  color: inherit;
}

.jr-cat-tile__media {
  display: block;
  aspect-ratio: 4 / 5;
}

.jr-cat-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--jr-dur) var(--jr-ease);
}

.jr-cat-tile:hover .jr-cat-tile__media img {
  transform: scale(1.05);
}

.jr-cat-tile__letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: var(--jr-h2-size, 2rem);
  font-weight: 700;
  color: var(--jr-primary);
  background: var(--jr-primary-veil);
}

/* 'grid' keeps the label under the artwork; 'tiles' lays it over the image the
   way a department banner reads. */
.jr-cat-grid--grid .jr-cat-tile__label {
  display: block;
  padding: 0.75rem 0.25rem 0;
}

.jr-cat-grid--tiles .jr-cat-tile__label {
  position: absolute;
  inset: auto 0 0 0;
  display: block;
  padding: 2.25rem 1rem 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
}

.jr-cat-tile__name {
  display: block;
  font-weight: 700;
  font-size: var(--jr-text-base);
  line-height: 1.3;
}

.jr-cat-grid--tiles .jr-cat-tile__name {
  font-size: var(--jr-h4-size, 1.25rem);
}

.jr-cat-tile__count,
.jr-cat__count {
  display: block;
  font-size: var(--jr-text-sm);
  opacity: 0.8;
}

.jr-cat__count {
  color: var(--jr-muted);
  text-align: center;
}

/* ============================================================
   Wide banners
   ============================================================ */
.jr-section--flush {
  padding-block: calc(var(--jr-section-y) * 0.5);
}

.jr-banners {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .jr-banners--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jr-banners--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.jr-banner {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--jr-r-card);
  text-decoration: none;
  color: inherit;
  background: var(--jr-plate);
}

.jr-banner__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform var(--jr-dur) var(--jr-ease);
}

.jr-banner:hover .jr-banner__img {
  transform: scale(1.02);
}

.jr-banner__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  padding: clamp(1rem, 4vw, 3rem);
  color: #fff;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0)
  );
}

.jr-banner__badge {
  padding: 0.2rem 0.6rem;
  border-radius: var(--jr-r-pill);
  background: var(--jr-primary);
  color: var(--jr-on-primary);
  font-size: var(--jr-text-xs, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.jr-banner__title {
  font-family: var(--jr-font-display);
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  max-width: 22ch;
}

.jr-banner__text {
  font-size: var(--jr-text-sm);
  max-width: 34ch;
  opacity: 0.9;
}

.jr-banner__cta {
  margin-top: 0.35rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--jr-r-pill);
  background: var(--jr-primary);
  color: var(--jr-on-primary);
  font-size: var(--jr-text-sm);
  font-weight: 600;
}

/* ============================================================
   Testimonials
   ============================================================ */
.jr-testimonials__head {
  text-align: center;
  margin-bottom: 2.25rem;
}

.jr-testimonials__sub {
  margin: 0.5rem 0 0;
  color: var(--jr-muted);
  font-size: var(--jr-text-sm);
}

.jr-carousel--quotes .jr-carousel__track {
  grid-auto-columns: 100%;
}

@media (min-width: 768px) {
  .jr-carousel--quotes .jr-carousel__track {
    grid-auto-columns: calc((100% - 3rem) / 3);
  }
}

.jr-quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.jr-quote__text {
  margin: 0;
  font-size: var(--jr-text-base);
  line-height: 1.6;
  color: inherit;
}

.jr-quote__who {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.jr-quote__who strong {
  display: block;
  font-size: var(--jr-text-sm);
}

.jr-quote__who small {
  display: block;
  font-size: var(--jr-text-xs, 0.75rem);
  color: var(--jr-muted);
}

.jr-quote__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--jr-r-pill);
  object-fit: cover;
}

/* ============================================================
   Contact strip
   ============================================================ */
.jr-contact-bar {
  border-block: 1px solid var(--jr-line);
}

.jr-contact-bar--scheme-light {
  background: var(--jr-surface-muted);
}

.jr-contact-bar--scheme-brand {
  background: var(--jr-primary);
  color: var(--jr-on-primary);
  border-color: transparent;
}

.jr-contact-bar--scheme-dark {
  background: var(--jr-secondary);
  color: var(--jr-on-secondary);
  border-color: transparent;
}

.jr-contact-bar__row {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .jr-contact-bar__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .jr-contact-bar__row {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(0, 1fr);
  }
}

.jr-contact-bar__cell + .jr-contact-bar__cell {
  border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent);
}

@media (min-width: 1024px) {
  .jr-contact-bar__cell + .jr-contact-bar__cell {
    border-top: 0;
    border-left: 1px solid color-mix(in srgb, currentColor 15%, transparent);
  }
}

.jr-contact-bar__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  color: inherit;
  text-decoration: none;
}

a.jr-contact-bar__link:hover {
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.jr-contact-bar__icon {
  display: inline-flex;
  opacity: 0.75;
}

.jr-contact-bar__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.jr-contact-bar__label {
  font-size: var(--jr-text-sm);
  font-weight: 600;
}

.jr-contact-bar__value {
  font-size: var(--jr-text-sm);
  opacity: 0.85;
}

/* ============================================================
   Section rhythm — the reference layout's editorial heading:
   title left, plain "Shop all" right, hairline under the pair.
   ============================================================ */
.jr-section__head {
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--jr-line);
}

.jr-section__head h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.jr-section__link {
  color: var(--jr-ink);
  text-decoration: underline;
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.jr-section__link:hover {
  color: var(--jr-primary);
}

/* The arrow chip reads as a button next to a plain text link. */
.jr-section__link .jr-icon {
  display: none;
}

.jr-section--scheme-brand .jr-section__head,
.jr-section--scheme-dark .jr-section__head {
  border-bottom-color: color-mix(in srgb, currentColor 25%, transparent);
}

/* pages.css tints the standalone `.jr-section-title`, but a rail heads itself
   through `.jr-section__head h2` — which kept the default ink and left the
   title unreadable on a brand or dark band. */
.jr-section--scheme-brand .jr-section__head h2,
.jr-section--scheme-dark .jr-section__head h2,
.jr-section--scheme-brand .jr-section__sub,
.jr-section--scheme-dark .jr-section__sub {
  color: inherit;
}

.jr-section--scheme-brand .jr-section__link,
.jr-section--scheme-dark .jr-section__link {
  color: inherit;
}

/* ============================================================
   Carousel arrows — circular, over the rail, from tablet up.
   Off-canvas arrows only work on very wide viewports; the
   reference layout keeps them reachable at every breakpoint.
   ============================================================ */
@media (min-width: 640px) {
  .jr-carousel__nav {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--jr-r-pill);
    background: var(--jr-white);
    border: 1px solid var(--jr-line);
    box-shadow: var(--jr-z12);
  }

  .jr-carousel__nav--prev {
    left: -0.75rem;
  }

  .jr-carousel__nav--next {
    right: -0.75rem;
  }
}

/* Rails sit at the top of the card, not the middle of the whole
   block, so the arrows line up with the artwork rather than the copy. */
@media (min-width: 640px) {
  .jr-carousel:has(.jr-product) .jr-carousel__nav {
    top: 38%;
  }
}

/* ==== Story block ======================================================== */

.jr-story__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.jr-story__inner--narrow {
  grid-template-columns: minmax(0, 1fr);
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}

/* Order, not float: the picture must still come after the words on a phone,
   where a tall image above the heading pushes the story off the first screen. */
.jr-story--image-right .jr-story__media {
  order: 2;
}

.jr-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 30rem;
  object-fit: cover;
  border-radius: var(--jr-radius-lg, 1rem);
}

.jr-story__eyebrow {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.jr-story__title {
  margin-bottom: 0.75rem;
}

.jr-story__body {
  line-height: 1.65;
}

.jr-story__body :where(p) {
  margin: 0 0 0.85rem;
}

.jr-story__body :where(ul, ol) {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
}

.jr-story__body :where(img) {
  max-width: 100%;
  height: auto;
  border-radius: var(--jr-radius, 0.75rem);
}

.jr-story__cta {
  margin-top: 0.5rem;
}

@media (max-width: 860px) {
  .jr-story__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .jr-story--image-right .jr-story__media {
    order: 0;
  }

  .jr-story__media img {
    max-height: 18rem;
  }
}

/* ==== Stats band ========================================================= */

.jr-stats__head {
  margin-bottom: 1.25rem;
  text-align: center;
}

.jr-stats__subtitle {
  margin: 0.35rem 0 0;
  opacity: 0.8;
}

.jr-stats__grid {
  display: grid;
  grid-template-columns: repeat(var(--jr-stat-cols, 4), minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
}

.jr-stats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

.jr-stats__icon {
  display: inline-flex;
  margin-bottom: 0.2rem;
  opacity: 0.85;
}

.jr-stats__value {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.jr-stats__label {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 700px) {
  .jr-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==== Homepage FAQ ======================================================= */

.jr-home-faq__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.jr-home-faq__subtitle {
  margin: 0.3rem 0 0;
  opacity: 0.8;
}

.jr-home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 52rem;
}

.jr-home-faq__item {
  border: 1px solid var(--jr-border, #dfe3e8);
  border-radius: var(--jr-radius, 0.75rem);
  background: var(--jr-surface, #fff);
}

.jr-home-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.jr-home-faq__q::-webkit-details-marker {
  display: none;
}

.jr-home-faq__chevron {
  flex-shrink: 0;
  display: inline-flex;
  transition: transform 0.18s ease;
}

.jr-home-faq__item[open] .jr-home-faq__chevron {
  transform: rotate(180deg);
}

.jr-home-faq__a {
  padding: 0 1rem 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

/* ==== Video ============================================================== */

.jr-video__head {
  margin-bottom: 1rem;
  text-align: center;
}

.jr-video__subtitle {
  margin: 0.35rem 0 0;
  opacity: 0.8;
}

.jr-video__frame {
  max-width: 56rem;
  margin-inline: auto;
}

.jr-video__player,
.jr-video__embed {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--jr-radius-lg, 1rem);
  background-color: #10151a;
  background-position: center;
  background-size: cover;
  overflow: hidden;
}

.jr-video__embed {
  position: relative;
  display: grid;
  place-items: center;
}

.jr-video__embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.jr-video__play {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: #10151a;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.jr-video__play:hover,
.jr-video__play:focus-visible {
  background: #fff;
  transform: scale(1.06);
}

.jr-video__play-icon {
  display: inline-flex;
  margin-left: 0.2rem;
}

/* ============================================================
   Slideshow — one item per view

   The same scroll-snap carousel every other track uses, with the
   columns collapsed to a single full-width slide. `initCarousel`
   pages by `track.clientWidth`, so a 100% column means one arrow
   press (or one autoplay tick) advances exactly one item.

   Specificity is deliberate: `.jr-section[style*="--jr-cols"]
   .jr-carousel__track` above is (0,3,0) and sets a fractional
   column width, so a plainer selector here would lose to it on
   every rail that carries a column count.
   ============================================================ */
.jr-section .jr-carousel--slides.jr-carousel .jr-carousel__track {
  /* No gap: with a gap, paging by the viewport width drifts by one gap per
     slide and the snap points fight the scroll. */
  grid-auto-columns: 100%;
  gap: 0;
}

.jr-section .jr-carousel--slides.jr-carousel .jr-carousel__track > * {
  scroll-snap-align: center;
}

/* Arrows sit outside the track on a multi-item rail; on a full-bleed slide
   there is no outside, so they tuck in. */
.jr-carousel--slides .jr-carousel__nav--prev {
  left: 0.75rem;
}

.jr-carousel--slides .jr-carousel__nav--next {
  right: 0.75rem;
}

/* ---- Category slideshow ---- */
.jr-cat-slide {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--jr-r-hero);
  aspect-ratio: 21 / 9;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 767px) {
  .jr-cat-slide {
    aspect-ratio: 4 / 3;
  }
}

.jr-cat-slide__media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  /* Matches the letter fallback on the grid tiles, so a category with no
     artwork sits on brand tint rather than under a grey band. */
  background: var(--jr-primary-veil, var(--jr-surface-muted));
}

.jr-cat-slide__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jr-cat-slide__letter {
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--jr-primary);
}

.jr-cat-slide__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(1rem, 4vw, 2.5rem);
  /* Readable over any photograph without dimming the whole image. */
  background: linear-gradient(to top, rgb(0 0 0 / 72%), rgb(0 0 0 / 0%));
}

.jr-cat-slide__name {
  font-size: clamp(1.25rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
}

.jr-cat-slide__count {
  font-size: var(--jr-text-sm);
  opacity: 0.85;
}

/* ---- Brand logo slideshow + marquee ---- */
.jr-brands__item--slide {
  display: grid;
  place-items: center;
  padding: 1rem;
}

.jr-brands-marquee {
  overflow: hidden;
  /* Fade the ends so logos enter and leave rather than being cut off. */
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.jr-brands-marquee__track {
  display: flex;
  width: max-content;
  animation: jr-brands-drift var(--jr-marquee-dur, 24s) linear infinite;
}

.jr-brands-marquee:hover .jr-brands-marquee__track,
.jr-brands-marquee:focus-within .jr-brands-marquee__track {
  animation-play-state: paused;
}

.jr-brands-marquee__run {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-inline: 1.5rem;
}

.jr-brands-marquee__run .jr-brands__item {
  flex: 0 0 auto;
}

@keyframes jr-brands-drift {
  /* The track is two identical passes, so travelling exactly half its width
     lands on a frame identical to the start. */
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .jr-brands-marquee__track {
    animation: none;
  }

  /* Without the drift the second pass is a silent duplicate of the first. */
  .jr-brands-marquee__run[aria-hidden='true'] {
    display: none;
  }
}

/* ---- Testimonials grid ---- */
.jr-quote-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.jr-quote-grid .jr-quote {
  border: 1px solid var(--jr-border);
  border-radius: var(--jr-r-card);
  background: var(--jr-surface);
}

.jr-section--scheme-brand .jr-quote-grid .jr-quote,
.jr-section--scheme-dark .jr-quote-grid .jr-quote {
  border-color: rgb(255 255 255 / 22%);
  background: rgb(255 255 255 / 8%);
}
