/* =====================================================
   SIM YSA — home.css (landing index.php)
   Dimuat SETELAH welcome.css; hanya dipakai index.php.
   Prinsip: flat, ungu & magenta dipakai bergantian (tidak
   digradasikan bersama), animasi kecil hanya transform/opacity,
   semua animasi mati saat prefers-reduced-motion.
   ===================================================== */

:root {
    --ease-out: cubic-bezier(.2, .7, .2, 1);
    --shadow-sm: 0 1px 2px rgba(30,27,41,.05), 0 4px 12px -6px rgba(30,27,41,.10);
    --shadow-md: 0 18px 40px -18px rgba(30,27,41,.28);
}

body.home { overflow-x: hidden; }
.home :focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Reveal saat scroll (hanya jika JS aktif) ───────── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }

/* Animasi masuk hero (CSS murni, tanpa menunggu JS) */
.h-in { animation: hIn .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
@keyframes hIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =====================================================
   HERO
   ===================================================== */
.h-hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.h-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 60% 55% at 78% 45%, var(--purple-soft) 0%, transparent 70%);
}
.h-shape { position: absolute; z-index: 0; pointer-events: none; }
.h-shape-1 { width: 380px; height: 380px; border-radius: 50%; background: var(--magenta-soft); left: -190px; bottom: -200px; animation: hDrift 24s ease-in-out infinite; }
.h-shape-2 { width: 14px; height: 14px; border-radius: 4px; background: var(--purple); opacity: .5; top: 18%; left: 46%; animation: hSpinFloat 14s ease-in-out infinite; }
.h-shape-3 { width: 10px; height: 10px; border-radius: 50%; background: var(--magenta); opacity: .55; top: 72%; left: 40%; animation: hFloat 9s ease-in-out infinite 1s; }
.h-shape-4 { width: 18px; height: 18px; border: 2px solid var(--purple); border-radius: 50%; opacity: .35; top: 12%; left: 8%; animation: hFloat 11s ease-in-out infinite .5s; }

@keyframes hDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-24px) scale(1.06); } }
@keyframes hFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes hSpinFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(90deg); } }

.h-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }

.h-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 14px 7px 10px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    font-size: .78rem; font-weight: 600; color: var(--ink-soft);
}
.h-pill b { color: var(--purple-dark); font-weight: 700; }
.h-live { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--magenta); }
.h-live::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--magenta); animation: hPing 2s var(--ease-out) infinite; }
@keyframes hPing { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

.h-title {
    font-family: var(--ff-heading); font-weight: 700; color: var(--ink);
    font-size: clamp(2.1rem, 1.25rem + 3.4vw, 3.55rem); line-height: 1.08; letter-spacing: -.02em;
    margin: 22px 0 18px; text-wrap: balance;
}
.h-title em { position: relative; font-style: italic; font-weight: 600; color: var(--purple); white-space: nowrap; }
.h-title em svg { position: absolute; left: 0; right: 0; bottom: -.18em; width: 100%; height: .32em; overflow: visible; color: var(--magenta); }
.h-title em svg path { stroke-dasharray: 320; stroke-dashoffset: 320; animation: hDraw 1.2s var(--ease-out) .7s forwards; }
@keyframes hDraw { to { stroke-dashoffset: 0; } }

.h-rotator { display: flex; flex-wrap: wrap; align-items: center; line-height: 1.4; gap: .35em; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); font-weight: 600; color: var(--ink-soft); margin-bottom: 14px; }
.h-words { display: inline-grid; overflow: hidden; padding: .05em .1em; line-height: 1.4; }
.h-word {
    grid-area: 1 / 1; color: var(--magenta-dark); font-weight: 700;
    transform: translateY(105%); opacity: 0;
    transition: transform .55s var(--ease-out), opacity .55s var(--ease-out);
}
.h-word.is-active { transform: translateY(0); opacity: 1; }
.h-word.is-leaving { transform: translateY(-105%); opacity: 0; }
.h-word:nth-child(even) { color: var(--purple-dark); }
.no-js .h-word:first-child { transform: none; opacity: 1; }

.h-lead { max-width: 540px; font-size: 1.02rem; line-height: 1.75; color: var(--ink-soft); }

.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.h-actions .btn { min-height: 48px; }
.btn .btn-arrow { transition: transform .2s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.h-meta { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.h-meta li { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--ink-soft); }
.h-meta li span.ic { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--purple-soft); color: var(--purple-dark); }
.h-meta li:nth-child(even) span.ic { background: var(--magenta-soft); color: var(--magenta-dark); }

/* ── Visual kanan: logo + orbit + kartu melayang ───── */
.h-visual { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1; margin-left: auto; }
.h-orbit { position: absolute; inset: 0; color: var(--border); }
.h-orbit svg { width: 100%; height: 100%; }
.h-orbit .ring-outer { transform-origin: 50% 50%; animation: hSpin 70s linear infinite; }
@keyframes hSpin { to { transform: rotate(360deg); } }

.h-orbiter { position: absolute; inset: 7%; border-radius: 50%; animation: hSpin 22s linear infinite; }
.h-orbiter.rev { inset: 20%; animation-duration: 16s; animation-direction: reverse; }
.h-orbiter i { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--magenta); border: 3px solid var(--paper); }
.h-orbiter.rev i { background: var(--purple); width: 10px; height: 10px; margin-left: -5px; top: -5px; }

.h-core {
    position: absolute; top: 50%; left: 50%; width: 42%; aspect-ratio: 1 / 1;
    transform: translate(-50%, -50%);
    background: var(--surface); border: 1px solid var(--border); border-radius: 32%;
    box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; padding: 4.5%;
}
.h-core::before { content: ''; position: absolute; inset: -12px; border-radius: 34%; border: 1.5px solid var(--purple-soft); animation: ringPulse 5s ease-in-out infinite; }
.h-core img { width: 100%; height: auto; }

.h-card {
    position: absolute; z-index: 2;
    display: flex; align-items: center; gap: 11px;
    padding: 12px 14px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md);
    font-size: .8rem; min-width: 0;
    animation: hFloat 7s ease-in-out infinite;
}
.h-card .icon-badge { width: 36px; height: 36px; border-radius: 11px; }
.h-card-body { display: flex; flex-direction: column; min-width: 0; }
.h-card-t { display: block; font-weight: 700; color: var(--ink); line-height: 1.25; white-space: nowrap; }
.h-card-s { display: block; font-size: .72rem; color: var(--muted); line-height: 1.3; white-space: nowrap; }

.h-card.c1 { top: 4%; left: -6%; animation-delay: -1s; }
.h-card.c2 { top: 17%; right: -7%; animation-duration: 8s; animation-delay: -3s; }
.h-card.c3 { bottom: 5%; left: 2%; flex-direction: column; align-items: stretch; gap: 8px; animation-duration: 9s; animation-delay: -5s; }

.h-progress { display: block; width: 110px; height: 6px; border-radius: 99px; background: var(--purple-soft); overflow: hidden; margin-top: 6px; }
.h-progress i { display: block; height: 100%; background: var(--purple); border-radius: inherit; transform-origin: left; animation: hFill 3.6s var(--ease-out) infinite; }
@keyframes hFill { 0% { transform: scaleX(.08); } 55%, 85% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.h-avatars { display: flex; }
.h-avatars span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); display: inline-flex; align-items: center; justify-content: center; font-size: .66rem; font-weight: 700; color: #fff; background: var(--purple); }
.h-avatars span + span { margin-left: -8px; }
.h-avatars span:nth-child(2) { background: var(--magenta); }
.h-avatars span:nth-child(3) { background: var(--purple-dark); }
.h-avatars span:nth-child(4) { background: var(--magenta-dark); }

.h-bars { display: flex; align-items: flex-end; gap: 6px; height: 44px; }
.h-bars i { width: 14px; height: 100%; border-radius: 5px 5px 3px 3px; background: var(--purple); transform-origin: bottom; animation: hBar 4s var(--ease-out) infinite; }
.h-bars i:nth-child(even) { background: var(--magenta); }
.h-bars i:nth-child(1) { --h: .62; animation-delay: 0s; }
.h-bars i:nth-child(2) { --h: .84; animation-delay: .12s; }
.h-bars i:nth-child(3) { --h: .55; animation-delay: .24s; }
.h-bars i:nth-child(4) { --h: 1;   animation-delay: .36s; }
.h-bars i:nth-child(5) { --h: .74; animation-delay: .48s; }
@keyframes hBar { 0% { transform: scaleY(.1); } 30%, 80% { transform: scaleY(var(--h)); } 100% { transform: scaleY(.1); } }
.h-bars-lbl { display: flex; justify-content: space-between; font-size: .58rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; }

/* =====================================================
   MARQUEE sekolah
   ===================================================== */
.h-marquee { position: relative; background: var(--surface); border-block: 1px solid var(--border); padding: 18px 0; overflow: hidden; }
.h-marquee-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 22px 0 24px; background: var(--surface); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--purple-dark); box-shadow: 18px 0 18px -6px var(--surface); }
.h-marquee-view { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.h-marquee-track { display: flex; width: max-content; animation: hMarquee 70s linear infinite; }
.h-marquee:hover .h-marquee-track, .h-marquee:focus-within .h-marquee-track { animation-play-state: paused; }
.h-marquee-list { display: flex; gap: 12px; padding-right: 12px; }
.h-school { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--paper); white-space: nowrap; font-size: .8rem; font-weight: 600; color: var(--ink); }
.h-school .tag { font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: 4px 7px; border-radius: 999px; background: var(--purple-soft); color: var(--purple-dark); }
.h-school.is-magenta .tag { background: var(--magenta-soft); color: var(--magenta-dark); }
.h-school small { font-weight: 500; color: var(--muted); font-size: .74rem; }
@keyframes hMarquee { to { transform: translateX(-50%); } }

/* =====================================================
   SECTION umum
   ===================================================== */
.h-section { padding: 88px 0; content-visibility: auto; contain-intrinsic-size: auto 720px; }
.h-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.h-section-head h2 { font-family: var(--ff-heading); font-weight: 700; color: var(--ink); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); line-height: 1.15; letter-spacing: -.015em; max-width: 620px; text-wrap: balance; }
.h-section-head p { max-width: 440px; color: var(--ink-soft); font-size: .95rem; line-height: 1.7; }
.h-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .88rem; color: var(--purple-dark); padding: 8px 0; }
.h-link svg { transition: transform .2s var(--ease-out); }
.h-link:hover svg { transform: translateX(4px); }

/* ── Stats ─────────────────────────────────────────── */
.h-stats { padding: 56px 0 8px; }
.h-stats-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-sm); overflow: hidden; }
.h-stat { padding: 26px 18px; text-align: center; border-right: 1px solid var(--border); }
.h-stat:last-child { border-right: none; }
.h-stat .num { display: block; font-family: var(--ff-heading); font-weight: 700; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1; color: var(--purple-dark); font-variant-numeric: tabular-nums; }
.h-stat:nth-child(even) .num { color: var(--magenta-dark); }
.h-stat .lbl { display: block; margin-top: 8px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ── Kartu peran ───────────────────────────────────── */
.h-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.h-role {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 24px; border-radius: 20px; overflow: hidden;
    background: var(--surface); border: 1px solid var(--border);
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s var(--ease-out);
}
.h-role::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
.h-role.is-magenta::before { background: var(--magenta); }
.h-role:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.h-role:hover::before { transform: scaleX(1); }
.h-role .icon-badge { width: 48px; height: 48px; border-radius: 14px; transition: background .25s ease, color .25s ease, transform .35s var(--ease-out); }
.h-role:hover .icon-badge { background: var(--purple); color: #fff; transform: rotate(-6deg) scale(1.05); }
.h-role.is-magenta:hover .icon-badge { background: var(--magenta); }
.h-role h3 { font-family: var(--ff-heading); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.h-role p { font-size: .88rem; line-height: 1.65; color: var(--ink-soft); flex: 1; }
.h-role-go { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--purple-dark); }
.h-role.is-magenta .h-role-go { color: var(--magenta-dark); }
.h-role-go svg { transition: transform .25s var(--ease-out); }
.h-role:hover .h-role-go svg { transform: translateX(5px); }

/* ── Fitur (bento) ─────────────────────────────────── */
.h-features { background: var(--surface); border-block: 1px solid var(--border); }
.h-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.h-tile {
    position: relative; grid-column: span 2; display: flex; flex-direction: column; gap: 12px;
    padding: 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--border); overflow: hidden;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.h-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.h-tile.w3 { grid-column: span 3; }
.h-tile h3 { font-family: var(--ff-heading); font-size: 1.12rem; font-weight: 700; color: var(--ink); }
.h-tile p { font-size: .87rem; line-height: 1.65; color: var(--ink-soft); }
.h-tile .icon-badge { transition: transform .35s var(--ease-out); }
.h-tile:hover .icon-badge { transform: translateY(-3px) rotate(-6deg); }

.h-tile.is-hero { grid-column: span 3; grid-row: span 2; background: var(--purple); border-color: var(--purple); color: #fff; }
.h-tile.is-hero h3 { color: #fff; font-size: 1.45rem; }
.h-tile.is-hero p { color: rgba(255,255,255,.82); font-size: .93rem; }
.h-tile.is-hero .icon-badge { background: rgba(255,255,255,.14); color: #fff; }
.h-tile.is-hero::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.06); right: -90px; top: -90px; }

.h-modul { margin-top: auto; display: flex; flex-direction: column; gap: 9px; position: relative; z-index: 1; }
.h-modul-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); }
.h-modul-row .chk { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; border: 1.5px solid rgba(255,255,255,.4); display: flex; align-items: center; justify-content: center; color: var(--purple); }
.h-modul-row .chk svg { opacity: 0; transform: scale(.4); }
.h-modul-row .txt { flex: 1; font-size: .84rem; font-weight: 600; }
.h-modul-row .txt small { display: block; font-weight: 500; font-size: .72rem; color: rgba(255,255,255,.65); }
.h-modul-row .cv { font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 4px 8px; border-radius: 999px; background: #fff; color: var(--purple-dark); }
.h-modul-row:nth-child(2) .cv { color: var(--magenta-dark); }
.h-modul-row .chk { animation: hChkBox 6s var(--ease-out) infinite; }
.h-modul-row .chk svg { animation: hChk 6s var(--ease-out) infinite; }
.h-modul-row:nth-child(2) .chk, .h-modul-row:nth-child(2) .chk svg { animation-delay: .8s; }
.h-modul-row:nth-child(3) .chk, .h-modul-row:nth-child(3) .chk svg { animation-delay: 1.6s; }
@keyframes hChkBox { 0%, 12% { background: transparent; border-color: rgba(255,255,255,.4); } 20%, 88% { background: #fff; border-color: #fff; } 100% { background: transparent; border-color: rgba(255,255,255,.4); } }
@keyframes hChk { 0%, 12% { opacity: 0; transform: scale(.4); } 22%, 88% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(.4); } }

/* ── Core value ────────────────────────────────────── */
.h-cv { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.h-cv-card {
    position: relative; display: flex; flex-direction: column; gap: 12px;
    padding: 22px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
    border-top: 4px solid var(--purple); overflow: hidden;
    transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.h-cv-card.is-magenta { border-top-color: var(--magenta); }
.h-cv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.h-cv-num { position: absolute; right: 12px; top: 4px; font-family: var(--ff-heading); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--purple-soft); transition: transform .35s var(--ease-out); }
.h-cv-card.is-magenta .h-cv-num { color: var(--magenta-soft); }
.h-cv-card:hover .h-cv-num { transform: translateY(4px) scale(1.08); }
.h-cv-card > *:not(.h-cv-num) { position: relative; z-index: 1; }
.h-cv-card h3 { font-family: var(--ff-heading); font-size: 1.08rem; font-weight: 700; letter-spacing: .03em; color: var(--ink); }
.h-cv-count { font-size: .74rem; font-weight: 600; color: var(--muted); margin-top: -8px; }
.h-cv-list { display: flex; flex-wrap: wrap; gap: 6px; }
.h-cv-list li { font-size: .72rem; font-weight: 500; line-height: 1.3; padding: 5px 9px; border-radius: 8px; background: var(--paper); border: 1px solid var(--border); color: var(--ink-soft); }

/* ── CTA penutup ───────────────────────────────────── */
.h-cta-wrap { padding: 8px 0 88px; }
.h-cta {
    position: relative; overflow: hidden; border-radius: 30px;
    background: var(--purple); color: #fff; text-align: center;
    padding: 72px 28px;
}
.h-cta .blob { position: absolute; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.h-cta .blob.b1 { width: 320px; height: 320px; left: -120px; top: -140px; animation: hDrift 22s ease-in-out infinite; }
.h-cta .blob.b2 { width: 220px; height: 220px; right: -60px; bottom: -110px; background: var(--magenta); opacity: .9; animation: hDrift 28s ease-in-out infinite reverse; }
.h-cta .blob.b3 { width: 12px; height: 12px; right: 22%; top: 22%; background: #fff; opacity: .5; animation: hFloat 8s ease-in-out infinite; }
.h-cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.h-cta .qm { display: inline-flex; color: rgba(255,255,255,.4); margin-bottom: 10px; }
.h-cta h2 { font-family: var(--ff-heading); font-style: italic; font-weight: 600; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.1; }
.h-cta p { margin: 14px auto 30px; color: rgba(255,255,255,.82); font-size: 1rem; line-height: 1.7; max-width: 520px; }
.h-cta .h-actions { justify-content: center; margin: 0; }
.btn-white { background: #fff; color: var(--purple-dark); box-shadow: 0 10px 24px -10px rgba(0,0,0,.35); }
.btn-white:hover { background: var(--paper); color: var(--purple-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; transform: translateY(-2px); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1080px) {
    .h-stats-grid { grid-template-columns: repeat(3, 1fr); }
    .h-stat:nth-child(3) { border-right: none; }
    .h-stat:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
    .h-cv { grid-template-columns: repeat(3, 1fr); }
    .h-card.c1 { left: -1%; }
    .h-card.c2 { right: -2%; }
}

@media (max-width: 900px) {
    .h-hero { padding: 40px 0 56px; }
    .h-hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; }
    .h-rotator, .h-actions, .h-meta { justify-content: center; }
    .h-lead { margin: 0 auto; }
    .h-visual { margin: 0 auto; max-width: 400px; }
    .h-shape-2, .h-shape-3, .h-shape-4 { display: none; }
    .h-roles { grid-template-columns: repeat(2, 1fr); }
    .h-bento { grid-template-columns: repeat(2, 1fr); }
    .h-tile, .h-tile.w3 { grid-column: span 1; }
    .h-tile.is-hero { grid-column: span 2; grid-row: auto; }
    .h-section { padding: 68px 0; }
}

@media (max-width: 640px) {
    .h-hero { padding: 28px 0 44px; }
    .h-title { margin-top: 18px; }
    .h-actions .btn { flex: 1 1 100%; }
    .h-meta { gap: 8px 14px; }
    .h-visual { max-width: 330px; }
    .h-card { padding: 9px 11px; gap: 8px; border-radius: 13px; font-size: .72rem; }
    .h-card .icon-badge { width: 30px; height: 30px; border-radius: 9px; }
    .h-card-s { font-size: .64rem; }
    .h-card.c1 { top: 0; left: -4%; }
    .h-card.c2 { top: 18%; right: -6%; }
    .h-card.c3 { bottom: 0; left: -2%; }
    .h-progress { width: 80px; }
    .h-bars { height: 32px; gap: 5px; }
    .h-bars i { width: 11px; }

    .h-marquee { padding: 14px 0; }
    .h-marquee-label { display: none; }

    .h-stats { padding-top: 40px; }
    .h-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .h-stat { padding: 20px 12px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
    .h-stat:nth-child(3) { border-right: 1px solid var(--border); }
    .h-stat:nth-child(even) { border-right: none; }
    .h-stat:nth-last-child(-n+2) { border-bottom: none; }

    .h-section { padding: 56px 0; }
    .h-section-head { margin-bottom: 26px; }
    .h-roles { grid-template-columns: 1fr; gap: 12px; }
    .h-role { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 18px; gap: 10px 14px; }
    .h-role h3 { flex: 1; font-size: 1.05rem; }
    .h-role p { flex-basis: 100%; }
    .h-bento { grid-template-columns: 1fr; gap: 12px; }
    .h-tile, .h-tile.w3, .h-tile.is-hero { grid-column: auto; padding: 22px; }
    .h-cv { grid-template-columns: 1fr; gap: 12px; }
    .h-cta-wrap { padding-bottom: 56px; }
    .h-cta { padding: 52px 20px; border-radius: 24px; }
}

@media (min-width: 641px) and (max-width: 1080px) {
    .h-cv-card:nth-child(4), .h-cv-card:nth-child(5) { grid-column: span 1; }
}

/* ── Hormati preferensi kurangi gerak ──────────────── */
@media (prefers-reduced-motion: reduce) {
    .home *, .home *::before, .home *::after { animation: none !important; transition-duration: .01ms !important; }
    .js .rv { opacity: 1; transform: none; }
    .h-title em svg path { stroke-dashoffset: 0; }
    .h-marquee-track { width: auto; }
    .h-marquee-view { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
    .h-marquee-list[aria-hidden="true"] { display: none; }
    .h-progress i { transform: scaleX(.8); }
    .h-bars i { transform: scaleY(var(--h)); }
    .h-modul-row .chk { background: #fff; border-color: #fff; }
    .h-modul-row .chk svg { opacity: 1; transform: none; }
    .h-word { transition: none; }
}
