/* Dakwah Tulungagung — minimal terang, aksen hijau zamrud.
   Satu sentuhan islami: kaligrafi hadits. Selebihnya foto, ruang kosong, dan gerak halus. */
:root {
  --bg: #fafaf8;
  --bg-2: #f1f4f0;
  --paper: #ffffff;
  --ink: #0d1b16;
  --ink-2: #33443d;
  --muted: #64746d;
  --line: #dde3df;
  --em: #0b6b54;
  --em-d: #06483a;
  --em-dd: #04271f;
  --em-l: #e3f0ea;
  --gold: #b8924a;
  --f-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-ar: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --r: 14px;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--em); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--em); color: #fff; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: max(20px, 4vw); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--em); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; }
.skip:focus { left: 8px; }

/* ---------- Navigasi ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h); background: rgba(250,250,248,.78); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid transparent; transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.nav.scrolled { background: rgba(250,250,248,.92); border-bottom-color: var(--line); box-shadow: 0 6px 30px -18px rgba(6,72,58,.35); }
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 999px; transition: color .25s, background .25s; }
.nav-links a:hover { color: var(--em); background: var(--em-l); }
.nav-links a[aria-current="page"] { color: var(--em); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--em); transform: translateX(-50%); }
.badge { display: inline-block; margin-left: 6px; padding: 2px 7px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--em); color: #fff; border-radius: 999px; vertical-align: 2px; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 1.8px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .35s var(--ease), background .2s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
/* menu HP: kartu popup dari atas, latar diredupkan */
.nav-dim { position: fixed; inset: 0; z-index: 98; background: rgba(4,39,31,.32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
.nav-dim.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: calc(var(--nav-h) - 2px); right: max(14px, calc(4vw - 4px)); z-index: 101; width: min(300px, calc(100vw - 24px)); max-height: calc(100svh - var(--nav-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 8px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 30px 70px -24px rgba(4,39,31,.5), 0 2px 6px rgba(4,39,31,.06);
  transform-origin: top right; transform: translateY(-10px) scale(.96); opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .3s; }
.drawer.open { transform: none; opacity: 1; visibility: visible; }
.drawer a:not(.btn) { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; font-size: 16px; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.drawer a:not(.btn) svg { width: 20px; height: 20px; flex: none; color: var(--em); opacity: .85; }
.drawer a:not(.btn):hover, .drawer a:not(.btn):active { background: var(--em-l); }
.drawer a[aria-current="page"] { background: var(--em-l); color: var(--em); }
.drawer .btn { margin: 6px 4px 4px; height: 46px; font-size: 15px; }
.drawer a.drawer-panel { margin-top: 4px; border-top: 1px dashed var(--line); border-radius: 0 0 14px 14px; color: var(--em); }
.drawer a.drawer-panel[hidden], .nav-panel[hidden] { display: none; }
.nav-logo { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.nav-logo img { -webkit-user-drag: none; pointer-events: none; }
@media (max-width: 760px) { .nav-cta .nav-panel { display: none; } }

/* ---------- Tombol ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; overflow: hidden; transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }
.btn-primary { background: var(--em); color: #fff; box-shadow: 0 10px 24px -12px rgba(11,107,84,.8); }
.btn-primary:hover { background: var(--em-d); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(11,107,84,.9); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--em); color: var(--em); background: var(--em-l); }
.btn-light { background: #fff; color: var(--em-d); }
.btn-light:hover { transform: translateY(-2px); background: var(--em-l); }
.btn-line { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-line:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--em); padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .35s var(--ease), gap .3s var(--ease); }
.link-arrow:hover { gap: 12px; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------- Umum ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--em); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); margin-top: 14px; }
.section-head p { color: var(--muted); font-size: 18px; max-width: 46ch; }
.bg-2 { background: var(--bg-2); }

/* animasi muncul saat digulir */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal-img.in { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */

/* ---------- Pita tagline ---------- */
.marquee { background: var(--em-dd); color: #fff; overflow: hidden; border-block: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 36px; padding: 22px 18px 22px 0; font-family: var(--f-display); font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8fe0c2; margin-left: 18px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Pernyataan ---------- */
.statement { padding-block: clamp(90px, 14vw, 190px); }
.statement > .container > p { font-family: var(--f-display); font-size: clamp(30px, 5.4vw, 74px); line-height: 1.12; letter-spacing: -.035em; font-weight: 500; max-width: 20ch; }
.statement > .container > p .sw { color: #c3cfc9; transition: color .5s ease; }
.statement > .container > p .sw.lit { color: var(--ink); }
.statement > .container > p .sw.lit.em { color: var(--em); }
/* tiga pilar: panel berwarna berisi konten nyata terbaru (artikel, kajian, jawaban ustadz) */
.pilar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 90px); }
.pl { --pl-bg: var(--em-l); --pl-k: var(--em); --pl-mute: var(--muted); --pl-line: rgba(11,107,84,.16);
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0;
  padding: clamp(24px, 2.4vw, 32px) clamp(22px, 2.2vw, 30px) clamp(20px, 2vw, 26px); border-radius: 24px; background: var(--pl-bg); color: var(--ink); }
.pl-a { --pl-bg: var(--em-d); --pl-k: #ecd6a4; --pl-mute: rgba(255,255,255,.66); --pl-line: rgba(255,255,255,.16); color: #fff; }
.pl-b { --pl-bg: #f3e8d0; --pl-k: #8a6322; --pl-mute: #7a6a50; --pl-line: rgba(138,99,34,.2); }
.pl-k { font-family: var(--f-display); font-size: clamp(22px, 2.1vw, 27px); font-weight: 600; letter-spacing: -.02em; color: var(--pl-k); }
.pl-main { display: block; margin-top: clamp(26px, 3.4vw, 44px); color: inherit; }
.pl-s { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--pl-mute); }
.pl-s .lv { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e0413a; box-shadow: 0 0 0 0 rgba(224,65,58,.5); animation: plpulse 1.6s infinite; }
.pl-a .pl-s .lv { background: #ff6b5e; }
@keyframes plpulse { 70% { box-shadow: 0 0 0 8px rgba(224,65,58,0); } 100% { box-shadow: 0 0 0 0 rgba(224,65,58,0); } }
.pl-t { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px;
  font-family: var(--f-display); font-size: clamp(20px, 1.85vw, 24px); font-weight: 600; line-height: 1.24; letter-spacing: -.02em;
  text-decoration: underline 1.5px transparent; text-underline-offset: 5px; transition: text-decoration-color .25s; }
.pl-main:hover .pl-t { text-decoration-color: currentColor; }
.pl-x { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--pl-mute); }
.pl-x.q { font-style: italic; }
.pl-by { display: block; margin-top: 8px; font-size: 13.5px; font-weight: 600; color: var(--pl-k); }
.pl-more { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--pl-line); }
.pl-more li { border-bottom: 1px solid var(--pl-line); }
.pl-more a { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 11px 0; font-size: 15px; font-weight: 500; line-height: 1.35; transition: opacity .2s; }
.pl-more a:hover { opacity: .72; }
.pl-more b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--pl-k); }
.pl-more span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-m { display: inline-flex; align-items: baseline; gap: 8px; align-self: flex-start; margin-top: auto; padding-top: 20px; font-size: 14.5px; font-weight: 600; color: var(--pl-k); }
.pl-m::after { content: "→"; transition: transform .3s var(--ease); }
.pl-m:hover::after { transform: translateX(4px); }
@media (max-width: 900px) and (min-width: 761px) { .pl-more a { font-size: 14px; } }
@media (max-width: 760px) {
  .pilar { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pl { padding: 22px 20px 18px; border-radius: 22px; }
  .pl-main { margin-top: 20px; }
  .pl-t { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .pl-s .lv { animation: none; } }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0; margin-top: clamp(56px, 8vw, 100px); border-top: 1px solid var(--line); }
.pillar { padding: 32px 32px 8px 0; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar + .pillar { padding-left: 32px; }
.pillar svg { width: 30px; height: 30px; color: var(--em); margin-bottom: 22px; }
.pillar h3 { font-size: 28px; margin-bottom: 10px; }
.pillar p { color: var(--muted); }

/* ---------- Program (mosaik) ---------- */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(150px, 19vw, 250px); gap: 14px; }
.tile { position: relative; border-radius: 22px; overflow: hidden; background: var(--em-dd); color: #fff; isolation: isolate; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); z-index: -2; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,39,31,0) 35%, rgba(4,39,31,.88) 100%); transition: background .5s; }
.tile:hover img { transform: scale(1.07); }
.tile:hover::before { background: linear-gradient(180deg, rgba(4,39,31,.25) 0%, rgba(4,39,31,.92) 100%); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: clamp(18px, 2.4vw, 30px); }
.tile .tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fe0c2; margin-bottom: 8px; }
.tile h3 { font-size: clamp(22px, 2.6vw, 34px); }
.tile p { max-height: 0; opacity: 0; overflow: hidden; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.85); transition: max-height .6s var(--ease), opacity .5s, margin .5s; max-width: 42ch; }
.tile:hover p, .tile:focus-visible p { max-height: 120px; opacity: 1; margin-top: 10px; }
.tile .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.tile:hover .go { background: #fff; color: var(--em-d); transform: rotate(45deg); }
.tile .go svg { width: 18px; height: 18px; }
.t1 { grid-column: span 7; grid-row: span 2; } .t2 { grid-column: span 5; } .t3 { grid-column: span 5; }
.t4 { grid-column: span 4; } .t5 { grid-column: span 4; } .t6 { grid-column: span 4; }

/* ---------- Jadwal ---------- */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 4px; margin: 0 -4px 28px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; transition: all .3s var(--ease); position: relative; }
.day:hover { border-color: var(--em); color: var(--em); }
.day[aria-selected="true"] { background: var(--em); color: #fff; border-color: var(--em); }
.day .today { position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #8fe0c2; box-shadow: 0 0 0 2px var(--em); }
.day:not([aria-selected="true"]) .today { background: var(--em); box-shadow: none; }
.weeks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.week { padding: 7px 16px; border-radius: 8px; border: 1px solid var(--line); background: transparent; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all .25s; }
.week:hover { border-color: var(--em); }
.week[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.sched { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 170px 1fr 1fr auto; gap: 8px 32px; align-items: center; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background .35s, padding .35s var(--ease); animation: rowin .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(18px); } }
.row:hover { background: var(--paper); padding-inline: 20px; }
.row .time { font-family: var(--f-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--em); }
.row .time small { display: block; font-family: var(--f-body); font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.row .kitab { font-family: var(--f-display); font-size: 22px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.row .ustadz { color: var(--muted); font-size: 15px; margin-top: 4px; }
.row .place b { display: block; font-weight: 600; }
.row .place span { color: var(--muted); font-size: 15px; }
.row .acts { display: flex; gap: 8px; }
.ic { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; background: transparent; transition: all .3s; }
.ic:hover { background: var(--em); border-color: var(--em); color: #fff; transform: translateY(-2px); }
.ic svg { width: 18px; height: 18px; }
.empty { padding: 56px 20px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty b { display: block; font-family: var(--f-display); font-size: 24px; color: var(--ink); margin-bottom: 6px; }
.search { display: flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 52px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); max-width: 440px; transition: border-color .3s, box-shadow .3s; }
.search:focus-within { border-color: var(--em); box-shadow: 0 0 0 4px var(--em-l); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }

/* ---------- Dampak ---------- */
.impact { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: var(--em-dd); }
.impact-bg { position: absolute; inset: -12% 0; z-index: -2; }
.impact-bg img { width: 100%; height: 100%; object-fit: cover; }
.impact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,39,31,.82), rgba(4,39,31,.7) 50%, rgba(4,39,31,.9)); }
.impact .container { padding-block: clamp(90px, 13vw, 180px); }
.impact .lead { font-size: clamp(18px, 2vw, 22px); color: rgba(255,255,255,.85); }
.big { font-family: var(--f-display); font-size: clamp(76px, 15vw, 220px); font-weight: 600; letter-spacing: -.06em; line-height: .9; margin: 12px 0 10px; font-variant-numeric: tabular-nums; }
.big sup { font-size: .4em; vertical-align: top; color: #8fe0c2; letter-spacing: 0; }
.impact .sub { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; margin-top: clamp(48px, 7vw, 90px); padding-top: 36px; border-top: 1px solid rgba(255,255,255,.22); }
.stat b { display: block; font-family: var(--f-display); font-size: clamp(40px, 5.5vw, 76px); font-weight: 600; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
.stat small { display: block; margin-top: 4px; color: rgba(255,255,255,.7); font-size: 15px; }

/* ---------- Video ---------- */
.video { position: relative; aspect-ratio: 16/9; border-radius: clamp(18px, 3vw, 32px); overflow: hidden; background: var(--em-dd); isolation: isolate; width: 100%; border: 0; padding: 0; display: block; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.video:hover img { transform: scale(1.04); }
.video::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,39,31,.1), rgba(4,39,31,.8)); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 46%; translate: -50% -50%; width: clamp(72px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--em-d); display: grid; place-items: center; transition: transform .5s var(--ease); }
.play::before, .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); animation: ping 2.6s ease-out infinite; }
.play::after { animation-delay: 1.3s; }
@keyframes ping { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
.video:hover .play { transform: scale(1.08); }
.play svg { width: 34%; height: 34%; margin-left: 6%; }
.video-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 36px); color: #fff; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.video-cap b { font-family: var(--f-display); font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -.02em; font-weight: 600; }
.video-cap span { color: rgba(255,255,255,.75); font-size: 15px; }

/* ---------- Hadits ---------- */
.hadith { padding-block: clamp(100px, 15vw, 200px); text-align: center; position: relative; }
.hadith .eyebrow { justify-content: center; color: var(--gold); }
.hadith .eyebrow::before, .hadith .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.ar { font-family: var(--f-ar); font-size: clamp(34px, 6vw, 80px); line-height: 1.7; margin: 38px auto 0; max-width: 18ch; direction: rtl; color: var(--ink); }
.rule { width: 1px; height: 64px; margin: 34px auto; background: linear-gradient(var(--gold), transparent); transform-origin: top; }
.js .rule { transform: scaleY(0); transition: transform 1.4s var(--ease) .3s; }
.js .rule.in { transform: scaleY(1); }
.hadith blockquote { margin: 0 auto; max-width: 26ch; font-family: var(--f-display); font-size: clamp(22px, 3vw, 38px); line-height: 1.25; letter-spacing: -.025em; font-weight: 500; }
.hadith cite { display: block; margin-top: 22px; font-style: normal; color: var(--muted); font-size: 15px; letter-spacing: .08em; }

/* ---------- CTA & footer ---------- */
.cta { background: var(--em); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta::after { content: ""; position: absolute; width: 60vw; aspect-ratio: 1; right: -18vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(143,224,194,.35), transparent 65%); z-index: -1; }
.cta .container { padding-block: clamp(80px, 11vw, 150px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: end; }
.cta h2 { font-size: clamp(40px, 6.5vw, 96px); letter-spacing: -.04em; }
.cta p { color: rgba(255,255,255,.85); font-size: 19px; max-width: 40ch; margin-bottom: 28px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.footer { background: var(--em-dd); color: rgba(255,255,255,.75); padding-top: clamp(60px, 8vw, 100px); }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px 80px; justify-content: space-between; padding-bottom: 56px; }
.footer-brand { max-width: 300px; display: flex; flex-direction: column; gap: 22px; }
.footer-brand img { height: 46px; width: auto; align-self: flex-start; }
.footer-brand p { font-family: var(--f-display); font-size: 21px; line-height: 1.3; color: #fff; letter-spacing: -.015em; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: all .3s var(--ease); }
.socials a:hover { background: #fff; color: var(--em-d); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; }
.footer-col h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: #8fe0c2; margin-bottom: 18px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-col a { display: inline-block; padding: 5px 0; transition: color .25s, transform .25s; }
.footer-col a:hover { color: #fff; transform: translateX(4px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-block: 26px; border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; color: rgba(255,255,255,.55); }

/* ---------- Halaman dalam ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(40px, 6vw, 80px); background: linear-gradient(180deg, var(--em-l), var(--bg)); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(44px, 8vw, 112px); letter-spacing: -.045em; margin-top: 18px; max-width: 14ch; }
.page-hero h1 em { font-style: normal; color: var(--em); }
.page-hero p { margin-top: 24px; font-size: clamp(18px, 2vw, 22px); color: var(--ink-2); max-width: 46ch; }
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(250,250,248,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a, .tabbtn { flex: none; padding: 9px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); border: 1px solid transparent; background: none; transition: all .3s; }
.subnav a:hover, .tabbtn:hover { color: var(--em); background: var(--em-l); }
.subnav a.active, .tabbtn[aria-selected="true"] { background: var(--em); color: #fff; }
/* subnav yang harus muat satu layar HP (Tentang Kami) */
@media (max-width: 640px) {
  .subnav.fit .container { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding-inline: 12px; overflow: visible; }
  .subnav.fit a { padding: 8px 4px; font-size: 13px; line-height: 1.2; text-align: center; white-space: normal; display: flex; align-items: center; justify-content: center; min-height: 40px; }
}
.prose { max-width: 62ch; }
.prose p + p { margin-top: 1.1em; }
.prose p { color: var(--ink-2); font-size: 19px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.photo { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--em-dd); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.vision { font-family: var(--f-display); font-size: clamp(30px, 4.6vw, 62px); letter-spacing: -.035em; line-height: 1.1; font-weight: 500; max-width: 22ch; }
.mission { list-style: none; margin: clamp(48px, 7vw, 90px) 0 0; padding: 0; counter-reset: m; border-top: 1px solid var(--line); }
.mission li { counter-increment: m; display: grid; grid-template-columns: 64px 1fr; gap: 12px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.mission li::before { content: counter(m, decimal-leading-zero); font-family: var(--f-display); font-size: 20px; color: var(--em); font-weight: 600; padding-top: 4px; }
.mission h3 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 8px; }
.mission p { color: var(--muted); }
.org { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px 40px; }
.org h3 { font-size: 15px; font-family: var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: var(--em); font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.org li { list-style: none; padding: 10px 0; display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); font-weight: 500; }
.org li span { color: var(--muted); font-weight: 400; font-size: 15px; white-space: nowrap; }
.org ul { margin: 0; padding: 0; }
.org .wide { grid-column: 1 / -1; }
.org .wide ul { columns: 3 220px; column-gap: 40px; }
.org .wide li { break-inside: avoid; }
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; margin-top: 28px; }
.info div { padding: 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.info b { display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--em); margin-bottom: 6px; }
.map { margin-top: 20px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); height: clamp(280px, 38vw, 480px); width: 100%; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* program */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; }
.card { position: relative; padding: 32px 28px 28px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; text-align: left; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; animation: rowin .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(6,72,58,.45); border-color: var(--em); }
.card small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--em); }
.card h3 { font-size: 28px; }
.card p { color: var(--muted); flex: 1; }
.card .link-arrow { align-self: flex-start; margin-top: 10px; }
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(4,39,31,.6); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-box { width: min(100%, 760px); max-height: 88svh; overflow-y: auto; background: var(--bg); border-radius: 28px; padding: clamp(28px, 5vw, 56px); position: relative; transform: translateY(24px) scale(.98); transition: transform .5s var(--ease); }
.modal.open .modal-box { transform: none; }
.modal-x { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; }
.modal-x:hover { background: var(--ink); color: #fff; }
.modal-x svg { width: 18px; height: 18px; }
.modal h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 10px 0 14px; }
.modal .lead { color: var(--ink-2); }
.modal h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--em); margin: 30px 0 12px; font-weight: 700; }
.report { padding: 18px 20px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 10px; }
.report time { font-size: 13px; color: var(--muted); }
.report b { display: block; font-family: var(--f-display); font-size: 20px; margin: 2px 0 6px; letter-spacing: -.01em; }
.report p { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 5px 12px; border-radius: 999px; background: var(--em-l); color: var(--em-d); font-size: 13px; font-weight: 600; }
.vendor { padding: 18px 20px; border-radius: 16px; background: var(--em-l); }
.vendor b { display: block; font-family: var(--f-display); font-size: 20px; }
.vendor p { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* laporan */
.years { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.months { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.mchip { padding: 9px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 14px; transition: all .25s; }
.mchip:hover { border-color: var(--em); color: var(--em); }
.mchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.viewer { border-radius: 24px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.viewer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.viewer-head h3 { font-size: clamp(22px, 2.6vw, 30px); }
.viewer-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.viewer-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) {
  .viewer-head { padding: 18px 16px; }
  .viewer-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .viewer-actions .btn { width: 100%; justify-content: center; padding-inline: 10px; font-size: 14px; white-space: nowrap; }
  .viewer-actions.odd #v-open { grid-column: 1 / -1; }
}
.viewer iframe { width: 100%; height: min(86svh, 920px); min-height: 520px; border: 0; background: #e9ecea; display: block; }
/* pratinjau laporan: halaman PDF sebagai gambar selebar kotak, ketuk untuk memperbesar */
.pdfv { background: #e9ecea; padding: clamp(10px, 2.4vw, 26px); display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 18px); min-height: 280px; }
.pdfv-load { margin: auto; padding: 40px 16px; text-align: center; color: var(--muted); font-size: 15px; }
.pdfv-hint { text-align: center; color: var(--muted); font-size: 13.5px; margin: -2px 0 0; }
.pdfv-page { display: block; width: 100%; max-width: 900px; margin: 0 auto; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 12px 30px -18px rgba(4,39,31,.45), 0 1px 3px rgba(4,39,31,.12); transition: transform .3s var(--ease), box-shadow .3s; }
.pdfv-page:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -20px rgba(4,39,31,.5), 0 1px 3px rgba(4,39,31,.12); }
.pdfv-page img { display: block; width: 100%; height: auto; }
.pdfz { position: fixed; inset: 0; z-index: 700; display: flex; flex-direction: column; background: #0b1511; color: #fff; animation: pdfzin .25s ease; }
@keyframes pdfzin { from { opacity: 0; } }
.pdfz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px 18px; }
.pdfz-top b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pdfz-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.pdfz-ctl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-size: 22px; line-height: 1; display: grid; place-items: center; cursor: pointer; }
.pdfz-ctl button svg { width: 20px; height: 20px; }
.pdfz-ctl .pdfz-x { margin-left: 6px; background: #fff; color: var(--ink); }
.pdfz-pct { min-width: 52px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.75); }
.pdfz-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y; overscroll-behavior: contain; }
.pdfz-in { width: 100%; max-width: none; margin: 0 auto; padding: 8px 10px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .pdfz-in { width: 100%; } .pdfz-body { padding: 0 max(0px, calc((100vw - 1000px) / 2)); } }
.pdfz-in img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; -webkit-user-drag: none; user-select: none; }

/* events */
.ev { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: clamp(24px, 5vw, 64px); padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 24px; transition: box-shadow .5s var(--ease), transform .5s var(--ease); }
.ev:hover { box-shadow: 0 30px 60px -36px rgba(6,72,58,.5); transform: translateY(-4px); }
.ev-poster { border-radius: 18px; overflow: hidden; background: var(--bg-2); align-self: start; border: 0; padding: 0; display: block; width: 100%; }
.ev-poster img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.ev-poster:hover img { transform: scale(1.04); }
.ev-body { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.ev-body h3 { font-size: clamp(26px, 3.4vw, 44px); }
.ev-body p { color: var(--ink-2); }
.ev-meta { display: grid; gap: 10px; margin: 6px 0; }
.ev-meta div { display: flex; gap: 12px; align-items: flex-start; }
.ev-meta svg { width: 20px; height: 20px; color: var(--em); flex: none; margin-top: 3px; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: var(--em-l); color: var(--em-d); margin-right: 6px; }
.pill.pay { background: #f6ead2; color: #7a5a1c; } .pill.done { background: #e9ebea; color: #55645d; }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4,20,16,.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 90svh; width: auto; max-width: min(100%, 900px); border-radius: 14px; transform: scale(.95); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox .modal-x { top: 18px; right: 18px; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

/* artikel & donasi */
.soon { display: grid; place-items: center; text-align: center; padding-block: clamp(70px, 10vw, 130px); }
.soon h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16ch; margin: 18px auto 16px; }
.soon p { color: var(--muted); max-width: 44ch; margin: 0 auto 28px; }
.topics { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.topics span { padding: 9px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 15px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: s; padding: 28px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--em); color: #fff; font-family: var(--f-display); font-weight: 600; margin-bottom: 18px; }
.steps b { display: block; font-family: var(--f-display); font-size: 22px; margin-bottom: 6px; letter-spacing: -.015em; }
.steps p { color: var(--muted); font-size: 16px; }
.pay-quote { font-family: var(--f-display); font-size: 22px; line-height: 1.35; color: var(--ink); letter-spacing: -.01em; }
.pay-quote span { font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--em); margin-left: 6px; }
.pay { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; }
.pay-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.pay-bank { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 48px); border-radius: 28px; color: #fff; background: radial-gradient(120% 90% at 100% 0%, #0f7d62 0%, var(--em-d) 45%, var(--em-dd) 100%); display: flex; flex-direction: column; gap: 6px; }
.pay-bank::after { content: ""; position: absolute; right: -22%; bottom: -46%; width: 82%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 42%, rgba(255,255,255,.12) 42.3%, rgba(255,255,255,.12) 42.8%, rgba(255,255,255,.035) 43%, rgba(255,255,255,.035) 64%, rgba(255,255,255,.02) 64.2%, rgba(255,255,255,.02) 86%, transparent 86.2%); }
.pay-bank .pay-label { color: #8fe0c2; }
.pay-bankname { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; }
.pay-bankname b { font-family: var(--f-display); font-size: 26px; letter-spacing: -.02em; }
.pay-bankname span { color: rgba(255,255,255,.72); font-size: 15px; }
.pay-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 6.4vw, 80px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.pay-owner { color: rgba(255,255,255,.8); font-size: 17px; margin-top: 10px; }
.pay-owner b { color: #fff; font-weight: 600; }
.pay-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.pay-actions .btn.done { background: #8fe0c2; color: var(--em-dd); }
.pay-confirm { margin-top: auto; padding-top: 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; position: relative; z-index: 1; }
.pay-confirm span { color: rgba(255,255,255,.65); font-size: 14px; padding-top: 18px; }
.pay-confirm a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 18px; padding-top: 16px; }
.pay-confirm a svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.pay-confirm a:hover svg { transform: translate(3px, -3px); }
.pay-qris { padding: clamp(24px, 3vw, 36px); border-radius: 28px; background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.pay-qris-head { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; text-align: left; }
.pay-qris-head .pay-label { color: var(--em); }
.pay-qris-head span:last-child { color: var(--muted); font-size: 14px; }
.pay-qris img { width: min(100%, 300px); height: auto; aspect-ratio: 1; border-radius: 16px; border: 1px solid var(--line); padding: 10px; background: #fff; }
.pay-merchant { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 14.5px; }
.pay-merchant b { color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: .04em; }
/* kartu pembayaran muncul lebih halus (tanpa bayangan berat yang dihitung ulang tiap bingkai) */
.pay-bank, .pay-qris { contain: paint; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.js .pay > .reveal { transform: translate3d(0, 18px, 0) scale(.985); transition: opacity .75s ease, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 140ms); will-change: opacity, transform; }
.js .pay > .reveal.in { transform: none; }

/* ---------- Responsif ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .burger { display: inline-flex; }
  .row { grid-template-columns: 140px 1fr auto; }
  .row .place { grid-column: 2; grid-row: 2; }
  .row .acts { grid-column: 3; grid-row: 1 / span 2; }
  .pay { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .nav-logo img { height: 34px; }
  .nav-cta .btn { display: none; }
  .mosaic { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: 1; grid-row: auto; }
  .tile p { max-height: 120px; opacity: 1; margin-top: 8px; }
  .pillar, .pillar + .pillar { padding: 28px 0 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: 1fr auto; padding: 22px 4px; }
  .row .time { grid-column: 1; } .row .acts { grid-column: 2; grid-row: 1; }
  .row .main { grid-column: 1 / -1; } .row .place { grid-column: 1 / -1; grid-row: auto; }
  .row:hover { padding-inline: 4px; }
  .ev { grid-template-columns: 1fr; }
  .mission li { grid-template-columns: 44px 1fr; }
  .viewer iframe { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .statement > .container > p .sw { color: var(--ink); }
  .marquee-track { animation: none; }
}

/* ---------- Beranda: tampilan awal "jendela lengkung" ---------- */
.hero-a { position: relative; padding: calc(var(--nav-h) + clamp(28px, 5vw, 64px)) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-a::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(143,224,194,.28), transparent 70%); z-index: -1; pointer-events: none; }
.ha-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(36px, 6vw, 96px); align-items: center; min-height: min(760px, calc(100svh - var(--nav-h) - 80px)); }
.hero-a h1 { font-size: clamp(52px, 7.4vw, 104px); font-weight: 500; letter-spacing: -.048em; line-height: .98; margin: 26px 0 26px; }
.hero-a h1 em { font-style: normal; color: var(--em); }
.hero-a h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.hero-a h1 .w > span { display: inline-block; }
.js .hero-a h1 .w > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 110ms + 150ms); }
.js .hero-a.ready h1 .w > span { transform: none; }
.ha-sub { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); max-width: 32ch; }
.ha-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.js .hero-a .eyebrow, .js .ha-sub, .js .ha-cta, .js .ha-today { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero-a.ready .eyebrow { opacity: 1; transform: none; transition-delay: .05s; }
.js .hero-a.ready .ha-sub { opacity: 1; transform: none; transition-delay: .7s; }
.js .hero-a.ready .ha-cta { opacity: 1; transform: none; transition-delay: .85s; }
.js .hero-a.ready .ha-today { opacity: 1; transform: none; transition-delay: 1s; }
.ha-today { margin-top: 48px; display: flex; align-items: center; gap: 16px; padding: 16px 22px 16px 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); width: max-content; max-width: 100%; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.ha-today:hover { border-color: var(--em); box-shadow: 0 18px 40px -28px rgba(6,72,58,.5); transform: translateY(-2px); }
.ha-today .dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: #1fae7f; flex: none; }
.ha-today .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1fae7f; animation: ping 1.8s ease-out infinite; }
.ha-today small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--em); }
.ha-today .t { transition: opacity .4s, transform .4s var(--ease); }
.ha-today .t.out { opacity: 0; transform: translateY(6px); }
.ha-today.ha-kh { margin-top: 12px; }
.ha-kh[hidden] { display: none; }
.ha-kh .dot, .ha-kh .dot::after { background: var(--gold); }
.ha-kh small { color: #8a6322; }
.ha-today b { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; }
.ha-today span { color: var(--muted); font-size: 15px; }

.ha-visual { position: relative; justify-self: end; width: 100%; max-width: 470px; margin-right: 22px; }
.ha-line { position: absolute; left: 22px; top: -22px; width: 100%; height: calc(100% - 20px); overflow: visible; pointer-events: none; }
.ha-line path { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .7; stroke-dasharray: 1700; stroke-dashoffset: 1700; vector-effect: non-scaling-stroke; }
.hero-a.ready .ha-line path { animation: drawline 2.6s .4s var(--ease) forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.ha-arch { position: relative; aspect-ratio: 4/5; border-radius: 999px 999px 26px 26px; overflow: hidden; background: var(--em-l); box-shadow: 0 50px 90px -50px rgba(6,72,58,.55); }
.js .ha-arch { clip-path: inset(100% 0 0 0 round 999px 999px 26px 26px); transition: clip-path 1.4s var(--ease) .2s; }
.js .hero-a.ready .ha-arch { clip-path: inset(0 0 0 0 round 999px 999px 26px 26px); }
.ha-track { position: absolute; inset: 0; display: flex; will-change: transform; transition: transform 1s cubic-bezier(.22, .8, .2, 1); }
.ha-arch.drag .ha-track, .ha-track.jump { transition: none; }
.ha-slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.ha-arch { cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: pan-y; }
.ha-arch.drag { cursor: grabbing; }
.ha-arch img { -webkit-user-drag: none; }
.ha-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s cubic-bezier(.22, .8, .2, 1); }
.ha-slide.active img { animation: kb 9s ease-out forwards; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.ha-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 26px 22px; color: #fff; font-family: var(--f-display); font-size: 18px; letter-spacing: -.01em; background: linear-gradient(transparent, rgba(4,39,31,.75)); transition: opacity .5s; }
.ha-chip { position: absolute; left: -48px; bottom: 76px; padding: 16px 20px; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 50px -24px rgba(13,27,22,.35); animation: floaty 6s ease-in-out infinite; }
.ha-chip b { display: block; font-family: var(--f-display); font-size: 32px; font-weight: 600; letter-spacing: -.03em; color: var(--em); line-height: 1; }
.ha-chip span { font-size: 13.5px; color: var(--muted); }
.js .ha-chip { opacity: 0; transition: opacity .8s 1.3s; }
.js .hero-a.ready .ha-chip { opacity: 1; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.ha-bars { position: absolute; right: 0; bottom: -26px; display: flex; gap: 8px; width: 170px; }
.ha-bars button { flex: 1; height: 22px; padding: 0; display: flex; align-items: center; background: none; border: 0; cursor: pointer; }
.ha-bars i { display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); position: relative; overflow: hidden; }
.ha-bars i::after { content: ""; position: absolute; inset: 0; background: var(--em); transform: scaleX(0); transform-origin: left; }
.ha-bars button.done i::after { transform: scaleX(1); }
.ha-bars button.active i::after { animation: habar 7s linear forwards; }
@keyframes habar { to { transform: scaleX(1); } }

.next-ev { padding: 0 0 clamp(40px, 6vw, 64px); }
.next-ev a { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; padding: 16px 22px 16px 16px; border-radius: 24px; background: linear-gradient(120deg, var(--em-d), var(--em-dd)); color: #fff; transition: transform .4s var(--ease), box-shadow .4s; }
.next-ev a:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -36px rgba(4,39,31,.8); }
.next-ev img { width: 96px; height: 120px; object-fit: cover; border-radius: 14px; background: rgba(255,255,255,.1); }
.next-ev small { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8fe0c2; }
.next-ev b { display: block; font-family: var(--f-display); font-size: clamp(20px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; margin: 4px 0; }
.next-ev span { color: rgba(255,255,255,.8); font-size: 15px; }
.next-ev .go { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: #fff; color: var(--em-d); font-weight: 600; white-space: nowrap; }
.next-ev .go svg { width: 18px; height: 18px; }
.js .next-ev { display: none; }
.js .next-ev.show { display: block; animation: rowin .8s var(--ease) both; }

@media (max-width: 1020px) {
  .ha-grid { grid-template-columns: 1fr; min-height: 0; }
  .ha-visual { justify-self: center; max-width: 420px; margin: 20px 22px 30px 0; }
}
@media (max-width: 760px) {
  .hero-a h1 { font-size: clamp(46px, 13vw, 64px); margin: 18px 0; }
  .ha-cta { margin-top: 26px; }
  .ha-today { margin-top: 30px; width: 100%; padding: 14px 16px; }
  .ha-today span { display: block; font-size: 14px; }
  .ha-visual { max-width: 330px; margin-right: 14px; }
  .ha-line { left: 12px; top: -12px; }
  .ha-chip { left: -14px; bottom: 44px; padding: 12px 16px; }
  .ha-chip b { font-size: 26px; }
  .next-ev a { grid-template-columns: 64px 1fr; padding: 12px 14px 12px 12px; gap: 14px; }
  .next-ev img { width: 64px; height: 80px; }
  .next-ev .go { grid-column: 1 / -1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-a h1 .w > span, .js .hero-a .eyebrow, .js .ha-sub, .js .ha-cta, .js .ha-today, .js .ha-chip { opacity: 1; transform: none; }
  .js .ha-arch { clip-path: none; }
  .ha-line path { stroke-dashoffset: 0; }
  .ha-chip { animation: none; }
}

/* ---------- aplikasi web: ajakan pasang & notifikasi ---------- */
.app-nudge { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 250; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto; padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(4,39,31,.45); transform: translateY(140%); transition: transform .5s var(--ease); }
.app-nudge.show { transform: none; }
.app-nudge img { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.app-nudge > div { flex: 1; min-width: 0; }
.app-nudge b { display: block; font-size: 15px; font-weight: 700; line-height: 1.25; }
.app-nudge small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.app-nudge .btn { flex: none; min-height: 40px; padding: 0 16px; }
.app-nx { flex: none; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.app-sheet { position: fixed; inset: 0; z-index: 300; display: grid; place-items: end center; background: rgba(4,39,31,.5); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.app-sheet.open { opacity: 1; }
.app-box { position: relative; width: min(100%, 520px); max-height: 92svh; overflow: auto; padding: 22px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg); transform: translateY(30px); transition: transform .35s var(--ease); }
.app-sheet.open .app-box { transform: none; }
@media (min-width: 640px) { .app-sheet { place-items: center; padding: 20px; } .app-box { border-radius: 26px; } }
.app-top { position: sticky; top: -22px; z-index: 2; margin: -22px -22px 0; padding: 22px 22px 12px; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .2s; }
.app-box.scrolled .app-top { border-bottom-color: var(--line); }
.app-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 22px; line-height: 1; cursor: pointer; }
.app-head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.app-head img { width: 56px; height: 56px; border-radius: 15px; }
.app-head b { display: block; font: 600 20px var(--f-display); letter-spacing: -.02em; }
.app-head small { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.app-box h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--em); margin: 20px 0 10px; font-weight: 700; font-family: var(--f-body); }
.app-box p { font-size: 15px; color: var(--ink-2); }
.app-box p.ok { color: var(--em-d); font-weight: 600; }
.app-box p.mut { color: var(--muted); }
.steps-ios { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.steps-ios svg { width: 18px; height: 18px; vertical-align: -3px; color: #007aff; }
.app-topics { display: flex; flex-direction: column; gap: 8px; }
.app-topics label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.app-topics input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--em); flex: none; }
.app-topics b { display: block; font-size: 15px; font-weight: 600; }
.app-topics small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.app-msg { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: var(--bg-2); font-size: 14px !important; }
.app-msg.ok { background: var(--em-l); color: var(--em-d); }
.app-msg.err { background: #fde8e6; color: #9b2c22; }
.app-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
