/* Patch 257 — Cahaya CRT: static decoration, compact first screen, shared ID/EN sizing.
   Patch 258 — ruang lega di atas judul & di bawah tombol, kartu lebih besar dan rapat (kemiringan 3°→2° supaya
   sudut kartu tidak bertabrakan). Bertingkat menurut TINGGI layar: layar pendek tetap menampilkan kartu utuh. */
@font-face {
    font-family: 'HeyPixel';
    src: url('../fonts/hero-personal/pixelify-sans.ttf') format('truetype');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
#hero.hero-personal {
    position: relative;
    isolation: isolate;
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    padding: 0 0 36px !important;
    color: #fff;
    text-align: center;
    --hp-glow-width: 65%;
    --hp-glow-height: 175px;
    background:
        radial-gradient(ellipse var(--hp-glow-width) var(--hp-glow-height) at 50% 0, #fff 0%, #fff 16%, #f0e3ff 32%, #cfaffc 50%, #a570fc 70%, #9a62fae0 80%, #7427f600 100%),
        radial-gradient(ellipse at 50% 48%, #8c44ff77, transparent 64%),
        linear-gradient(180deg, #7427f6 0%, #7427f6 46%, #9c50f8 65%, #e8d2fc 85%, #fff 100%);
}
/* The side lines fade before the text; no animated filter or canvas is needed. */
#hero .hp-crt { position: absolute; z-index: 0; inset: 0 0 60px; pointer-events: none; overflow: hidden; -webkit-mask-image: linear-gradient(#000, #000 65%, transparent 96%); mask-image: linear-gradient(#000, #000 65%, transparent 96%); }
#hero .hp-crt::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, #e6d4ff30 0 1px, transparent 1px 4px); -webkit-mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000); mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 72%, #000); }
#hero .hp-crt-arc { position: absolute; top: -10%; height: 120%; width: 19%; max-width: 260px; }
#hero .hp-crt-arc-left { left: 0; }
#hero .hp-crt-arc-right { right: 0; transform: scaleX(-1); }
#hero.hero-personal .hp-content { position: relative; z-index: 2; width: min(100% - 40px, 1100px); margin: 0 auto; padding-top: clamp(172px, 12.5vw, 204px); }
#hero.hero-personal .hp-title { margin: 0 !important; font-size: inherit !important; line-height: 1 !important; letter-spacing: 0; }
#hero.hero-personal .hp-description { margin: 16px auto 0 !important; padding: 0 !important; max-width: 640px; font-family: 'Geist', Arial, sans-serif; font-size: clamp(18px, 1.4vw, 22px) !important; line-height: 1.4 !important; color: #fff; }
.hp-description > span { display: block; }
.hp-cta {
    --hp-cut: polygon(12px 0, calc(100% - 12px) 0, calc(100% - 12px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 12px, 100% 12px, 100% calc(100% - 12px), calc(100% - 4px) calc(100% - 12px), calc(100% - 4px) calc(100% - 4px), calc(100% - 12px) calc(100% - 4px), calc(100% - 12px) 100%, 12px 100%, 12px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 12px), 0 calc(100% - 12px), 0 12px, 4px 12px, 4px 4px, 12px 4px);
    position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 20px;
    box-sizing: border-box; min-height: 52px; margin-top: 14px; padding: 13px 34px;
    font-family: 'Geist', Arial, sans-serif; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.3; font-weight: 700;
    color: #fff; text-decoration: none; background: #431778; clip-path: var(--hp-cut);
    transition: transform .18s ease; -webkit-tap-highlight-color: transparent;
}
.hp-cta::before, .hp-cta::after { content: ''; position: absolute; clip-path: var(--hp-cut); pointer-events: none; }
.hp-cta::before { inset: 2px 2px 5px; z-index: -2; background: #d8acff; }
.hp-cta::after { inset: 6px 6px 9px; z-index: -1; background: linear-gradient(#160824, #0b0413); box-shadow: inset 0 2px #f0d9ff, inset 0 -2px #8b50c2; }
.hp-cta svg { width: 25px; height: 25px; flex: none; }
.hp-cta:hover { transform: translateY(-2px); color: #fff; }
.hp-cta:active { transform: translateY(1px); }
.hp-cta:focus-visible::after { box-shadow: inset 0 0 0 3px #fff; background: #341358; }
.hp-marquee { position: relative; z-index: 1; margin-top: 24px; padding: 20px 0 16px; width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent, #000 42px); mask-image: linear-gradient(180deg, transparent, #000 42px); }
/* Reference outlines preserve both letter shapes and the spacing between lines.
   The semantic heading remains available to screen readers; only one language shows. */
#hero.hero-personal .hp-title-art { display: none !important; width: min(100%, clamp(360px, 34vw, 520px)); margin: 0 auto !important; padding: 0 !important; box-sizing: border-box; }
html:not([lang="en"]) #hero.hero-personal .hp-title-art[data-lang-block="id"],
html[lang="en"] #hero.hero-personal .hp-title-art[data-lang-block="en"] { display: block !important; }
#hero.hero-personal .hp-title-art > img { display: block; width: 100%; height: auto; max-width: 100%; }
#hero.hero-personal .hp-title-readable { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hp-track { display: flex; width: max-content; animation: hp-marquee 58s linear infinite; }
.hp-track-group { display: flex; flex: none; gap: clamp(10px, .78vw, 15px); padding-right: clamp(10px, .78vw, 15px); }
.hp-card { flex: none; position: relative; height: clamp(236px, 18.8vw, 322px); aspect-ratio: 2 / 3; overflow: hidden; border-radius: 16px; background: #391270; transform: rotate(calc(var(--hp-tilt) * .67)); box-shadow: 0 12px 12px -9px #3811506b; }
.hp-card-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; font-family: 'HeyPixel', monospace; font-size: 28px; color: #fff; }
.hp-card img { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; }
.hp-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(#9653f766, transparent 18%, transparent 90%, #6c32831a); }
.hp-marquee:hover .hp-track { animation-play-state: paused; }
@keyframes hp-marquee { to { transform: translateX(-50%); } }

@media (max-width: 768px) {
    #hero.hero-personal { --hp-glow-width: 105%; --hp-glow-height: 145px; padding-bottom: 36px !important; }
    #hero .hp-crt { top: 0; bottom: 70px; }
    #hero .hp-crt-arc { width: 18%; opacity: .8; }
    #hero.hero-personal .hp-content { width: calc(100% - 28px); padding-top: clamp(164px, 43vw, 186px); }
    #hero.hero-personal .hp-description { margin-top: 18px !important; max-width: 450px; font-size: clamp(14px, 3.8vw, 16px) !important; line-height: 1.5 !important; }
    .hp-cta { min-height: 52px; margin-top: 16px; padding: 13px 24px; font-size: clamp(15px, 4vw, 17px); gap: 13px; }
    .hp-cta svg { width: 21px; height: 21px; }
    #hero.hero-personal .hp-title-art { width: min(82%, 310px); }
    .hp-marquee { margin-top: 14px; padding-top: 24px; -webkit-mask-image: linear-gradient(180deg, transparent, #000 40px); mask-image: linear-gradient(180deg, transparent, #000 40px); }
    .hp-cta { width: min(100%, 300px); max-width: 100%; box-sizing: border-box; }
    .hp-card { height: clamp(190px, 56vw, 240px); aspect-ratio: 3 / 5; border-radius: 12px; }
    .hp-track-group { gap: 8px; padding-right: 8px; }
    .hp-track { animation-duration: 70s; }

}
@media (min-width: 769px) and (max-height: 800px) {
    #hero.hero-personal .hp-content { padding-top: 166px; }
    .hp-marquee { margin-top: 16px; }
    .hp-card { height: clamp(206px, 30vh, 240px); }
}
/* laptop 1366×768 dengan bilah browser (±650px): judul sedikit lebih kecil supaya jarak baru & kartu tetap muat utuh */
@media (min-width: 769px) and (max-height: 680px) {
    #hero.hero-personal .hp-content { padding-top: 156px; }
    #hero.hero-personal .hp-title-art { width: min(100%, clamp(340px, 31vw, 440px)); }
    .hp-marquee { margin-top: 12px; }
    .hp-card { height: clamp(196px, 30vh, 210px); }
}
@media (max-width: 768px) and (max-height: 650px) {
    #hero.hero-personal .hp-content { padding-top: 154px; }
    #hero.hero-personal .hp-description { margin-top: 14px !important; }
    .hp-cta { margin-top: 12px; }
    .hp-marquee { margin-top: 10px; padding-top: 18px; }
    .hp-card { height: 172px; }
    #hero.hero-personal { padding-bottom: 28px !important; }
}
@media (prefers-reduced-motion: reduce) { .hp-track { animation: none; } .hp-cta { transition: none; } }
