/* ==========================================================================
   Signpro — front page
   ========================================================================== */
body.home { background: var(--sp-bg); }

/* Hero slider */
.sp-hero { position: relative; background: var(--sp-navy-800); overflow: hidden; }
.sp-hero__slide { display: none; }
.sp-hero__slide.is-active { display: block; animation: sp-fade .5s ease; }
@keyframes sp-fade { from { opacity: 0; } to { opacity: 1; } }
.sp-hero__img { position: absolute; inset: 0; }
.sp-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.sp-hero__mtitle { display: none; position: absolute; inset: 0; align-items: center; padding: 0 20px; background: linear-gradient(90deg, rgba(10, 10, 20, .45) 0%, rgba(10, 10, 20, 0) 55%); pointer-events: none; }
.sp-hero__mtitle span { font: 700 clamp(34px, 10vw, 48px)/1.05 var(--sp-font); color: var(--sp-white); letter-spacing: -.01em; max-width: 7ch; text-shadow: 0 2px 14px rgba(0, 0, 0, .3); }
.sp-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 20, .7) 0%, rgba(10, 10, 20, .45) 35%, rgba(10, 10, 20, 0) 60%); pointer-events: none; }
.sp-hero__body {
  position: relative; min-height: clamp(400px, 33.34vw, 500px);
  padding: clamp(32px, 3.5vw, 56px) clamp(20px, 12vw, 190px) clamp(56px, 4.5vw, 68px);
  display: flex; align-items: center; gap: 24px;
}
.sp-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(18px, 2vw, 28px); max-width: min(560px, 100%); flex: 0 1 560px; color: var(--sp-white); text-shadow: 0 2px 18px rgba(0, 0, 0, .25); }
.sp-hero__copy h1, .sp-hero__copy h2 { font: 700 clamp(36px, 3.8vw, 56px)/1.08 var(--sp-font); letter-spacing: -.02em; text-wrap: balance; }
.sp-hero__sub { font: 500 clamp(18px, 1.7vw, 24px)/1.45 var(--sp-font); text-wrap: pretty; }
.sp-hero__msub { display: none; font: 400 17px/1.4 var(--sp-font); }
.sp-hero__btn { min-height: 56px; padding: 0 36px; font: 700 17px/1 var(--sp-font); text-shadow: none; background: var(--btn, var(--sp-blue)); }
.sp-hero__btn:hover { background: var(--btn, var(--sp-blue)); filter: brightness(.9); }
.sp-hero__dots { position: absolute; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 8px; z-index: 2; }
.sp-hero__dots button { width: 52px; height: 20px; padding: 8px 0; border: 0; background: none; cursor: pointer; }
.sp-hero__dots button span { display: block; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.sp-hero__dots button[aria-pressed="true"] span { background: var(--sp-white); }

/* Client logos */
.sp-clients { padding: clamp(48px, 6vw, 80px) 0; background: var(--sp-white); }
.sp-clients .sp-h2, .sp-clients .sp-sub { padding: 0 16px; }
.sp-clients .sp-sub { margin: 12px auto clamp(28px, 3vw, 44px); }
.sp-logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
@keyframes sp-rail { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.sp-logos__rail { display: flex; align-items: center; gap: clamp(36px, 4vw, 56px); width: max-content; animation: sp-rail 64s linear infinite; }
.sp-logos__rail:hover { animation-play-state: paused; }
.sp-logos__rail img { flex: none; object-fit: contain; mix-blend-mode: multiply; }

/* Recommended rail */
.sp-rec__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.sp-rec__track::-webkit-scrollbar { display: none; }

/* Recent work rail */
.sp-work__scroller { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sp-work__scroller::-webkit-scrollbar { display: none; }
.sp-work__rail { display: flex; gap: 16px; width: max-content; }
.sp-work__item { flex: none; display: flex; flex-direction: column; background: var(--sp-white); border: 1px solid var(--sp-line); color: var(--sp-ink); text-decoration: none; }
.sp-work__item:hover { color: var(--sp-blue); }
.sp-work__item img { height: clamp(200px, 20vw, 280px); width: auto; min-width: 150px; max-width: none; background: var(--sp-bg); }
@keyframes sp-work-m { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@media (hover: none), (pointer: coarse), (max-width: 819px) { .sp-work__rail { animation: sp-work-m 70s linear infinite; will-change: transform; } .sp-work__rail:active { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .sp-work__rail { animation: none !important; } }
.sp-work__cap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; width: 0; min-width: 100%; }
.sp-work__cap b { font: 600 15px/1.25 var(--sp-font); }
.sp-work__cap span { font: 400 13px/1.2 var(--sp-font); color: var(--sp-muted); }

/* Why Signpro */
.sp-why { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px 24px; }
.sp-why__item { flex: 0 1 200px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.sp-why__icon { width: 112px; aspect-ratio: 1; border-radius: 30px; background: var(--bg, var(--sp-navy)); display: flex; align-items: center; justify-content: center; color: var(--sp-white); transform: rotate(-4deg); transition: transform .2s; }
.sp-why__icon:hover { transform: rotate(0deg) translateY(-4px); }
.sp-why__icon i { font-size: 54px; transform: rotate(4deg); }
.sp-why__item span { font: 400 16px/1.5 var(--sp-font); max-width: 22ch; text-wrap: balance; }

/* About panels */
.sp-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.sp-panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(32px, 4vw, 56px); background: var(--sp-navy); color: var(--sp-white); }
.sp-panel--blue { background: var(--sp-blue); }
.sp-panel p { font: 400 17px/1.7 var(--sp-font); color: #E2E2F2; }
.sp-panel--blue p { color: #E6F0FA; }
.sp-panel__links { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.sp-panel__links a { color: var(--sp-white); font: 500 15px/1.4 var(--sp-font); text-decoration: underline; text-underline-offset: 4px; }
.sp-panel__links a:hover { color: var(--sp-lime); }
.sp-panel .sp-btn--ghost-light { align-self: flex-start; min-height: 54px; padding: 0 26px; margin-top: 6px; }

@media (max-width: 1000px) {
  .sp-rec__track { grid-auto-columns: calc((100% - 24px) / 2.3); }
}
@media (max-width: 820px) {
  .sp-hero__img { position: relative; inset: auto; aspect-ratio: 3 / 1; }
  .sp-hero__shade { display: none; }
  .sp-hero__body { min-height: 0; padding: 20px 20px 52px; }
  .sp-hero__copy { gap: 16px; }
  .sp-hero__copy h1, .sp-hero__copy h2, .sp-hero__sub { display: none; }
  .sp-hero__msub { display: block; }
  .sp-hero__mtitle { display: flex; }
}
@media (max-width: 720px) {
  .sp-rec__track { grid-auto-columns: 72%; gap: 12px; }
  .sp-logos__rail img { zoom: .72; }
  .sp-logos__rail { gap: 28px; }
}
