/* KIHPS home hero options: 1 Capsule · 2 Cross · 3 Journey. One shows via :root[data-hero]. */
.hx { display: none; position: relative; overflow: hidden; }
:root[data-hero="1"] .hx-1, :root[data-hero="2"] .hx-2, :root[data-hero="3"] .hx-3 { display: block; }
.hero-switching .hx { animation: heroIn .7s var(--ease); }
@keyframes chipBob { 50% { transform: translateY(-10px); } }

/* ---------- 1 · Capsule */
.hx-1 { padding: clamp(18px, 3vw, 40px) 0 clamp(44px, 5vw, 70px); }
.hx1-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(rgba(78,160,229,.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(78,160,229,.08) 1px, transparent 1px) 0 0 / 28px 28px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%); }
.cap-float { position: absolute; width: 50px; height: 20px; border-radius: 99px; --r: 0deg;
  background: linear-gradient(90deg, var(--red) 50%, var(--card) 50%);
  box-shadow: inset 0 0 0 1px rgba(3,26,56,.14), inset 0 4px 4px rgba(255,255,255,.35), 0 8px 18px -8px rgba(3,26,56,.45);
  opacity: .75; animation: capDrift 16s ease-in-out infinite; }
.cap-float.f1 { left: 3%; top: 14%; --r: -30deg; }
.cap-float.f2 { left: 46%; top: 3%; --r: 20deg; width: 38px; height: 15px; animation-delay: -4s; background: linear-gradient(90deg, var(--brand) 50%, var(--card) 50%); }
.cap-float.f3 { right: 4%; top: 8%; --r: 60deg; animation-delay: -8s; }
.cap-float.f4 { left: 1%; bottom: 22%; --r: 15deg; width: 34px; height: 14px; animation-delay: -2s; background: linear-gradient(90deg, var(--sky) 50%, var(--card) 50%); }
.cap-float.f5 { right: 2%; bottom: 30%; --r: -50deg; width: 40px; height: 16px; animation-delay: -11s; background: linear-gradient(90deg, var(--brand) 50%, var(--card) 50%); }
.cap-float.f6 { left: 30%; bottom: 4%; --r: 80deg; width: 30px; height: 12px; animation-delay: -6s; }
.cap-float.f7 { right: 28%; bottom: 2%; --r: -15deg; width: 36px; height: 14px; animation-delay: -13s; background: linear-gradient(90deg, var(--sky) 50%, var(--card) 50%); }
@keyframes capDrift { 0%, 100% { transform: translate(0, 0) rotate(var(--r)); } 50% { transform: translate(16px, -24px) rotate(calc(var(--r) + 45deg)); } }
.hx-1 .plus { position: absolute; width: 18px; height: 18px; opacity: .5; animation: capDrift 20s ease-in-out infinite;
  background: linear-gradient(var(--red), var(--red)) center / 100% 32% no-repeat, linear-gradient(var(--red), var(--red)) center / 32% 100% no-repeat; }
.hx-1 .plus.p1 { left: 14%; top: 4%; }
.hx-1 .plus.p2 { right: 14%; bottom: 10%; width: 14px; height: 14px; animation-delay: -7s; }
.hx-1 .plus.p3 { left: 58%; bottom: 14%; width: 12px; height: 12px; animation-delay: -12s; opacity: .35; }
.capsule { position: relative; display: grid; grid-template-columns: 1.06fr 1fr; min-height: clamp(500px, 64vh, 610px); border-radius: 999px; isolation: isolate; overflow: hidden;
  box-shadow: 0 60px 100px -60px rgba(3,26,56,.75); }
.cap-half { position: relative; overflow: hidden; }
.cap-copy { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px 56px clamp(80px, 9vw, 150px); border-radius: 999px 0 0 999px; color: #c9d8ea;
  background: radial-gradient(130% 150% at 0% 0%, #0b56b0 0%, var(--brand) 32%, #04203f 100%); animation: capL 1.15s var(--ease) both; }
.cap-copy::after { content: ""; position: absolute; right: -60px; top: 50%; width: 240px; height: 240px; margin-top: -120px; border-radius: 50%; border: 40px solid rgba(153,207,235,.07); }
.cap-photo { border-radius: 0 999px 999px 0; background: var(--abyss); animation: capR 1.15s var(--ease) both; }
.cap-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(3,20,44,.55), rgba(3,20,44,0) 35%); }
@keyframes capL { from { transform: translateX(-70px); opacity: 0; } }
@keyframes capR { from { transform: translateX(70px); opacity: 0; } }
.cap-copy .eyebrow { color: var(--sky-200); }
.cap-copy h1 { color: #fff; font-size: calc(clamp(40px, 4.5vw, 66px) * var(--hs, 1)); line-height: 1.03; margin-bottom: 20px; }
.cap-copy h1 em { color: var(--sky-200); }
.cap-copy .lead { color: #c9d8ea; max-width: 30em; margin-bottom: 28px; font-size: calc(17px * var(--ts, 1)); }
.cap-shine { position: absolute; left: 7%; right: 7%; top: 7%; height: 18%; z-index: 2; border-radius: 999px; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)); }
.cap-shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 18%; left: -20%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shineSweep 7s ease-in-out infinite 1.6s; }
@keyframes shineSweep { 0% { left: -20%; } 30%, 100% { left: 110%; } }
.cap-seam { position: absolute; left: 51.45%; top: 4%; bottom: 4%; width: 3px; z-index: 2; margin-left: -1.5px; border-radius: 3px; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.6) 50%, rgba(255,255,255,0)); }
.cap-tag { position: absolute; right: clamp(70px, 8vw, 130px); bottom: 34px; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 99px;
  background: rgba(3,26,56,.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: calc(13px * var(--ts, 1)); font-weight: 500; }
.cap-tag .bars i { width: 18px; }
.rx-row { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.rx-pill { display: flex; align-items: center; gap: 12px; min-width: 0; height: 76px; padding: 0 20px 0 12px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .45s var(--ease), border-color .3s, box-shadow .4s;
  animation: itemUp .7s var(--ease) backwards; animation-delay: calc(var(--i) * 90ms + .55s); }
.rx-pill:hover { transform: translateY(-5px); border-color: var(--sky-200); box-shadow: var(--shadow-lg); }
.rx-ico { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--red) 50%, var(--brand) 50%); transition: transform .7s cubic-bezier(.4,1.5,.5,1); }
.rx-ico svg { width: 24px; height: 24px; transition: transform .7s cubic-bezier(.4,1.5,.5,1); }
.rx-pill:hover .rx-ico { transform: rotate(180deg); }
.rx-pill:hover .rx-ico svg { transform: rotate(180deg); }
.rx-t { min-width: 0; }
.rx-t b { display: block; font: 700 calc(17px * var(--hs, 1))/1.15 var(--serif); color: var(--ink); }
.rx-t small { display: block; margin-top: 3px; font-size: calc(12.5px * var(--ts, 1)); color: var(--muted); }
.rx-pill > svg { flex: none; margin-left: auto; width: 18px; height: 18px; color: var(--navy); transition: transform .35s var(--ease); }
.rx-pill:hover > svg { transform: translateX(4px); }

/* ---------- 2 · Cross */
.hx-2 { padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 84px); background: radial-gradient(60% 70% at 80% 40%, var(--sky-50), transparent 70%); }
.hx-2::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(78,160,229,.08) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgba(78,160,229,.08) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask-image: radial-gradient(45% 60% at 76% 50%, #000, transparent 75%); mask-image: radial-gradient(45% 60% at 76% 50%, #000, transparent 75%); }
.hx2-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hx2-copy h1 { font-size: calc(clamp(42px, 5.2vw, 78px) * var(--hs, 1)); line-height: 1.02; margin-bottom: 22px; }
.hx2-copy h1 em { color: var(--red); }
.hx2-copy .lead { max-width: 32em; margin-bottom: 30px; }
.hx2-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--line); }
.hx2-stats div { padding: 20px 18px 0 0; }
.hx2-stats div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hx2-stats strong { display: block; font: 700 calc(40px * var(--hs, 1))/1 var(--serif); color: var(--navy); }
.hx2-stats span { display: block; margin-top: 8px; font-size: calc(13.5px * var(--ts, 1)); color: var(--muted); }
.crossbox { position: relative; justify-self: center; width: min(100%, 560px); aspect-ratio: 1; }
.cross-glow { position: absolute; inset: 6%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(78,160,229,.32), transparent 65%); animation: glowP 6s ease-in-out infinite; }
@keyframes glowP { 50% { transform: scale(1.08); opacity: .7; } }
.cross { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 12px; width: 100%; height: 100%; }
.xt { position: relative; border-radius: 24px; perspective: 1000px; animation: tileIn .9s cubic-bezier(.3,1.35,.5,1) backwards; animation-delay: calc(var(--i) * 110ms + .2s); }
@keyframes tileIn { from { opacity: 0; transform: scale(.35); } }
.arm.a1 { grid-area: 1 / 2; } .arm.a2 { grid-area: 2 / 1; } .arm.a3 { grid-area: 2 / 3; } .arm.a4 { grid-area: 3 / 2; }
.xt-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.34,1.3,.5,1); }
.xt.flipped .xt-in { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 20px 40px -22px rgba(3,26,56,.6); }
.face.b { transform: rotateY(180deg); }
.arm:hover .xt-in { transform: rotateY(0) scale(1.05); }
.arm.flipped:hover .xt-in { transform: rotateY(180deg) scale(1.04); }
.core { grid-area: 2 / 2; z-index: 2; display: grid; place-items: center; align-content: center; gap: 6px; padding: 10px; text-align: center; color: #fff; background: var(--red);
  box-shadow: 0 26px 50px -20px rgba(204,29,41,.75);
  transition: transform .7s cubic-bezier(.34,1.45,.5,1), box-shadow .6s var(--ease), background .5s var(--ease); will-change: transform; }
.core::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid rgba(204,29,41,.5); opacity: 0; pointer-events: none;
  transition: opacity .4s; }
.core:hover { background: var(--red-700); transform: scale(1.08); box-shadow: 0 34px 70px -22px rgba(204,29,41,.9); }
.core:hover::before { opacity: 1; animation: coreRing 1.6s var(--ease) infinite; }
@keyframes coreRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.22); opacity: 0; } }
.core:hover .core-ico { animation-duration: .9s; }
.core small svg { transition: transform .5s var(--ease); }
.core:hover small svg { transform: translateX(5px); }
.core b, .core small { transition: transform .6s var(--ease); }
.core:hover b { transform: translateY(-2px); }
.core-ico { display: grid; place-items: center; width: 54px; height: 54px; animation: heartbeat 1.7s ease-in-out infinite; }
.core-ico svg { width: 46px; height: 46px; }
.core-ico svg path { fill: #fff; stroke: none; }
@keyframes heartbeat { 0%, 45%, 100% { transform: scale(1); } 14% { transform: scale(1.18); } 28% { transform: scale(1.06); } }
.core b { font: 700 calc(clamp(16px, 1.6vw, 21px) * var(--hs, 1))/1.1 var(--serif); }
.core small { display: inline-flex; align-items: center; gap: 6px; font-size: calc(12.5px * var(--ts, 1)); opacity: .9; }
.core small svg { width: 14px; height: 14px; }
.xchip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: chipBob 6s ease-in-out infinite; }
.xchip > svg { width: 38px; height: 38px; padding: 9px; border-radius: 50%; background: var(--sky-50); color: var(--navy); flex: none; }
.xchip b { display: block; font-size: calc(14px * var(--ts, 1)); color: var(--ink); }
.xchip small { display: block; font-size: calc(12px * var(--ts, 1)); color: var(--muted); }
.c-tl { left: 0; top: 12%; }
.c-br { right: 0; bottom: 13%; animation-delay: -3s; }
.c-bl.round { left: 13%; bottom: 9%; width: 58px; height: 58px; padding: 0; justify-content: center; border-radius: 50%; animation-delay: -1.5s; }
.c-bl.round > svg { background: none; color: var(--red); width: 30px; height: 30px; padding: 0; }

/* ---------- 3 · Journey */
.hx-3 { padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 84px); background: radial-gradient(70% 50% at 50% 0, var(--sky-50), transparent 70%); }
.hx3-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: end; margin-bottom: 26px; }
.hx3-head h1 { font-size: calc(clamp(42px, 5vw, 74px) * var(--hs, 1)); line-height: 1; }
.hx3-head h1 em { color: var(--red); }
.hx3-side .lead { margin-bottom: 20px; }
.journey { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: stretch; }
.jr-stage { position: relative; min-height: clamp(400px, 52vh, 500px); border-radius: 30px; overflow: hidden; background: var(--abyss); box-shadow: var(--shadow-lg); }
.jr-stage figure { position: absolute; inset: 0; margin: 0; z-index: 0; clip-path: inset(0 0 0 100%); }
.jr-stage figure.prev { z-index: 1; clip-path: inset(0); }
.jr-stage figure.on { z-index: 2; clip-path: inset(0); transition: clip-path 1.1s var(--ease); }
.jr-stage img { width: 100%; height: 100%; object-fit: cover; }
.jr-stage figure.on img { animation: kb 8s linear both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.jr-stage figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,16,36,.15), rgba(2,16,36,0) 40%, rgba(2,16,36,.8)); }
.jr-stage figcaption { position: absolute; left: 30px; bottom: 26px; z-index: 1; display: flex; align-items: center; gap: 14px; color: #fff; font: 700 calc(clamp(26px, 2.6vw, 38px) * var(--hs, 1))/1.1 var(--serif); }
.jr-stage figcaption span { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font: 600 calc(15px * var(--ts, 1))/1 var(--sans); }
.jr-scan { position: absolute; left: 0; right: 0; top: 0; z-index: 3; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(153,207,235,.95), transparent); box-shadow: 0 0 22px 6px rgba(78,160,229,.45); animation: scan 5s ease-in-out infinite; }
@keyframes scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.jr-tag { position: absolute; left: 22px; top: 22px; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: rgba(3,26,56,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: calc(12.5px * var(--ts, 1)); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.jr-tag i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5a; animation: livepip 1.6s infinite; }
.jr-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.js-step { position: relative; width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 12px 18px; border-radius: 20px; text-align: left;
  border: 1px solid transparent; transition: background .45s, border-color .45s, box-shadow .45s; }
.js-step:hover { background: color-mix(in srgb, var(--card) 60%, transparent); }
.js-step.on { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.js-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-50); color: var(--navy); transition: background .4s, color .4s, box-shadow .4s; }
.js-ico svg { width: 25px; height: 25px; }
.js-step.on .js-ico { background: var(--red); color: #fff; box-shadow: 0 0 0 7px rgba(204,29,41,.12); }
.js-t small { display: block; font: 600 calc(11px * var(--ts, 1))/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.js-t b { display: block; margin: 6px 0 0; font: 700 calc(22px * var(--hs, 1))/1.15 var(--serif); color: var(--ink); }
.js-t > span { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: calc(14px * var(--ts, 1)); line-height: 1.5; color: var(--muted); transition: max-height .5s var(--ease), opacity .4s, margin .4s; }
.js-step.on .js-t > span { max-height: 70px; opacity: 1; margin-top: 6px; }
.js-bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; overflow: hidden; opacity: 0; transition: opacity .3s; }
.js-step.on .js-bar { opacity: 1; }
.js-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--sky)); transform-origin: left; transform: scaleX(0); }
.js-step.on .js-bar i { animation: bar 6.5s linear forwards; }
.drip { position: relative; display: block; width: 2px; height: 22px; margin-left: 45px; background: repeating-linear-gradient(var(--line) 0 4px, transparent 4px 8px); }
.drip i { position: absolute; left: -4px; top: -4px; width: 10px; height: 12px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--sky); animation: drop 1.9s ease-in infinite; }
@keyframes drop { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(22px) scale(1); opacity: 0; } }

/* ---------- responsive */
@media (max-width: 1020px) {
  .capsule { grid-template-columns: 1fr; border-radius: 40px; min-height: 0; }
  .cap-photo { order: -1; height: 340px; border-radius: 40px 40px 0 0; }
  .cap-copy { border-radius: 0 0 40px 40px; padding: 40px 36px 44px; }
  .cap-copy::after { display: none; }
  .cap-seam { display: none; }
  .cap-shine { left: 8%; right: 8%; top: 3%; height: 9%; }
  .cap-tag { right: 20px; bottom: 20px; }
  .rx-row { grid-template-columns: 1fr 1fr; }
  .hx2-grid { grid-template-columns: 1fr; }
  .crossbox { width: min(100%, 460px); }
  .hx3-head, .journey { grid-template-columns: 1fr; }
  .jr-stage { min-height: 360px; }
}
@media (max-width: 720px) {
  .hx-1 { padding-top: 8px; }
  .cap-photo { height: 250px; border-radius: 28px 28px 0 0; }
  .capsule { border-radius: 28px; }
  .cap-copy { border-radius: 0 0 28px 28px; padding: 30px 22px 32px; }
  .cap-copy h1 { font-size: calc(38px * var(--hs, 1)); }
  .cap-copy .lead { font-size: calc(15.5px * var(--ts, 1)); }
  .cap-tag { display: none; }
  .cap-float { opacity: .45; }
  .rx-row { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .rx-pill { height: 64px; }
  .rx-ico { width: 44px; height: 44px; }
  .hx2-stats strong { font-size: calc(30px * var(--ts, 1)); }
  .hx2-stats div + div { padding-left: 12px; }
  .cross { gap: 8px; }
  .xt, .face { border-radius: 16px; }
  .core-ico { width: 40px; height: 40px; }
  .core-ico svg { width: 34px; height: 34px; }
  .core small { display: none; }
  .xchip { padding: 7px 12px 7px 7px; }
  .xchip > svg { width: 30px; height: 30px; padding: 7px; }
  .xchip b { font-size: calc(12.5px * var(--ts, 1)); }
  .xchip small { display: none; }
  .c-bl.round { width: 46px; height: 46px; }
  .jr-stage { min-height: 280px; border-radius: 22px; }
  .jr-stage figcaption { left: 18px; bottom: 16px; font-size: calc(22px * var(--ts, 1)); }
  .jr-stage figcaption span { width: 36px; height: 36px; }
  .js-step { grid-template-columns: 46px minmax(0, 1fr); padding: 12px 14px; gap: 12px; }
  .js-ico { width: 46px; height: 46px; }
  .js-t b { font-size: calc(19px * var(--ts, 1)); }
  .drip { margin-left: 36px; height: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-float, .hx-1 .plus, .cap-shine::after, .core-ico, .xchip, .cross-glow, .jr-scan, .drip i { animation: none !important; }
}
