/* =========================================================
   YPLP Kusuma Jaya
   Sistem desain utama. Ubah warna global pada bagian :root.
   ========================================================= */
:root {
  --navy-950: #061630;
  --navy-900: #0a2248;
  --navy-800: #12366f;
  --navy-700: #1a4a8f;
  --gold-600: #b98713;
  --gold-500: #d4a72c;
  --gold-300: #f1d783;
  --ink-900: #111827;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line: #dbe3ee;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --surface-blue: #edf4fc;
  --success: #15803d;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --shadow-sm: 0 8px 24px rgba(6, 22, 48, .08);
  --shadow-md: 0 18px 50px rgba(6, 22, 48, .12);
  --shadow-lg: 0 30px 80px rgba(6, 22, 48, .18);
  --container: 1180px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink-900);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 10000; padding: 10px 14px; border-radius: 10px; background: var(--gold-500); color: var(--navy-950); font-weight: 800; }
.skip-link:focus { top: 16px; }

h1, h2, h3 { margin: 0 0 16px; color: var(--navy-950); line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(2.55rem, 6vw, 5.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: 1.28rem; letter-spacing: -.02em; }
p { margin: 0 0 18px; color: var(--ink-500); }
.lead { max-width: 720px; font-size: clamp(1.05rem, 2vw, 1.2rem); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: var(--navy-800); font-weight: 800; }
.text-link:hover { color: var(--gold-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--navy-700);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 3px; border-radius: 99px; background: var(--gold-500); content: ""; }

/* Header */
.topbar { background: var(--navy-950); color: #d6e1f1; font-size: .82rem; }
.topbar-inner { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.topbar-group { display: flex; align-items: center; gap: 20px; }
.topbar a, .topbar span { color: #d6e1f1; }
.topbar a:hover { color: var(--gold-300); }
.site-header { position: sticky; top: 0; z-index: 900; border-bottom: 1px solid rgba(219, 227, 238, .85); background: rgba(255,255,255,.94); backdrop-filter: blur(16px); transition: box-shadow .25s ease; }
.site-header.is-scrolled { box-shadow: 0 12px 34px rgba(6,22,48,.1); }
.nav-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 250px; }
.brand-logo-wrap { width: 54px; height: 54px; flex: 0 0 54px; display: grid; place-items: center; padding: 5px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.brand-logo { width: 100%; height: 100%; object-fit: contain; }
.brand-copy strong { display: block; color: var(--navy-900); font-size: 1rem; line-height: 1.15; }
.brand-copy span { display: block; margin-top: 5px; color: var(--ink-500); font-size: .7rem; letter-spacing: .025em; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links a { position: relative; padding: 30px 0; color: var(--ink-700); font-size: .88rem; font-weight: 750; }
.nav-links a::after { position: absolute; right: 50%; bottom: 20px; left: 50%; height: 2px; border-radius: 99px; background: var(--gold-500); content: ""; transition: left .25s var(--ease), right .25s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--navy-800); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy-900); font-size: 1.35rem; }

/* Components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 13px 21px; border: 1px solid transparent; border-radius: 999px; font-weight: 850; transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, color .22s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(6,22,48,.14); }
.btn-primary { background: var(--gold-500); color: var(--navy-950); }
.btn-primary:hover { background: var(--gold-300); }
.btn-secondary { background: var(--navy-800); color: #fff; }
.btn-secondary:hover { background: var(--navy-700); }
.btn-outline { border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.04); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-900); }
.btn-light { border-color: var(--line); background: #fff; color: var(--navy-800); }
.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); }
.section-blue { background: var(--surface-blue); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 38px; }
.section-head > p { max-width: 570px; }
.grid-2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: 64px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; padding: 28px; box-shadow: 0 1px 0 rgba(6,22,48,.02); transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease; }
.card:hover { transform: translateY(-7px); border-color: rgba(212,167,44,.5); box-shadow: var(--shadow-md); }
.icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 17px; background: linear-gradient(145deg, #e8f1fc, #fff); color: var(--navy-800); font-size: 1.35rem; font-weight: 900; box-shadow: inset 0 0 0 1px #d8e5f4; }
.meta { color: #8795a9; font-size: .78rem; font-weight: 700; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 5px 11px; border-radius: 999px; background: var(--gold-500); color: var(--navy-950); font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }

/* Home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 700px; display: flex; align-items: center; padding: 90px 0 128px; color: #fff; background: radial-gradient(circle at 78% 20%, rgba(212,167,44,.22), transparent 30%), linear-gradient(125deg, var(--navy-950), var(--navy-800)); }
.hero::before { position: absolute; inset: 0; z-index: -1; opacity: .32; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 44px 44px; content: ""; mask-image: linear-gradient(to right, #000, transparent 85%); }
.hero::after { position: absolute; right: -160px; bottom: -260px; z-index: -1; width: 660px; height: 660px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025); content: ""; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 70px; }
.hero .eyebrow { color: var(--gold-300); }
.hero h1 { color: #fff; }
.hero p { color: #d9e5f5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: #dbe7f7; font-size: .88rem; font-weight: 700; }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points span::before { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); content: ""; }
.hero-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.hero-logo-card { width: min(100%, 420px); padding: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 34px; background: rgba(255,255,255,.93); box-shadow: var(--shadow-lg); transform: rotate(2deg); }
.hero-logo-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-note { position: absolute; left: 0; bottom: 35px; max-width: 250px; padding: 17px 19px; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; background: rgba(6,22,48,.82); box-shadow: var(--shadow-md); backdrop-filter: blur(12px); }
.hero-note strong { display: block; color: var(--gold-300); }
.hero-note span { display: block; margin-top: 3px; color: #dbe7f7; font-size: .82rem; }

.stats { position: relative; z-index: 5; margin-top: -62px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-md); }
.stat { padding: 27px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--navy-800); font-size: 2rem; line-height: 1.2; }
.stat span { color: var(--ink-500); font-size: .84rem; }

.image-panel { position: relative; min-height: 500px; overflow: hidden; border-radius: var(--radius-lg); background: var(--surface-blue); box-shadow: var(--shadow-md); }
.image-panel img { width: 100%; height: 100%; object-fit: cover; }
.floating-badge { position: absolute; right: 22px; bottom: 22px; max-width: 260px; padding: 19px 21px; border: 1px solid rgba(219,227,238,.9); border-radius: 18px; background: rgba(255,255,255,.95); box-shadow: var(--shadow-md); }
.floating-badge strong { display: block; color: var(--navy-800); }
.floating-badge span { color: var(--ink-500); font-size: .83rem; }
.check-list { display: grid; gap: 15px; margin: 27px 0 30px; }
.check { display: flex; align-items: flex-start; gap: 13px; }
.check i { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: #e8f5ec; color: var(--success); font-style: normal; font-weight: 900; }
.check strong { color: var(--navy-900); }
.check p { margin: 3px 0 0; font-size: .9rem; }

.news-card { padding: 0; }
.news-thumb { position: relative; height: 225px; overflow: hidden; background: var(--surface-blue); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb .tag { position: absolute; top: 15px; left: 15px; }
.news-body { padding: 24px; }
.news-body h3 { margin-top: 8px; }

.cta { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 50px 54px; border-radius: 30px; background: linear-gradient(125deg, var(--navy-950), var(--navy-700)); color: #fff; box-shadow: var(--shadow-md); }
.cta::after { position: absolute; right: -80px; top: -110px; z-index: -1; width: 300px; height: 300px; border: 45px solid rgba(255,255,255,.05); border-radius: 50%; content: ""; }
.cta h2, .cta h3 { color: #fff; }
.cta p { color: #d9e5f5; max-width: 700px; }

/* Interior pages */
.page-hero { position: relative; overflow: hidden; padding: 88px 0 72px; background: radial-gradient(circle at 85% 20%, rgba(212,167,44,.22), transparent 27%), linear-gradient(125deg, var(--navy-950), var(--navy-800)); color: #fff; }
.page-hero::after { position: absolute; right: -70px; bottom: -180px; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255,255,255,.03); content: ""; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.25rem); }
.page-hero p { color: #dbe7f7; max-width: 750px; }
.breadcrumb { margin-bottom: 16px; color: #bcd0eb; font-size: .82rem; font-weight: 750; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.85fr); gap: 30px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; padding: 30px; box-shadow: var(--shadow-sm); }
.panel-sticky { position: sticky; top: 112px; }
.timeline { display: grid; gap: 18px; }
.timeline-item { position: relative; padding: 3px 0 3px 24px; border-left: 3px solid var(--gold-500); }
.timeline-item::before { position: absolute; left: -8px; top: 7px; width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: var(--navy-800); box-shadow: 0 0 0 1px var(--navy-800); content: ""; }
.value-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.value-card { min-height: 100%; }

.paud-identity { display: grid; grid-template-columns: 240px 1fr; gap: 38px; align-items: center; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, #fff, var(--surface-blue)); box-shadow: var(--shadow-md); }
.paud-logo-card { display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.paud-logo-card img { max-height: 220px; object-fit: contain; }
.paud-motto { color: var(--navy-800); }

.gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gallery-item { position: relative; min-height: 265px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-blue); box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery-item:hover img { transform: scale(1.055); }
.gallery-item[hidden] { display: none; }
.gallery-caption { position: absolute; right: 12px; bottom: 12px; left: 12px; padding: 13px 15px; border-radius: 14px; background: rgba(6,22,48,.82); color: #fff; font-size: .86rem; backdrop-filter: blur(10px); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn { padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-700); font-weight: 800; }
.filter-btn:hover, .filter-btn.active { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.documentation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.documentation-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s ease; }
.documentation-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.documentation-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.documentation-card figcaption { padding: 15px 17px 18px; color: var(--ink-500); font-size: .9rem; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1/-1; }
.field label { color: var(--navy-900); font-size: .88rem; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; outline: none; background: #fff; color: var(--ink-900); transition: border-color .2s ease, box-shadow .2s ease; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(26,74,143,.1); }
.field textarea { min-height: 150px; resize: vertical; }
.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-soft); }
.contact-item b { display: block; color: var(--navy-900); }
.contact-item span, .contact-item a { color: var(--ink-500); font-size: .9rem; }
.map-card { min-height: 250px; display: grid; place-items: center; padding: 30px; border: 1px dashed #afbdd0; border-radius: 20px; background: linear-gradient(145deg, var(--surface-blue), #fff); text-align: center; }
.form-status { min-height: 24px; margin: 12px 0 0; color: var(--success); font-size: .88rem; font-weight: 700; }

/* Footer */
.footer { padding: 70px 0 24px; background: var(--navy-950); color: #c7d4e7; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .85fr 1.15fr; gap: 36px; }
.footer .brand { min-width: 0; }
.footer .brand-copy strong { color: #fff; }
.footer .brand-copy span { color: #9fb1cb; }
.footer p, .footer a { color: #9fb1cb; font-size: .88rem; }
.footer a:hover { color: var(--gold-300); }
.footer h3 { margin-bottom: 18px; color: #fff; font-size: 1rem; letter-spacing: 0; }
.footer-links { display: grid; gap: 10px; }
.footer-address { font-style: normal; }
.copyright { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 21px; border-top: 1px solid rgba(255,255,255,.1); color: #8396b3; font-size: .78rem; }

/* Motion */
.reveal { opacity: 1; transform: none; }
.js-enabled .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s var(--ease); }
.js-enabled .reveal.visible { opacity: 1; transform: none; }
.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 9999; width: 0; height: 3px; background: var(--gold-500); }
.back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 800; width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease), background .2s ease; }
.back-to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--gold-600); }

@media (max-width: 1020px) {
  .nav-links { gap: 15px; }
  .nav-links a { font-size: .82rem; }
  .brand { min-width: 220px; }
}
@media (max-width: 900px) {
  .topbar-group:first-child { display: none; }
  .nav-inner { min-height: 74px; }
  .menu-btn { display: grid; }
  .nav-links { position: fixed; top: 113px; right: 18px; left: 18px; display: grid; gap: 2px; padding: 15px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .25s var(--ease); }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 11px 12px; border-radius: 10px; }
  .nav-links a::after { display: none; }
  .nav-links a:hover, .nav-links a.active { background: var(--surface-blue); }
  .hero-grid, .grid-2, .content-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 82px 0 122px; }
  .hero-grid { gap: 38px; }
  .hero-visual { min-height: 390px; }
  .hero-logo-card { max-width: 360px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards, .gallery, .documentation-grid, .value-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-sticky { position: static; }
  .paud-identity { grid-template-columns: 190px 1fr; }
}
@media (max-width: 620px) {
  .topbar { display: none; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-links { top: 86px; }
  .brand-copy span { display: none; }
  .brand { min-width: 0; }
  .brand-logo-wrap { width: 47px; height: 47px; flex-basis: 47px; }
  .section { padding: 70px 0; }
  .section-head { display: block; }
  .hero { padding: 68px 0 100px; }
  .hero-actions { display: grid; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { min-height: 330px; }
  .hero-logo-card { max-width: 290px; padding: 25px; }
  .hero-note { left: 4px; bottom: 10px; max-width: 220px; }
  .stats { margin-top: -38px; }
  .stats-grid, .cards, .gallery, .documentation-grid, .value-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .image-panel { min-height: 360px; }
  .floating-badge { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .cta { display: block; padding: 36px 28px; }
  .cta .btn { margin-top: 10px; width: 100%; }
  .page-hero { padding: 66px 0 56px; }
  .paud-identity { grid-template-columns: 1fr; padding: 24px; }
  .paud-logo-card { max-width: 230px; margin-inline: auto; }
  .field.full { grid-column: auto; }
  .copyright { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js-enabled .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   Penyempurnaan visual lanjutan
   ========================================================= */
.card,
.panel,
.documentation-card,
.hero-logo-card {
  will-change: transform;
}

.card::before,
.panel::before,
.documentation-card::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(26,74,143,.12), transparent 60%);
  opacity: 0;
  transition: opacity .3s ease;
  content: "";
  pointer-events: none;
}

.card::after,
.panel::after,
.documentation-card::after {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-500), rgba(26,74,143,.14));
  transform: scaleX(.2);
  transform-origin: left center;
  opacity: .8;
  transition: transform .35s var(--ease);
  content: "";
  pointer-events: none;
}

.card:hover::before,
.panel:hover::before,
.documentation-card:hover::before {
  opacity: 1;
}

.card:hover::after,
.panel:hover::after,
.documentation-card:hover::after {
  transform: scaleX(1);
}

.card:hover .icon,
.doc-card:hover .icon {
  transform: translateY(-2px) rotate(-6deg) scale(1.05);
  box-shadow: 0 18px 28px rgba(26,74,143,.16);
}

.icon {
  transition: transform .35s var(--ease), box-shadow .35s ease, background .35s ease;
}

.hero {
  background: radial-gradient(circle at 76% 18%, rgba(212,167,44,.24), transparent 28%), linear-gradient(125deg, #071b39, #12366f);
}

.hero::after {
  animation: heroPulse 9s ease-in-out infinite;
}

.hero-logo-card {
  transform: rotate(2deg);
  animation: floatCard 6s ease-in-out infinite;
}

.hero-note {
  animation: floatNote 7s ease-in-out infinite;
}

.hero-marquee {
  position: relative;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.hero-marquee::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0));
  transform: translateX(-100%);
  animation: marqueeShine 6s linear infinite;
  content: "";
  pointer-events: none;
}

.hero-marquee-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 12px 18px;
  animation: marqueeSlide 24s linear infinite;
}

.hero-marquee span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #f6fbff;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero-marquee i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 0 0 4px rgba(212,167,44,.14);
  flex: 0 0 auto;
}

.hero-marquee:hover .hero-marquee-track {
  animation-play-state: paused;
}

.hero-points {
  display: none;
}

.stats-grid {
  overflow: hidden;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
}

.stat {
  transition: background .25s ease, transform .25s var(--ease);
}

.stat:hover {
  background: linear-gradient(180deg, #ffffff, #f2f7fd);
  transform: translateY(-2px);
}

.page-hero {
  background: radial-gradient(circle at 84% 16%, rgba(212,167,44,.24), transparent 26%), linear-gradient(125deg, #071b39, #12366f);
}

.publication-cards {
  align-items: stretch;
}

.doc-card {
  padding: 26px 26px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.doc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid rgba(26,74,143,.12);
  border-radius: 999px;
  background: rgba(18,54,111,.06);
  color: var(--navy-800);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc-card .meta {
  margin-bottom: 8px;
  color: var(--navy-700);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.doc-card h3 {
  margin-bottom: 10px;
}

.mini-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-700);
  font-size: .92rem;
}

.mini-list li::before {
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
}

.section-head p {
  max-width: 560px;
}

.scroll-progress {
  height: 4px;
  background: linear-gradient(90deg, var(--gold-500), #ffd777, var(--navy-700));
}

.back-to-top {
  background: linear-gradient(145deg, var(--navy-800), var(--navy-700));
}

@keyframes marqueeSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeShine {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes floatCard {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
}

@keyframes floatNote {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.05); opacity: 1; }
}

@media (max-width: 900px) {
  .hero-marquee {
    margin-top: 26px;
    border-radius: 24px;
  }

  .hero-marquee-track {
    gap: 12px;
    padding: 12px;
  }
}

@media (max-width: 620px) {
  .hero-marquee {
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-marquee-track {
    display: grid;
    width: 100%;
    animation: none;
    padding: 0;
  }

  .hero-marquee span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo-card,
  .hero-note,
  .hero::after,
  .hero-marquee-track,
  .hero-marquee::before {
    animation: none !important;
  }
}


/* ===== Revisi tahap 3: perapihan layout dan interaksi ===== */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  align-items: start;
  gap: 20px 40px;
}

.section-head > p {
  max-width: 100%;
  margin-top: 10px;
}

.hero h1,
.page-hero h1,
.section h2 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(2.85rem, 6vw, 5rem);
  line-height: 1.02;
}

.hero .lead,
.page-hero .lead {
  max-width: 58ch;
}

.page-hero .container {
  display: grid;
  gap: 10px;
}

.nav-links a,
.filter-btn,
.btn,
.gallery-item,
.contact-item {
  transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, border-color .22s ease, color .22s ease;
}

.nav-links a:hover,
.filter-btn:hover,
.btn:hover,
.gallery-item:hover,
.contact-item:hover {
  transform: translateY(-4px);
}

.btn:active,
.filter-btn:active,
.nav-links a:active {
  transform: translateY(-1px) scale(.98);
}

.is-pressed {
  transform: translateY(-1px) scale(.98) !important;
}

.vision-stack {
  display: grid;
  gap: 24px;
}

.card-head-inline {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
}

.card-head-inline .icon {
  margin-bottom: 0;
}

.card-head-inline h3 {
  margin-bottom: 10px;
}

.card-head-inline p {
  margin: 0;
}

.mission-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 22px;
  margin-top: 26px;
}

.mission-list-grid .check {
  padding: 14px 14px 0 0;
}

.support-note {
  margin: 14px 0 24px;
  color: var(--ink-500);
  font-size: .95rem;
}

.gallery-rich {
  gap: 24px;
}

.gallery-card {
  min-height: 100%;
  display: grid;
  grid-template-rows: 220px auto;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.gallery-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #edf3fb, #ffffff);
}

.gallery-media::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(6,22,48,.08));
  content: "";
  pointer-events: none;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-body {
  position: relative;
  right: auto;
  left: auto;
  bottom: auto;
  padding: 20px 20px 22px;
  background: #fff;
  color: var(--ink-700);
}

.gallery-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(212,167,44,.14);
  color: var(--navy-800);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.gallery-title {
  margin: 12px 0 8px;
  font-size: 1.22rem;
}

.gallery-copy {
  margin: 0;
  color: var(--ink-500);
  font-size: .92rem;
}

.map-card {
  min-height: 300px;
}

.map-actions {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 1020px) {
  .section-head {
    grid-template-columns: 1fr;
  }

  .mission-list-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Rapikan layout, interaksi klik, visi misi, galeri, map
   ========================================================= */
.section-head {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .85fr);
  display: grid;
  align-items: start;
  justify-content: stretch;
}

.section-head > div,
.section-head > p {
  text-align: left;
}

.section-head > p {
  margin: 8px 0 0;
  max-width: 520px;
  justify-self: start;
}

.page-hero .container,
.hero .container,
.section .container,
.footer .container {
  overflow-x: clip;
}

.btn,
.filter-btn,
.nav-links a,
.back-to-top,
.gallery-item,
.card,
.panel,
.documentation-card {
  transition: transform .22s var(--ease), box-shadow .22s ease, background .22s ease, color .22s ease, border-color .22s ease;
}

.btn:active,
.filter-btn:active,
.nav-links a:active,
.back-to-top:active {
  transform: translateY(1px) scale(.985);
}

.btn:hover,
.filter-btn:hover,
.nav-links a:hover,
.back-to-top:hover {
  transform: translateY(-2px);
}

.nav-links a {
  border-radius: 12px;
}

.nav-links a:hover {
  background: rgba(18,54,111,.06);
}

.vm-grid {
  align-items: stretch;
}

.vm-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.vision-list {
  margin-top: 22px;
}

.compact-check-list {
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 0;
}

.compact-check-list .check {
  gap: 12px;
}

.gallery-intro {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(240px,.8fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.gallery-intro-note {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f8fbff);
  box-shadow: var(--shadow-sm);
}

.gallery-intro-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy-900);
}

.gallery-intro-note span {
  color: var(--ink-500);
  font-size: .92rem;
}

.gallery-rich {
  gap: 24px;
}

.gallery-rich .gallery-item {
  min-height: 320px;
  border-radius: 24px;
  background: linear-gradient(180deg, #f3f8ff, #ffffff);
  box-shadow: var(--shadow-sm);
}

.gallery-rich .gallery-item::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  background: linear-gradient(180deg, rgba(6,22,48,0), rgba(6,22,48,.88));
  content: "";
  pointer-events: none;
}

.gallery-rich .gallery-item img {
  transition: transform .6s var(--ease), filter .35s ease;
}

.gallery-rich .gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212,167,44,.45);
}

.gallery-rich .gallery-item:hover img {
  transform: scale(1.07);
  filter: saturate(1.05);
}

.gallery-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(212,167,44,.96);
  color: var(--navy-950);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(6,22,48,.12);
}

.gallery-rich .gallery-caption {
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  background: rgba(7, 27, 57, .72);
}

.gallery-rich .gallery-caption strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.gallery-rich .gallery-caption span {
  display: block;
  margin-top: 6px;
  color: #dbe7f7;
  font-size: .84rem;
  line-height: 1.55;
}

.map-card-rich {
  min-height: auto;
  padding: 42px;
}

.map-card-copy {
  max-width: 640px;
  margin-inline: auto;
}

.map-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .section-head,
  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* Penyeimbang judul agar tidak melebar */
.hero h1,
.page-hero h1,
.section h2 {
  text-wrap: balance;
}

.hero h1 {
  max-width: 12ch;
}

.page-hero p.lead,
.hero p.lead {
  max-width: 42rem;
}


/* =========================================================
   Revisi ringkas: marquee, galeri sederhana, hapus panduan frontend
   ========================================================= */
.hero-marquee {
  overflow: visible;
}

.hero-marquee-track.hero-marquee-static {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  padding: 12px 14px;
  animation: none;
}

.hero-marquee-track.hero-marquee-static span {
  flex: 0 1 auto;
}

.gallery-showcase {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-card-simple {
  min-height: auto;
  border-radius: 18px;
  border: 1px solid #edf1f7;
  background: #f6f9fd;
  box-shadow: none;
  overflow: hidden;
  transition: transform .24s var(--ease), box-shadow .24s ease, border-color .24s ease;
}

.gallery-card-simple:hover {
  transform: translateY(-8px);
  border-color: #dfe7f2;
  box-shadow: 0 18px 30px rgba(6,22,48,.10);
}

.gallery-card-simple .gallery-simple-media {
  display: grid;
  place-items: center;
  min-height: 126px;
  padding: 26px 20px 12px;
  background: transparent;
}

.gallery-card-simple .gallery-simple-media img {
  width: 78%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  transition: transform .28s var(--ease);
}

.gallery-card-simple:hover .gallery-simple-media img {
  transform: translateY(-4px) scale(1.02);
}

.gallery-simple-caption {
  position: relative;
  padding: 14px 18px 16px;
  text-align: center;
  background: #f6f9fd;
}

.gallery-simple-caption::before {
  display: block;
  width: 100%;
  height: 1px;
  margin: 0 0 8px;
  background: rgba(212,167,44,.7);
  content: "";
}

.gallery-simple-caption h3 {
  margin: 0;
  color: var(--navy-800);
  font-size: .96rem;
  font-weight: 800;
}

.gallery-simple-caption p {
  margin: 5px 0 0;
  color: #6f7f94;
  font-size: .62rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .hero-marquee-track.hero-marquee-static {
    justify-content: center;
  }

  .gallery-showcase {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .hero-marquee-track.hero-marquee-static {
    display: grid;
    gap: 10px;
    padding: 0;
  }

  .hero-marquee-track.hero-marquee-static span {
    width: 100%;
  }

  .gallery-showcase {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Revisi v5: kembalikan animasi marquee seperti versi awal
   ========================================================= */
.hero-marquee {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.hero-marquee::before,
.hero-marquee::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42px;
  z-index: 2;
  content: "";
  pointer-events: none;
}

.hero-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(11,37,78,.92), rgba(11,37,78,0));
}

.hero-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(11,37,78,.92), rgba(11,37,78,0));
}

.hero-marquee-track.hero-marquee-loop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  padding: 12px 16px;
  animation: heroTicker 22s linear infinite;
  will-change: transform;
}

.hero-marquee-track.hero-marquee-loop span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #f7fbff;
  font-size: .84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.hero-marquee-track.hero-marquee-loop i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 0 0 4px rgba(212,167,44,.14);
}

.hero-marquee:hover .hero-marquee-track.hero-marquee-loop {
  animation-play-state: paused;
}

@keyframes heroTicker {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 7px)); }
}

@media (max-width: 900px) {
  .hero-marquee {
    border-radius: 24px;
  }

  .hero-marquee::before,
  .hero-marquee::after {
    width: 28px;
  }

  .hero-marquee-track.hero-marquee-loop {
    gap: 12px;
    padding: 10px 12px;
    animation-duration: 20s;
  }

  .hero-marquee-track.hero-marquee-loop span {
    font-size: .8rem;
    padding: 8px 14px;
  }
}

@media (max-width: 620px) {
  .hero-marquee {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-marquee::before,
  .hero-marquee::after {
    display: none;
  }

  .hero-marquee-track.hero-marquee-loop {
    display: grid;
    width: 100%;
    animation: none;
    padding: 0;
  }

  .hero-marquee-track.hero-marquee-loop span:nth-child(n+4) {
    display: none;
  }

  .hero-marquee-track.hero-marquee-loop span {
    white-space: normal;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track.hero-marquee-loop {
    animation: none !important;
  }
}

/* =========================================================
   MOTION SYSTEM v6
   Diadaptasi dari file animasi referensi pengguna.
   ========================================================= */
:root {
  --motion-fast: 180ms;
  --motion-base: 420ms;
  --motion-slow: 760ms;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Page entrance */
body {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion-base) ease, transform var(--motion-base) var(--ease-out-expo);
}

body.page-ready {
  opacity: 1;
  transform: none;
}

/* Scroll progress seperti referensi */
.scroll-progress {
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), #f6d96b);
  box-shadow: 0 0 12px rgba(212, 167, 44, .5);
  transition: width 80ms linear;
}

/* Header + logo */
.site-header,
header {
  transition: background-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.site-header.is-scrolled,
header.is-scrolled {
  box-shadow: 0 12px 36px rgba(15, 23, 42, .12);
}

.brand-logo {
  transition: transform var(--motion-base) var(--ease-out-expo), filter var(--motion-fast) ease;
}

.brand:hover .brand-logo {
  transform: rotate(-4deg) scale(1.06);
  filter: drop-shadow(0 8px 16px rgba(22, 58, 112, .18));
}

/* Nav underline tumbuh dari tengah */
.nav-links a::after {
  right: 50%;
  left: 50%;
  transition: right var(--motion-base) var(--ease-out-expo), left var(--motion-base) var(--ease-out-expo);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

/* Hero masuk bertahap */
.hero .eyebrow,
.hero h1,
.hero p.lead,
.hero-actions,
.hero-visual,
.hero-marquee {
  animation: refHeroEnter 850ms var(--ease-out-expo) both;
}

.hero .eyebrow { animation-delay: 80ms; }
.hero h1 { animation-delay: 150ms; }
.hero p.lead { animation-delay: 230ms; }
.hero-actions { animation-delay: 310ms; }
.hero-visual { animation-delay: 220ms; }
.hero-marquee { animation-delay: 390ms; }

/* Hentikan animasi tilt/floating lama pada container, gunakan float gambar yang lebih halus */
.hero-logo-card,
.hero-note {
  animation: none;
}

.hero-logo-card img {
  animation: refHeroFloat 5.5s ease-in-out infinite;
  transform-origin: center;
}

@keyframes refHeroEnter {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes refHeroFloat {
  0%, 100% { transform: translateY(0) rotate(.001deg); }
  50% { transform: translateY(-10px) rotate(.001deg); }
}

/* Scroll reveal, sama pola dengan referensi */
.reveal,
.motion-reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity var(--motion-slow) ease, transform var(--motion-slow) var(--ease-out-expo);
  transition-delay: var(--reveal-delay, 0ms) !important;
  will-change: opacity, transform;
}

.reveal.from-left,
.motion-reveal.from-left { transform: translateX(-36px); }

.reveal.from-right,
.motion-reveal.from-right { transform: translateX(36px); }

.reveal.scale-in,
.motion-reveal.scale-in { transform: scale(.94); }

.reveal.visible,
.motion-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Button lift + light sweep */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, border-color var(--motion-fast) ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.34) 45%, transparent 65%);
  transform: translateX(-130%);
  transition: transform 650ms var(--ease-smooth);
  content: "";
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, .16);
}

.btn:hover::before { transform: translateX(130%); }
.btn:active { transform: translateY(-1px) scale(.98); }

/* Card lift, tanpa 3D tilt */
.card,
.news-card,
.doc-card,
.gallery-item,
.documentation-card,
.panel,
.contact-item,
.value-card,
.paud-identity,
.map-card {
  transition: transform var(--motion-base) var(--ease-out-expo), box-shadow var(--motion-base) ease, border-color var(--motion-fast) ease;
}

.card:hover,
.news-card:hover,
.doc-card:hover,
.gallery-item:hover,
.documentation-card:hover,
.panel:hover,
.contact-item:hover,
.value-card:hover,
.map-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 22px 50px rgba(15, 23, 42, .13);
  border-color: rgba(212, 167, 44, .45);
}

/* Matikan spotlight pointer lama supaya sama dengan file referensi */
.card::before,
.panel::before,
.documentation-card::before {
  display: none;
}

.gallery-item,
.news-card,
.documentation-card { overflow: hidden; }

.gallery-item img,
.news-card img,
.documentation-card img,
.paud-logo-card img {
  transition: transform 800ms var(--ease-out-expo), filter var(--motion-base) ease;
}

.gallery-item:hover img,
.news-card:hover img,
.documentation-card:hover img {
  transform: scale(1.055);
}

.paud-logo-card:hover img {
  transform: scale(1.035) rotate(-1deg);
}

/* Statistics */
.stat [data-count],
.stat strong[data-count] {
  display: inline-block;
  transition: transform var(--motion-fast) ease;
}

.stat:hover [data-count] { transform: scale(1.06); }

/* Gallery filter transitions */
.gallery-item.is-filtering-out {
  opacity: 0;
  transform: scale(.92) translateY(12px) !important;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
}

.gallery-item.is-filtering-in {
  animation: refGalleryIn 480ms var(--ease-out-expo) both;
}

@keyframes refGalleryIn {
  from { opacity: 0; transform: scale(.94) translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Filter pills juga terasa ringan */
.filter-btn {
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background-color var(--motion-fast) ease, color var(--motion-fast) ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, .10);
}

.filter-btn:active { transform: translateY(0) scale(.98); }

/* Back to top */
.back-to-top {
  opacity: 0;
  transform: translateY(14px) scale(.9);
  pointer-events: none;
  transition: opacity var(--motion-fast) ease, transform var(--motion-base) var(--ease-out-expo), background-color var(--motion-fast) ease;
}

.back-to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--gold-600);
  transform: translateY(-3px);
}

/* Menu mobile stagger */
@media (max-width: 900px) {
  .nav-links.open a { animation: refNavItemIn 380ms var(--ease-out-expo) both; }
  .nav-links.open a:nth-child(2) { animation-delay: 40ms; }
  .nav-links.open a:nth-child(3) { animation-delay: 80ms; }
  .nav-links.open a:nth-child(4) { animation-delay: 120ms; }
  .nav-links.open a:nth-child(5) { animation-delay: 160ms; }
  .nav-links.open a:nth-child(6) { animation-delay: 200ms; }
  .nav-links.open a:nth-child(7) { animation-delay: 240ms; }
  .nav-links.open a:nth-child(8) { animation-delay: 280ms; }

  @keyframes refNavItemIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: none; }
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  body,
  .reveal,
  .motion-reveal {
    opacity: 1;
    transform: none;
  }
}

.location-card{

    overflow:hidden;

    border-radius:28px;

    background:white;

    border:1px solid #e5e7eb;

    box-shadow:
    0 20px 50px rgba(0,0,0,.08);

}



.map-wrapper{

    width:100%;

    height:400px;

}



.map-wrapper iframe{

    width:100%;

    height:100%;

}



.location-content{

    padding:35px;

    text-align:center;

}



.location-content h2{

    color:#0a2248;

    font-size:32px;

    margin-bottom:15px;

}



.location-content p{

    color:#64748b;

    font-size:17px;

}



.map-button{

    display:inline-block;

    margin-top:20px;

    padding:14px 32px;

    border-radius:50px;

    background:#d4a72c;

    color:#0a2248;

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}



.map-button:hover{

    transform:translateY(-3px);

 }

 /* =========================
   LIVE MAP LOCATION
========================= */


.location-card{

    width:100%;

    overflow:hidden;

    border-radius:28px;

    background:#fff;

    border:1px solid rgba(10,34,72,.12);

    box-shadow:
    0 20px 50px rgba(0,0,0,.08);

}



.map-wrapper{

    width:100%;

    height:430px;

}



.map-wrapper iframe{

    width:100%;

    height:100%;

    display:block;

}





.location-content{

    text-align:center;

    padding:40px 30px;

}



.map-icon{

    margin:auto;

    margin-bottom:20px;

}





.location-content h2{

    color:#0a2248;

    font-size:32px;

    margin-bottom:15px;

}



.location-content p{

    color:#64748b;

    line-height:1.7;

}





.map-button{

    display:inline-flex;

    margin-top:20px;

    padding:14px 35px;

    border-radius:50px;

    background:#d4a72c;

    color:#0a2248;

    font-weight:700;

    text-decoration:none;

    transition:.3s;

}



.map-button:hover{

    transform:translateY(-4px);

}