/* ============================================================
   LITERATIF — Halaman Portofolio Pribadi
   Dipakai oleh: portofolio.php
   Palet mengikuti identitas Literatif (teal + alice + ink).
   Warna aksen (--pf-accent) diinjeksikan dari database.
   ============================================================ */

.pf {
  --pf-accent:      #2C6E7A;
  --pf-accent-rgb:  44, 110, 122;
  --pf-accent-dark: #1e4f59;
  --pf-ink:         #1A2B30;
  --pf-ink-soft:    #3d5a62;
  --pf-muted:       #6b858e;
  --pf-line:        #e3ecef;
  --pf-alice:       #D8E7EC;
  --pf-alice-soft:  #eef6f9;
  --pf-surface:     #ffffff;
  --pf-bg:          #f7fafb;
  --pf-rail:        292px;
  --pf-radius:      16px;
  --pf-shadow:      0 1px 2px rgba(26,43,48,.04), 0 8px 24px rgba(26,43,48,.06);
  --pf-shadow-lift: 0 2px 4px rgba(26,43,48,.05), 0 18px 40px rgba(var(--pf-accent-rgb),.16);
  --pf-ease:        cubic-bezier(.22,.61,.36,1);
}

/* ── Dasar ───────────────────────────────────────────────── */
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }

body.pf-body {
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.pf img { max-width: 100%; display: block; }
/* Spesifisitas nol lewat :where() — supaya aturan warna tiap komponen
   (tombol, navigasi, kartu) tidak dikalahkan oleh aturan tautan umum. */
:where(.pf) :where(a) { color: inherit; text-decoration: none; }
/* Tautan di dalam teks konten tetap berwarna aksen */
.pf-about-bio a, .pf-fact-v a, .pf-card-link { color: var(--pf-accent); font-weight: 600; }
.pf-about-bio a:hover, .pf-fact-v a:hover { text-decoration: underline; }
.pf h1, .pf h2, .pf h3, .pf h4 { margin: 0; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; }
.pf p  { margin: 0; }
.pf ul { margin: 0; padding: 0; list-style: none; }

.pf :focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.pf-skip {
  position: absolute; left: 12px; top: -60px; z-index: 999;
  background: var(--pf-accent); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px; font-weight: 700;
  transition: top .2s var(--pf-ease);
}
.pf-skip:focus { top: 0; text-decoration: none; }

.pf-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ============================================================
   RAIL — sidebar profil kiri
   ============================================================ */
.pf-rail {
  position: fixed; inset: 0 auto 0 0;
  width: var(--pf-rail);
  z-index: 60;
  display: flex; flex-direction: column;
  padding: 34px 26px 22px;
  color: #fff;
  background:
    radial-gradient(120% 70% at 15% 0%, rgba(var(--pf-accent-rgb), .55) 0%, transparent 62%),
    linear-gradient(168deg, #22454e 0%, var(--pf-ink) 58%, #14262b 100%);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}
.pf-rail::-webkit-scrollbar       { width: 6px; }
.pf-rail::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 4px; }

.pf-rail-photo {
  width: 108px; height: 108px; margin: 0 auto 16px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 30px rgba(0,0,0,.32);
  background: rgba(255,255,255,.06);
}
.pf-rail-photo img { width: 100%; height: 100%; object-fit: cover; }

.pf-rail-name {
  font-size: 19px; font-weight: 800; text-align: center;
  color: #fff; letter-spacing: -.01em;
}
.pf-rail-name a { color: inherit; }
.pf-rail-name a:hover { text-decoration: none; }

.pf-rail-role {
  margin-top: 5px; text-align: center;
  font-size: 12px; font-weight: 500; letter-spacing: .04em;
  color: rgba(216,231,236,.62); text-transform: uppercase;
}

.pf-rail-socials {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 7px; margin: 18px 0 22px;
}
.pf-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.82);
  transition: background .18s var(--pf-ease), color .18s var(--pf-ease), transform .18s var(--pf-ease);
}
.pf-social:hover {
  background: var(--pf-accent); color: #fff;
  transform: translateY(-2px); text-decoration: none;
}

.pf-rail-nav { display: flex; flex-direction: column; gap: 2px; }
.pf-navlink {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: rgba(216,231,236,.72);
  transition: background .16s var(--pf-ease), color .16s var(--pf-ease);
}
.pf-navlink svg { flex-shrink: 0; opacity: .8; }
.pf-navlink:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.pf-navlink.is-active {
  background: rgba(255,255,255,.13); color: #fff;
  box-shadow: inset 3px 0 0 var(--pf-accent);
}
.pf-navlink.is-active svg { opacity: 1; }

.pf-rail-foot {
  margin-top: auto; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 11.5px; line-height: 1.6;
  color: rgba(216,231,236,.45);
}
.pf-rail-foot a { color: rgba(216,231,236,.75); font-weight: 600; }

/* ── Topbar & drawer (mobile) ─────────────────────────────── */
.pf-topbar {
  display: none;
  position: sticky; top: 0; z-index: 70;
  align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(26,43,48,.94);
  backdrop-filter: blur(10px);
  color: #fff;
}
.pf-topbar-photo {
  width: 34px; height: 34px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.25);
}
.pf-topbar-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-topbar-name { font-size: 14.5px; font-weight: 800; flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.1); color: #fff; cursor: pointer;
}
.pf-scrim {
  display: none; position: fixed; inset: 0; z-index: 55;
  background: rgba(16,28,32,.55); backdrop-filter: blur(2px);
}
.pf-scrim.is-open { display: block; }

/* ============================================================
   KONTEN
   ============================================================ */
.pf-main { margin-left: var(--pf-rail); }

.pf-section { padding: clamp(60px, 7.5vw, 104px) clamp(20px, 4.5vw, 72px); }
.pf-section--alt { background: var(--pf-surface); }
.pf-inner { max-width: 1120px; margin: 0 auto; }

.pf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pf-accent); margin-bottom: 12px;
}
.pf-eyebrow::before {
  content: ''; width: 22px; height: 2px; border-radius: 2px;
  background: var(--pf-accent);
}
.pf-h2 { font-size: clamp(26px, 3.4vw, 38px); }
.pf-lede {
  margin-top: 14px; max-width: 68ch;
  font-size: clamp(14.5px, 1.2vw, 16.5px); color: var(--pf-ink-soft); line-height: 1.8;
}
.pf-head { margin-bottom: clamp(32px, 4vw, 52px); }

/* ============================================================
   HERO
   ============================================================ */
.pf-hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: clamp(72px, 10vh, 120px) clamp(20px, 4.5vw, 72px);
  color: #fff; overflow: hidden;
}
.pf-hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.pf-hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 80% at 12% 20%, rgba(var(--pf-accent-rgb),.62) 0%, transparent 70%),
    linear-gradient(105deg, rgba(16,28,32,.95) 0%, rgba(26,43,48,.88) 45%, rgba(26,43,48,.72) 100%);
}
.pf-hero-inner { max-width: 1120px; margin: 0 auto; width: 100%; }

.pf-hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.9);
  backdrop-filter: blur(6px);
}
.pf-hero-badge .pf-ping {
  width: 8px; height: 8px; border-radius: 50%; background: #6fd3b4;
  box-shadow: 0 0 0 4px rgba(111,211,180,.22);
}

.pf-hero h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 7.2vw, 76px);
  line-height: 1.03; letter-spacing: -.035em;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.pf-hero-typed {
  margin-top: 16px;
  font-size: clamp(17px, 2.4vw, 26px);
  font-weight: 500; color: rgba(216,231,236,.9);
  min-height: 1.6em;
}
.pf-typed-word { color: #fff; font-weight: 700; border-bottom: 2px solid var(--pf-accent); padding-bottom: 2px; }
.pf-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  background: #fff; vertical-align: -.12em;
  animation: pf-blink 1.05s steps(2, start) infinite;
}
@keyframes pf-blink { to { visibility: hidden; } }

.pf-hero-tagline {
  margin-top: 20px; max-width: 58ch;
  font-size: clamp(14.5px, 1.3vw, 16.5px); line-height: 1.8;
  color: rgba(216,231,236,.78);
}

.pf-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.pf-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform .18s var(--pf-ease), background .18s var(--pf-ease),
              border-color .18s var(--pf-ease), color .18s var(--pf-ease), box-shadow .18s var(--pf-ease);
}
.pf-btn:hover { text-decoration: none; transform: translateY(-2px); }
.pf-btn--solid {
  background: var(--pf-accent); color: #fff;
  box-shadow: 0 10px 26px rgba(var(--pf-accent-rgb),.36);
}
.pf-btn--solid:hover { background: var(--pf-accent-dark); }
.pf-btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.pf-btn--ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.pf-btn--line { border-color: var(--pf-line); color: var(--pf-ink); background: var(--pf-surface); }
.pf-btn--line:hover { border-color: var(--pf-accent); color: var(--pf-accent); }

.pf-scrollcue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  color: rgba(255,255,255,.55);
  animation: pf-bob 2.4s var(--pf-ease) infinite;
}
@keyframes pf-bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ============================================================
   TENTANG
   ============================================================ */
.pf-about { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }

.pf-portrait { position: relative; }
.pf-portrait img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--pf-radius);
  box-shadow: var(--pf-shadow);
}
.pf-portrait::before {
  content: ''; position: absolute; inset: 18px -16px -16px 18px;
  border: 2px solid var(--pf-alice); border-radius: var(--pf-radius); z-index: -1;
}

.pf-about-name { font-size: clamp(21px, 2.4vw, 27px); }
.pf-about-role {
  margin-top: 7px; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--pf-accent);
}
.pf-about-tagline {
  margin-top: 18px; padding-left: 16px;
  border-left: 3px solid var(--pf-alice);
  font-style: italic; color: var(--pf-ink-soft);
}

.pf-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2px; margin-top: 26px;
  background: var(--pf-line); border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius); overflow: hidden;
}
.pf-fact { display: flex; gap: 12px; padding: 15px 17px; background: var(--pf-surface); }
.pf-fact-ico { color: var(--pf-accent); flex-shrink: 0; margin-top: 2px; }
.pf-fact-k {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--pf-muted);
}
.pf-fact-v { font-size: 14.5px; font-weight: 600; word-break: break-word; }
.pf-fact-v a { font-weight: 600; }

.pf-about-bio { margin-top: 24px; color: var(--pf-ink-soft); line-height: 1.85; }
.pf-about-bio a { font-weight: 700; }

/* ── Statistik ────────────────────────────────────────────── */
.pf-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px; margin-top: 34px;
  background: var(--pf-line); border: 1px solid var(--pf-line);
  border-radius: var(--pf-radius); overflow: hidden;
}
.pf-stat { padding: 22px 20px; background: var(--pf-surface); text-align: center; }
.pf-stat-v {
  font-size: clamp(30px, 3.6vw, 40px); font-weight: 800;
  letter-spacing: -.04em; color: var(--pf-accent); line-height: 1;
}
.pf-stat-l {
  margin-top: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--pf-muted); line-height: 1.5;
}

/* ============================================================
   KOMPETENSI
   ============================================================ */
.pf-skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.pf-skill {
  padding: 26px 24px; border-radius: var(--pf-radius);
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  transition: transform .22s var(--pf-ease), box-shadow .22s var(--pf-ease), border-color .22s var(--pf-ease);
}
.pf-skill:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--pf-accent-rgb),.35);
  box-shadow: var(--pf-shadow-lift);
}
.pf-skill-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 14px; margin-bottom: 18px;
  background: var(--pf-alice-soft); color: var(--pf-accent);
  transition: background .22s var(--pf-ease), color .22s var(--pf-ease);
}
.pf-skill:hover .pf-skill-ico { background: var(--pf-accent); color: #fff; }
.pf-skill h3 { font-size: 17px; }
.pf-skill p  { margin-top: 10px; font-size: 14px; color: var(--pf-ink-soft); line-height: 1.75; }

/* ============================================================
   RESUME
   ============================================================ */
.pf-resume { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: start; }
.pf-col-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--pf-accent); padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 1px solid var(--pf-line);
}

.pf-timeline { position: relative; padding-left: 28px; }
.pf-timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--pf-accent) 0%, var(--pf-alice) 100%);
}
.pf-tl-item { position: relative; padding-bottom: 30px; }
.pf-tl-item:last-child { padding-bottom: 0; }
.pf-tl-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--pf-surface); border: 2.5px solid var(--pf-accent);
}
.pf-tl-period {
  display: inline-block; padding: 3px 11px; border-radius: 999px;
  background: var(--pf-alice-soft); color: var(--pf-accent);
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.pf-tl-item h3 { margin-top: 10px; font-size: 17px; }
.pf-tl-org { margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--pf-muted); }
.pf-tl-desc { margin-top: 10px; font-size: 14px; color: var(--pf-ink-soft); }
.pf-tl-bullets { margin-top: 11px; display: grid; gap: 7px; }
.pf-tl-bullets li {
  position: relative; padding-left: 18px;
  font-size: 14px; color: var(--pf-ink-soft); line-height: 1.7;
}
.pf-tl-bullets li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--pf-alice);
}

.pf-more { margin-top: 4px; }
.pf-more[hidden] { display: none; }
.pf-morebtn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  padding: 9px 18px; border-radius: 999px;
  border: 1.5px solid var(--pf-line); background: var(--pf-surface);
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--pf-ink-soft);
  cursor: pointer; transition: border-color .18s var(--pf-ease), color .18s var(--pf-ease);
}
.pf-morebtn:hover { border-color: var(--pf-accent); color: var(--pf-accent); }
.pf-morebtn svg { transition: transform .22s var(--pf-ease); }
.pf-morebtn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* ============================================================
   MILESTONE
   ============================================================ */
.pf-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.pf-filter {
  padding: 9px 19px; border-radius: 999px;
  border: 1.5px solid var(--pf-line); background: var(--pf-surface);
  font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--pf-ink-soft);
  cursor: pointer; transition: all .18s var(--pf-ease);
}
.pf-filter:hover { border-color: var(--pf-accent); color: var(--pf-accent); }
.pf-filter.is-active {
  background: var(--pf-accent); border-color: var(--pf-accent); color: #fff;
  box-shadow: 0 6px 18px rgba(var(--pf-accent-rgb),.28);
}

.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }

.pf-card {
  display: flex; flex-direction: column;
  border-radius: var(--pf-radius); overflow: hidden;
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  transition: transform .24s var(--pf-ease), box-shadow .24s var(--pf-ease), border-color .24s var(--pf-ease);
}
.pf-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--pf-accent-rgb),.3);
  box-shadow: var(--pf-shadow-lift);
}
.pf-card[hidden] { display: none; }

.pf-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--pf-alice-soft); }
.pf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--pf-ease); }
.pf-card:hover .pf-card-media img { transform: scale(1.06); }
.pf-card-noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; color: var(--pf-steel, #79A1AD);
}

.pf-chip {
  position: absolute; top: 12px; left: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(26,43,48,.78); backdrop-filter: blur(6px);
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
}
.pf-zoom {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: zoom-in;
  background: linear-gradient(180deg, transparent 55%, rgba(16,28,32,.28) 100%);
  opacity: 0; transition: opacity .24s var(--pf-ease);
}
.pf-card:hover .pf-zoom, .pf-zoom:focus-visible { opacity: 1; }

.pf-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.pf-card-body h3 { font-size: 15.5px; line-height: 1.45; }
.pf-card-org { font-size: 13px; font-weight: 600; color: var(--pf-muted); }
.pf-card-desc { font-size: 13.5px; color: var(--pf-ink-soft); line-height: 1.65; }
.pf-card-link {
  display: inline-flex; align-items: center; gap: 7px; margin-top: auto; padding-top: 10px;
  font-size: 13px; font-weight: 700;
}
.pf-card-link:hover { text-decoration: none; gap: 10px; }
.pf-card-link svg { transition: transform .18s var(--pf-ease); }

.pf-empty {
  grid-column: 1 / -1; padding: 44px 20px; text-align: center;
  color: var(--pf-muted); font-size: 14px;
  border: 1px dashed var(--pf-line); border-radius: var(--pf-radius);
}

/* ── Lightbox ─────────────────────────────────────────────── */
.pf-lb {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(11,20,23,.92); backdrop-filter: blur(6px);
}
.pf-lb.is-open { display: flex; }
.pf-lb-fig { max-width: 1000px; width: 100%; margin: 0; text-align: center; }
.pf-lb-fig img {
  max-height: 74svh; width: auto; margin: 0 auto;
  border-radius: 12px; box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.pf-lb-cap { margin-top: 18px; color: #fff; }
.pf-lb-cap strong { display: block; font-size: 16px; font-weight: 700; }
.pf-lb-cap span   { display: block; margin-top: 5px; font-size: 13.5px; color: rgba(216,231,236,.65); }

.pf-lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; cursor: pointer;
  transition: background .18s var(--pf-ease);
}
.pf-lb-btn:hover { background: rgba(255,255,255,.24); }
.pf-lb-close { top: 18px; right: 18px; }
.pf-lb-prev  { left: 18px;  top: 50%; transform: translateY(-50%); }
.pf-lb-next  { right: 18px; top: 50%; transform: translateY(-50%) rotate(180deg); }

/* ============================================================
   KOLABORATOR
   ============================================================ */
.pf-collab-wrap { position: relative; }
.pf-collab {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr);
  gap: 20px; overflow-x: auto; padding: 4px 2px 18px;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--pf-alice) transparent;
}
.pf-collab::-webkit-scrollbar       { height: 6px; }
.pf-collab::-webkit-scrollbar-thumb { background: var(--pf-alice); border-radius: 4px; }

.pf-person {
  scroll-snap-align: start;
  padding: 30px 24px; text-align: center;
  border-radius: var(--pf-radius);
  background: var(--pf-surface); border: 1px solid var(--pf-line);
  transition: transform .22s var(--pf-ease), box-shadow .22s var(--pf-ease), border-color .22s var(--pf-ease);
}
.pf-person:hover {
  transform: translateY(-4px); text-decoration: none;
  border-color: rgba(var(--pf-accent-rgb),.3);
  box-shadow: var(--pf-shadow-lift);
}
.pf-person-photo {
  width: 122px; height: 122px; margin: 0 auto 18px;
  border-radius: 50%; overflow: hidden;
  border: 4px solid var(--pf-alice-soft);
  background: var(--pf-alice-soft);
}
.pf-person-photo img { width: 100%; height: 100%; object-fit: cover; }
.pf-person h3 { font-size: 16.5px; color: var(--pf-ink); }
.pf-person p  { margin-top: 7px; font-size: 13px; color: var(--pf-muted); line-height: 1.6; }

.pf-collab-nav { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.pf-collab-count {
  display: none; align-items: center; justify-content: center;
  min-width: 62px; font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--pf-muted);
}
.pf-collab-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--pf-line); background: var(--pf-surface);
  color: var(--pf-ink-soft); cursor: pointer;
  transition: border-color .18s var(--pf-ease), color .18s var(--pf-ease);
}
.pf-collab-btn:hover { border-color: var(--pf-accent); color: var(--pf-accent); }
.pf-collab-btn:disabled { opacity: .35; cursor: default; }
.pf-collab-btn--prev svg { transform: rotate(180deg); }

/* ============================================================
   KONTAK
   ============================================================ */
.pf-contact {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: clamp(18px, 2.4vw, 28px);
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(90% 120% at 88% 8%, rgba(var(--pf-accent-rgb),.68) 0%, transparent 62%),
    linear-gradient(140deg, #22454e 0%, var(--pf-ink) 70%);
}
.pf-contact .pf-eyebrow { color: rgba(216,231,236,.75); }
.pf-contact .pf-eyebrow::before { background: rgba(216,231,236,.55); }
.pf-contact h2 { font-size: clamp(25px, 3.2vw, 36px); }
.pf-contact .pf-lede { color: rgba(216,231,236,.78); }

.pf-contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px; margin-top: 32px;
}
.pf-contact-card {
  display: flex; align-items: center; gap: 14px;
  padding: 17px 19px; border-radius: 14px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  transition: background .18s var(--pf-ease), border-color .18s var(--pf-ease), transform .18s var(--pf-ease);
}
.pf-contact-card:hover {
  background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.26);
  transform: translateY(-2px); text-decoration: none;
}
.pf-contact-card .pf-fact-ico { color: rgba(216,231,236,.8); }
.pf-contact-card .pf-fact-k   { color: rgba(216,231,236,.55); }
.pf-contact-card .pf-fact-v   { color: #fff; font-size: 14px; }

.pf-contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.pf-footer {
  padding: 26px clamp(20px, 4.5vw, 72px) 34px;
  background: var(--pf-ink); color: rgba(255,255,255,.42);
  font-size: 12.5px;
}
.pf-footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  align-items: center; justify-content: space-between;
}
.pf-footer a { color: rgba(216,231,236,.72); font-weight: 600; }
.pf-footer-brand { display: inline-flex; align-items: center; gap: 9px; }
.pf-footer-brand img { height: 20px; width: auto; filter: brightness(0) invert(1); opacity: .55; }

.pf-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--pf-accent); color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--pf-accent-rgb),.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s var(--pf-ease), transform .22s var(--pf-ease), visibility .22s;
}
.pf-top.is-on { opacity: 1; visibility: visible; transform: translateY(0); }
.pf-top svg { transform: rotate(180deg); }

/* ============================================================
   ANIMASI MASUK
   ============================================================ */
.pf-reveal { opacity: 0; transform: translateY(22px); }
.pf-reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .6s var(--pf-ease), transform .6s var(--pf-ease);
}

/* ============================================================
   RESPONSIF
   ============================================================ */
@media (max-width: 1080px) {
  .pf-rail {
    transform: translateX(-100%);
    transition: transform .3s var(--pf-ease);
    width: min(300px, 84vw);
    box-shadow: 12px 0 40px rgba(0,0,0,.28);
  }
  .pf-rail.is-open { transform: none; }
  .pf-main   { margin-left: 0; }
  .pf-topbar { display: flex; }
  .pf-hero   { min-height: calc(100svh - 56px); }
}

@media (max-width: 860px) {
  .pf-about { grid-template-columns: 1fr; }
  .pf-portrait { max-width: 320px; }
  .pf-portrait::before { inset: 14px -12px -12px 14px; }
  .pf-lb-prev, .pf-lb-next { top: auto; bottom: 14px; transform: none; }
  .pf-lb-next { transform: rotate(180deg); }
  .pf-lb-prev { left: calc(50% - 56px); }
  .pf-lb-next { right: calc(50% - 56px); }
}

@media (max-width: 560px) {
  .pf-section { padding-left: 18px; padding-right: 18px; }
  .pf-hero    { padding-left: 18px; padding-right: 18px; }
  .pf-hero-actions .pf-btn { flex: 1 1 100%; justify-content: center; }
  /* Satu kartu memenuhi lebar layar; scroll-snap membuatnya bergeser satu per satu */
  .pf-collab  { grid-auto-columns: 100%; gap: 14px; }
  .pf-person  { padding: 32px 22px; }
  .pf-person-photo { width: 136px; height: 136px; }
  .pf-collab-nav   { justify-content: center; gap: 14px; }
  .pf-collab-count { display: inline-flex; }
  .pf-collab-btn   { width: 44px; height: 44px; }
  .pf-top     { right: 14px; bottom: 14px; }
}

@media print {
  .pf-rail, .pf-topbar, .pf-top, .pf-filters, .pf-scrollcue, .pf-lb { display: none !important; }
  .pf-main { margin-left: 0; }
  .pf-hero { min-height: auto; color: var(--pf-ink); }
  .pf-hero::after, .pf-hero-bg { display: none; }
  .pf-card, .pf-skill { break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  .pf *, .pf *::before, .pf *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .pf-reveal { opacity: 1; transform: none; }
}
