/* ============================================================
   TCOMM — leadership.css
   Kepimpinan / Leadership page. Sections namespaced (.ld-*) so
   each maps cleanly to a WordPress template-part. Tokens + atoms
   come from base.css; contact (.s9) + footer (.ft) are reused
   from sections.css. Person cards are repeatable patterns —
   they read the same whether there are 3 or 12 people, and they
   degrade to a monogram when no photo is supplied.
   ============================================================ */

.ld-page { background: var(--bg); }

/* nav over the dark hero: white logo while not collapsed --------- */
.ld-page .site-nav:not(.scrolled) .brand-logo {
  filter: brightness(0) invert(1) drop-shadow(0 1px 5px rgba(0,0,0,0.45));
}
/* nav collapsed (scrolled) sits over LIGHT sections → keep dark */
.ld-page .site-nav.scrolled .brand-logo {
  filter: drop-shadow(0 2px 8px rgba(20,40,30,0.16));
}
.ld-page .site-nav.scrolled .nav-burger .bars i { background: var(--ink-dark); filter: none; }
.nav-links a.is-active { color: #fff; }
.site-nav.scrolled .nav-links a.is-active { color: var(--green-deep); }
.drawer-links a.is-active { color: var(--green-deep); }

/* ============================================================
   HERO — dark scene, org-hierarchy node motif
   ============================================================ */
.ld-hero {
  position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(128% 116% at 72% 40%, var(--scene-2) 0%, var(--scene-1) 54%, var(--scene-0) 100%);
}
.ld-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* faint dot-grid ground */
.ld-hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(120,210,160,0.12) 1px, transparent 1.6px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(120% 90% at 78% 42%, #000 0%, transparent 66%);
          mask: radial-gradient(120% 90% at 78% 42%, #000 0%, transparent 66%);
  opacity: 0.5;
}
/* governance hierarchy diagram — one parent, branching children */
.ld-tree { position: absolute; right: 8%; top: 50%; transform: translateY(-50%); width: min(40vw, 460px); height: 420px; }
.ld-tree svg { width: 100%; height: 100%; overflow: visible; }
.ld-tree .lk { stroke: rgba(86,224,138,0.42); stroke-width: 1.2; fill: none; }
.ld-tree .nd { fill: var(--scene-1); stroke: rgba(86,224,138,0.55); stroke-width: 1.4; }
.ld-tree .nd-top { fill: rgba(86,224,138,0.16); stroke: var(--green); }
.ld-tree .pulse { fill: var(--green-bright); }
@media (prefers-reduced-motion: no-preference) {
  .ld-tree .pulse { animation: ld-blink 2.4s steps(1) infinite; }
  .ld-tree .pulse:nth-of-type(2) { animation-delay: .5s; }
  .ld-tree .pulse:nth-of-type(3) { animation-delay: 1s; }
  .ld-tree .pulse:nth-of-type(4) { animation-delay: 1.5s; }
}
@keyframes ld-blink { 0%,100% { opacity: .25; } 50% { opacity: 1; } }

.ld-hero-grade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(20,26,24,0.84) 0%, rgba(20,26,24,0.5) 36%, rgba(22,28,25,0.08) 64%, transparent 80%),
    linear-gradient(to top, rgba(20,26,24,0.6) 0%, transparent 38%);
}
.ld-hero-inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: clamp(132px, 20vh, 200px); padding-bottom: clamp(80px, 12vh, 130px);
}
.ld-breadcrumb {
  display: flex; align-items: center; gap: 9px; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--grey-dim);
}
.ld-breadcrumb a { color: var(--grey); text-decoration: none; transition: color .2s; }
.ld-breadcrumb a:hover { color: var(--green); }
.ld-breadcrumb .sep { opacity: 0.6; }
.ld-breadcrumb .here { color: var(--green); }
.ld-hero .eyebrow { margin-bottom: 22px; }
.ld-hero h1 { font-size: clamp(38px, 6vw, 82px); line-height: 1.03; color: var(--ink); max-width: 16ch; }
.ld-hero h1 .accent { color: var(--green); }
.ld-hero .subhead { margin-top: 24px; max-width: 54ch; font-size: clamp(15px, 1.5vw, 18px); line-height: 1.62; color: var(--grey); }
.ld-hero-meta { margin-top: clamp(28px, 5vh, 42px); display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ld-cap-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-bright); border: 1px solid var(--hairline); border-radius: 100px;
  padding: 9px 16px; background: rgba(86,224,138,0.06);
}
.ld-cap-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: blink 1.6s steps(1) infinite; }

/* ============================================================
   Shared person-card primitives (used by board + key personnel)
   ============================================================ */
.person-photo {
  position: relative; flex: 0 0 auto; border-radius: 50%; overflow: hidden;
  background:
    radial-gradient(120% 120% at 50% 18%, rgba(86,224,138,0.16), transparent 62%),
    var(--bg-light-2);
  display: grid; place-items: center;
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; }
.person-photo .mono {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  color: var(--green-deep); line-height: 1;
}
/* hairline ring */
.person-photo::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(31,138,82,0.22);
}

/* ============================================================
   LEMBAGA PENGARAH — board of directors (light)
   ============================================================ */
.ld-board { background: var(--bg-light); padding: var(--section-y) 0; }
.ld-board .head { max-width: 52ch; }
.ld-board .head h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.04; color: var(--ink-dark); margin-top: 14px; }
.ld-board .head .note {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-deep); border: 1px solid var(--hair-dark); border-radius: 100px;
  padding: 9px 16px; background: var(--surface-3);
}
.ld-board .head .note::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green-deep); }

/* Chairman — featured wide card */
.ld-chair {
  margin-top: clamp(36px, 5vh, 56px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(26px, 4vw, 56px);
  padding: clamp(26px, 3.4vw, 44px); border-radius: 22px;
  background: var(--surface-3); border: 1px solid var(--hair-dark);
  box-shadow: 0 40px 90px -54px rgba(30,60,45,0.34);
}
.ld-chair .person-photo { width: clamp(132px, 16vw, 188px); height: clamp(132px, 16vw, 188px); }
.ld-chair .person-photo .mono { font-size: clamp(40px, 5vw, 60px); }
.ld-chair .rank {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--green-deep); display: inline-flex; align-items: center; gap: 10px;
}
.ld-chair .rank::before { content: ""; width: 22px; height: 1px; background: var(--green-deep); }
.ld-chair h3 { margin-top: 14px; font-size: clamp(24px, 3vw, 38px); line-height: 1.08; color: var(--ink-dark); letter-spacing: -0.01em; }
.ld-chair .jaw { margin-top: 10px; font-size: clamp(15px, 1.3vw, 18px); color: var(--grey-dark); }
.ld-chair .struct { margin-top: 16px; font-size: 14px; line-height: 1.6; color: var(--grey-dark); max-width: 52ch; }
.ld-chair .struct b { color: var(--ink-dark); font-weight: 600; }

/* Directors — repeatable grid */
.ld-dir-grid {
  margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.ld-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(26px, 2.6vw, 34px) 22px; border-radius: 18px;
  background: var(--surface-3); border: 1px solid var(--hair-dark);
  box-shadow: 0 26px 60px -50px rgba(30,60,45,0.3);
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.ld-card:hover { transform: translateY(-4px); border-color: rgba(31,138,82,0.3); box-shadow: 0 40px 80px -46px rgba(30,60,45,0.4); }
.ld-card .person-photo { width: 110px; height: 110px; }
.ld-card .person-photo .mono { font-size: 34px; }
.ld-card h3 { margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.22; color: var(--ink-dark); letter-spacing: -0.01em; text-wrap: balance; }
.ld-card .jaw {
  margin-top: 12px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--green-deep); display: inline-flex; align-items: center; gap: 8px;
}
.ld-card .jaw::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green-deep); }

/* ============================================================
   PENGURUSAN UTAMA — key personnel (dark scene, bio cards)
   ============================================================ */
.ld-team { position: relative; background: var(--scene-0); padding: var(--section-y) 0; overflow: hidden; }
.ld-team::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(64% 52% at 84% 6%, rgba(86,224,138,0.1), transparent 60%);
}
.ld-team .container { position: relative; z-index: 1; }
.ld-team .head { max-width: 46ch; }
.ld-team .head h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.05; color: var(--ink); margin-top: 14px; }
.ld-team .head .sub { margin-top: 18px; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.7; color: var(--grey); max-width: 50ch; }

/* CEO — featured horizontal card */
.ld-ceo {
  margin-top: clamp(40px, 6vh, 60px);
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(28px, 4vw, 60px);
  padding: clamp(28px, 3.4vw, 46px); border-radius: 24px;
  background: linear-gradient(180deg, var(--scene-2), var(--scene-1));
  border: 1px solid var(--hairline);
  box-shadow: 0 50px 110px -56px rgba(0,0,0,0.7);
}
.ld-ceo .person-photo {
  width: clamp(150px, 18vw, 210px); height: clamp(150px, 18vw, 210px);
  background: radial-gradient(120% 120% at 50% 16%, rgba(86,224,138,0.22), transparent 60%), var(--scene-1);
}
.ld-ceo .person-photo::after { box-shadow: inset 0 0 0 1px rgba(150,235,185,0.28); }
.ld-ceo .rank {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--green); display: inline-flex; align-items: center; gap: 10px;
}
.ld-ceo .rank::before { content: ""; width: 24px; height: 1px; background: var(--green); }
.ld-ceo h3 { margin-top: 14px; font-size: clamp(24px, 3vw, 40px); line-height: 1.06; color: var(--ink); letter-spacing: -0.02em; }
.ld-bio { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 0; }
.ld-bio .row { display: flex; flex-direction: column; gap: 5px; padding: 14px 26px 14px 0; border-top: 1px solid var(--hairline); }
.ld-bio .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.ld-bio .v { font-size: 15px; line-height: 1.45; color: var(--ink); }

/* Assistant managers — two bio cards */
.ld-mgr-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ld-mgr {
  display: flex; align-items: flex-start; gap: 22px;
  padding: clamp(24px, 2.6vw, 32px); border-radius: 20px;
  background: var(--scene-1); border: 1px solid var(--hairline);
  transition: transform .25s var(--ease), border-color .25s;
}
.ld-mgr:hover { transform: translateY(-3px); border-color: rgba(86,224,138,0.3); }
.ld-mgr .person-photo {
  width: 84px; height: 84px;
  background: radial-gradient(120% 120% at 50% 16%, rgba(86,224,138,0.2), transparent 60%), var(--scene-2);
}
.ld-mgr .person-photo .mono { font-size: 26px; color: var(--green); }
.ld-mgr .person-photo::after { box-shadow: inset 0 0 0 1px rgba(150,235,185,0.24); }
.ld-mgr .m-body { min-width: 0; }
.ld-mgr h3 { font-size: clamp(17px, 1.6vw, 21px); line-height: 1.18; color: var(--ink); letter-spacing: -0.01em; }
.ld-mgr .rank {
  margin-top: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--green);
}
.ld-mgr .ld-bio { display: flex; flex-direction: column; margin-top: 16px; }
.ld-mgr .ld-bio .row { padding: 11px 0; }
.ld-mgr .ld-bio .row:first-child { border-top: 0; padding-top: 0; }

/* ============================================================
   CARTA ORGANISASI — native branded diagram + official image
   ============================================================ */
.ld-org { background: var(--bg-light-2); padding: var(--section-y) 0; }
.ld-org .head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ld-org .head .lede { max-width: 46ch; }
.ld-org .head h2 { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.05; color: var(--ink-dark); margin-top: 14px; }
.ld-org .head .sub { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--grey-dark); }

/* diagram */
.ld-chart { margin-top: clamp(40px, 6vh, 60px); display: flex; flex-direction: column; align-items: center; }
.org-node {
  position: relative; text-align: center; border-radius: 14px;
  padding: 16px 24px; background: var(--surface-3); border: 1px solid var(--hair-dark);
  box-shadow: 0 18px 40px -32px rgba(30,60,45,0.36);
}
.org-node .role { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--green-deep); }
.org-node .name { margin-top: 6px; font-family: var(--font-display); font-weight: 600; font-size: clamp(14px, 1.2vw, 16px); line-height: 1.2; color: var(--ink-dark); letter-spacing: -0.01em; }
.org-node.is-top { background: linear-gradient(180deg, rgba(31,138,82,0.12), rgba(31,138,82,0.04)); border-color: rgba(31,138,82,0.34); }
.org-node.is-top .role { color: var(--green-deep); }
.org-node.is-top .name { color: var(--green-deep); }
.org-node.is-ceo { border-color: rgba(31,138,82,0.42); box-shadow: 0 26px 56px -36px rgba(30,90,55,0.5); }

.org-link { width: 1px; height: 30px; background: var(--hair-dark); flex: 0 0 auto; }
.org-link.tall { height: 38px; }

/* branch row: 3 divisions with a top bus */
.org-branches { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 40px); padding-top: 38px; }
.org-branches::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 19px; background: var(--hair-dark); }
.org-branches::after { content: ""; position: absolute; top: 19px; left: 16.66%; right: 16.66%; height: 1px; background: var(--hair-dark); }
.org-col { position: relative; display: flex; flex-direction: column; align-items: center; }
.org-col::before { content: ""; position: absolute; top: -19px; left: 50%; width: 1px; height: 19px; background: var(--hair-dark); }
.org-col .org-node.is-div { background: var(--bg-light); border-color: rgba(31,138,82,0.26); }
.org-col .org-node.is-div .role { color: var(--grey-dark); }
.org-col .org-node.is-div .name { color: var(--ink-dark); font-size: clamp(13px, 1.1vw, 15px); }
.org-col .lead { width: 100%; }
.org-col .lead .org-node { width: 100%; }

.ld-org-actions { margin-top: clamp(34px, 5vh, 48px); display: flex; justify-content: center; }
.ld-org-view {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--hair-dark); background: var(--surface-3);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-dark);
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .2s var(--ease);
}
.ld-org-view svg { width: 15px; height: 15px; }
.ld-org-view:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; transform: translateY(-2px); }

/* lightbox */
.ld-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px);
  background: rgba(16, 22, 19, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ld-lightbox.open { display: flex; }
.ld-lightbox .lb-inner { position: relative; max-width: 1100px; width: 100%; max-height: 88vh; overflow: auto;
  border-radius: 16px; background: #fff; box-shadow: 0 60px 140px -50px rgba(0,0,0,0.7); }
.ld-lightbox img { display: block; width: 100%; height: auto; }
.ld-lightbox .lb-close {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(16,22,19,0.82); color: #fff; font-size: 20px; line-height: 1;
  transition: background .2s;
}
.ld-lightbox .lb-close:hover { background: var(--green-deep); }
.ld-lightbox .lb-cap {
  position: absolute; left: 0; bottom: 0; padding: 10px 16px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey-dark); background: rgba(255,255,255,0.9);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .ld-tree { opacity: 0.5; right: -6%; width: 52vw; }
  .ld-bio { grid-template-columns: 1fr; }
  .ld-mgr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ld-hero h1 { font-size: clamp(32px, 9vw, 50px); }
  .ld-tree { display: none; }
  .ld-chair { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .ld-chair .rank { justify-content: center; }
  .ld-chair .struct { margin-left: auto; margin-right: auto; }
  .ld-ceo { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 24px; }
  .ld-ceo .rank { justify-content: center; }
  .ld-mgr { flex-direction: column; align-items: center; text-align: center; }
  .ld-mgr .ld-bio { width: 100%; }
  .org-branches { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .org-branches::after { display: none; }
  .org-branches::before { height: 15px; }
  .org-col::before { top: -15px; height: 15px; }
  .org-col:not(:first-child)::after { content: ""; position: absolute; top: -30px; left: 50%; width: 1px; height: 15px; background: var(--hair-dark); }
}
