/* =========================================================================
   DESA JATIGUWI — VISIT NORWAY x VISIT SINGAPORE INSPIRED NAVY CIVIC (v3)
   Dial: ENERGY 3 / RHYTHM 3 / MOTION 3 (GSAP + ScrollTrigger + Lenis)
   Palette: Deep Civic Navy (#0B1F3A / #14325B), Slate Steel (#3B526E),
            Deliberate Warm Brass (#B8791E / #D69A3A), Porcelain Neutrals.
   ========================================================================= */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-subtle: #edf2f7;
  --navy-deep: #0b1f3a;
  --navy: #14325b;
  --navy-hover: #1d4478;
  --navy-soft: #e6eef7;
  --slate: #3b526e;
  --brass: #b8791e;
  --brass-hover: #9c6414;
  --brass-bright: #d69a3a;
  --brass-soft: #faf2e4;
  --ink: #0f1d2e;
  --ink-muted: #4b5e73;
  --border: #d7e0eb;
  --focus: #c68b2c;
  --status-ok-dot: #4ade80;
  --status-wait-dot: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-elevated: 0 22px 54px rgba(8, 22, 44, 0.28);
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg: #081426;
  --surface: #0f2039;
  --surface-subtle: #162b4a;
  --navy-deep: #050d1a;
  --navy: #4b86d1;
  --navy-hover: #6aa0e3;
  --navy-soft: rgba(75, 134, 209, 0.16);
  --slate: #89a6c7;
  --brass: #d69a3a;
  --brass-hover: #e3ac52;
  --brass-bright: #e3ac52;
  --brass-soft: rgba(214, 154, 58, 0.16);
  --ink: #ebf1f8;
  --ink-muted: #a4b7cd;
  --border: #22395c;
  --focus: #e3ac52;
  --shadow-elevated: 0 24px 56px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a[href], button:not(:disabled), [role="tab"] { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.hidden { display: none !important; }
.wrap { width: min(1220px, 100% - 36px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--navy-deep); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 1000; font-weight: 600;
}
.skip-link:focus { left: 16px; }

/* SCROLL PROGRESS LINE */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  background: var(--brass-bright); transform-origin: left center;
  transform: scaleX(0); z-index: 250; pointer-events: none;
}

/* FLOATING TRANSPARENT-TO-SOLID HEADER (VISIT NORWAY STYLE) */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  background: linear-gradient(180deg, rgba(7, 20, 39, 0.72) 0%, rgba(7, 20, 39, 0) 100%);
  color: #ffffff;
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
}
.site-header.scrolled {
  background: var(--surface);
  color: var(--ink);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 26px rgba(8, 22, 44, 0.1);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand-logo {
  width: 44px; height: 44px; object-fit: contain;
  background: var(--navy-deep); border-radius: 8px; padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.brand-text strong {
  display: block; font-family: var(--font-serif);
  font-size: 20px; font-weight: 700; line-height: 1.1; color: inherit;
}
.brand-text small { display: block; font-size: 12px; color: rgba(235, 241, 248, 0.82); }
.site-header.scrolled .brand-text small { color: var(--ink-muted); }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu a {
  text-decoration: none; font-size: 14px; font-weight: 500;
  color: inherit; padding: 10px 11px; border-radius: var(--radius-sm);
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-menu a:hover { background: rgba(255, 255, 255, 0.14); }
.site-header.scrolled .nav-menu a:hover { background: var(--navy-soft); color: var(--navy); }

.nav-menu a.btn-nav-cta {
  margin-left: 8px; background: var(--brass-bright); color: #0b1628;
  font-weight: 700; padding: 10px 16px;
}
.nav-menu a.btn-nav-cta:hover { background: #e5af58; color: #0b1628; }
.site-header.scrolled .nav-menu a.btn-nav-cta {
  background: var(--navy-deep); color: #ffffff;
}
[data-theme="dark"] .site-header.scrolled .nav-menu a.btn-nav-cta {
  background: var(--brass-bright); color: #081426;
}

.nav-controls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm); background: rgba(11, 31, 58, 0.38); color: #ffffff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
}
.site-header.scrolled .icon-btn, .lightbox .icon-btn {
  border-color: var(--border); background: var(--surface); color: var(--ink);
}
.site-header.scrolled .icon-btn:hover { border-color: var(--navy); background: var(--navy-soft); }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="dark"] .ico-moon { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-sm); background: rgba(11, 31, 58, 0.38);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 2px; background: #ffffff; }
.site-header.scrolled .nav-toggle { border-color: var(--border); background: var(--surface); }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

/* IDENTITY MOTIF */
.civic-rule {
  width: 72px; height: 4px; margin-bottom: 18px;
  background: linear-gradient(90deg, var(--brass-bright) 0%, var(--brass-bright) 44%, rgba(255, 255, 255, 0.35) 44%, rgba(255, 255, 255, 0.35) 100%);
}

/* 100VH FULL-SCREEN CINEMA HERO */
.cinema-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: #071427;
  color: #ffffff;
  padding-top: 96px;
  padding-bottom: 64px;
  border-bottom: 3px solid var(--brass-bright);
}
.cinema-media { position: absolute; inset: 0; overflow: hidden; }
.cinema-bg {
  position: absolute; inset: -40px 0; width: 100%; height: calc(100% + 80px);
  object-fit: cover; object-position: center 42%;
  will-change: transform; transform: scale(1.06);
}
.cinema-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(
    108deg,
    rgba(6, 17, 34, 0.9) 0%,
    rgba(11, 31, 58, 0.72) 52%,
    rgba(11, 31, 58, 0.44) 100%
  );
}
.hero-shell {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 0.88fr;
  gap: 48px; align-items: center;
}
.live-status-row {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12.5px; font-weight: 500; color: #dbe7f5;
  margin-bottom: 18px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-ok-dot); flex-shrink: 0; }
.status-dot.standby { background: var(--status-wait-dot); }
.sep { opacity: 0.45; }

.hero-display {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 700; line-height: 1.03; letter-spacing: -0.025em; color: #ffffff;
}
.line-mask { display: block; overflow: hidden; padding-bottom: 4px; }
.line-inner { display: block; }
.line-accent { color: #f0d295; font-style: italic; font-weight: 600; }

.hero-location { margin: 0 0 16px; font-size: 15.5px; font-weight: 600; color: #dbe7f5; }
.hero-lead { margin: 0 0 30px; font-size: 16.5px; line-height: 1.65; color: #d6e2f0; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* SCROLL CUE */
.scroll-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: rgba(255, 255, 255, 0.82); font-size: 12px; font-weight: 600;
}
.scroll-line {
  width: 2px; height: 26px; background: linear-gradient(180deg, var(--brass-bright), transparent);
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; font-weight: 600; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-brass { background: var(--brass-bright); color: #0b1628; font-weight: 700; }
.btn-brass:hover { background: #e5af58; }
.btn-hero-ghost { background: rgba(11, 31, 58, 0.45); color: #ffffff; border-color: rgba(255, 255, 255, 0.48); }
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #ffffff; }
.btn-subtle {
  background: var(--surface); color: var(--ink); border-color: var(--border);
  min-height: 44px; padding: 0 16px; font-size: 13.5px;
}
.btn-subtle:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-soft); }

/* SINGLE GLASS ACCENT PANEL ON HERO (R-10 DOSE CAP = 1) */
.hero-panel {
  background: rgba(9, 24, 46, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-elevated);
}
.hero-leader {
  display: flex; gap: 16px; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); margin-bottom: 18px;
}
.hero-leader-photo {
  width: 88px; height: 108px; border-radius: var(--radius-sm);
  object-fit: cover; object-position: top center;
  border: 2px solid rgba(240, 210, 149, 0.65); flex-shrink: 0;
}
.leader-role {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  color: #f0d295; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px;
}
.hero-leader-info strong {
  display: block; font-family: var(--font-serif); font-size: 19px;
  line-height: 1.25; color: #ffffff; margin-bottom: 5px;
}
.hero-leader-info p { margin: 0; font-size: 13px; color: #d6e2f0; line-height: 1.48; }
.hero-kpi-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hero-kpi {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md); padding: 13px 14px;
}
.hero-kpi dt { font-size: 12px; color: #c4d5ea; margin-bottom: 2px; }
.hero-kpi dd {
  margin: 0; font-size: 25px; font-weight: 700;
  font-variant-numeric: tabular-nums; color: #ffffff; line-height: 1.2;
}
.hero-panel-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px;
  font-size: 11.5px; color: #b7cae0;
}

/* PANORAMIC OFFICIAL BANNER STRIP */
.ribbon-section { background: var(--bg); padding: 20px 0; border-bottom: 1px solid var(--border); }
.ribbon-slider { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface); }
.ribbon-track { position: relative; width: 100%; aspect-ratio: 1600 / 215; background: #0b1f3a; }
.ribbon-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.4s ease; pointer-events: none; }
.ribbon-slide.active { opacity: 1; pointer-events: auto; }
.ribbon-slide img { width: 100%; height: 100%; object-fit: contain; }
.ribbon-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 14px; background: var(--surface); border-top: 1px solid var(--border);
}
.ribbon-counter { font-size: 12.5px; font-weight: 600; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.ribbon-actions { display: flex; align-items: center; gap: 6px; }
.ribbon-btn {
  min-width: 38px; height: 36px; padding: 0 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--surface-subtle); color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.ribbon-btn:hover { border-color: var(--navy); color: var(--navy); }
.ribbon-pause[aria-pressed="true"] { background: var(--navy-deep); color: #ffffff; border-color: var(--navy-deep); }

/* SECTIONS */
.section { padding: 82px 0; }
.section-surface { background: var(--surface); border-bottom: 1px solid var(--border); }
.section-alt { background: var(--bg); border-bottom: 1px solid var(--border); }
.section-navy {
  background: linear-gradient(165deg, #0b1f3a 0%, #0f294d 100%);
  color: #ffffff;
  border-bottom: 3px solid var(--brass-bright);
}
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 38px; flex-wrap: wrap;
}
.section-title-group { display: flex; align-items: flex-start; gap: 16px; }
.section-num {
  font-family: var(--font-serif); font-size: 32px; font-weight: 700;
  line-height: 1; color: var(--brass-bright); font-variant-numeric: tabular-nums; padding-top: 4px;
}
.section h2 {
  margin: 0 0 6px; font-family: var(--font-serif);
  font-size: clamp(27px, 3.1vw, 38px); font-weight: 700; line-height: 1.14; color: var(--ink);
}
.section-head-dark h2 { color: #ffffff; }
.section-desc { margin: 0; max-width: 58ch; font-size: 14.5px; color: var(--ink-muted); }
.section-head-dark .section-desc { color: #cddbeb; }
.section-desc-sm { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }

/* 01. INTERACTIVE 3-DUSUN EXPLORER (VISIT NORWAY) */
.dusun-explorer {
  display: grid; grid-template-columns: 0.4fr 0.6fr; gap: 28px; align-items: stretch;
}
.dusun-tabs { display: flex; flex-direction: column; gap: 12px; }
.dusun-tab {
  display: flex; align-items: flex-start; gap: 14px; text-align: left;
  width: 100%; padding: 20px; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--bg); color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.dusun-tab:hover { border-color: var(--navy); transform: translateX(4px); }
.dusun-tab.active {
  background: var(--navy-deep); border-color: var(--navy-deep); color: #ffffff;
}
[data-theme="dark"] .dusun-tab.active { background: #14325b; border-color: var(--brass-bright); }
.dt-idx {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--brass); line-height: 1; padding-top: 2px;
}
.dusun-tab.active .dt-idx { color: #f0d295; }
.dusun-tab strong { display: block; font-family: var(--font-serif); font-size: 20px; margin-bottom: 3px; }
.dusun-tab small { display: block; font-size: 13px; color: var(--ink-muted); }
.dusun-tab.active small { color: #cddbeb; }

.dusun-stage {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg); display: grid; grid-template-rows: 270px 1fr;
}
.dusun-visual { position: relative; overflow: hidden; background: #0b1f3a; }
.dusun-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.dusun-stage:hover .dusun-visual img { transform: scale(1.04); }
.dusun-visual-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 20, 39, 0.1) 0%, rgba(7, 20, 39, 0.85) 100%);
}
.dusun-visual-badge { position: absolute; left: 24px; bottom: 20px; z-index: 2; color: #ffffff; }
.dusun-visual-badge span { display: block; font-size: 12px; font-weight: 700; color: #f0d295; text-transform: uppercase; letter-spacing: 0.05em; }
.dusun-visual-badge h3 { margin: 2px 0 0; font-family: var(--font-serif); font-size: 30px; line-height: 1.1; }

.dusun-details { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.dusun-desc { margin: 0; font-size: 14.5px; color: var(--ink-muted); }
.dusun-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dm-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 14px 16px;
}
.dm-box small { display: block; font-size: 12px; color: var(--ink-muted); }
.dm-box strong { font-size: 24px; font-variant-numeric: tabular-nums; color: var(--ink); }
.kasun-strip {
  display: flex; align-items: center; gap: 14px;
  padding-top: 16px; border-top: 1px solid var(--border);
}
.kasun-strip img {
  width: 60px; height: 72px; border-radius: var(--radius-sm);
  object-fit: cover; object-position: top center; border: 1px solid var(--border);
}
.kasun-strip small { display: block; font-size: 12px; font-weight: 700; color: var(--brass); text-transform: uppercase; }
.kasun-strip strong { font-family: var(--font-serif); font-size: 18px; color: var(--ink); }

/* 02. HORIZONTAL STORY RAIL (VISIT SINGAPORE SIGNATURE) */
.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.08);
  color: #ffffff; font-size: 24px; line-height: 1;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.rail-btn:hover { background: var(--brass-bright); border-color: var(--brass-bright); color: #081426; }

.story-rail-wrap { width: 100%; overflow: hidden; }
.story-rail {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px max(18px, calc((100% - 1220px) / 2)) 20px;
  scrollbar-width: thin; scrollbar-color: var(--brass-bright) rgba(255, 255, 255, 0.1);
}
.story-card {
  position: relative; flex: 0 0 min(420px, 84vw); aspect-ratio: 4 / 3;
  scroll-snap-align: start; border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg); overflow: hidden; padding: 0;
  background: #071427; color: #ffffff; text-align: left; font-family: inherit;
  display: flex; align-items: flex-end;
  transform-style: preserve-3d; transition: transform 0.25s ease, border-color 0.25s ease;
}
.story-card:hover { border-color: var(--brass-bright); }
.story-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-card:hover img { transform: scale(1.07); }
.story-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6, 17, 34, 0.08) 0%, rgba(6, 17, 34, 0.56) 55%, rgba(6, 17, 34, 0.94) 100%);
}
.story-body { position: relative; z-index: 2; padding: 22px; width: 100%; }
.story-body span {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: #f0d295; margin-bottom: 5px;
}
.story-body h3 { margin: 0 0 6px; font-family: var(--font-serif); font-size: 24px; line-height: 1.16; color: #ffffff; }
.story-body p { margin: 0; font-size: 13.5px; color: #d6e2f0; }

/* 03. DEMOGRAFI */
.state-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; margin-bottom: 24px; border-radius: var(--radius-md);
  border: 1px solid #d97706; background: var(--brass-soft); color: var(--ink); font-size: 14px;
}
.demo-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 28px; }
.demo-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.card-heading { margin: 0 0 18px; font-size: 15.5px; font-weight: 700; color: var(--ink); }
.donut-wrap {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-bottom: 22px; border-bottom: 1px solid var(--border); margin-bottom: 22px;
}
.donut-svg { flex-shrink: 0; }
.donut-track { fill: none; stroke: var(--border); stroke-width: 18; }
.donut-seg-female { fill: none; stroke: var(--brass); stroke-width: 18; transform: rotate(-90deg); transform-origin: 80px 80px; }
.donut-seg-male {
  fill: none; stroke: var(--navy); stroke-width: 18;
  transform: rotate(-90deg); transform-origin: 80px 80px;
  transition: stroke-dasharray 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.donut-center-val { font-family: var(--font-sans); font-size: 20px; font-weight: 700; fill: var(--ink); }
.donut-center-lbl { font-family: var(--font-sans); font-size: 11px; fill: var(--ink-muted); }

.donut-legend { display: grid; gap: 14px; flex: 1; min-width: 160px; }
.legend-row { display: flex; align-items: center; gap: 12px; }
.swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.swatch-navy { background: var(--navy); }
.swatch-brass { background: var(--brass); }
.legend-row small { display: block; font-size: 12.5px; color: var(--ink-muted); }
.legend-row strong { font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.pct-note { font-size: 13px; font-weight: 600; color: var(--navy); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px; }
.tab-btn {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--border);
  background: var(--bg); color: var(--ink); font-family: inherit;
  font-size: 13.5px; font-weight: 600; border-radius: var(--radius-sm);
}
.tab-btn:hover { border-color: var(--navy); color: var(--navy); }
.tab-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: #ffffff; }
[data-theme="dark"] .tab-btn.active { background: var(--brass); border-color: var(--brass); color: #081426; }

.bar-list { display: grid; gap: 14px; }
.bar-list-tall { gap: 16px; }
.bar-row-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; }
.bar-row-head strong { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.bar-pct { font-weight: 500; color: var(--ink-muted); }
.bar-track { height: 10px; background: var(--border); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--navy); border-radius: 4px; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }

/* 04. PROFIL & WILAYAH */
.editorial-split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 40px; align-items: start; }
.label-cap { display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.visi-quote {
  margin: 0 0 32px; padding: 24px 0;
  border-top: 2px solid var(--navy-deep); border-bottom: 1px solid var(--border);
  font-family: var(--font-serif); font-size: 22px; font-weight: 500; line-height: 1.45; color: var(--ink);
}
[data-theme="dark"] .visi-quote { border-top-color: var(--brass); }
.misi-list { margin: 0; padding: 0; list-style: none; counter-reset: misi; display: grid; gap: 14px; }
.misi-list li { counter-increment: misi; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14.5px; color: var(--ink); }
.misi-list li::before { content: "0" counter(misi); font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--brass); }

.geo-column { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.spec-grid { margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.spec-grid > div { padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.spec-grid dt { font-size: 11.5px; color: var(--ink-muted); }
.spec-grid dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.map-box { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 7; margin-bottom: 14px; }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.alamat-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.alamat-footer strong { display: block; color: var(--ink); }
.alamat-footer span { color: var(--ink-muted); }
.text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* 05. PEMERINTAHAN */
.filter-group { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-btn {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 600;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy-deep); border-color: var(--navy-deep); color: #ffffff; }
[data-theme="dark"] .filter-btn.active { background: var(--brass); border-color: var(--brass); color: #081426; }

.pimpinan-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 24px; }
.pimpinan-card {
  display: flex; align-items: center; gap: 18px; padding: 20px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.pimpinan-card:hover { transform: translateY(-4px); border-color: var(--navy); }
.pimpinan-card img, .pimpinan-card .avatar-fallback {
  width: 96px; height: 118px; border-radius: var(--radius-md);
  object-fit: cover; object-position: top center; flex-shrink: 0; border: 1px solid var(--border);
}
.role-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: #ffffff;
  background: var(--navy-deep); padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
[data-theme="dark"] .role-tag { background: var(--brass); color: #081426; }
.pimpinan-card h3 { margin: 0 0 4px; font-family: var(--font-serif); font-size: 20px; color: var(--ink); }
.pimpinan-card p { margin: 0; font-size: 13px; color: var(--ink-muted); }

.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 18px; }
.staff-card {
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface);
  overflow: hidden; transition: border-color 0.2s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.staff-card:hover { border-color: var(--navy); transform: translateY(-4px); }
.staff-photo { aspect-ratio: 4 / 4.3; background: var(--surface-subtle); overflow: hidden; }
.staff-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.staff-card:hover .staff-photo img { transform: scale(1.06); }
.avatar-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: var(--navy-soft); color: var(--navy); font-family: var(--font-serif); font-size: 28px; font-weight: 700;
}
.staff-info { padding: 14px 15px 16px; }
.staff-info span { display: block; font-size: 11.5px; font-weight: 700; color: var(--brass); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 4px; }
.staff-info h4 { margin: 0; font-size: 14.5px; line-height: 1.35; color: var(--ink); }

/* 06. POTENSI PHOTO CARDS */
.potensi-visual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.potensi-photo-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--bg); transform-style: preserve-3d;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.potensi-photo-card:hover { border-color: var(--navy); }
.potensi-img-wrap { aspect-ratio: 16 / 9; overflow: hidden; background: #0b1f3a; }
.potensi-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; }
.potensi-photo-card:hover .potensi-img-wrap img { transform: scale(1.05); }
.potensi-body { padding: 24px 26px 26px; }
.potensi-body h3 { margin: 0 0 16px; font-family: var(--font-serif); font-size: 23px; color: var(--ink); }
.mini-dl { margin: 0; display: grid; gap: 14px; }
.mini-dl > div { padding-top: 12px; border-top: 1px solid var(--border); }
.mini-dl dt { font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.mini-dl dd { margin: 0; font-size: 14.5px; color: var(--ink-muted); }

/* 07 & 08. TRANSPARANSI & AGENDA */
.dual-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 40px; align-items: start; }
.mini-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.mini-head h2 { margin-bottom: 4px; }
.search-wrap { margin-bottom: 14px; }
.search-input {
  width: 100%; min-height: 44px; padding: 0 14px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--ink); font-family: inherit; font-size: 14px;
}
.doc-ledger, .agenda-timeline { display: grid; gap: 10px; }
.doc-row { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); margin-bottom: 5px; }
.doc-type { font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 2px 8px; border-radius: 4px; }
.doc-row h3 { margin: 0 0 4px; font-size: 14.5px; line-height: 1.35; color: var(--ink); }
.doc-row p { margin: 0; font-size: 13px; color: var(--ink-muted); }

.agenda-row {
  display: grid; grid-template-columns: 92px 1fr; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; background: var(--surface);
}
.agenda-date {
  text-align: center; background: var(--navy-soft); color: var(--navy);
  border-radius: var(--radius-sm); padding: 8px 6px; font-size: 12px; font-weight: 700; line-height: 1.3; align-self: start;
}
.agenda-row.today .agenda-date { background: var(--navy-deep); color: #ffffff; }
.agenda-row h3 { margin: 0 0 4px; font-size: 14.5px; color: var(--ink); }
.agenda-row p { margin: 0; font-size: 13px; color: var(--ink-muted); }

.loading-note, .empty-note {
  padding: 20px; border: 1px dashed var(--border); border-radius: var(--radius-md);
  color: var(--ink-muted); font-size: 13.5px; background: var(--surface);
}

/* PHOTOGRAPHIC CTA BAND */
.cta-band {
  position: relative; overflow: hidden; background: var(--navy-deep);
  color: #ffffff; padding: 76px 0; border-top: 3px solid var(--brass-bright);
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.cta-scrim { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(7, 20, 39, 0.94) 0%, rgba(11, 31, 58, 0.82) 100%); }
.cta-inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 10px; font-family: var(--font-serif); font-size: clamp(26px, 3vw, 36px); color: #ffffff; }
.cta-band p { margin: 0; max-width: 58ch; color: #d6e2f0; font-size: 15px; }
.cta-action-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cta-action-col small { font-size: 12.5px; color: #afc2da; }

/* BERITA & PENGUMUMAN DESA */
.news-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px;
}
.news-card {
  display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; background: var(--surface); color: var(--ink); font-family: inherit;
  transition: transform 0.22s ease, border-color 0.22s ease;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--navy); }
.news-card-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); width: 100%; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-muted); }
.news-badge { background: var(--navy-soft); color: var(--navy); font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.news-card h3 { margin: 0; font-family: var(--font-serif); font-size: 20px; line-height: 1.25; color: var(--ink); }
.news-card p { margin: 0; font-size: 14px; color: var(--ink-muted); line-height: 1.55; }
.news-read-more { margin-top: auto; padding-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--navy); }
.news-modal-panel { width: min(780px, 100%); }
.news-modal-body { padding: 22px 24px 28px; }
.news-modal-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 18px; }
.news-modal-text { font-size: 15.5px; line-height: 1.75; color: var(--ink); white-space: pre-line; }

/* LIGHTBOX MODAL */
.lightbox {
  position: fixed; inset: 0; z-index: 220;
  background: rgba(5, 13, 26, 0.86); display: grid; place-items: center; padding: 18px;
}
.lightbox-panel {
  width: min(920px, 100%); max-height: 92vh; overflow: auto;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-elevated);
}
.lightbox-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.lb-kicker { display: block; font-size: 11.5px; font-weight: 700; color: var(--brass); text-transform: uppercase; }
.lightbox-head h3 { margin: 0; font-family: var(--font-serif); font-size: 21px; }
.lightbox-stage { background: #071427; display: grid; place-items: center; }
.lightbox-stage img { max-height: 60vh; width: 100%; object-fit: contain; }
.lightbox-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid var(--border); }
.lightbox-foot p { margin: 0; font-size: 14px; color: var(--ink-muted); max-width: 56ch; }
.lb-nav { display: flex; gap: 8px; }

/* FOOTER */
.site-footer { background: #071427; color: #c7d5e6; padding: 52px 0 30px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 0.8fr 1fr; gap: 32px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand strong { display: block; color: #ffffff; font-family: var(--font-serif); font-size: 18px; }
.footer-brand small { color: #9eb3cc; }
.footer-addr { margin: 0; max-width: 42ch; color: #b5c6da; }
.site-footer h3 { margin: 0 0 12px; color: #ffffff; font-size: 14px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { text-decoration: none; color: #c7d5e6; }
.footer-links a:hover { color: #ffffff; text-decoration: underline; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: #93a9c4; }
.footer-bottom a { color: #e6c687; text-decoration: none; font-weight: 600; }
.footer-bottom a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cinema-bg, .ribbon-slide, .donut-seg-male, .bar-fill, .story-card, .story-card img, .staff-card, .staff-photo img, .potensi-photo-card, .potensi-img-wrap img, .btn {
    transform: none !important; transition: none !important;
  }
}

/* RESPONSIVE */
@media (max-width: 1020px) {
  .hero-shell, .dusun-explorer, .demo-layout, .editorial-split, .potensi-visual-grid, .dual-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .pimpinan-row { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    position: absolute; top: 78px; left: 0; right: 0;
    background: var(--surface); color: var(--ink);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px 20px; flex-direction: column; align-items: stretch;
    gap: 4px; display: none; box-shadow: 0 14px 32px rgba(8, 22, 44, 0.22);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a.btn-nav-cta { margin-left: 0; text-align: center; }
}
@media (max-width: 560px) {
  .cinema-hero { padding-top: 94px; padding-bottom: 44px; min-height: auto; }
  .section { padding: 56px 0; }
  .hero-leader { flex-direction: column; align-items: flex-start; }
  .spec-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pimpinan-card { flex-direction: column; align-items: flex-start; }
  .agenda-row { grid-template-columns: 1fr; }
}

/* BANNER PENGUMUMAN MENDESAK */
.urgent-banner {
  position: relative; z-index: 140; padding: 12px 0;
  margin-top: 78px;
  background: #0f294a; color: #ffffff;
  border-bottom: 2px solid var(--brass-bright);
}
.urgent-banner.warn { background: #92400e; border-bottom-color: #fbbf24; }
.urgent-banner.darurat { background: #991b1b; border-bottom-color: #fca5a5; }
.urgent-banner-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
}
.urgent-banner-copy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; line-height: 1.45; }
.urgent-pill {
  display: inline-flex; padding: 3px 9px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.urgent-banner-actions { display: flex; align-items: center; gap: 10px; }
.urgent-link {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 6px;
  background: #ffffff; color: #0b1f3a; font-weight: 700; font-size: 12.5px; text-decoration: none;
}
.urgent-close {
  width: 32px; height: 32px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent; color: #ffffff; font-size: 20px; line-height: 1; cursor: pointer;
}

/* TRANSPARANSI APBDES */
.apbdes-kpi-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px;
}
.apbdes-kpi {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.apbdes-kpi span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.apbdes-kpi strong { font-family: var(--font-serif); font-size: clamp(22px, 2.3vw, 30px); color: var(--navy); line-height: 1.15; }
.apbdes-kpi small { font-size: 13px; color: var(--ink-muted); }
.apbdes-kpi-accent { background: var(--navy-deep); border-color: var(--navy-deep); color: #ffffff; }
.apbdes-kpi-accent span { color: #d6e2f0; }
.apbdes-kpi-accent strong { color: #f1cf88; }
.apbdes-kpi-accent small { color: #c7d5e6; }
.apbdes-card { margin-top: 4px; }

/* SHARE BAR BERITA */
.news-share-bar {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.news-share-bar span { font-size: 13px; font-weight: 700; color: var(--ink-muted); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.share-wa { background: #15803d; color: #ffffff; }
.share-fb { background: #1d4ed8; color: #ffffff; }
.share-copy { background: var(--navy-soft); color: var(--navy); border-color: var(--border); }

/* SOSIAL MEDIA FOOTER & FLOATING WA */
.footer-sosmed { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sosmed-pill {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #ffffff; font-size: 12.5px; font-weight: 600;
  text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.16);
}
.sosmed-pill:hover { background: var(--brass-bright); color: #071427; border-color: var(--brass-bright); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 160;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  background: #15803d; color: #ffffff; text-decoration: none;
  font-weight: 700; font-size: 13.5px; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.28);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.wa-float:hover { transform: translateY(-3px); background: #166534; }

@media (max-width: 820px) {
  .apbdes-kpi-grid { grid-template-columns: 1fr; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; right: 16px; bottom: 16px; }
}
