/* Homepage: latest work samples (sections/portfolioShowcase.blade.php). Text >= 13px. */
.hp-section { position: relative; padding: 90px 0 80px; background: linear-gradient(180deg, #f6f4ff, #fff 70%); color: #10155c; direction: rtl; text-align: right; overflow: hidden; }
.hp-section *, .hp-section *::before, .hp-section *::after { box-sizing: border-box; }
.hp-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.hp-head > div { max-width: 720px; }
.hp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; margin-bottom: 14px; border-radius: 30px; background: #ebe6ff; color: #6045e0; font-size: 13px; font-weight: 600; }
.hp-section h2 { margin: 0 0 10px; color: #10155c; font-size: clamp(26px, 2.5vw, 38px); font-weight: 800; line-height: 1.6; letter-spacing: -.5px; }
.hp-section h2 span { color: #7057e8; }
.hp-head p { margin: 0; color: #6f7693; font-size: 15px; line-height: 2; }
.hp-all { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 0 18px; border-radius: 30px; border: 1px solid #d9d2fb; color: #5a43d6; font-size: 14px; font-weight: 700; text-decoration: none; transition: background .2s; }
.hp-all:hover { background: #f1eeff; color: #46319e; text-decoration: none; }

.hp-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: center; }
.hp-info { display: flex; flex-direction: column; min-width: 0; }
.hp-counter { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; color: #a3a9c6; font-size: 15px; font-weight: 700; }
.hp-counter strong { color: #7057e8; font-size: 30px; font-weight: 800; line-height: 1; }
.hp-panel { animation: hp-in .5s ease both; }
.hp-panel[hidden] { display: none; }
.hp-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.hp-cat { padding: 4px 12px; border-radius: 30px; background: #e3f8ef; color: #12806a; font-size: 13px; font-weight: 700; }
.hp-new { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 30px; background: #fff4d6; color: #a37800; font-size: 13px; font-weight: 700; }
.hp-new i { width: 7px; height: 7px; border-radius: 50%; background: #f2c21a; box-shadow: 0 0 0 0 #f2c21a88; animation: hp-ping 1.8s infinite; }
.hp-section .hp-panel h3 { margin: 0 0 10px; color: #10155c; font-size: clamp(22px, 2vw, 28px); font-weight: 800; line-height: 1.6; }
.hp-panel p { margin: 0 0 16px; color: #6f7693; font-size: 15px; line-height: 2; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.hp-chips li { margin: 0; padding: 4px 12px; border-radius: 10px; background: #fff; border: 1px solid #e3e7f3; color: #4b5476; font-size: 13px; font-weight: 600; }
.hp-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.hp-live { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #5a43d6; font-size: 14px; font-weight: 700; text-decoration: none; }
.hp-live:hover { color: #10155c; text-decoration: none; }
.hp-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.hp-arrow { display: grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid #d9d2fb; background: #fff; color: #5a43d6; font-size: 17px; cursor: pointer; transition: background .2s, color .2s; }
.hp-arrow:hover { background: #f1eeff; }
.hp-arrow--fill { background: #7057e8; border-color: #7057e8; color: #fff; }
.hp-arrow--fill:hover { background: #5a43d6; }
.hp-bar { flex: 1; height: 4px; border-radius: 4px; background: #e6e3f8; overflow: hidden; }
.hp-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #42d3a1, #7057e8); transform: scaleX(0); transform-origin: right; }
.hp-section.is-playing .hp-bar i { animation: hp-fill var(--hp-dur, 6s) linear forwards; }
.hp-section.is-paused .hp-bar i { animation-play-state: paused; }

.hp-visual { position: relative; display: grid; aspect-ratio: 900 / 555; }
.hp-glow { position: absolute; inset: 6% 10%; border-radius: 50%; background: radial-gradient(circle, #d9d2ff, transparent 68%); filter: blur(10px); }
.hp-shot { grid-area: 1 / 1; position: relative; display: block; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .6s ease, transform .6s ease; pointer-events: none; }
.hp-shot.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hp-shot img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 22px; box-shadow: 0 30px 50px -28px #3b4f9a66; }
.hp-shot.is-active img { animation: hp-float 7s ease-in-out infinite; }

.hp-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 34px; }
.hp-tab { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid #e6e9f5; border-radius: 16px; background: #fff; color: inherit; font: inherit; text-align: right; cursor: pointer; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.hp-tab:hover { border-color: #cfc5fb; }
.hp-tab.is-active { border-color: #7057e8; box-shadow: 0 14px 30px -22px #7057e8; }
.hp-tab:focus-visible, .hp-arrow:focus-visible, .hp-section a:focus-visible { outline: 3px solid #8b78ee; outline-offset: 3px; }
.hp-tab-no { flex-shrink: 0; color: #a3a9c6; font-size: 14px; font-weight: 800; }
.hp-tab.is-active .hp-tab-no { color: #7057e8; }
.hp-tab-text { display: flex; flex-direction: column; min-width: 0; }
.hp-tab-text strong { overflow: hidden; color: #10155c; font-size: 13px; font-weight: 700; line-height: 1.7; white-space: nowrap; text-overflow: ellipsis; }
.hp-tab-text em { color: #8a90ad; font-size: 13px; font-style: normal; }
.hp-tab-fill { position: absolute; right: 0; left: 0; bottom: 0; height: 3px; background: #7057e8; transform: scaleX(0); transform-origin: right; }
.hp-section.is-playing .hp-tab.is-active .hp-tab-fill { animation: hp-fill var(--hp-dur, 6s) linear forwards; }
.hp-section.is-paused .hp-tab.is-active .hp-tab-fill { animation-play-state: paused; }

@keyframes hp-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes hp-fill { to { transform: scaleX(1); } }
@keyframes hp-float { 50% { transform: translateY(-8px); } }
@keyframes hp-ping { 70% { box-shadow: 0 0 0 7px #f2c21a00; } 100% { box-shadow: 0 0 0 0 #f2c21a00; } }

@media (max-width: 1199px) {
    .hp-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .hp-section { padding: 64px 0 56px; }
    .hp-head { flex-direction: column; align-items: flex-start; }
    .hp-stage { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .hp-visual { order: -1; max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 575px) {
    .hp-section { padding: 48px 0 44px; }
    .hp-section h2 { font-size: 25px; }
    .hp-head p, .hp-panel p { font-size: 14px; }
    .hp-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
    .hp-tab { flex: 0 0 70%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
    .hp-section *, .hp-section *::before, .hp-section *::after { animation: none !important; transition: none !important; }
}
