/* ── Hero (VariantB Kinetic) ── */
@keyframes sjpHeroWave1 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-90px,-22px,0); } }
@keyframes sjpHeroWave2 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(70px,28px,0); } }
@keyframes sjpHeroWave3 { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-55px,40px,0); } }
@keyframes sjpHeroOrb   { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(60px,-42px,0) scale(1.12); } }
@keyframes sjpHeroOrb2  { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-70px,36px,0) scale(.92); } }
@keyframes sjpHeroGrid  { 0% { background-position: 0 0; } 100% { background-position: 60px 60px; } }
@keyframes sjpWordIn    { from { transform: translateY(110%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes sjpWordOut   { from { transform: translateY(0); opacity: 1; } to { transform: translateY(-110%); opacity: 0; } }

.sjp-hero {
  position: relative; overflow: hidden; min-height: 100vh; color: #fff;
  background: linear-gradient(155deg, rgb(24, 41, 79) 0%, rgb(14, 26, 60) 52%, rgb(7, 14, 34) 100%);
  display: flex; align-items: center;
}

/* Background layers */
.sjp-hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sjp-hero__orb {
  position: absolute; border-radius: 50%; filter: blur(20px); will-change: transform;
}
.sjp-hero__orb--1 {
  left: 12%; top: 30%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(59,130,246,.32) 0%, rgba(59,130,246,0) 65%);
  animation: sjpHeroOrb 14s ease-in-out infinite;
}
.sjp-hero__orb--2 {
  right: -6%; top: -10%; width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(139,92,246,.25) 0%, rgba(139,92,246,0) 65%);
  animation: sjpHeroOrb2 18s ease-in-out infinite;
}
.sjp-hero__orb--3 {
  left: 45%; bottom: -14%; width: 520px; height: 360px;
  background: radial-gradient(ellipse, rgba(16,185,129,.18) 0%, rgba(16,185,129,0) 70%);
  filter: blur(24px); animation: sjpHeroOrb 22s ease-in-out infinite reverse;
}
.sjp-hero__grid {
  position: absolute; inset: -10% 0; opacity: .35;
  background-image: linear-gradient(rgba(147,197,253,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(147,197,253,.08) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at 30% 60%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 60%, #000 30%, transparent 75%);
  animation: sjpHeroGrid 24s linear infinite;
}
.sjp-hero__waves {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.sjp-wave--1 { animation: sjpHeroWave1 11s ease-in-out infinite; mix-blend-mode: screen; }
.sjp-wave--2 { animation: sjpHeroWave2 14s ease-in-out infinite; mix-blend-mode: screen; }
.sjp-wave--3 { animation: sjpHeroWave3 9s ease-in-out infinite; }

/* Copy block */
.sjp-hero__copy {
  position: absolute; left: 56px; right: 42%; top: 50%; transform: translateY(-50%);
  opacity: 0; animation: sjpRevealUp .8s ease .4s forwards;
}
@keyframes sjpRevealUp { from { opacity:0; transform:translateY(calc(-50% + 20px)); } to { opacity:1; transform:translateY(-50%); } }

.sjp-hero__eyebrow {
  font-family: var(--sjp-font-latin); font-size: 12px; font-weight: 700;
  letter-spacing: .22em; color: var(--sjp-accent-blue); margin: 0 0 20px; display: block;
}
.sjp-hero__title {
  font-family: var(--sjp-font-jp); font-weight: 700;
  font-size: clamp(40px, 5vw, 72px); line-height: 1.2;
  margin: 0 0 22px; letter-spacing: -.015em;
}

/* Word cycle */
.sjp-hero__word-cycle {
  position: relative; display: inline-block;
  min-width: 2em; height: 1.2em; line-height: 1.2em;
  overflow: hidden; vertical-align: -.24em; margin-right: 2px;
}
.sjp-hero__word {
  position: absolute; left: 0; top: -5px; line-height: 1.2em;
  color: var(--sjp-accent-blue);
  transform: translateY(110%); opacity: 0;
  transition: transform .55s cubic-bezier(.7,0,.2,1), opacity .45s ease;
}
.sjp-hero__word.is-active { transform: translateY(0); opacity: 1; }
.sjp-hero__word.is-prev   { transform: translateY(-110%); opacity: 0; }

.sjp-hero__desc {
  font-family: var(--sjp-font-jp); font-size: 15px; line-height: 1.9;
  color: rgba(255,255,255,.78); max-width: 500px; margin: 0 0 32px;
}
.sjp-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.sjp-hero__btn {
  font-family: var(--sjp-font-jp); font-size: 14px; font-weight: 700;
  text-decoration: none; padding: 13px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; transition: all .25s ease;
}
.sjp-hero__btn--primary { background: #fff; color: var(--sjp-ink-hi); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.sjp-hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.30); }
.sjp-hero__btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.sjp-hero__btn--ghost:hover { background: #fff; color: var(--sjp-ink-hi); border-color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.30); }
.sjp-hero__btn svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.sjp-hero__btn:hover svg { transform: translateX(4px); }

/* Right slide rail */
.sjp-hero__rail-wrap {
  position: absolute; top: 100px; left: 55%; right: 0; overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 100%);
  opacity: 0; animation: sjpRevealRight .9s cubic-bezier(.2,.8,.2,1) .2s forwards;
}
@keyframes sjpRevealRight { from { opacity:0; transform:translateX(24px); } to { opacity:1; transform:translateX(0); } }
.sjp-hero__rail { display: flex; gap: 18px; padding: 0 0 0 24px; transition: transform 1.1s cubic-bezier(.7,0,.2,1); }
.sjp-hero__slide {
  flex: 0 0 242px; height: 260px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 22px 48px rgba(0,0,0,.35); position: relative;
}
.sjp-hero__slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sjp-hero__slide-overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,.6) 100%);
}
.sjp-hero__slide-copy { position: absolute; left: 22px; bottom: 20px; color: #fff; }
.sjp-hero__slide-label { display: block; font-family: var(--sjp-font-latin); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.sjp-hero__slide-sub   { display: block; font-family: var(--sjp-font-jp); font-size: 12px; font-weight: 500; opacity: .85; margin-top: 4px; }
.sjp-hero__slide-badge {
  position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(6px);
  font-family: var(--sjp-font-latin); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #fff;
}
.sjp-hero__dots { display: flex; gap: 8px; margin-top: 22px; padding-left: 24px; }
.sjp-hero__dot {
  width: 8px; height: 8px; border-radius: 999px; border: none;
  background: rgba(255,255,255,.3); cursor: pointer; padding: 0; transition: all .4s ease;
}
.sjp-hero__dot.is-active { width: 32px; background: var(--sjp-accent-blue); }

/* Scroll hint */
.sjp-hero__scroll-hint {
  position: absolute; right: 34px; bottom: 40px;
  color: rgba(255,255,255,.55); display: flex; flex-direction: column; align-items: center;
}

/* Mobile */
@media (max-width: 768px) {
  .sjp-hero { flex-direction: column; padding-top: 80px; align-items: stretch; }
  .sjp-hero__copy {
    position: relative; left: auto; right: auto; top: auto; transform: none;
    animation: none; opacity: 1; z-index: 2;
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 0 20px 48px;
  }
  .sjp-hero__rail-wrap {
    position: relative; top: auto; left: auto; order: -1; z-index: 2;
    padding: 0 20px; margin-bottom: 32px; animation: none; opacity: 1;
    mask-image: linear-gradient(to right, #000 0, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 85%, transparent 100%);
  }
  .sjp-hero__rail { gap: 14px; padding: 0; }
  .sjp-hero__slide { flex: 0 0 186px; height: 240px; }
  .sjp-hero__dots { margin-top: 14px; padding-left: 0; }
  .sjp-hero__dot { width: 6px; height: 6px; }
  .sjp-hero__dot.is-active { width: 24px; }
  .sjp-hero__eyebrow { font-size: 10.5px; margin-bottom: 16px; }
  .sjp-hero__title {
    font-size: clamp(30px, 8vw, 42px); line-height: 1.25; margin: 0 0 18px;
  }
  .sjp-hero__desc {
    font-size: 13.5px; line-height: 1.85; margin: 0 0 28px;
  }
  .sjp-hero__ctas { flex-direction: column; gap: 12px; }
  .sjp-hero__btn {
    font-size: 15px; padding: 14px 22px; border-radius: 10px; justify-content: center;
  }
  .sjp-hero__btn--primary { box-shadow: 0 8px 20px rgba(0,0,0,.22); }
  .sjp-hero__btn--ghost {
    border: 1px solid rgba(255,255,255,.18);
    backdrop-filter: blur(6px);
  }
  .sjp-hero__scroll-hint { display: none; }
}
