/* =========================================================
   PASTI Johor — laman awam central
   Ikut DESIGN.md. Token warna brand/accent disuntik oleh layout.
   ========================================================= */

:root {
  --bg: #FAF8F1;
  --surface: #FFFFFF;
  --surface-alt: #F2EEE2;
  --surface-hover: #FFFDF7;
  --surface-brand: #EEF6E8;
  --surface-deep: #123524;
  --surface-deep-2: #1A4430;

  --border: #E6DFCF;
  --border-hover: #CDBF9F;
  --border-deep: rgba(255, 255, 255, 0.12);

  --text: #15241B;
  --text-secondary: #4A5950;
  --text-tertiary: #78837B;
  --text-on-deep: #F2EEE2;
  --text-on-deep-muted: rgba(242, 238, 226, 0.72);

  --brand: #54B435;
  --accent: #326C20;
  --accent-hover: #285A19;
  --brand-rgb: 84, 180, 53;
  --accent-rgb: 50, 108, 32;
  --accent-soft: rgba(var(--brand-rgb), 0.12);
  --gold: #E9A93B;
  --gold-hover: #D4932A;
  --gold-rgb: 233, 169, 59;
  --gold-soft: rgba(var(--gold-rgb), 0.16);

  --bg-rgb: 250, 248, 241;
  --deep-rgb: 18, 53, 36;
  --text-rgb: 21, 36, 27;

  --success: #2F8A3A;
  --error: #C2412D;
  --warning: #C98114;

  --focus-ring: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;

  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --s-section: clamp(4rem, 9vw, 7.5rem);
  --s-gap: clamp(1rem, 2.5vw, 1.75rem);
  --s-card: clamp(1.5rem, 3vw, 2rem);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.2, .8, .2, 1);

  --shadow-xs: 0 1px 2px rgba(var(--deep-rgb), .05);
  --shadow-sm: 0 2px 6px rgba(var(--deep-rgb), .06), 0 1px 2px rgba(var(--deep-rgb), .04);
  --shadow-md: 0 8px 20px -6px rgba(var(--deep-rgb), .14), 0 2px 6px rgba(var(--deep-rgb), .05);
  --shadow-lg: 0 20px 40px -12px rgba(var(--deep-rgb), .18), 0 4px 10px rgba(var(--deep-rgb), .05);
  --shadow-xl: 0 32px 64px -16px rgba(var(--deep-rgb), .28);

  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-secondary);
  --bs-body-bg: var(--bg);
  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--accent-rgb);
  --bs-link-color: var(--accent);
  --bs-link-color-rgb: var(--accent-rgb);
  --bs-link-hover-color: var(--accent-hover);
  --bs-border-color: var(--border);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
html, body { overflow-x: clip; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }
p { text-wrap: pretty; }

a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 6px; }

::selection { background: rgba(var(--brand-rgb), .25); color: var(--text); }

img { max-width: 100%; height: auto; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); padding-inline: var(--gutter); }
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  padding: .75rem 1rem; border-radius: var(--r-sm);
  background: var(--accent); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Section ---------- */
.content-section, .section-pj { padding-block: var(--s-section); position: relative; }
.content-section.py-5, .section-pj.py-5 { padding-block: var(--s-section) !important; }
.content-section.bg-light, .bg-light { background: var(--surface-alt) !important; }
.bg-light-green { background: var(--surface-brand) !important; }
.bg-white { background: var(--surface) !important; }
.bg-primary { background: var(--surface-deep) !important; }
.bg-dark { background: var(--surface-deep) !important; }
.text-primary { color: var(--accent) !important; }
.text-muted { color: var(--text-tertiary) !important; }
.text-white-75 { color: var(--text-on-deep-muted) !important; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2, .section-title { margin-bottom: .75rem; }
.section-head .lead, .section-head p { margin-bottom: 0; }

.eyebrow, .section-subtitle {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .875rem;
  font: 700 .8125rem/1.2 var(--font-sans);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before, .section-subtitle::before {
  content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: var(--brand);
}
.text-center .section-subtitle { justify-content: center; }

.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-secondary);
}

.on-deep { color: var(--text-on-deep-muted); }
.on-deep h1, .on-deep h2, .on-deep h3, .on-deep h4, .on-deep h5, .on-deep h6 { color: var(--text-on-deep); }
.on-deep .lead, .on-deep p { color: var(--text-on-deep-muted); }
.on-deep .eyebrow, .on-deep .section-subtitle { color: var(--gold); }
.on-deep .eyebrow::before, .on-deep .section-subtitle::before { background: var(--gold); }

.prose { color: var(--text-secondary); }
.prose > * + * { margin-top: 1em; }
.prose p { margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose img { border-radius: var(--r-md); }

.hl {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%, var(--gold-soft) 92%, transparent 92%);
  padding-inline: .05em;
}

/* ---------- Buttons ---------- */
.btn-pj, .btn {
  --_bg: var(--accent); --_fg: #fff; --_bd: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.5rem;
  font: 700 .9375rem/1 var(--font-sans); letter-spacing: 0;
  color: var(--_fg); background: var(--_bg);
  border: 1.5px solid var(--_bd); border-radius: 999px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn-pj:hover, .btn:hover {
  --_bg: var(--accent-hover); --_bd: var(--accent-hover);
  color: var(--_fg); transform: translateY(-2px); box-shadow: var(--shadow-md);
}
.btn-pj:active, .btn:active { transform: translateY(0) scale(.97); box-shadow: var(--shadow-sm); }
.btn-pj:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn-pj:disabled, .btn-pj[aria-disabled="true"], .btn:disabled, .btn.disabled {
  opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; pointer-events: none;
}
.btn-pj i, .btn i { font-size: 1.15em; transition: transform .2s ease; }
.btn-pj:hover .ti-arrow-right, .btn:hover .ti-arrow-right { transform: translateX(3px); }

.btn-pj--outline, .btn-outline-primary, .btn-outline-dark, .btn-outline-secondary {
  --_bg: transparent; --_fg: var(--accent); --_bd: var(--border-hover);
}
.btn-pj--outline:hover, .btn-outline-primary:hover, .btn-outline-dark:hover, .btn-outline-secondary:hover {
  --_bg: var(--accent-soft); --_fg: var(--accent-hover); --_bd: var(--accent);
}
.btn-pj--gold, .btn-light, .btn-warning { --_bg: var(--gold); --_fg: var(--surface-deep); --_bd: var(--gold); }
.btn-pj--gold:hover, .btn-light:hover, .btn-warning:hover { --_bg: var(--gold-hover); --_bd: var(--gold-hover); --_fg: var(--surface-deep); }
.btn-dark, .btn-secondary { --_bg: var(--surface-deep); --_fg: var(--text-on-deep); --_bd: var(--surface-deep); }
.btn-dark:hover, .btn-secondary:hover { --_bg: var(--surface-deep-2); --_bd: var(--surface-deep-2); --_fg: var(--text-on-deep); }
.btn-pj--ghost-light { --_bg: transparent; --_fg: var(--text-on-deep); --_bd: var(--border-deep); }
.btn-pj--ghost-light:hover { --_bg: rgba(255, 255, 255, .08); --_bd: rgba(255, 255, 255, .3); --_fg: var(--text-on-deep); }
.btn-lg, .btn-pj--lg { min-height: 54px; padding: .875rem 1.875rem; font-size: 1rem; }
.btn-sm, .btn-pj--sm { min-height: 44px; padding: .5rem 1.125rem; font-size: .875rem; }
.btn.rounded-pill { border-radius: 999px !important; }

/* ---------- Links ---------- */
.link-pj {
  display: inline-flex; align-items: center; gap: .375rem;
  color: var(--accent); font-weight: 700; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease), color .2s ease;
}
.link-pj:hover { color: var(--accent-hover); background-size: 100% 2px; }
.link-pj i { transition: transform .2s ease; }
.link-pj:hover i { transform: translateX(3px); }

/* ---------- Badges ---------- */
.badge-pj {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .75rem; border-radius: 999px;
  font: 600 .8125rem/1 var(--font-sans);
  background: var(--accent-soft); color: var(--accent);
}
.badge-pj--gold { background: var(--gold-soft); color: var(--text); }
.badge-pj--code { background: var(--surface-alt); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.badge-pj--deep { background: rgba(var(--deep-rgb), .82); color: var(--text-on-deep); }

/* ---------- Inputs ---------- */
.input-pj {
  width: 100%; min-height: 48px; padding: .75rem 1rem;
  font: 400 1rem var(--font-sans); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.input-pj::placeholder { color: var(--text-tertiary); }
.input-pj:hover { border-color: var(--border-hover); }
.input-pj:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input-pj:disabled { background: var(--surface-alt); color: var(--text-tertiary); cursor: not-allowed; }
.input-pj[aria-invalid="true"] { border-color: var(--error); }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 1rem; top: 50%; translate: 0 -50%; color: var(--text-tertiary); font-size: 1.15rem; pointer-events: none; }
.input-icon > .input-pj { padding-left: 2.75rem; }

.form-control, .form-select {
  min-height: 48px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  font-family: var(--font-sans); color: var(--text); background-color: var(--surface);
}
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- Cards ---------- */
.card-pj {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-card);
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.card-pj:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.card-pj:focus-within { border-color: var(--accent); }
.card-pj:active { transform: translateY(-1px); }
.card-pj[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.card-pj h3, .card-pj h4, .card-pj h5 { font-size: 1.25rem; margin-bottom: .5rem; letter-spacing: -0.01em; }
.card-pj p { font-size: .9375rem; line-height: 1.6; margin-bottom: 0; }

.card-pj--spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--brand-rgb), .14), transparent 60%);
  transition: opacity .3s ease;
}
.card-pj--spot:hover::before { opacity: 1; }

.icon-arch {
  width: 56px; height: 64px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 999px 999px 14px 14px;
  background: var(--accent-soft); color: var(--accent); font-size: 1.6rem;
  margin-bottom: 1.25rem;
  transition: background-color .3s ease, color .3s ease, transform .3s var(--ease);
}
.card-pj:hover .icon-arch { background: var(--accent); color: #fff; transform: translateY(-2px); }
.icon-arch--sm { width: 44px; height: 50px; font-size: 1.3rem; margin-bottom: 0; border-radius: 999px 999px 11px 11px; }

/* ---------- Arch frame ---------- */
.arch-frame {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--r-lg) var(--r-lg);
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  box-shadow: var(--shadow-xl);
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.arch-frame:hover img { transform: scale(1.04); }

/* ---------- Navbar ---------- */
.nav-pj {
  position: sticky; top: 0; z-index: 1030;
  padding-block: 1rem;
  background: rgba(var(--bg-rgb), 0);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease, padding .3s ease;
}
.nav-pj.is-scrolled {
  padding-block: .5rem;
  background: rgba(var(--bg-rgb), .86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-xs);
}
.nav-pj__inner { display: flex; align-items: center; gap: 1rem; }
.nav-pj__brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; min-width: 0; }
.nav-pj__brand img { height: 48px; width: auto; transition: height .3s ease; }
.nav-pj.is-scrolled .nav-pj__brand img { height: 40px; }
.nav-pj__name { display: block; font-weight: 800; font-size: 1.0625rem; line-height: 1.2; color: var(--text); letter-spacing: -0.015em; }
.nav-pj__tag { display: block; font-size: .75rem; font-weight: 500; line-height: 1.3; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.nav-pj__menu { display: flex; align-items: center; gap: .25rem; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-pj__link {
  position: relative; display: inline-flex; align-items: center; gap: .25rem;
  padding: .625rem .875rem; border-radius: 999px;
  font-weight: 600; font-size: .9375rem; color: var(--text-secondary); text-decoration: none;
  background: transparent; border: 0;
  transition: color .2s ease, background-color .2s ease;
}
.nav-pj__link:hover, .nav-pj__link[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.nav-pj__link.active { color: var(--accent); }
.nav-pj__link.active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 6px; height: 6px;
  translate: -50% 0; border-radius: 50%; background: var(--gold);
}
.nav-pj__toggle {
  display: none; margin-left: auto;
  width: 48px; height: 48px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.4rem;
  transition: background-color .2s ease, border-color .2s ease;
}
.nav-pj__toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

.dropdown-menu {
  border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: .5rem; margin-top: .5rem !important;
  background: var(--surface);
  --bs-dropdown-link-active-bg: var(--accent);
  --bs-dropdown-link-active-color: #fff;
  --bs-dropdown-link-hover-bg: var(--accent-soft);
  --bs-dropdown-link-hover-color: var(--accent);
}
.dropdown-item { border-radius: var(--r-sm); padding: .625rem 1rem; font-weight: 600; font-size: .9375rem; color: var(--text-secondary); }

.offcanvas-pj { background: var(--bg); width: min(360px, 88vw) !important; border-left: 1px solid var(--border) !important; }
.offcanvas-pj .offcanvas-header { padding: 1.25rem var(--gutter); border-bottom: 1px solid var(--border); }
.offcanvas-pj .offcanvas-body { display: flex; flex-direction: column; padding: 1rem var(--gutter) 1.5rem; }
.offcanvas-pj__list { list-style: none; margin: 0; padding: 0; }
.offcanvas-pj__link {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 .75rem; border-radius: var(--r-md);
  font-weight: 700; font-size: 1.0625rem; color: var(--text);
}
.offcanvas-pj__link:hover, .offcanvas-pj__link.active { background: var(--accent-soft); color: var(--accent); }
.offcanvas-pj__sub { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; }
.offcanvas-pj__sub a { display: flex; align-items: center; min-height: 44px; padding: 0 .75rem; border-radius: var(--r-sm); color: var(--text-secondary); font-weight: 600; }
.offcanvas-pj__sub a:hover { color: var(--accent); background: var(--accent-soft); }
.offcanvas-pj__close {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-size: 1.25rem;
}
.offcanvas-pj__close:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Aurora background ---------- */
.aurora { position: relative; isolation: isolate; overflow: hidden; }
.aurora::before {
  content: ""; position: absolute; inset: -20% -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 25%, rgba(var(--brand-rgb), .22), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(var(--gold-rgb), .22), transparent 70%),
    radial-gradient(45% 55% at 70% 90%, rgba(var(--accent-rgb), .14), transparent 70%);
  background-size: 140% 140%;
  animation: aurora-drift 24s ease-in-out infinite alternate;
  transform: translate3d(0, var(--parallax, 0px), 0);
}
.aurora--deep::before {
  background:
    radial-gradient(40% 55% at 10% 10%, rgba(var(--brand-rgb), .35), transparent 70%),
    radial-gradient(35% 50% at 90% 15%, rgba(var(--gold-rgb), .22), transparent 70%),
    radial-gradient(50% 60% at 60% 110%, rgba(var(--brand-rgb), .25), transparent 70%);
  background-size: 140% 140%;
}
@keyframes aurora-drift {
  0% { background-position: 0% 0%; }
  50% { background-position: 60% 40%; }
  100% { background-position: 100% 100%; }
}

.dots-deco {
  position: absolute; pointer-events: none;
  width: 160px; height: 160px;
  background-image: radial-gradient(rgba(var(--accent-rgb), .35) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(circle, #000 40%, transparent 72%);
  mask-image: radial-gradient(circle, #000 40%, transparent 72%);
}

/* ---------- Hero ---------- */
.hero-pj { padding-block: clamp(2rem, 6vw, 4.5rem) 0; }
main > .hero-pj:first-child, main > .page-head:first-child, main > .page-header:first-child { margin-top: -88px; padding-top: calc(88px + clamp(2.5rem, 6vw, 4.5rem)); }
.hero-pj__grid {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-pj__copy { display: grid; }
.hero-pj__slide-copy { grid-area: 1 / 1; transition: opacity .6s ease, visibility .6s; }
.hero-pj__slide-copy:not(.is-active) { opacity: 0; visibility: hidden; }
.hero-pj h1 { margin-bottom: 1.25rem; }
.hero-pj__tagline { font-weight: 700; color: var(--accent); font-size: 1.0625rem; margin-bottom: .75rem; }
.hero-pj__lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); max-width: 34rem; margin-bottom: 2rem; }
.hero-pj__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.hero-pj__scroll { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 700; color: var(--text-secondary); }
.hero-pj__scroll:hover { color: var(--accent); }
.hero-pj__scroll i { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

.hero-pj__media { position: relative; justify-self: center; width: min(100%, 460px); }
.hero-pj__media .arch-frame { aspect-ratio: 4 / 4.8; }
.hero-pj__media .arch-frame img { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease, transform .6s var(--ease); }
.hero-pj__media .arch-frame img.is-active { opacity: 1; }
.hero-pj__ring {
  position: absolute; z-index: -1; right: -8%; top: 6%;
  width: 46%; aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(var(--gold-rgb), .7);
}
.hero-pj__sun {
  position: absolute; z-index: -1; left: -10%; bottom: 10%;
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: var(--gold-soft);
}
.hero-pj__media .dots-deco { left: -14%; top: -4%; z-index: -1; }
.hero-pj__badge {
  position: absolute; left: -6%; bottom: 8%;
  display: flex; align-items: center; gap: .75rem;
  padding: .75rem 1rem .75rem .75rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: .875rem; font-weight: 600; color: var(--text); line-height: 1.3;
}
.hero-pj__badge .icon-arch { margin-bottom: 0; }
.hero-pj__dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.hero-pj__dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer;
}
.hero-pj__dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: var(--border-hover); transition: width .3s var(--ease), background-color .3s ease; }
.hero-pj__dot.is-active::before { width: 28px; background: var(--accent); }

.hero-pj--plain .hero-pj__grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; }

@keyframes arch-open {
  from { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); }
  to { clip-path: inset(0 0 0 0 round 999px 999px 24px 24px); }
}
.js .arch-frame--hero { animation: arch-open 1.1s cubic-bezier(.65, 0, .35, 1) .2s both; }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-block: clamp(1rem, 2.5vw, 1.75rem);
  border-block: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row { display: flex; width: max-content; }
.marquee__track { display: flex; flex-shrink: 0; align-items: center; animation: marquee 40s linear infinite; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 46s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem);
  padding-right: clamp(1rem, 2.5vw, 2rem);
  font-size: clamp(2.25rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  color: var(--text); white-space: nowrap;
}
.marquee__row--reverse .marquee__item { color: transparent; -webkit-text-stroke: 1.5px rgba(var(--accent-rgb), .55); }
.marquee__item::after {
  content: ""; width: .32em; height: .38em; flex-shrink: 0;
  border-radius: 999px 999px 4px 4px; background: var(--gold);
}
.marquee__row--reverse .marquee__item::after { background: var(--brand); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Text + image ---------- */
.split-pj { display: grid; align-items: center; gap: clamp(2rem, 6vw, 5rem); grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split-pj--img-left { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split-pj--img-left .split-pj__media { order: -1; }
.split-pj--solo { grid-template-columns: minmax(0, 1fr); max-width: var(--container-narrow); }
.split-pj__media { position: relative; width: min(100%, 440px); justify-self: center; }
.split-pj__media .dots-deco { right: -12%; bottom: -8%; z-index: -1; }
.split-pj__media .arch-frame { box-shadow: var(--shadow-lg); }
.split-pj__body .prose { margin-bottom: 2rem; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.75; }

@supports (animation-timeline: view()) {
  .parallax-img img {
    animation: parallax-y linear both;
    animation-timeline: view();
    scale: 1.12;
  }
  @keyframes parallax-y { from { translate: 0 -5%; } to { translate: 0 5%; } }
}

/* ---------- Bento (features_grid) ---------- */
.bento { display: grid; gap: var(--s-gap); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.bento__item { grid-column: span 3; display: flex; flex-direction: column; padding: 0; }
.bento__item--full { grid-column: span 12; }
.bento__item--half { grid-column: span 6; }
.bento__item--third { grid-column: span 4; }
.bento__item--big { grid-column: span 6; grid-row: span 2; }
.bento__item--wide { grid-column: span 6; flex-direction: row; }

.bento__img { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-alt); }
.bento__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bento__item:hover .bento__img img { transform: scale(1.05); }
.bento__body { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; flex: 1; }
.bento__body p { flex: 1; }
.bento__body .link-pj { align-self: flex-start; margin-top: .75rem; font-size: .9375rem; }
.bento__index { font-size: .8125rem; font-weight: 800; letter-spacing: .12em; color: var(--text-tertiary); }

.bento__item--wide .bento__img { aspect-ratio: auto; flex: 0 0 42%; }

.bento__item--big { min-height: 440px; border: 0; background: var(--surface-deep); color: var(--text-on-deep-muted); }
.bento__item--big .bento__img { position: absolute; inset: 0; aspect-ratio: auto; }
.bento__item--big:not(:has(.bento__img)) { min-height: 0; }
.bento__item--big .bento__img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--deep-rgb), .05) 20%, rgba(var(--deep-rgb), .55) 55%, rgba(var(--deep-rgb), .94) 100%);
}
.bento__item--big .bento__body { position: relative; justify-content: flex-end; padding: clamp(1.5rem, 3vw, 2.25rem); }
.bento__item--big .bento__body p { flex: 0; color: var(--text-on-deep-muted); font-size: 1rem; max-width: 30rem; }
.bento__item--big h3 { color: var(--text-on-deep); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.bento__item--big .bento__index { color: var(--gold); }
.bento__item--big .link-pj { color: var(--gold); }
.bento__item--big .link-pj:hover { color: var(--text-on-deep); }
.bento__item--big.card-pj--spot::before { z-index: 1; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--gold-rgb), .16), transparent 60%); }

.bento-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.bento-head .section-head { margin-bottom: 0; }

/* ---------- Highlights ---------- */
.checklist-items { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .875rem; }
.checklist-items li { display: flex; align-items: center; gap: .875rem; font-weight: 600; color: var(--text); font-size: 1.0625rem; }
.checklist-items li i, .checklist-items li .check {
  width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff !important; font-size: 1rem; margin: 0 !important;
}
.highlights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-gap); }
.highlights-grid > :nth-child(even) { transform: translateY(2.5rem); }
.highlights-grid > :nth-child(even).reveal:not(.is-in) { transform: translateY(calc(2.5rem + 24px)); }
.highlight-card { height: 100%; }
.highlights-wrap { padding-bottom: 2.5rem; }

/* ---------- Statistics ---------- */
.stats-section { background: var(--surface-deep); color: var(--text-on-deep-muted); overflow: hidden; }
.stats-section.has-image { background-size: cover; background-position: center; }
.stats-section .stats-overlay { position: absolute; inset: 0; z-index: 0; }
.stats-overlay-dark, .stats-overlay-primary { background: linear-gradient(160deg, rgba(var(--deep-rgb), .94), rgba(var(--deep-rgb), .82)); }
.stats-overlay-light { background: rgba(var(--bg-rgb), .9); }
.stats-section > .container { position: relative; z-index: 1; }
.stats-pj {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  border-top: 1px solid var(--border-deep);
}
.stats-pj__item { padding: 2rem 1.5rem 0; text-align: left; border-left: 1px solid var(--border-deep); }
.stats-pj__item:first-child { border-left: 0; padding-left: 0; }
.stats-pj__icon { font-size: 1.75rem; color: var(--brand); margin-bottom: 1rem; display: block; }
.stats-pj__num {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--gold); font-variant-numeric: tabular-nums; margin-bottom: .75rem;
}
.stats-pj__label { font-weight: 600; font-size: 1rem; color: var(--text-on-deep); }
.stats-section.is-light { color: var(--text-secondary); }
.stats-section.is-light .stats-pj { border-top-color: var(--border); }
.stats-section.is-light .stats-pj__item { border-left-color: var(--border); }
.stats-section.is-light .stats-pj__num { color: var(--accent); }
.stats-section.is-light .stats-pj__label { color: var(--text); }
.stats-section.is-light:not(.has-image) { background: var(--surface-alt); }

/* ---------- Kawasan ---------- */
.kwsn-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.kwsn-toolbar .section-head { margin-bottom: 0; }
.kwsn-toolbar .input-icon { width: min(100%, 320px); }
.kwsn-grid { display: grid; gap: var(--s-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; }
.kwsn-card { display: flex; flex-direction: column; gap: 1.25rem; }
.kwsn-card__head { display: flex; align-items: flex-start; gap: 1rem; }
.kwsn-card__head h3 { font-size: 1.1875rem; margin-bottom: .375rem; }
.kwsn-card__meta { display: flex; flex-wrap: wrap; gap: .375rem; }
.kwsn-card__domain { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 1.2; }
.kwsn-branches { list-style: none; margin: 0; padding: 1rem 0 0; border-top: 1px dashed var(--border); display: grid; grid-template-columns: minmax(0, 1fr); gap: .375rem; }
.kwsn-branches li { display: flex; align-items: center; gap: .625rem; font-size: .9rem; color: var(--text-secondary); min-height: 32px; }
.kwsn-branches li i { color: var(--brand); font-size: 1rem; flex-shrink: 0; }
.kwsn-branches li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwsn-branches li code { font-size: .75rem; color: var(--text-tertiary); background: var(--surface-alt); padding: .15rem .5rem; border-radius: 6px; }
.kwsn-branches li.is-extra { display: none; }
.kwsn-card.is-open .kwsn-branches li.is-extra { display: flex; }
.kwsn-more {
  align-self: flex-start; min-height: 44px; padding: 0 .25rem; border: 0; background: none;
  font-weight: 700; font-size: .875rem; color: var(--accent); display: inline-flex; align-items: center; gap: .25rem; cursor: pointer;
}
.kwsn-more:hover { color: var(--accent-hover); }
.kwsn-more i { transition: transform .3s ease; }
.kwsn-card.is-open .kwsn-more i { transform: rotate(180deg); }
.kwsn-card .btn-pj { width: 100%; margin-top: auto; }
.kwsn-empty-search { display: none; text-align: center; padding: 3rem 1rem; color: var(--text-tertiary); }
.kwsn-empty-search.is-visible { display: block; }
.kwsn-card[hidden] { display: none; }

/* ---------- Video ---------- */
.video-frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  background: var(--surface-deep);
  border: 6px solid var(--surface);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.youtube-wrapper { position: relative; width: 100%; height: 0; overflow: hidden; }
.youtube-wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; gap: var(--s-gap); grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.post-card { display: flex; flex-direction: column; padding: 0; height: 100%; }
.post-card__img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-brand); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.05); }
.post-card__placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--brand); font-size: 3rem; }
.post-card__cat { position: absolute; left: 1rem; top: 1rem; }
.post-card__dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.post-card__body { display: flex; flex-direction: column; gap: .625rem; padding: 1.5rem; flex: 1; }
.post-card__meta { display: flex; align-items: center; gap: .375rem; font-size: .8125rem; font-weight: 600; color: var(--text-tertiary); }
.post-card__title { font-size: 1.1875rem; line-height: 1.35; margin: 0; }
.post-card__title a { color: var(--text); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease), color .2s ease; }
.post-card__title a:hover { color: var(--accent); background-size: 100% 1.5px; }
.post-card__excerpt { font-size: .9375rem; line-height: 1.6; flex: 1; margin: 0; }
.post-card .link-pj { align-self: flex-start; font-size: .9375rem; margin-top: .25rem; }
.section-foot { display: flex; justify-content: center; margin-top: clamp(2rem, 5vw, 3rem); }

/* ---------- CTA ---------- */
.cta-pj { padding-block: var(--s-section); }
.cta-pj__panel {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--surface-deep); background-size: cover; background-position: center;
  text-align: center;
}
.cta-pj__panel.is-dark-text { background-color: var(--surface-brand); }
.cta-pj__overlay { position: absolute; inset: 0; z-index: -1; }
.cta-overlay-dark, .cta-overlay-primary { background: linear-gradient(160deg, rgba(var(--deep-rgb), .92), rgba(var(--deep-rgb), .78)); }
.cta-overlay-light { background: rgba(var(--bg-rgb), .88); }
.overlay-scrim { background: linear-gradient(180deg, rgba(var(--deep-rgb), .35), rgba(var(--deep-rgb), .7)); }
.cta-pj__panel h2 { max-width: 760px; margin: 0 auto 1rem; }
.cta-pj__panel .lead { max-width: 620px; margin: 0 auto 2rem; }
.cta-pj__arch {
  position: absolute; z-index: -1; pointer-events: none;
  width: clamp(160px, 22vw, 280px); aspect-ratio: 3 / 4;
  border: 2px solid rgba(var(--gold-rgb), .35);
  border-radius: 999px 999px 0 0;
  bottom: -2px;
}
.cta-pj__arch--l { left: 4%; }
.cta-pj__arch--r { right: 4%; height: auto; width: clamp(110px, 15vw, 190px); border-color: rgba(var(--brand-rgb), .35); }
.is-dark-text .cta-pj__arch { border-color: rgba(var(--accent-rgb), .25); }

/* ---------- Page header ---------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0;
  background-size: cover; background-position: center;
}
.page-head.is-deep { background-color: var(--surface-deep); }
.page-head.is-light { background-color: var(--surface-brand); }
.page-head__overlay { position: absolute; inset: 0; z-index: -1; }
.page-header-overlay-primary, .page-header-overlay-dark { background: linear-gradient(160deg, rgba(var(--deep-rgb), .92), rgba(var(--deep-rgb), .75)); }
.page-header-overlay-light { background: rgba(var(--bg-rgb), .88); }
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); margin-bottom: 1rem; }
.page-head .breadcrumb { margin: 0; font-size: .9375rem; font-weight: 600; }
.page-head .breadcrumb-item, .page-head .breadcrumb-item a { color: var(--text-secondary); }
.page-head .breadcrumb-item a:hover { color: var(--accent); }
.page-head .breadcrumb-item.active, .page-head .breadcrumb-item:last-child { color: var(--accent); }
.page-head.on-deep .breadcrumb-item, .page-head.on-deep .breadcrumb-item a { color: var(--text-on-deep-muted); }
.page-head.on-deep .breadcrumb-item a:hover { color: var(--text-on-deep); }
.page-head.on-deep .breadcrumb-item:last-child { color: var(--gold); }
.page-head.on-deep .breadcrumb-item + .breadcrumb-item::before { color: var(--text-on-deep-muted); opacity: .6; }
.page-head__arch {
  position: absolute; z-index: -1; right: 6%; bottom: -2px; pointer-events: none;
  height: min(72%, 320px); aspect-ratio: 3 / 4;
  border: 2px solid rgba(var(--gold-rgb), .4); border-radius: 999px 999px 0 0;
}

/* Legacy page header (about/contact/branches/blog) */
.page-header {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: var(--surface-brand);
}
.page-header::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 15% 25%, rgba(var(--brand-rgb), .2), transparent 70%),
    radial-gradient(35% 45% at 85% 20%, rgba(var(--gold-rgb), .2), transparent 70%);
}
.page-header h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); margin-bottom: .75rem; }
.breadcrumb { margin-bottom: 0; font-size: .9375rem; font-weight: 600; }
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item a:hover { color: var(--accent); }
.breadcrumb-item.active { color: var(--accent); }

/* ---------- Legacy cards (pages not yet migrated) ---------- */
.feature-card, .branch-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs); overflow: hidden; height: 100%; display: block;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.feature-card:hover, .branch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-hover); }
.branch-card { padding: var(--s-card); }
.branch-card .icon, .contact-item .icon {
  width: 52px; height: 60px; border-radius: 999px 999px 13px 13px;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--accent-soft); margin-bottom: 1.25rem;
}
.branch-card .icon i, .contact-item .icon i { color: var(--accent); font-size: 1.4rem; }
.branch-card h5 { color: var(--text); }
.branch-card p { color: var(--text-tertiary); font-size: .9375rem; margin-bottom: 0; }
.contact-item { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; }
.contact-item .icon { margin-bottom: 0; }
.contact-item h6 { font-size: .875rem; margin-bottom: .25rem; color: var(--text); }
.contact-item p { margin-bottom: 0; white-space: pre-line; }
.map-container { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid var(--surface); }
.map-container iframe { width: 100%; height: 350px; border: 0; display: block; }
.stat-item { padding: 1.5rem; }
.stat-number { font-size: clamp(2.25rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-weight: 600; }

/* ---------- Footer ---------- */
.footer-pj {
  flex-shrink: 0; position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0 1.5rem;
  background: var(--footer-bg, var(--surface-deep));
  color: var(--footer-fg, var(--text-on-deep));
}
.footer-pj__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
.footer-pj__logo { height: 56px; width: auto; margin-bottom: 1.25rem; }
.footer-pj h2 { font-size: 1.125rem; color: inherit; margin-bottom: .5rem; letter-spacing: -0.01em; }
.footer-pj h3 {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: inherit; opacity: .6; margin-bottom: 1.25rem;
}
.footer-pj p { color: inherit; opacity: .78; font-size: .9375rem; margin-bottom: 1.25rem; max-width: 22rem; }
.footer-pj ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .375rem; }
.footer-pj li { font-size: .9375rem; }
.footer-pj a { color: inherit; opacity: .78; display: inline-flex; align-items: center; gap: .5rem; min-height: 36px; transition: opacity .2s ease, color .2s ease; }
.footer-pj a:hover { opacity: 1; color: inherit; }
.footer-pj__contact li { display: flex; align-items: flex-start; gap: .625rem; opacity: .78; padding-block: .375rem; }
.footer-pj__contact li i { margin-top: .2rem; }
.footer-pj__contact li span { white-space: pre-line; }
.footer-pj__social { display: flex; gap: .5rem; }
.footer-pj__social a {
  width: 44px; height: 44px; justify-content: center; border-radius: 50%;
  border: 1px solid currentColor; opacity: .7; font-size: 1.25rem;
  transition: opacity .2s ease, transform .2s var(--ease), background-color .2s ease;
}
.footer-pj__social a:hover { opacity: 1; transform: translateY(-3px); }
.footer-pj .footer-pj__doa { max-width: none; margin: clamp(3rem, 7vw, 4.5rem) auto 0; text-align: center; opacity: 1; }
.footer-pj__doa .ar { display: block; font-family: var(--font-arabic); font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.8; direction: rtl; }
.footer-pj__doa .tr { display: block; font-size: .875rem; opacity: .65; margin-top: .25rem; }
.js .footer-pj__doa { opacity: 0; transform: translateY(16px); transition: opacity 1.4s ease, transform 1.4s var(--ease); }
.js .footer-pj__doa.is-in { opacity: 1; transform: none; }
.footer-pj__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  font-size: .875rem; opacity: .7;
}
.footer-pj__arch {
  position: absolute; right: -40px; bottom: -2px; pointer-events: none;
  width: 260px; aspect-ratio: 3 / 4;
  border: 2px solid color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 999px 999px 0 0;
}

/* ---------- Reveal / split ---------- */
.js .reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js .reveal--scale { transform: scale(.96); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .highlights-grid > :nth-child(even).reveal.is-in { transform: translateY(2.5rem); }

.js [data-aos] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-aos].is-in { opacity: 1; transform: none; }

.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split-word > span { display: inline-block; }
.js [data-split] .split-word > span { transform: translateY(105%); transition: transform .8s var(--ease); transition-delay: calc(var(--w) * 60ms); }
.js [data-split].is-in .split-word > span { transform: none; }
.js [data-split="float"] .split-word > span { transform: translateY(.6em); opacity: 0; transition: transform .7s var(--ease), opacity .7s ease; transition-delay: calc(var(--w) * 40ms); }
.js [data-split="float"].is-in .split-word > span { transform: none; opacity: 1; }

.magnet { transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .footer-pj__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991.98px) {
  .nav-pj__menu { display: none; }
  .nav-pj__toggle { display: inline-flex; }
  .hero-pj__grid, .split-pj, .split-pj--img-left { grid-template-columns: minmax(0, 1fr); }
  .hero-pj__media { order: -1; width: min(100%, 360px); }
  .split-pj__media { width: min(100%, 360px); }
  .split-pj--img-left .split-pj__media { order: -1; }
  .split-pj .split-pj__media { order: -1; }
  .bento__item, .bento__item--third { grid-column: span 6; }
  .bento__item--big { grid-column: span 12; grid-row: auto; min-height: 380px; }
  .bento__item--wide { grid-column: span 12; }
  .stats-pj { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .stats-pj__item, .stats-pj__item:first-child { border-left: 0; border-top: 1px solid var(--border-deep); padding: 1.5rem 0 1.5rem; }
  .stats-pj__item:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--border-deep); }
  .stats-section.is-light .stats-pj__item { border-top-color: var(--border); }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  :root { --s-section: 4rem; }
  .nav-pj__tag { max-width: 180px; }
  .nav-pj__brand img { height: 40px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento__item, .bento__item--big, .bento__item--wide, .bento__item--half, .bento__item--third, .bento__item--full { grid-column: auto; grid-row: auto; }
  .bento__item--wide { flex-direction: column; }
  .bento__item--wide .bento__img { aspect-ratio: 16 / 10; flex: none; }
  .highlights-grid { grid-template-columns: minmax(0, 1fr); }
  .highlights-grid > :nth-child(even), .js .highlights-grid > :nth-child(even).reveal.is-in { transform: none; }
  .highlights-wrap { padding-bottom: 0; }
  .post-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-pj__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .hero-pj__badge { left: 0; }
  .cta-pj__arch--r { display: none; }
}
@media (max-width: 379.98px) {
  .hero-pj__actions { flex-direction: column; align-items: stretch; }
  .nav-pj__tag { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .js .reveal, .js [data-aos], .js [data-split] .split-word > span, .js .footer-pj__doa { opacity: 1 !important; transform: none !important; }
  .js .arch-frame--hero { animation: none; clip-path: none; }
  .marquee__track { animation: none !important; }
  .aurora::before { animation: none; }
  .parallax-img img { animation: none !important; translate: none; scale: 1; }
}

/* =========================================================
   Fasa 2 — halaman dalaman
   ========================================================= */

/* ---------- Carta organisasi ---------- */
.org-pj { display: grid; gap: var(--s-gap); }
.org-pj__level { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-gap); position: relative; }
.org-pj--tree .org-pj__level + .org-pj__level { padding-top: 2.5rem; }
.org-pj--tree .org-pj__level + .org-pj__level::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 2rem;
  translate: -50% 0; background: linear-gradient(var(--brand), transparent);
}
.org-pj__card { width: min(100%, 240px); text-align: center; padding: 1.75rem 1.25rem 1.5rem; }
.org-pj__level.is-top .org-pj__card { width: min(100%, 280px); border-color: rgba(var(--brand-rgb), .4); }
.org-pj__photo {
  width: 112px; height: 128px; margin: 0 auto 1.25rem; overflow: hidden;
  border-radius: 999px 999px 18px 18px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); font-size: 2.5rem;
  box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px rgba(var(--gold-rgb), .5);
}
.org-pj__level.is-top .org-pj__photo { width: 132px; height: 152px; }
.org-pj__photo img { width: 100%; height: 100%; object-fit: cover; }
.org-pj__name { font-size: 1.0625rem; margin-bottom: .25rem; }
.org-pj__role { font-size: .875rem; font-weight: 600; color: var(--accent); margin-bottom: 0; }
.org-pj__phone { display: inline-flex; align-items: center; gap: .375rem; min-height: 44px; font-size: .875rem; color: var(--text-secondary); }
.org-pj__phone:hover { color: var(--accent); }

/* ---------- Hubungi ---------- */
.contact-pj { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-pj__list { display: grid; gap: .875rem; }
.contact-pj__item { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem; color: inherit; text-decoration: none; }
a.contact-pj__item:hover { color: inherit; }
.contact-pj__item h3 { font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: .25rem; }
.contact-pj__item p { margin: 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.contact-pj__address { white-space: pre-line; font-weight: 500 !important; line-height: 1.55; }
.contact-pj__go { margin-left: auto; font-size: 1.25rem; color: var(--text-tertiary); transition: color .2s ease, transform .2s var(--ease); }
a.contact-pj__item:hover .contact-pj__go { color: var(--accent); transform: translate(2px, -2px); }
.contact-pj__map { position: sticky; top: 96px; }
.contact-pj__map .map-container iframe { height: clamp(320px, 45vw, 480px); }
.contact-pj__nomap {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 360px; display: grid; place-content: center; justify-items: center; gap: .75rem;
  border-radius: var(--r-xl); background: var(--surface-brand); color: var(--text-tertiary);
  border: 1px dashed var(--border-hover); text-align: center;
}
.contact-pj__nomap i { font-size: 2.5rem; color: var(--brand); }
.arch-deco {
  position: absolute; z-index: -1; bottom: -2px; left: 50%; translate: -50% 0;
  width: 55%; aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0;
  border: 2px solid rgba(var(--brand-rgb), .25);
}

/* ---------- Galeri & gambar ---------- */
.gallery-pj { display: grid; gap: .875rem; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; }
.gallery-pj__item { position: relative; overflow: hidden; border-radius: var(--r-lg); display: block; background: var(--surface-alt); }
.gallery-pj__item.is-tall { grid-row: span 2; }
.gallery-pj__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-pj__item:hover img { transform: scale(1.05); }
.gallery-pj__zoom {
  position: absolute; right: .75rem; bottom: .75rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(var(--deep-rgb), .75); color: var(--text-on-deep);
  opacity: 0; transform: translateY(6px); transition: opacity .3s ease, transform .3s var(--ease);
}
.gallery-pj__item:hover .gallery-pj__zoom, .gallery-pj__item:focus-visible .gallery-pj__zoom { opacity: 1; transform: none; }
.image-pj img { width: 100%; display: block; }
.image-pj.container img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }
.image-pj figcaption { margin-top: .875rem; text-align: center; font-size: .9375rem; color: var(--text-tertiary); }

/* ---------- Cari kawasan ---------- */
.finder-pj { max-width: 760px; margin-inline: auto; }
.finder-pj:hover { transform: none; }
.finder-pj__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.finder-pj__head h2 { font-size: 1.25rem; margin-bottom: .25rem; letter-spacing: -0.01em; }
.finder-pj__head p { margin: 0; font-size: .9375rem; }
.finder-pj__form { display: flex; gap: .625rem; }
.finder-pj__result { margin-top: 1rem; display: grid; gap: .625rem; }
.finder-pj__msg { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .875rem 1rem; border-radius: var(--r-md); background: var(--surface-alt); font-size: .9375rem; }
.finder-pj__msg i { font-size: 1.15rem; color: var(--accent); }
.finder-pj__hit { display: flex; align-items: center; gap: 1rem; padding: .875rem 1rem; border-radius: var(--r-md); background: var(--surface-brand); }
.finder-pj__hit h3 { font-size: 1rem; margin: 0 0 .125rem; }
.finder-pj__hit p { margin: 0; font-size: .875rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* ---------- Berita ---------- */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.blog-aside { display: grid; gap: 1.25rem; position: sticky; top: 96px; }
.blog-aside__box { padding: 1.5rem; }
.blog-aside__box:hover { transform: none; }
.blog-aside__title { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1rem; }
.recent-pj, .cat-pj { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.recent-pj__item { display: flex; align-items: center; gap: .875rem; padding: .5rem; margin-inline: -.5rem; border-radius: var(--r-md); color: inherit; transition: background-color .2s ease; }
.recent-pj__item:hover { background: var(--surface-alt); color: inherit; }
.recent-pj__img { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--r-sm); overflow: hidden; display: grid; place-items: center; background: var(--surface-brand); color: var(--brand); font-size: 1.5rem; }
.recent-pj__img img { width: 100%; height: 100%; object-fit: cover; }
.recent-pj__body { display: grid; gap: .25rem; min-width: 0; }
.recent-pj__title { font-size: .9375rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.recent-pj__item:hover .recent-pj__title { color: var(--accent); }
.recent-pj__date { font-size: .8125rem; color: var(--text-tertiary); }
.cat-pj a { display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: 0 .75rem; margin-inline: -.75rem; border-radius: var(--r-sm); font-weight: 600; color: var(--text-secondary); }
.cat-pj a:hover, .cat-pj a.active { background: var(--accent-soft); color: var(--accent); }
.cat-pj__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.chips-pj { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip-pj {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.125rem;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: .875rem; color: var(--text-secondary);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip-pj:hover { border-color: var(--accent); color: var(--accent); }
.chip-pj.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.pagination-pj { margin-top: 2.5rem; }
.pagination-pj .pagination { gap: .375rem; flex-wrap: wrap; margin: 0; }
.pagination-pj .page-link {
  min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 .75rem;
  border-radius: 999px !important; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; color: var(--text-secondary);
}
.pagination-pj .page-link:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.pagination-pj .page-link:focus { box-shadow: var(--focus-ring); }
.pagination-pj .active > .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination-pj .disabled > .page-link { opacity: .45; background: var(--surface); }
.pagination-pj nav > .d-sm-flex > div:first-child { display: none; }

.post-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); max-width: 900px; }
.post-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; font-size: .9375rem; font-weight: 600; color: var(--text-secondary); }
.post-head__meta i { color: var(--accent); }
.post-hero { margin: 0 0 2.5rem; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.post-hero img { width: 100%; max-height: 560px; object-fit: cover; display: block; }
.prose-article { font-size: 1.125rem; line-height: 1.85; max-width: 70ch; }
.prose-article h2, .prose-article h3, .prose-article h4 { margin-top: 2.25rem; margin-bottom: .75rem; }
.prose-article h2 { font-size: 1.75rem; }
.prose-article h3 { font-size: 1.375rem; }
.prose-article img { margin-block: 1.5rem; box-shadow: var(--shadow-md); }
.prose-article blockquote {
  margin: 2rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--gold);
  background: var(--gold-soft); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.1875rem; color: var(--text);
}
.prose-article table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.prose-article th, .prose-article td { padding: .625rem .75rem; border-bottom: 1px solid var(--border); text-align: left; }
.share-pj { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.share-pj__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.related-pj { margin-top: clamp(3rem, 7vw, 4.5rem); }

@media (max-width: 991.98px) {
  .contact-pj, .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .contact-pj__map, .blog-aside { position: static; }
  .gallery-pj { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
}
@media (max-width: 575.98px) {
  .finder-pj__form { flex-direction: column; }
  .finder-pj__form .btn-pj { width: 100%; }
  .finder-pj__hit { flex-wrap: wrap; }
  .org-pj__card { width: calc(50% - var(--s-gap) / 2); padding-inline: .75rem; }
  .org-pj__level.is-top .org-pj__card { width: min(100%, 280px); }
  .org-pj__photo { width: 88px; height: 100px; }
  .gallery-pj { grid-auto-rows: 140px; gap: .5rem; }
}

/* Navbar terang di atas header/hero gelap sebelum skrol */
body:has(main > .on-deep:first-child) .nav-pj:not(.is-scrolled) .nav-pj__name,
body:has(main > .on-deep:first-child) .nav-pj:not(.is-scrolled) .nav-pj__link { color: var(--text-on-deep); }
body:has(main > .on-deep:first-child) .nav-pj:not(.is-scrolled) .nav-pj__tag { color: var(--text-on-deep-muted); }
body:has(main > .on-deep:first-child) .nav-pj:not(.is-scrolled) .nav-pj__link:hover { background: rgba(255, 255, 255, .12); color: var(--text-on-deep); }
body:has(main > .on-deep:first-child) .nav-pj:not(.is-scrolled) .nav-pj__link.active { color: var(--gold); }
