/* Committee + Panelists (mockup v5). Awalan pp-/cm-/pn- supaya tidak berlanggar dengan halaman lain. Tema terang. */
@keyframes pp-drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -30px) scale(1.12); } }
@keyframes pp-drift2 { 0%, 100% { transform: translate(0, 0) scale(1.1); } 50% { transform: translate(-60px, 40px) scale(.95); } }
@keyframes pp-gridmove { from { background-position: 0 0; } to { background-position: 56px 56px; } }
@keyframes pp-ghost { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pp-in { from { opacity: 0; transform: translateY(60%) rotate(8deg) scale(.6); filter: blur(8px); } to { opacity: 1; filter: none; } }
@keyframes pp-wave { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@keyframes pp-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes pp-rev { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: none; } }
@keyframes pp-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pp-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(123, 77, 240, .35), 0 18px 44px rgba(47, 91, 234, .14); } 50% { box-shadow: 0 0 0 8px rgba(123, 77, 240, 0), 0 22px 54px rgba(123, 77, 240, .28); } }
@keyframes pp-selglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 91, 234, .35), 0 14px 36px rgba(47, 91, 234, .12); } 50% { box-shadow: 0 0 0 8px rgba(47, 91, 234, 0), 0 18px 44px rgba(123, 77, 240, .26); } }

.pp-list { list-style: none; margin: 0; padding: 0; }

/* ---- Pengepala ---- */
.pp-head { position: relative; overflow: hidden; border-bottom: 1px solid rgba(11, 27, 63, .1); }
.pp-blob { position: absolute; width: 560px; height: 560px; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.pp-blob--a { right: -6%; top: -40%; background: radial-gradient(circle, rgba(139, 92, 255, .28), transparent 65%); animation: pp-drift 20s ease-in-out infinite; }
.pp-blob--b { left: -8%; bottom: -50%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(61, 123, 255, .26), transparent 65%); animation: pp-drift2 24s ease-in-out infinite; }
.pp-head--amber .pp-blob--a { background: radial-gradient(circle, rgba(255, 194, 75, .32), transparent 65%); }
.pp-head--amber .pp-blob--b { background: radial-gradient(circle, rgba(61, 123, 255, .24), transparent 65%); }
.pp-gridmove { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(11, 27, 63, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 27, 63, .06) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); animation: pp-gridmove 12s linear infinite; }
.pp-ghost { position: absolute; left: 0; right: 0; bottom: -8px; overflow: hidden; white-space: nowrap; pointer-events: none; }
.pp-ghost__in { display: inline-block; font-family: var(--font-outline); font-weight: 400; font-size: clamp(90px, 15vw, 200px); line-height: .9; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1.2px rgba(47, 91, 234, .11); animation: pp-ghost 420s linear infinite; }
.pp-head__in { position: relative; max-width: 1320px; margin: 0 auto; padding: 56px 32px 44px; display: flex; flex-direction: column; gap: 14px; }
.pp-head--amber .pp-head__in { padding-bottom: 48px; }
.pp-kickrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pp-kicker { padding: 6px 14px; border-radius: 999px; font: 600 12.5px var(--font-mono); letter-spacing: .08em; }
.pp-kicker--violet { background: rgba(123, 77, 240, .1); border: 1px solid rgba(123, 77, 240, .4); color: #6D4AE0; }
.pp-kicker--amber { background: rgba(255, 194, 75, .1); border: 1px solid rgba(255, 194, 75, .4); color: var(--amber); }
.pp-when { font: 400 13px var(--font-mono); color: var(--ink-2); }
.pp-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(44px, 6.5vw, 88px); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.pp-sub { margin: 0; font-size: 19px; color: var(--ink-2); max-width: 640px; }
.pp-pop { animation: pp-pop .45s ease backwards; }
.pp-d2 { animation-delay: .12s; }

/* Huruf tajuk kinetik (dijana oleh people.js) */
.pp-w { display: inline-block; margin-right: .26em; white-space: nowrap; }
.pp-ch { display: inline-block; --d: 0; color: color-mix(in srgb, #0B1B3F calc((1 - var(--d)) * 100%), var(--kc, #7B4DF0)); transform: translateY(calc(var(--d) * -16px)) scale(calc(1 + var(--d) * .22)) rotate(calc(var(--d) * -4deg)); transition: transform .18s ease-out, color .18s ease-out; animation: pp-in 1.4s cubic-bezier(.2, .9, .3, 1.1) backwards, pp-wave 15s ease-in-out infinite; }
.pp-title--calm .pp-ch { transform: none; transition: color .35s ease; }

/* ---- Committee ---- */
.cm-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
html:not(.js) .cm-tools { display: none; }
.cm-search { position: relative; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px; border-radius: 14px; background: #fff; border: 1px solid rgba(11, 27, 63, .2); width: min(100%, 420px); color: var(--ink); }
.cm-search input { flex: 1; min-width: 0; height: 50px; background: transparent; border: 0; color: var(--ink); font: 400 15px var(--font-mono); outline: none; }
.cm-search input::placeholder { color: var(--ink-2); opacity: 1; }
.cm-search:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.cm-count { padding: 8px 16px; border-radius: 999px; background: rgba(47, 91, 234, .1); font: 600 13px var(--font-mono); color: #043093; }
.cm-main { max-width: 1320px; margin: 0 auto; padding: 48px 32px 112px; display: flex; flex-direction: column; gap: 56px; }
.cm-lead { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.cm-patron { width: min(100%, 330px); }
.cm-leadgrid { flex: 1 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.cm-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; align-items: start; }
.cm-unit { padding: 22px 24px 24px; border-radius: 24px; background: rgba(255, 255, 255, .85); border: 1px solid rgba(11, 27, 63, .12); transition: box-shadow .3s ease, border-color .3s ease; }
.cm-unit:hover { border-color: rgba(123, 77, 240, .45); box-shadow: 0 20px 50px rgba(123, 77, 240, .14); }
.cm-unit__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 16px; }
.cm-unit__head h2 { margin: 0; font: 600 20px var(--font-head); letter-spacing: -.015em; }
.cm-unit__count { font: 400 12px var(--font-mono); color: var(--ink-2); }
.cm-unit__line { height: 3px; width: 56px; margin: -6px 0 16px; border-radius: 3px; background: linear-gradient(90deg, #2F5BEA, #7B4DF0); transform-origin: left; animation: pp-line .8s ease .2s both; }
.cm-unit__people { display: flex; flex-wrap: wrap; gap: 14px; }
.cm-none { padding: 48px 24px; margin: 0; border-radius: 22px; border: 1px dashed rgba(47, 91, 234, .4); text-align: center; font-family: var(--font-mono); color: var(--ink-2); }

/* Kad: condong 3D, spotlight, gambar zum dari tepi atas */
.cm-card, .pn-tile { position: relative; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.cm-card:hover, .pn-tile:hover { --ty: -8px; }
.cm-card::before, .pn-tile::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.cm-card::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(123, 77, 240, .2), rgba(47, 91, 234, .1) 45%, transparent 70%); }
.pn-tile::before { background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 234, .16), rgba(123, 77, 240, .08) 45%, transparent 70%); }
.cm-card:hover::before, .pn-tile:hover::before { opacity: 1; }
.cm-card { overflow: hidden; background: rgba(255, 255, 255, .9); border: 1px solid rgba(11, 27, 63, .12); border-radius: 20px; width: 100%; }
.cm-card:hover { border-color: rgba(47, 91, 234, .55); box-shadow: 0 16px 40px rgba(47, 91, 234, .16); }
.cm-card--patron { animation: pp-pop .45s ease backwards, pp-glow 3.2s ease-in-out infinite .6s; }
.cm-card--unit { flex: 1 1 150px; max-width: 190px; width: auto; }
.cm-card__top { position: relative; overflow: hidden; height: var(--h, 160px); background: radial-gradient(circle at 50% 100%, var(--tint), transparent 78%), #EAF0FF; }
.cm-card--patron { --h: 270px; }
.cm-card--lead { --h: 210px; }
.cm-card__top img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transition: transform .5s ease, filter .35s ease; }
.cm-card:hover .cm-card__top img { transform: scale(1.18); filter: saturate(1.1); }
.cm-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 clamp(34px, 5vw, 52px) var(--font-head); color: #1E3FA8; }
.cm-card__body { padding: 10px 12px 14px; }
.cm-card--lead .cm-card__body { padding: 14px 16px 18px; }
.cm-card--patron .cm-card__body { padding: 16px 18px 20px; }
.cm-card__role { font: 600 12px var(--font-mono); letter-spacing: .08em; color: #0E7490; }
.cm-card__name { font: 600 14.5px/1.3 var(--font-head); }
.cm-card--lead .cm-card__name { margin-top: 4px; font-size: 16.5px; }
.cm-card--patron .cm-card__name { margin-top: 4px; font-size: 19px; }
.t0 { --tint: rgba(34, 225, 255, .28); }
.t1 { --tint: rgba(139, 92, 255, .26); }
.t2 { --tint: rgba(61, 123, 255, .26); }
.t3 { --tint: rgba(43, 228, 138, .22); }
.t4 { --tint: rgba(255, 61, 90, .18); }

/* Kad muncul satu demi satu */
.pp-stagger > :nth-child(1) { animation-delay: .05s; }
.pp-stagger > :nth-child(2) { animation-delay: .12s; }
.pp-stagger > :nth-child(3) { animation-delay: .19s; }
.pp-stagger > :nth-child(4) { animation-delay: .26s; }
.pp-stagger > :nth-child(5) { animation-delay: .33s; }
.pp-stagger > :nth-child(n+6) { animation-delay: .4s; }
@supports (animation-timeline: view()) {
  .pp-rev { animation: pp-rev linear both; animation-timeline: view(); animation-range: entry 0% cover 24%; }
}

/* ---- Panelists ---- */
.pn-barwrap { position: relative; height: 4px; margin-top: -2px; }
.pn-bar { position: absolute; left: 0; top: 0; width: 96px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #2F5BEA, #7B4DF0); transition: left .45s cubic-bezier(.22, 1, .36, 1); }
.pn-main { max-width: 1320px; margin: 0 auto; padding: 48px 32px 112px; display: flex; gap: 32px; align-items: flex-start; }
.pn-cards { flex: 3 1 0; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.pn-tile { display: block; width: 100%; padding: 0; margin: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; border-radius: 20px; overflow: hidden; background: rgba(255, 255, 255, .78); border: 1px solid rgba(11, 27, 63, .12); }
.pn-tile:hover { border-color: rgba(47, 91, 234, .55); box-shadow: 0 16px 40px rgba(47, 91, 234, .16); }
.pn-tile:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.pn-tile.pn-sel { border: 2px solid var(--blue); box-shadow: 0 0 30px rgba(47, 91, 234, .22); animation: pp-selglow 3s ease-in-out infinite; }
.pn-tile.pp-rev { animation-fill-mode: backwards; }
.pn-tile__photo { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #E3EAFB; }
.pn-tile__photo img, .pn-photo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0; transform-origin: 50% 0; transition: transform .5s ease, filter .35s ease; }
.pn-tile:hover .pn-tile__photo img { transform: scale(1.18); filter: saturate(1.1); }
.pn-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font: 700 56px var(--font-head); color: #1E3FA8; background: linear-gradient(135deg, rgba(61, 123, 255, .25), rgba(139, 92, 255, .25)); }
.pn-ph--lg { font-size: 96px; }
.pn-tile__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 10, 26, .85), transparent 55%); }
.pn-tile__shade--lg { background: linear-gradient(to top, rgba(5, 10, 26, .9), transparent 50%); }
.pn-tile__txt { display: block; padding: 14px 16px 18px; }
.pn-tile__name { display: block; font: 600 16.5px/1.3 var(--font-head); color: var(--ink); }
.pn-tile__role { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-2); }

.pn-aside { position: sticky; top: 96px; flex: 1 1 320px; max-width: 440px; min-width: 0; border-radius: 24px; background: rgba(255, 255, 255, .78); border: 1px solid rgba(11, 27, 63, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); overflow: hidden; }
.pn-close { display: none; position: absolute; right: 14px; top: 14px; z-index: 5; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; align-items: center; justify-content: center; background: rgba(255, 255, 255, .95); color: var(--ink); box-shadow: 0 4px 14px rgba(11, 27, 63, .3); cursor: pointer; }
.pn-photo { position: relative; aspect-ratio: 4 / 4.2; background: #E3EAFB; overflow: hidden; }
.pn-body { padding: 22px 26px 28px; display: flex; flex-direction: column; gap: 10px; }
.pn-kick { font: 600 12px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
.pn-body h2 { margin: 0; font: 700 28px/1.2 var(--font-head); letter-spacing: -.02em; }
.pn-spec { margin: 0; display: grid; gap: 2px; }
.pn-spec dt { margin-top: 8px; font: 600 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pn-spec dd { margin: 0; color: #3A4A70; font-weight: 500; overflow-wrap: anywhere; }
.pn-back { display: none; }
html:not(.js) .pn-item[hidden] { display: block !important; }

@media (min-width: 901px) {
  .pn-scroll { max-height: calc(100vh - 120px); overflow-y: auto; }
}
@media (max-width: 900px) {
  .pn-main { flex-direction: column; gap: 24px; padding-inline: 20px; }
  .pn-cards { flex: none; width: 100%; }
  .pp-head__in { padding-inline: 20px; }
  .cm-main { padding-inline: 20px; }
  .pn-aside { max-width: none; width: 100%; position: static; }
  .js .pn-aside { position: fixed; left: 0; right: 0; bottom: 0; top: auto; flex: none; z-index: 90; border-radius: 24px 24px 0 0; background: #fff; max-height: 88vh; transform: translateY(105%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; box-shadow: 0 -20px 60px rgba(11, 27, 63, .3); }
  .js .pn-aside.pn-open { transform: none; visibility: visible; transition: transform .35s ease, visibility 0s; }
  .js .pn-scroll { max-height: 88vh; overflow-y: auto; }
  .js .pn-photo { aspect-ratio: 4 / 3; }
  .js .pn-close { display: flex; }
  .js .pn-back { position: fixed; inset: 0; z-index: 85; display: block; background: rgba(11, 27, 63, .5); }
}
@media (max-width: 600px) {
  .pp-head__in { padding-top: 40px; padding-bottom: 32px; }
  .pp-sub { font-size: 17px; }
  .cm-main { padding-top: 32px; padding-bottom: 80px; gap: 40px; }
  .cm-unit { padding: 18px 18px 20px; }
  .cm-unit__people { gap: 12px; }
  .cm-card--unit { flex-basis: 130px; }
  .pn-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pn-ph { font-size: 40px; }
  .pn-tile__txt { padding: 12px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .pp-blob, .pp-gridmove, .pp-ghost__in, .pp-pop, .pp-rev, .cm-card--patron, .cm-unit__line, .pn-tile.pn-sel { animation: none !important; }
  .pp-ch { animation: none !important; transition: none; transform: none !important; color: var(--ink); }
  .cm-card, .pn-tile { transform: none !important; transition: none; }
  .cm-card::before, .pn-tile::before { display: none; }
  .cm-card__top img, .pn-tile__photo img, .pn-bar, .js .pn-aside { transition: none !important; }
  .cm-card:hover .cm-card__top img, .pn-tile:hover .pn-tile__photo img { transform: none; }
}

/* Kad panelis sama tinggi dalam setiap baris */
.pn-cards { align-items: stretch; }
.pn-cards > li { display: flex; }
.pn-cards .pn-tile { height: 100%; display: flex; flex-direction: column; }
.pn-tile__txt { flex: 1 1 auto; }

/* Carian: kad tunggal kekal saiz asal (auto-fill, bukan auto-fit yang meregangkan) */
.cm-leadgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.cm-card--lead { max-width: 260px; }
@media (max-width: 960px) { .cm-card--lead { max-width: none; } }
