/* ==========================================================================
   Superium — homepage layouts
   --------------------------------------------------------------------------
   Three architectures, one token vocabulary. Every rule reads from
   superium-palettes.css; layout rules that belong to a single homepage are
   scoped under its body.sp-theme--* class so the three can never collide.

     01 Shared hero primitives
     02 FRESH     — collage hero, promise strip, promo banners
     03 AQUA      — split hero, slot card, bento
     04 GRAPHITE  — dark hero, ticker, deal block
   ========================================================================== */

/* 01 — Shared hero primitives ============================================= */

/* 02 — FRESH ============================================================== */

.sp-hero-fresh {
  padding-block: clamp(28px, 5vw, 60px);
  background: linear-gradient(
    160deg,
    var(--sp-primary-soft) 0%,
    var(--sp-bg) 55%,
    var(--sp-accent-soft) 100%
  );
  border-block-end: 1px solid var(--sp-border);
}

.sp-hero-fresh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

@media (min-width: 1024px) {
  .sp-hero-fresh-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 40px;
  }
}

/* Search block ------------------------------------------------------------ */

.sp-hero-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-block-start: 24px;
  padding: 8px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-md);
}

.sp-hero-search-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sp-text-soft);
  background: var(--sp-bg);
  border-radius: var(--sp-radius);
  white-space: nowrap;
}

.sp-hero-search-loc svg {
  color: var(--sp-primary);
  flex-shrink: 0;
}

.sp-hero-search-field {
  flex: 1;
  min-inline-size: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 6px;
}

.sp-hero-search-field svg {
  color: var(--sp-muted);
  flex-shrink: 0;
}

.sp-hero-search-field input {
  inline-size: 100%;
  min-inline-size: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  color: var(--sp-text);
}

.sp-hero-search-field input:focus {
  outline: none;
}

/* Stats ------------------------------------------------------------------- */

.sp-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-block-start: 26px;
}

.sp-hero-stats div {
  display: flex;
  flex-direction: column;
}

.sp-hero-stats b {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--sp-primary);
  line-height: 1.2;
}

.sp-hero-stats span {
  font-size: 0.75rem;
  color: var(--sp-muted);
}

/* Collage ----------------------------------------------------------------- */

.sp-hero-fresh-collage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sp-hero-tile {
  position: relative;
  display: block;
  padding: 18px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow);
  transition: transform var(--sp-dur) var(--sp-ease),
    box-shadow var(--sp-dur) var(--sp-ease);
}

.sp-hero-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--sp-shadow-lg);
}

.sp-hero-tile img {
  inline-size: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.sp-hero-tile span {
  display: block;
  margin-block-start: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--sp-text);
  text-align: center;
}

/* Every other tile sits lower, so the block reads as a collage not a grid. */
@media (min-width: 640px) {
  .sp-hero-tile:nth-child(2n) {
    transform: translateY(20px);
  }

  .sp-hero-tile:nth-child(2n):hover {
    transform: translateY(16px);
  }
}

/* Delivery promise strip -------------------------------------------------- */

.sp-promise {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 900px) {
  .sp-promise {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sp-promise-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}

.sp-promise-item svg {
  color: var(--sp-primary);
  flex-shrink: 0;
}

.sp-promise-item b {
  display: block;
  font-size: 0.8125rem;
  color: var(--sp-text);
}

.sp-promise-item span {
  font-size: 0.6875rem;
  color: var(--sp-muted);
}

/* Promo banners ----------------------------------------------------------- */

/* Promo cards carry a soft dot field over their gradient, so a banner row
   never sits as a flat block between two textured rails. */
.sp-promo-banner {
  background-image: radial-gradient(
    circle at 1px 1px,
    color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
    transparent 0
  );
  background-size: 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-block-size: 168px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--sp-radius-lg);
  background: var(--sp-surface-2);
  border: 1px solid var(--sp-border);
  transition: box-shadow var(--sp-dur) var(--sp-ease);
}

.sp-promo-banner:hover {
  box-shadow: var(--sp-shadow-md);
}

.sp-promo-banner > div {
  min-inline-size: 0;
}

.sp-promo-kicker {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--sp-primary);
  margin-block-end: 6px;
}

.sp-promo-banner b {
  display: block;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-promo-banner p {
  margin-block: 6px 12px;
  font-size: 0.8125rem;
  color: var(--sp-muted);
}

.sp-promo-banner img {
  inline-size: 42%;
  max-inline-size: 150px;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.sp-promo-banner--a {
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(120deg, var(--sp-primary-soft), var(--sp-surface));
  background-size: 16px 16px, 100% 100%;
}

.sp-promo-banner--b {
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(120deg, var(--sp-accent-soft), var(--sp-surface));
  background-size: 16px 16px, 100% 100%;
}

.sp-promo-banner--c,
.sp-promo-banner--d,
.sp-promo-banner--e {
  min-block-size: 132px;
}

.sp-promo-banner--c {
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(135deg, var(--sp-primary-soft), var(--sp-surface));
  background-size: 16px 16px, 100% 100%;
}

.sp-promo-banner--d {
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(135deg, var(--sp-accent-soft), var(--sp-surface));
  background-size: 16px 16px, 100% 100%;
}

.sp-promo-banner--e {
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(135deg, var(--sp-surface-2), var(--sp-surface));
  background-size: 16px 16px, 100% 100%;
}

/* 03 — AQUA =============================================================== */

.sp-hero-aqua {
  padding-block: clamp(24px, 4vw, 52px);
  background: var(--sp-surface);
  border-block-end: 1px solid var(--sp-border);
}

.sp-hero-aqua-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

@media (min-width: 1024px) {
  .sp-hero-aqua-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.sp-hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-start: 22px;
  font-size: 0.75rem;
  color: var(--sp-muted);
}

.sp-hero-trust svg {
  color: var(--sp-accent);
  flex-shrink: 0;
}

/* Media + overlapping card ------------------------------------------------ */

.sp-hero-aqua-media {
  position: relative;
  padding-block-end: 90px;
}

.sp-hero-aqua-media > img {
  inline-size: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--sp-radius-lg);
  background: var(--sp-surface-2);
}

.sp-slot-card {
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  inline-size: min(100%, 340px);
  padding: 16px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-slot-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  margin-block-end: 2px;
}

.sp-slot-card-head svg {
  color: var(--sp-primary);
}

/* Bento ------------------------------------------------------------------- */

.sp-bento {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .sp-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .sp-bento {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.sp-bento-lead {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--sp-radius-lg);
  background: linear-gradient(150deg, var(--sp-primary-soft), var(--sp-surface));
  border: 1px solid var(--sp-border);
}

.sp-bento-lead-copy b {
  display: block;
  margin-block: 10px 8px;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--sp-text);
  line-height: 1.7;
}

.sp-bento-lead-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-bento-lead-price strong {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-bento-lead-price strong small {
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--sp-muted);
}

/* The photo takes the slack, so copy and button never drift apart. */
.sp-bento-lead-media {
  flex: 1;
  min-block-size: 140px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: #fff;
  border-radius: var(--sp-radius);
}

.sp-bento-lead-media img {
  inline-size: 100%;
  max-inline-size: 230px;
  max-block-size: 230px;
  object-fit: contain;
}

.sp-bento-lead .sp-btn {
  align-self: stretch;
}

.sp-bento-cell {
  min-inline-size: 0;
}

/* 04 — GRAPHITE =========================================================== */

.sp-hero-graphite {
  padding-block: clamp(44px, 8vw, 104px);
  background:
    radial-gradient(
      120% 90% at 80% 0%,
      color-mix(in srgb, var(--sp-primary) 16%, transparent) 0%,
      transparent 60%
    ),
    var(--sp-surface);
  border-block-end: 1px solid var(--sp-border);
}

.sp-hero-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-block-start: 34px;
  padding-block-start: 22px;
  border-block-start: 1px solid var(--sp-border);
}

.sp-hero-ticker span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  color: var(--sp-text-soft);
}

.sp-hero-ticker svg {
  color: var(--sp-primary);
  flex-shrink: 0;
}

/* Deal block -------------------------------------------------------------- */

.sp-deal {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  border-radius: var(--sp-radius-lg);
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
}

@media (min-width: 900px) {
  .sp-deal {
    grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr);
    gap: 28px;
  }
}

.sp-deal-kicker {
  display: inline-block;
  padding: 4px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--sp-on-primary);
  background: var(--sp-primary);
  border-radius: var(--sp-radius-pill);
}

.sp-deal-title {
  margin-block: 12px 14px;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.65;
  color: var(--sp-text);
}

.sp-deal-prices {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-block-end: 18px;
}

.sp-deal-prices b {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--sp-text);
}

.sp-deal-prices b small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sp-muted);
}

.sp-deal-photo {
  inline-size: 100%;
  max-inline-size: 220px;
  margin-inline: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--sp-radius);
  background: #fff;
}

.sp-deal-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sp-deal-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--sp-radius);
  background: var(--sp-surface-2);
  transition: background-color var(--sp-dur) var(--sp-ease);
}

.sp-deal-strip-item:hover {
  background: var(--sp-primary-soft);
}

.sp-deal-strip-item img {
  inline-size: 46px;
  block-size: 46px;
  object-fit: contain;
  border-radius: var(--sp-radius-sm);
  background: #fff;
  flex-shrink: 0;
}

.sp-deal-strip-item > div {
  min-inline-size: 0;
}

.sp-deal-strip-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.75rem;
  color: var(--sp-text-soft);
}

.sp-deal-strip-price {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--sp-primary);
}

/* GRAPHITE keeps product photography on white so packaging stays readable
   against the dark surface. */
body.sp-theme--graphite .sp-product-img-wrap,
body.sp-theme--graphite .sp-mini-item-thumb {
  background: #fff;
}

body.sp-theme--graphite .sp-hero-graphite .sp-hero-lead {
  max-inline-size: 52ch;
}

/* Category tiles are photographed on white. On the dark palette they read as
   deliberate light blocks rather than glare once they carry the same border
   and a slightly recessed image. */
body.sp-theme--graphite .sp-cat-tile {
  background: var(--sp-surface-2);
}

body.sp-theme--graphite .sp-cat-tile img {
  filter: grayscale(1) contrast(1.02) brightness(0.94);
}

body.sp-theme--graphite .sp-cat-tile:hover img {
  filter: none;
}

/* Same treatment at index scale: the thumb keeps the white shooting
   background so packaging stays readable, and colour arrives on hover. */
body.sp-theme--graphite .sp-cat-row-thumb {
  background: #fff;
}

body.sp-theme--graphite .sp-cat-row-thumb img {
  filter: grayscale(1) contrast(1.02) brightness(0.94);
}

body.sp-theme--graphite .sp-cat-row:hover .sp-cat-row-thumb img {
  filter: none;
}

/* Strip banner ------------------------------------------------------------
   A full-width break between two product rails: copy on the start edge, a row
   of category shots on the end edge. Distinct from the card grids so two
   banner sections on one page never read as the same component twice. */

.sp-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: clamp(20px, 3vw, 32px);
  overflow: hidden;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  transition: box-shadow var(--sp-dur) var(--sp-ease);
}

.sp-strip:hover {
  box-shadow: var(--sp-shadow-md);
}

.sp-strip-copy {
  flex: 1 1 260px;
  min-inline-size: 0;
}

.sp-strip-copy b {
  display: block;
  margin-block: 6px 8px;
  font-family: var(--sp-font-display);
  font-size: clamp(1.0625rem, 2.4vw, 1.5rem);
  font-weight: 800;
  color: var(--sp-text);
}

.sp-strip-copy p {
  max-inline-size: 46ch;
  margin-block-end: 16px;
  font-size: 0.8125rem;
  line-height: 2;
  color: var(--sp-muted);
}

.sp-strip-art {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.sp-strip-art img {
  inline-size: clamp(64px, 9vw, 104px);
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  transition: transform var(--sp-dur) var(--sp-ease);
}

/* Fan the shots slightly so the row reads as a display, not a grid. */
.sp-strip-art img:nth-child(2n) {
  transform: translateY(10px);
}

.sp-strip:hover .sp-strip-art img:nth-child(2n) {
  transform: translateY(6px);
}

/* Drop the two trailing shots on narrow screens rather than shrinking them
   past legibility. */
@media (max-width: 700px) {
  .sp-strip-art img:nth-child(n + 3) {
    display: none;
  }
}

.sp-strip--warm {
  background-image: repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--sp-primary) 7%, transparent) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(
    115deg,
    var(--sp-primary-soft),
    var(--sp-surface) 55%,
    var(--sp-accent-soft)
  );
}

.sp-strip--cool {
  background-image: repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--sp-primary) 7%, transparent) 0 2px,
      transparent 2px 14px
    ),
    linear-gradient(115deg, var(--sp-primary-soft), var(--sp-surface));
}

.sp-strip--dark {
  background-color: var(--sp-surface);
  background-image: repeating-linear-gradient(
      -45deg,
      color-mix(in srgb, var(--sp-primary) 9%, transparent) 0 2px,
      transparent 2px 14px
    ),
    radial-gradient(
      80% 140% at 85% 50%,
      color-mix(in srgb, var(--sp-primary) 18%, transparent),
      transparent 70%
    );
}

/* Bento filler banner ------------------------------------------------------
   The 2×2 lead plus eight cards leaves three empty cells on the last row of
   the 5-column bento. This banner occupies exactly those cells, and becomes a
   full-width band at the breakpoints where no gap exists. */

.sp-bento-banner {
  grid-column: span 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: var(--sp-radius-lg);
  border: 1px solid var(--sp-border);
  background-color: var(--sp-surface);
  background-image: radial-gradient(
      circle at 1px 1px,
      color-mix(in srgb, var(--sp-text) 7%, transparent) 1px,
      transparent 0
    ),
    linear-gradient(115deg, var(--sp-accent-soft), var(--sp-surface) 70%);
  background-size: 16px 16px, 100% 100%;
  transition: box-shadow var(--sp-dur) var(--sp-ease);
}

.sp-bento-banner:hover {
  box-shadow: var(--sp-shadow-md);
}

.sp-bento-banner > div {
  min-inline-size: 0;
  flex: 1 1 220px;
}

.sp-bento-banner b {
  display: block;
  margin-block: 6px 6px;
  font-family: var(--sp-font-display);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
  color: var(--sp-text);
}

.sp-bento-banner p {
  font-size: 0.8125rem;
  color: var(--sp-muted);
}

.sp-bento-banner-copy .sp-btn {
  margin-block-start: 14px;
}

/* Delivery illustration: a tinted disc with a dashed road under it, so the
   artwork sits on something instead of floating on the dotted ground. */
.sp-bento-banner-art {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  inline-size: clamp(128px, 24vw, 224px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.sp-bento-banner-art::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, var(--sp-primary) 0%, transparent 70%);
  opacity: 0.14;
}

.sp-bento-banner-art::after {
  content: '';
  position: absolute;
  inset-block-end: 13%;
  inset-inline: 6%;
  block-size: 2px;
  border-radius: 2px;
  color: var(--sp-primary);
  background: repeating-linear-gradient(
    90deg,
    currentColor 0 9px,
    transparent 9px 18px
  );
  opacity: 0.4;
}

.sp-bento-banner-art img {
  position: relative;
  inline-size: 80%;
  filter: drop-shadow(0 8px 12px rgba(19, 22, 27, 0.16));
  transition: transform var(--sp-dur) var(--sp-ease);
}

/* Physical X on purpose: the truck follows its own nose, not the text
   direction — the artwork points the same way in RTL and LTR. */
.sp-bento-banner:hover .sp-bento-banner-art img {
  transform: translateX(6px);
}

@media (min-width: 560px) {
  .sp-bento-banner-art {
    margin-inline: 0 0;
    margin-inline-start: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-bento-banner-art img {
    transition: none;
  }

  .sp-bento-banner:hover .sp-bento-banner-art img {
    transform: none;
  }
}

@media (min-width: 768px) {
  .sp-bento-banner {
    grid-column: span 4;
  }
}

@media (min-width: 1200px) {
  .sp-bento-banner {
    grid-column: span 3;
  }
}

/* GRAPHITE hero — floating product art -------------------------------------
   Ornamental layer behind the hero copy: product shots on white tiles that
   drift on a slow loop, plus small vector marks in the palette's green and
   white. Pointer-events off so it never intercepts a click. */

.sp-hero-graphite {
  position: relative;
  overflow: hidden;
}

.sp-hero-graphite > .sp-container {
  position: relative;
  z-index: 1;
}

.sp-hero-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.sp-float {
  position: absolute;
  display: grid;
  place-items: center;
  inline-size: clamp(42px, 4.4vw, 62px);
  aspect-ratio: 1;
  padding: 6px;
  background: #fff;
  border-radius: var(--sp-radius);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.42);
  animation: sp-drift 7s var(--sp-ease) infinite;
}

.sp-float img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: contain;
}

/* Positions run along the inline-end edge, opposite the copy — kept in a
   tight constellation so the group reads as one cluster, not scattered. */
.sp-float--1 {
  inset-inline-end: 8%;
  inset-block-start: 22%;
  animation-duration: 6.5s;
}

.sp-float--2 {
  inset-inline-end: 19%;
  inset-block-start: 13%;
  animation-duration: 8s;
  animation-delay: -1.5s;
}

.sp-float--3 {
  inset-inline-end: 27%;
  inset-block-start: 34%;
  animation-duration: 7.5s;
  animation-delay: -3s;
}

.sp-float--4 {
  inset-inline-end: 13%;
  inset-block-start: 45%;
  animation-duration: 9s;
  animation-delay: -4.5s;
}

.sp-float--5 {
  inset-inline-end: 23%;
  inset-block-start: 61%;
  animation-duration: 7s;
  animation-delay: -2.2s;
  opacity: 0.88;
}

/* Small vector marks --------------------------------------------------- */

.sp-float-mark {
  position: absolute;
  display: block;
  inline-size: clamp(11px, 1.3vw, 17px);
  animation: sp-drift 6s var(--sp-ease) infinite;
}

.sp-float-mark svg {
  inline-size: 100%;
  block-size: 100%;
}

.sp-float-mark[data-tone='green'] {
  color: var(--sp-primary);
}

.sp-float-mark[data-tone='white'] {
  color: #fff;
  opacity: 0.55;
}

.sp-float-mark--1 {
  inset-inline-end: 31%;
  inset-block-start: 12%;
  animation-delay: -1s;
}

.sp-float-mark--2 {
  inset-inline-end: 5%;
  inset-block-start: 39%;
  animation-duration: 5.5s;
  animation-delay: -2.5s;
}

.sp-float-mark--3 {
  inset-inline-end: 31%;
  inset-block-start: 56%;
  animation-duration: 6.5s;
  animation-delay: -3.5s;
}

.sp-float-mark--4 {
  inset-inline-end: 16%;
  inset-block-start: 70%;
  animation-duration: 7.5s;
  animation-delay: -0.5s;
}

@keyframes sp-drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-11px);
  }
}

/* Below 1024px the copy needs the full width, so the art steps back: the two
   shots nearest the text go, and the rest sit quietly behind. */
@media (max-width: 1023px) {
  .sp-float--4,
  .sp-float--5,
  .sp-float-mark--1,
  .sp-float-mark--3 {
    display: none;
  }

  .sp-hero-floats {
    opacity: 0.5;
  }
}

@media (max-width: 640px) {
  .sp-hero-floats {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sp-float,
  .sp-float-mark {
    animation: none;
  }
}
