/* ==========================================================================
   UKM Kewirausahaan UNU Purwokerto — Landing Page
   Kabinet Akselerasi 2026/2027
   --------------------------------------------------------------------------
   1.  Design Tokens
   2.  Reset & Base
   3.  Layout Helpers
   4.  Buttons & Shared Components
   5.  Header & Navigation
   6.  Hero
   7.  Marquee
   8.  Reveal on Scroll
   9.  Tentang / About
   10. Program
   11. Danara
   12. Pengurus
   13. Galeri + Lightbox
   14. Gabung / Join + FAQ
   15. CTA Band & Footer
   16. Floating WhatsApp & Back-to-top
   17. Responsive
   18. Motion Preferences & Print
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #fbf7ef;
  --bg-alt: #f3ebdb;
  --surface: #ffffff;
  --ink: #15241c;
  --ink-soft: #43554a;
  --line: #e4dcc9;
  --green: #0b6b3a;
  --green-deep: #063d24;
  --green-bright: #2fa84f;
  --gold: #f2b01e;
  --gold-deep: #c78f06;
  --gold-soft: #fdefc4;
  --red: #d92323;
  --dark-band: #0a0a0a;
  --dark-band-ink: #f5f2ea;
  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(6, 61, 36, 0.28);
  --shadow-lg: 0 30px 60px -25px rgba(6, 61, 36, 0.4);
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b120e;
    --bg-alt: #101a14;
    --surface: #152219;
    --ink: #edf3ec;
    --ink-soft: #a9bbae;
    --line: #26362b;
    --green: #3bb273;
    --green-deep: #0e2a1c;
    --green-bright: #4cc97b;
    --gold: #f2b01e;
    --gold-deep: #f2b01e;
    --gold-soft: #3a2f10;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 30px 60px -25px rgba(0, 0, 0, 0.85);
  }
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Anchor targets stop flush beneath the fixed header. */
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Stop scroll anchoring from fighting the fixed header on late image loads. */
  overflow-anchor: none;
}

/* Locked while the mobile menu / lightbox is open */
body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--gold);
  color: #221a02;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--gold);
  color: #221a02;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 0;
}

/* ---------- 3. Layout Helpers ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

section {
  padding: 84px 0;
}

.sec-head {
  max-width: 680px;
  margin-bottom: 44px;
}

.sec-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.sec-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

.sec-head h2 {
  font-size: clamp(28px, 4.4vw, 42px);
  margin-bottom: 12px;
}

.sec-head p {
  color: var(--ink-soft);
  font-size: 17.5px;
}

/* ---------- 4. Buttons & Shared Components ---------- */
/* Avatars: the initials sit underneath, a photo (if any) covers them.
   Remove the <img> and the initials are shown again. */
.ava {
  position: relative;
  overflow: hidden;
}

.ava-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 0;
  font-family: inherit;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background 0.18s ease, color 0.18s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  flex: none;
  transition: transform 0.22s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-gold {
  background: var(--gold);
  color: #221a02;
  box-shadow: 0 10px 24px -10px rgba(242, 176, 30, 0.75);
}

.btn-gold:hover {
  background: #ffbe2e;
  box-shadow: 0 14px 30px -10px rgba(242, 176, 30, 0.9);
}

.btn-green {
  background: var(--green);
  color: #fff;
}

.btn-green:hover {
  background: var(--green-bright);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--green) 80%, transparent);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
}

.btn-nav {
  padding: 10px 20px;
  font-size: 14.5px;
  margin-left: 10px;
}

/* ---------- 5. Header & Navigation ---------- */
#header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

#header.scrolled {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -12px rgba(6, 61, 36, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  transition: color 0.25s ease;
}

#header.scrolled .brand {
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  flex: none;
}

.brand .b-name {
  font-weight: 800;
  font-size: 16.5px;
  line-height: 1.2;
}

.brand .b-sub {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 9px 13px;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

#header.scrolled .nav-links a {
  color: var(--ink);
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.16);
}

#header.scrolled .nav-links a:hover {
  background: color-mix(in srgb, var(--green) 12%, transparent);
}

/* Active section indicator (driven by the scroll-spy in script.js) */
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

#header.scrolled .nav-links a.active {
  color: var(--green);
}

#header.scrolled .nav-links a.active::after {
  background: var(--green);
}

.burger {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.2s, border-color 0.2s;
}

#header.scrolled .burger {
  background: transparent;
  border-color: var(--line);
}

.burger svg {
  stroke: #fff;
  transition: transform 0.28s var(--ease);
}

#header.scrolled .burger svg {
  stroke: var(--ink);
}

/* Burger -> X animation while the menu is open */
.burger[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: calc(var(--header-h) + 10px);
  left: 12px;
  right: 12px;
  z-index: 59;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
  max-height: calc(100vh - var(--header-h) - 28px);
  overflow-y: auto;
}

.mobile-menu.open {
  display: block;
  opacity: 1;
  transform: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.mobile-menu a:hover,
.mobile-menu a:focus-visible {
  background: var(--bg-alt);
}

.mobile-menu .btn {
  width: 100%;
  justify-content: center;
  margin-top: 6px;
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  /* LQIP: a 20x20 blur of the hero, inlined, so the section paints
     instantly while the full image is still downloading. */
  background-color: var(--green-deep);
  background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDABIMDRANCxIQDhAUExIVGywdGxgYGzYnKSAsQDlEQz85Pj1HUGZXR0thTT0+WXlaYWltcnNyRVV9hnxvhWZwcm7/2wBDARMUFBsXGzQdHTRuST5Jbm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm5ubm7/wAARCAAUABQDASIAAhEBAxEB/8QAGQABAAMBAQAAAAAAAAAAAAAAAAMEBgIF/8QAIRAAAgICAgEFAAAAAAAAAAAAAAECAxESBAUTITFBUVL/xAAWAQEBAQAAAAAAAAAAAAAAAAADAQL/xAAaEQACAgMAAAAAAAAAAAAAAAAAAQIDERMx/9oADAMBAAIRAxEAPwCzwLvBLTOYv5PSnjGzfoZGrlTpSknlFh9zO2On0JCxxWCXUpvKZo9o/pAy0ubft7sG9wekgqSdLyc9fBStnlAAy4O+ktkmptIAEIf/2Q==");
  background-size: cover;
  background-position: center 40%;
}

/* <picture> is a wrapper only — it must not create a layout box */
picture {
  display: contents;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 32, 20, 0.55) 0%,
    rgba(4, 32, 20, 0.25) 34%,
    rgba(4, 32, 20, 0.82) 78%,
    rgba(3, 26, 16, 0.96) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 150px 22px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(242, 176, 30, 0.55);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(242, 176, 30, 0);
  }
}

.hero h1 {
  font-size: clamp(40px, 7.2vw, 76px);
  max-width: 13ch;
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--gold);
}

.hero p.lead {
  font-size: clamp(17px, 2.4vw, 21px);
  max-width: 56ch;
  color: #eaf3ec;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-stats .stat {
  background: rgba(4, 32, 20, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 22px 20px;
}

.hero-stats .num {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-stats .num em {
  font-style: normal;
  color: var(--gold);
}

.hero-stats .lbl {
  font-size: 13.5px;
  color: #cfe3d3;
  margin-top: 7px;
  font-weight: 600;
}

/* ---------- 7. Marquee ---------- */
.marquee {
  background: var(--gold);
  color: #221a02;
  overflow: hidden;
  padding: 13px 0;
  border-block: 3px solid #221a02;
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: scrollX 26s linear infinite;
  will-change: transform;
}

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

.marquee span {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 18px;
  white-space: nowrap;
}

.marquee i {
  font-style: normal;
  padding: 0 2px;
}

@keyframes scrollX {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- 8. Reveal on Scroll ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rv.in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. Tentang / About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 54px;
  align-items: center;
}

.about-photo {
  position: relative;
}

.about-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.about-photo .float-card {
  position: absolute;
  right: -14px;
  bottom: -22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 280px;
}

.about-photo .float-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  box-shadow: none;
  border-radius: 0;
  aspect-ratio: auto;
}

.about-photo .float-card b {
  display: block;
  font-size: 14.5px;
  line-height: 1.3;
}

.about-photo .float-card small {
  color: var(--ink-soft);
  font-size: 12.5px;
}

.about-copy h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
}

.about-copy p {
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.about-copy p b {
  color: var(--ink);
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 26px;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  transition: transform 0.22s var(--ease), border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--green) 40%, var(--line));
  box-shadow: var(--shadow);
}

.pillar .ic {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
}

.pillar h3 {
  font-size: 16px;
  margin-bottom: 3px;
}

.pillar p {
  font-size: 14px;
  margin: 0;
}

/* ---------- 10. Program ---------- */
.prog-section {
  background: var(--bg-alt);
}

.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prog {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.prog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.prog:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.prog:hover::before {
  transform: scaleX(1);
}

.prog .ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  transition: transform 0.25s var(--ease);
}

.prog:hover .ic {
  transform: scale(1.07) rotate(-4deg);
}

.prog h3 {
  font-size: 19px;
  margin-bottom: 8px;
}

.prog p {
  color: var(--ink-soft);
  font-size: 15px;
}

.prog .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 4px 11px;
  border-radius: 999px;
}

.ic svg {
  width: 26px;
  height: 26px;
}

/* ---------- 11. Danara ---------- */
.danara {
  background: var(--dark-band);
  color: var(--dark-band-ink);
  position: relative;
  overflow: hidden;
}

.danara::before {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 176, 30, 0.16), transparent 65%);
}

.danara-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.danara-logo {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}

.danara-logo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.danara .sec-tag {
  background: rgba(242, 176, 30, 0.12);
  border-color: rgba(242, 176, 30, 0.4);
  color: var(--gold);
}

.danara h2 {
  font-size: clamp(28px, 4.4vw, 44px);
  margin-bottom: 16px;
}

.danara h2 .hl {
  color: var(--gold);
}

.danara .lead {
  color: #cfc9ba;
  font-size: 17.5px;
  max-width: 58ch;
  margin-bottom: 30px;
}

.danara-feats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 34px;
}

.dfeat {
  border: 1px solid #2c2c2c;
  border-radius: 14px;
  padding: 20px;
  background: #111;
  transition: transform 0.22s var(--ease), border-color 0.22s ease;
}

.dfeat:hover {
  transform: translateY(-4px);
  border-color: rgba(242, 176, 30, 0.5);
}

.dfeat .bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 26px;
  margin-bottom: 14px;
}

.dfeat .bars i {
  display: block;
  width: 7px;
  border-radius: 3px;
  background: var(--gold);
}

.dfeat .bars i:nth-child(1) {
  height: 10px;
}
.dfeat .bars i:nth-child(2) {
  height: 16px;
  background: #fff;
}
.dfeat .bars i:nth-child(3) {
  height: 21px;
  background: var(--red);
}
.dfeat .bars i:nth-child(4) {
  height: 26px;
}

.dfeat h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
  color: #fff;
}

.dfeat p {
  font-size: 14px;
  color: #b9b3a4;
}

.danara .person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.danara .person .ava {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #221a02;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  flex: none;
}

.danara .person b {
  display: block;
  color: #fff;
}

.danara .person small {
  color: #b9b3a4;
}

/* ---------- 12. Pengurus (bagan struktur organisasi) ---------- */
.filter-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.chip {
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

/* ---------- 12a. Kerangka bagan ---------- */
.org {
  --org-line: color-mix(in srgb, var(--ink) 22%, transparent);
  --org-gap: 20px;
  --org-vgap: 34px;
  --org-blue: #1565c0;
  --org-purple: #7b1fa2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Unit yang tidak cocok dengan filter diredupkan, bukan dihapus, supaya
   bentuk bagan tetap utuh saat difilter. */
.org-unit {
  transition: opacity 0.35s ease, filter 0.35s ease;
}

.org-unit.is-dim {
  opacity: 0.28;
  filter: grayscale(0.85);
}

/* ---------- 12b. Node utama: Pembina & CEO ---------- */
.org-node {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 470px;
  padding: 16px 22px;
  border-radius: var(--radius);
  border: 2px solid;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.org-node .org-ava {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 21px;
  color: #fff;
  background: var(--green);
  flex: none;
}

.org-txt {
  min-width: 0;
}

.org-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.org-node h3 {
  font-size: 18.5px;
  margin: 0;
  line-height: 1.25;
}

.org-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 5px;
  line-height: 1.45;
}

.org-node--pembina {
  background: color-mix(in srgb, var(--green) 11%, var(--surface));
  border-color: color-mix(in srgb, var(--green) 42%, var(--line));
}

.org-node--pembina .org-ava {
  background: var(--gold);
  color: #221a02;
}

.org-node--pembina .org-role {
  color: var(--green);
}

.org-node--ceo {
  background: color-mix(in srgb, var(--gold) 14%, var(--surface));
  border-color: color-mix(in srgb, var(--gold) 50%, var(--line));
}

.org-node--ceo .org-ava {
  background: var(--gold);
  color: #221a02;
}

.org-node--ceo .org-role {
  color: var(--gold-deep);
}

/* Garis vertikal penghubung dua node */
.org-stem {
  width: 2px;
  height: var(--org-vgap);
  flex: none;
  background: var(--org-line);
}

/* ---------- 12c. Tiga divisi ---------- */
.org-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--org-gap);
  width: 100%;
  padding-top: var(--org-vgap);
}

/* Garis horizontal yang membagi CEO ke ketiga divisi */
.org-bus {
  position: absolute;
  top: 0;
  left: calc((100% - 2 * var(--org-gap)) / 6);
  right: calc((100% - 2 * var(--org-gap)) / 6);
  height: 2px;
  background: var(--org-line);
}

.org-branch {
  position: relative;
  border: 1.5px solid color-mix(in srgb, var(--org-blue) 32%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--org-blue) 7%, var(--surface));
}

/* Tiang dari garis horizontal turun ke kotak divisi */
.org-branch::before {
  content: "";
  position: absolute;
  top: calc(-1 * var(--org-vgap));
  left: 50%;
  width: 2px;
  height: var(--org-vgap);
  background: var(--org-line);
}

.org-branch-head {
  padding: 11px 14px;
  text-align: center;
  background: color-mix(in srgb, var(--org-blue) 16%, var(--surface));
  border-bottom: 1.5px solid color-mix(in srgb, var(--org-blue) 32%, var(--line));
  border-radius: calc(var(--radius) - 1.5px) calc(var(--radius) - 1.5px) 0 0;
}

.org-branch-head h3 {
  font-size: 15.5px;
  margin: 0;
  color: color-mix(in srgb, var(--org-blue) 82%, var(--ink));
}

.org-branch-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

/* ---------- 12d. Kartu orang ---------- */
.member {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 11px 13px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.22s var(--ease), box-shadow 0.22s ease;
}

.member:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.member:hover .ava-photo {
  transform: scale(1.06);
}

.ava-photo {
  transition: transform 0.4s var(--ease);
}

.member .ava {
  width: 52px;
  height: 52px;
  margin: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
  color: #fff;
  background: var(--green);
  flex: none;
}

.member h4 {
  font-size: 15px;
  margin: 0 0 2px;
  line-height: 1.25;
}

.member .role {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.member .div {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 3px;
  line-height: 1.35;
}

/* Kepala unit: diberi aksen emas, staff dibiarkan polos */
.member--lead {
  border-color: color-mix(in srgb, var(--gold) 55%, var(--line));
  box-shadow: 0 8px 20px -14px rgba(6, 61, 36, 0.55);
}

.member--lead .role {
  color: var(--gold-deep);
}

.member--lead .ava {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 70%, transparent);
}

.member[data-tone="gold"] .ava {
  background: var(--gold);
  color: #221a02;
}

.member[data-tone="red"] .ava {
  background: var(--red);
}

.member[data-tone="deep"] .ava {
  background: var(--green-deep);
}

/* ---------- 12e. Mitra Danara (semi-otonom) ---------- */
.org-partner {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 24px 0 16px;
}

/* Garis putus-putus ke atas, menuju pohon organisasi */
.org-partner::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: 22px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(
    to bottom,
    var(--org-line) 0 6px,
    transparent 6px 12px
  );
}

.org-partner-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  padding: 10px 22px;
  border: 2px dashed color-mix(in srgb, var(--org-purple) 42%, var(--line));
  border-radius: 999px;
  background: var(--surface);
}

.org-danara {
  width: 100%;
  border: 2px dashed color-mix(in srgb, var(--org-purple) 45%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--org-purple) 6%, var(--surface));
  padding-bottom: 16px;
}

.org-danara-head {
  text-align: center;
  padding: 14px 16px 12px;
  border-bottom: 2px dashed color-mix(in srgb, var(--org-purple) 45%, var(--line));
}

.org-danara-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--org-purple) 80%, var(--ink));
}

.org-danara-head h3 {
  font-size: 21px;
  margin: 4px 0 0;
}

.org-danara-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--org-gap);
  row-gap: 0;
  padding: 18px 18px 0;
}

.org-danara-lead {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 430px);
}

.org-danara-bus {
  grid-column: 1 / -1;
  position: relative;
  height: 44px;
}

/* Garis horizontal di dalam unit Danara — membentang dari pusat kolom 1 ke
   pusat kolom 2 (lebar kolom = (100% - gap) / 2, jadi ujungnya / 4). */
.org-danara-bus::before {
  content: "";
  position: absolute;
  top: 30px;
  left: calc((100% - var(--org-gap)) / 4);
  right: calc((100% - var(--org-gap)) / 4);
  height: 2px;
  background: var(--org-line);
}

/* Tiang turun dari Direktur Danara */
.org-danara-bus::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: var(--org-line);
}

/* Tiang turun ke masing-masing unit bisnis */
.org-danara-body > .member--staff::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: var(--org-line);
}

/* ---------- 13. Galeri + Lightbox ---------- */
.gal-section {
  background: var(--bg-alt);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 14px;
}

.gal-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: none;
  font: inherit;
  margin: 0;
}

.gal-item:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.illus-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(3, 26, 16, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.hero-photo-note {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  right: 18px;
  z-index: 3;
  background: rgba(3, 26, 16, 0.55);
  color: #eaf3ec;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gal-item:hover img,
.gal-item:focus-visible img {
  transform: scale(1.06);
}

.gal-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 16px 13px;
  color: #fff;
  text-align: left;
  background: linear-gradient(transparent, rgba(3, 26, 16, 0.85));
  font-weight: 700;
  font-size: 14.5px;
}

.gal-item figcaption small {
  display: block;
  font-weight: 500;
  color: #cfe3d3;
  font-size: 12.5px;
}

.gal-wide {
  grid-column: span 2;
}

.gal-tall {
  grid-row: span 2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 12, 7, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  flex-direction: column;
  gap: 14px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1000px, 100%);
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
  background: #0a0a0a;
}

.lightbox p {
  color: #eaf3ec;
  font-weight: 600;
  text-align: center;
  max-width: 70ch;
}

.lightbox .close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.lightbox .close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(90deg);
}

/* Prev / next arrows inside the lightbox */
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  transition: background 0.2s, transform 0.2s var(--ease);
}

.lightbox .lb-nav:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox .lb-nav.prev {
  left: 18px;
}
.lightbox .lb-nav.next {
  right: 18px;
}

.lightbox .lb-nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.lightbox .lb-count {
  color: rgba(245, 242, 234, 0.65);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ---------- 14. Gabung / Join + FAQ ---------- */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}

.step {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px dashed var(--line);
}

.step:last-child {
  border-bottom: 0;
}

.step .n {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 17px;
}

.step h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.step p {
  color: var(--ink-soft);
  font-size: 15px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item.open {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

.faq-q {
  width: 100%;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
}

.faq-q .arr {
  flex: none;
  transition: transform 0.3s var(--ease);
  color: var(--green);
  font-size: 19px;
}

.faq-item.open .faq-q .arr {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-a p {
  padding: 0 20px 19px;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- 15. CTA Band & Footer ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-deep), var(--green));
  border-radius: 24px;
  padding: 52px 44px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  left: -120px;
  bottom: -160px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 176, 30, 0.2), transparent 68%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin-bottom: 12px;
}

.cta-band p {
  color: #d8ebdd;
  max-width: 52ch;
  margin: 0 auto 28px;
}

.cta-band .row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

footer {
  background: var(--green-deep);
  color: #cbe3d2;
  padding: 64px 0 30px;
  margin-top: 84px;
}

@media (prefers-color-scheme: dark) {
  footer {
    background: #081109;
  }
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.foot-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.foot-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
  flex: none;
}

.foot-brand h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 6px;
}

.foot-brand p {
  font-size: 14.5px;
}

footer h4 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 14px;
  letter-spacing: 0.04em;
}

footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14.5px;
}

footer a {
  color: #cbe3d2;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--gold);
}

.foot-logos {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.foot-logos img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 3px;
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 22px;
  font-size: 13.5px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- 16. Floating WhatsApp & Back-to-top ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -8px rgba(18, 140, 60, 0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 18px 36px -8px rgba(18, 140, 60, 0.75);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 70;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease),
    visibility 0.25s;
}

.to-top.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.to-top svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 17. Responsive ---------- */
@media (max-width: 1020px) {
  .prog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .org-branches {
    --org-gap: 14px;
  }
  .member .ava {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }
  .danara-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .danara-logo {
    max-width: 340px;
  }
  .gal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .burger {
    display: flex;
  }
  section {
    padding: 62px 0;
  }
  .about-grid,
  .join-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  /* Bagan: pada layar sempit divisi disusun vertikal, garis.payung disembunyikan */
  .org-branches {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 0;
  }
  .org-bus {
    display: none;
  }
  .org-branch::before {
    display: none;
  }
  .org-branch {
    border-left-width: 4px;
  }
  .org-node {
    max-width: 100%;
  }
  .org-danara-body {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  .org-danara-bus {
    display: none;
  }
  .org-danara-body > .member--staff::before {
    display: none;
  }
  .about-photo .float-card {
    right: 8px;
    bottom: -16px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .cta-band {
    padding: 40px 24px;
  }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding: 130px 22px 0;
  }
  .hero-cta {
    margin-bottom: 40px;
  }
}

@media (max-width: 560px) {
  .prog-grid {
    grid-template-columns: 1fr;
  }
  .danara-feats {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .gal-grid {
    grid-auto-rows: 160px;
  }
  .gal-item figcaption {
    font-size: 12.5px;
    padding: 26px 11px 10px;
    line-height: 1.3;
  }
  .gal-item figcaption small {
    font-size: 11px;
  }
  .brand .b-sub {
    display: none;
  }
  .org-node {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .org-node .org-ava {
    margin: 0 auto;
  }
  .org-note {
    font-size: 12.5px;
  }
  .member {
    padding: 10px 12px;
    gap: 10px;
  }
  .member h4 {
    font-size: 14.5px;
  }
  .member .ava {
    width: 44px;
    height: 44px;
    font-size: 15px;
  }
  .member .div {
    font-size: 12px;
  }
  .hero-stats .stat {
    padding: 16px 14px;
  }
  .wa-float {
    width: 52px;
    height: 52px;
    right: 16px;
    bottom: 16px;
  }
  .to-top {
    right: 16px;
    bottom: 78px;
    width: 40px;
    height: 40px;
  }
  .lightbox .lb-nav {
    width: 40px;
    height: 40px;
  }
  .lightbox .lb-nav.prev {
    left: 8px;
  }
  .lightbox .lb-nav.next {
    right: 8px;
  }
}

/* ---------- 18. Motion Preferences & Print ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track {
    animation: none;
  }
  .hero-badge .dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

@media print {
  #header,
  .wa-float,
  .to-top,
  .mobile-menu,
  .lightbox,
  .marquee,
  .hero-photo-note,
  .burger {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  section {
    padding: 18px 0;
    break-inside: avoid;
  }

  .rv {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero {
    min-height: auto;
    color: #000;
    background: #fff;
  }

  .hero::after {
    display: none;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
