/* ---- Hero ---- */
.sp-hero { padding-top: .2rem; }
.sp-hero__frame { position: relative; border-radius: 26px; overflow: hidden; background: var(--sp-card); min-height: clamp(380px, 48vw, 620px); }
.sp-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.sp-hero__slide.is-active { opacity: 1; visibility: visible; }
.sp-hero__slide--image { background: #f6f4f4; }
.sp-hero__imglink, .sp-hero__imglink picture { display: block; width: 100%; height: 100%; }
.sp-hero__imglink img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.sp-hero__slide--plain { background: radial-gradient(circle at 85% 15%, rgba(238, 177, 136, .35), transparent 45%), radial-gradient(circle at 10% 90%, rgba(238, 177, 136, .18), transparent 40%), var(--sp-maroon); }
.sp-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-hero__bg + .sp-hero__content { background: linear-gradient(90deg, rgba(42, 10, 20, .55), transparent 70%); }
.sp-hero__content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: clamp(1.5rem, 6vw, 5rem); color: #fff; }
.sp-hero__content .sp-eyebrow { color: var(--sp-peach); }
.sp-hero__title { font-size: clamp(2.6rem, 6.4vw, 5.6rem); max-width: 12ch; margin: 0; }
.sp-hero__sub { max-width: 38ch; margin: 0; font-size: clamp(1rem, 1.6vw, 1.15rem); opacity: .9; }
.sp-hero__controls { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: .8rem; padding: .35rem .5rem .35rem 1rem; border-radius: 999px; background: rgba(42, 10, 20, .55); backdrop-filter: blur(8px); color: #fff; font-size: .82rem; }
.sp-hero__bar { width: 70px; height: 2px; background: rgba(255, 255, 255, .3); border-radius: 2px; overflow: hidden; }
.sp-hero__bar span { display: block; height: 100%; width: 0; background: #fff; }
.sp-round-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; font-size: .7rem; }
.sp-round-btn:hover { background: rgba(255, 255, 255, .28); }
.sp-round-btn--light { background: var(--sp-card); color: var(--sp-ink); width: 40px; height: 40px; }
.sp-round-btn--light:hover { background: #ebe5e2; }
.sp-round-btn:disabled { opacity: .35; cursor: default; }

/* ---- Pills / tabs ---- */
.sp-pills { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--sp-card); }
.sp-pill { border: 0; padding: .55rem 1.05rem; border-radius: 999px; background: transparent; cursor: pointer; font-size: .86rem; font-weight: 500; color: var(--sp-muted); }
.sp-pill.is-active { background: #fff; color: var(--sp-ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

/* ---- Product rail ---- */
.sp-rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 1.2rem) / 4); gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .2rem; }
.sp-rail__track::-webkit-scrollbar { display: none; }
.sp-rail__item { scroll-snap-align: start; }
.sp-rail__nav { display: flex; align-items: center; gap: .5rem; margin-top: 1.3rem; }
.sp-rail__bar { flex: 1; max-width: 220px; height: 2px; margin-right: auto; background: var(--sp-line); border-radius: 2px; overflow: hidden; }
.sp-rail__bar span { display: block; height: 100%; width: 30%; background: var(--sp-ink); transition: transform .2s; }

/* ---- Category tiles ---- */
.sp-section--tight { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.sp-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--sp-radius); overflow: hidden; text-decoration: none; color: #fff; background: radial-gradient(circle at 80% 10%, rgba(238, 177, 136, .4), transparent 50%), var(--sp-maroon); }
.sp-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.sp-tile:hover img { transform: scale(1.04); }
.sp-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(42, 10, 20, .7)); }
.sp-tile__tag { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .3rem .75rem; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--sp-ink); font-size: .74rem; font-weight: 600; }
.sp-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; justify-items: start; gap: .6rem; padding: 1.4rem; }
.sp-tile__body strong { font-family: var(--sp-font-display); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.05; }
.sp-tile__body small { opacity: .85; font-size: .88rem; }

/* ---- Benefits ---- */
.sp-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.sp-benefit { display: grid; justify-items: center; gap: .5rem; }
.sp-benefit__icon { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; background: var(--sp-peach-soft); color: var(--sp-maroon); font-size: 1.4rem; }
.sp-benefit h3 { margin: .3rem 0 0; font-size: 1.45rem; }
.sp-benefit p { margin: 0; color: var(--sp-muted); font-size: .9rem; max-width: 30ch; }

/* ---- Custom stitching split ---- */
.sp-split { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; background: var(--sp-maroon-deep); }
.sp-split__art { position: relative; min-height: 420px; background: var(--sp-peach-soft); }
.sp-split__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sp-split__mark { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 72px; padding: .7rem; border-radius: 18px; background: rgba(255, 255, 255, .9); }
.sp-split__panel { display: grid; align-content: center; justify-items: start; gap: 1.2rem; padding: clamp(2rem, 5vw, 4rem); color: #fff; }
.sp-split__panel .sp-eyebrow { color: var(--sp-peach); }
.sp-split__panel h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0; }
.sp-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: .9rem; }
.sp-steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: .9rem; align-items: start; }
.sp-steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(238, 177, 136, .5); color: var(--sp-peach); font-weight: 600; }
.sp-steps b { font-weight: 600; }
.sp-steps span { font-size: .88rem; opacity: .75; }

/* ---- Marquee ---- */
.sp-marquee { overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--sp-line); }
.sp-marquee__track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: sp-marquee 30s linear infinite; font-family: var(--sp-font-display); font-size: clamp(1.6rem, 3vw, 2.4rem); white-space: nowrap; }
.sp-marquee__track i { font-size: .9rem; color: var(--sp-peach); }
@keyframes sp-marquee { to { transform: translateX(-50%); } }

/* ---- Dark needs ---- */
.sp-dark { background: var(--sp-maroon-deep); color: #fff; margin-top: 3rem; border-radius: 28px; }
.sp-dark .sp-section__head--center .sp-eyebrow { color: var(--sp-peach); }
.sp-needs { display: grid; gap: 1rem; max-width: 980px; margin: 0 auto; }
.sp-need { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 1.3rem; padding: 1.3rem 1.5rem; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); text-decoration: none; transition: background .2s; }
.sp-need:hover { background: rgba(255, 255, 255, .09); }
.sp-need__icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(238, 177, 136, .15); color: var(--sp-peach); font-size: 1.4rem; }
.sp-need__text { display: grid; gap: .2rem; }
.sp-need__text strong { font-family: var(--sp-font-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.1; }
.sp-need__text small { font-size: .9rem; opacity: .75; }

@media (max-width: 1100px) {
    .sp-rail__track { grid-auto-columns: calc((100% - 2 * 1.2rem) / 3); }
    .sp-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .sp-hero__frame { min-height: 0; aspect-ratio: auto; }
    .sp-hero__slide { position: relative; display: none; }
    .sp-hero__slide.is-active { display: block; }
    .sp-hero__slide--image .sp-hero__imglink img { height: auto; aspect-ratio: 1600 / 679; }
    .sp-hero__slide--plain, .sp-hero__slide:not(.sp-hero__slide--image) { min-height: 440px; }
    .sp-hero__controls { position: static; transform: none; margin: .7rem auto 0; width: max-content; background: var(--sp-maroon-deep); }
    .sp-rail__track { grid-auto-columns: 46%; gap: .8rem; }
    .sp-tiles { grid-template-columns: 1fr; }
    .sp-tile { aspect-ratio: 16 / 11; }
    .sp-split { grid-template-columns: 1fr; }
    .sp-split__art { min-height: 320px; }
    .sp-need { grid-template-columns: 52px 1fr; }
    .sp-need__icon { width: 52px; height: 52px; font-size: 1.1rem; }
    .sp-need .sp-btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 520px) {
    .sp-rail__track { grid-auto-columns: 72%; }
    .sp-benefits { grid-template-columns: 1fr 1fr; gap: 1.2rem .8rem; }
    .sp-benefit h3 { font-size: 1.2rem; }
    .sp-benefit p { font-size: .8rem; }
    .sp-section__head { align-items: flex-start; }
}
/* Designed hero slides: artwork on the right, text on the left (top on mobile). */
.sp-hero__frame { --px: 0px; --py: 0px; }
.sp-hero__slide--art { background: var(--sp-maroon-deep); }
.sp-hero__bg { position: absolute; inset: 0; display: block; overflow: hidden; }
.sp-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; transform: translate3d(calc(var(--px) * -1), calc(var(--py) * -1), 0) scale(1.04); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sp-hero__slide.is-active .sp-hero__bg img { animation: sp-hero-zoom 7s ease-out both; }
@keyframes sp-hero-zoom { from { scale: 1.06; } to { scale: 1; } }
.sp-hero__slide--art .sp-hero__content { background: none; max-width: 50%; transform: translate3d(var(--px), var(--py), 0); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sp-hero__slide.is-active .sp-hero__content > * { animation: sp-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.sp-hero__slide.is-active .sp-hero__content > *:nth-child(2) { animation-delay: .08s; }
.sp-hero__slide.is-active .sp-hero__content > *:nth-child(3) { animation-delay: .16s; }
.sp-hero__slide.is-active .sp-hero__content > *:nth-child(4) { animation-delay: .24s; }
@keyframes sp-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.sp-hero__title { text-shadow: 0 10px 30px rgba(0, 0, 0, .18); }

.sp-hero__slide--dark { background: #fbf1ea; }
.sp-hero__slide--dark .sp-hero__content { color: var(--sp-maroon-deep); }
.sp-hero__slide--dark .sp-eyebrow { color: var(--sp-maroon); }
.sp-hero__slide--dark .sp-hero__title { text-shadow: none; }
.sp-hero__slide--dark .sp-hero__title em { color: var(--sp-maroon); }
.sp-hero__slide--dark .sp-btn--accent { background: linear-gradient(180deg, #a01540, #82082c 55%, #6a0623); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 22px -10px rgba(130, 8, 44, .65); }
.sp-hero__slide--dark .sp-btn--accent .sp-btn__arrow { background: #fff; color: var(--sp-maroon); }
.sp-hero__slide--art:not(.sp-hero__slide--dark) .sp-hero__title em { color: var(--sp-peach); }

@media (max-width: 900px) {
    .sp-hero__slide--art { min-height: 0 !important; aspect-ratio: 900 / 1120; }
    .sp-hero__bg img { object-position: center bottom; }
    .sp-hero__slide--art .sp-hero__content { max-width: none; justify-content: flex-start; padding: 2rem 1.5rem; gap: .7rem; }
    .sp-hero__slide--art .sp-hero__title { font-size: clamp(2.2rem, 9vw, 3.2rem); }
    .sp-hero__slide--art .sp-hero__sub { font-size: .95rem; max-width: 30ch; }
}
@media (prefers-reduced-motion: reduce) {
    .sp-hero__bg img, .sp-hero__content > * { animation: none !important; transform: none !important; }
}
@media (min-width: 901px) {
    .sp-hero__slide--art .sp-hero__content { max-width: 46%; padding-right: 0; }
    .sp-hero__slide--art .sp-hero__title { font-size: clamp(2.4rem, 4.6vw, 4.8rem); }
    .sp-hero__slide--art .sp-hero__sub { max-width: 34ch; }
}

/* Hero on tablets: the tall mobile artwork, with a comfortable cap */
@media (min-width: 560px) and (max-width: 900px) {
    .sp-hero__slide--art { aspect-ratio: 900 / 1000; }
    .sp-hero__slide--art .sp-hero__content { padding: 2.6rem 2.4rem; }
    .sp-hero__slide--art .sp-hero__title { font-size: clamp(2.6rem, 7vw, 3.6rem); }
}
