/* ==========================================================================
   SC Pemkab HTML — Desain 10 "Swiss"
   Gaya International Typographic Style: grid 12 kolom, tipografi dominan,
   hitam/putih + satu aksen biru elektrik.
   Template oleh sharecode.id — MIT License
   ========================================================================== */

/* ---------- Font (self-host, lihat NOTICE.md) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Tight"; src: url("../fonts/inter-tight-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Variabel (ganti warna/font di sini) ---------- */
:root {
  --ink: #0a0a0a;          /* hitam utama */
  --paper: #ffffff;        /* putih */
  --blue: #0057ff;         /* aksen biru elektrik */
  --blue-dark: #0043c7;    /* hover biru */
  --grey-50: #f5f5f3;
  --grey-100: #ececea;
  --grey-300: #cfcfcc;
  --grey-600: #575757;
  --success: #0a7d3b;
  --danger: #c4161c;

  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;

  --gutter: 24px;
  --pad: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --rule: 2px solid var(--ink);
  --hair: 1px solid var(--ink);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 .5em; font-weight: 800; }
h3, h4 { letter-spacing: -0.015em; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 300; background: var(--blue); color: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 8px; color: #fff; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; flex-shrink: 0; display: inline-block; vertical-align: -0.22em; }

/* ---------- Grid dasar ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.c-12 { grid-column: span 12; } .c-9 { grid-column: span 9; } .c-8 { grid-column: span 8; }
.c-7 { grid-column: span 7; } .c-6 { grid-column: span 6; } .c-5 { grid-column: span 5; }
.c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; }
.s-4 { grid-column-start: 4; } .s-5 { grid-column-start: 5; } .s-7 { grid-column-start: 7; }

/* Overlay grid (tekan G atau tombol "Grid") — ciri khas desain Swiss */
.grid-overlay { position: fixed; inset: 0; z-index: 250; pointer-events: none; opacity: 0; transition: opacity .25s; }
.grid-overlay .wrap { height: 100%; }
.grid-overlay .grid { height: 100%; }
.grid-overlay span { background: rgba(0, 87, 255, .07); border-left: 1px solid rgba(0, 87, 255, .35); border-right: 1px solid rgba(0, 87, 255, .35); }
body.show-grid .grid-overlay { opacity: 1; }

/* ---------- Tipografi utilitas ---------- */
.label { font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.num { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.blue { color: var(--blue); }
.muted { color: var(--grey-600); }
.lead { font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.display { font-size: clamp(52px, 10.5vw, 184px); line-height: .86; letter-spacing: -0.055em; font-weight: 800; margin: 0; }
.h-xl { font-size: clamp(40px, 6vw, 96px); line-height: .92; letter-spacing: -0.045em; }
.h-lg { font-size: clamp(32px, 4vw, 60px); line-height: .96; letter-spacing: -0.04em; }
.h-md { font-size: clamp(24px, 2.4vw, 34px); }
.h-sm { font-size: 21px; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border: var(--rule);
  background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s; line-height: 1.2;
}
.btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--ink); border-color: var(--ink); }
.btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { padding: 9px 14px; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: var(--hair); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--blue); }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #e9e9e9; font-size: 13px; }
.topbar .wrap { display: flex; gap: 24px; align-items: center; min-height: 36px; justify-content: space-between; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: #8fb0ff; }
.topbar__info { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar .grid-toggle { background: none; border: 1px solid #555; color: #fff; padding: 2px 10px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.topbar .grid-toggle[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: var(--hair); transition: box-shadow .2s, border-color .2s; }
.site-header.is-stuck { border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand img { width: 44px; height: 44px; }
.brand__text { font-family: var(--font-head); font-weight: 800; line-height: .95; letter-spacing: -0.03em; font-size: 21px; }
.brand__text small { display: block; font-family: var(--font-body); font-weight: 600; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--grey-600); margin-bottom: 3px; }
.brand:hover { color: var(--ink); }
.nav-main { display: flex; align-items: stretch; height: 100%; }
.nav-main a { display: flex; align-items: center; gap: 6px; padding: 0 14px; height: 100%; font-weight: 600; font-size: 15px; text-decoration: none; position: relative; }
.nav-main a sup { font-size: 10px; font-weight: 500; color: var(--grey-600); }
.nav-main a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 4px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.nav-main a:hover::after, .nav-main a[aria-current="page"]::after { transform: scaleX(1); }
.nav-main a[aria-current="page"] { color: var(--blue); }
.nav-main a[aria-current="page"] sup { color: var(--blue); }
.index-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; border: 0; height: 44px; padding: 0 16px; font-weight: 600; font-size: 15px; }
.index-btn:hover { background: var(--blue); }
.index-btn .bars { width: 18px; height: 12px; position: relative; border-top: 2px solid; border-bottom: 2px solid; }
.index-btn .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid; }

/* ---------- Panel indeks (menu penuh / menu mobile) ---------- */
.index-panel { position: fixed; inset: 0; z-index: 200; background: var(--paper); overflow-y: auto; visibility: hidden; opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.index-panel.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.index-panel__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: var(--rule); }
.index-close { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; height: 44px; padding: 0 16px; font-weight: 600; }
.index-close:hover { background: var(--ink); }
.index-list { list-style: none; padding: 16px 0 48px; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: var(--gutter); }
.index-list li { border-bottom: var(--hair); }
.index-list a { display: flex; align-items: baseline; gap: 18px; padding: 14px 0; text-decoration: none; font-family: var(--font-head); font-weight: 800; letter-spacing: -0.035em; font-size: clamp(26px, 3.4vw, 48px); line-height: 1; }
.index-list a span { font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--grey-600); min-width: 28px; }
.index-list a:hover, .index-list a[aria-current="page"] { color: var(--blue); }
.index-list a[aria-current="page"] span { color: var(--blue); }
.index-panel__foot { border-top: var(--rule); padding: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 16px 40px; font-size: 15px; }
body.no-scroll { overflow: hidden; }

/* ---------- Section ---------- */
.section { padding: clamp(56px, 8vw, 120px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--grey { background: var(--grey-50); }
.section--ink { background: var(--ink); color: #fff; }
.section--blue { background: var(--blue); color: #fff; }
.sec-head { border-top: var(--rule); padding-top: 18px; margin-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.section--ink .sec-head, .section--blue .sec-head { border-color: #fff; }
.sec-head__no { grid-column: span 3; display: flex; flex-direction: column; gap: 4px; }
.sec-head__no b { font-family: var(--font-head); font-size: 15px; font-weight: 800; }
.sec-head__title { grid-column: span 6; margin: 0; }
.sec-head__aside { grid-column: span 3; display: flex; justify-content: flex-end; align-items: flex-start; }

/* ---------- Hero beranda ---------- */
.hero { padding: clamp(32px, 4vw, 56px) 0 0; border-bottom: var(--rule); overflow: hidden; }
.hero__meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: var(--hair); padding-bottom: 12px; margin-bottom: clamp(24px, 3vw, 40px); }
.hero__title { grid-column: span 8; }
.hero__title .display span { display: block; }
.hero__title .display .blue { color: var(--blue); }
.hero__art { grid-column: 9 / span 4; grid-row: 1 / span 2; align-self: end; }
.hero__art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__intro { grid-column: 1 / span 5; grid-row: 2; margin-top: 36px; align-self: end; margin-bottom: 0; }
.hero__actions { grid-column: 6 / span 3; grid-row: 2; margin-top: 36px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; align-self: end; }
.hero__stats { margin-top: clamp(40px, 5vw, 72px); border-top: var(--rule); display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 20px 20px 24px 0; border-right: var(--hair); }
.stat + .stat { padding-left: 20px; }
.stat:last-child { border-right: 0; }
.stat .num { font-size: clamp(36px, 4.4vw, 72px); line-height: 1; display: block; margin: 6px 0 4px; }
.stat small { color: var(--grey-600); font-size: 14px; }

/* Slider sorotan (hero) */
.ticker { background: var(--ink); color: #fff; }
.ticker .wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 72px; }
.ticker__label { background: var(--blue); align-self: stretch; display: flex; align-items: center; padding: 0 18px; margin-left: calc(var(--pad) * -1); padding-left: var(--pad); }
.slider { position: relative; overflow: hidden; }
.slider__track { display: flex; transition: transform .6s var(--ease); }
.slide { flex: 0 0 100%; min-width: 0; padding: 14px 0; }
.slide a { color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: clamp(16px, 1.5vw, 21px); letter-spacing: -0.02em; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slide a:hover { color: #9db8ff; }
.slide time { color: #a8a8a8; font-size: 13px; margin-right: 12px; font-family: var(--font-body); font-weight: 500; letter-spacing: 0; }
.slider__ctrl { display: flex; align-items: center; gap: 4px; }
.slider__ctrl button { width: 40px; height: 40px; border: 1px solid #555; background: none; color: #fff; display: grid; place-items: center; }
.slider__ctrl button:hover { background: var(--blue); border-color: var(--blue); }
.slider__count { font-variant-numeric: tabular-nums; font-size: 14px; min-width: 64px; text-align: center; }

/* ---------- Layanan cepat (grid ikon) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: var(--hair); border-left: var(--hair); }
.svc { border-right: var(--hair); border-bottom: var(--hair); padding: 24px; min-height: 220px; display: flex; flex-direction: column; text-decoration: none; position: relative; background: var(--paper); transition: background .2s, color .2s; }
.svc__no { font-size: 13px; font-weight: 600; color: var(--grey-600); }
.svc .icon { width: 40px; height: 40px; stroke-width: 1.5; margin: 18px 0 auto; }
.svc h3 { font-size: 22px; margin: 24px 0 6px; }
.svc p { font-size: 14.5px; margin: 0; color: var(--grey-600); }
.svc__go { position: absolute; top: 22px; right: 22px; opacity: 0; transform: translate(-6px, 6px); transition: .25s var(--ease); }
.svc:hover { background: var(--blue); color: #fff; }
.svc:hover p, .svc:hover .svc__no { color: rgba(255, 255, 255, .85); }
.svc:hover .svc__go { opacity: 1; transform: none; }

/* ---------- Sambutan ---------- */
.welcome__fig { grid-column: span 4; }
.welcome__fig img { width: 100%; background: var(--grey-100); }
.welcome__fig figcaption { border-top: var(--rule); margin-top: 12px; padding-top: 10px; }
.welcome__fig figcaption b { display: block; font-family: var(--font-head); font-size: 20px; letter-spacing: -0.02em; }
.welcome__body { grid-column: 6 / span 7; }
.welcome__quote { font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 32px; text-indent: -0.42em; }
.welcome__body .cols { columns: 2; column-gap: var(--gutter); font-size: 16px; }
.signature { margin-top: 24px; font-family: var(--font-head); font-weight: 800; font-size: 28px; letter-spacing: -0.04em; color: var(--blue); }

/* ---------- Tab ---------- */
.tabs { display: flex; gap: 0; border-bottom: var(--rule); margin-bottom: 32px; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 12px 20px 12px 0; margin-right: 20px; font-family: var(--font-head); font-weight: 800; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.03em; color: #767676; position: relative; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 20px; bottom: -2px; height: 6px; background: var(--blue); }
.tab:hover { color: var(--ink); }
.tab-panel[hidden] { display: none; }
.tabs--sm .tab { font-size: 17px; padding: 10px 14px 10px 0; margin-right: 14px; }

/* ---------- Kartu berita ---------- */
.news-feature { grid-column: span 7; text-decoration: none; display: block; }
.news-feature img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-feature h3 { font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.035em; line-height: 1.02; margin: 16px 0 10px; }
.news-list { grid-column: span 5; list-style: none; border-top: var(--rule); }
.news-list li { border-bottom: var(--hair); }
.news-list a { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 0; text-decoration: none; align-items: start; }
.news-list img { width: 96px; height: 72px; object-fit: cover; }
.news-list h4 { font-size: 17px; margin: 4px 0 0; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--grey-600); align-items: center; }
.meta .cat { color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
.card { text-decoration: none; display: flex; flex-direction: column; border-top: var(--rule); padding-top: 14px; }
.card__img { overflow: hidden; margin-bottom: 14px; background: var(--grey-100); }
.card__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.04); }
.card h3 { font-size: 22px; margin: 8px 0; }
.card p { font-size: 15px; color: var(--grey-600); margin: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px var(--gutter); }

/* ---------- Daftar / tabel ---------- */
.row-list { list-style: none; border-top: var(--rule); }
.row-list > li { border-bottom: var(--hair); }
.row { display: grid; grid-template-columns: 140px 1fr auto; gap: var(--gutter); padding: 20px 0; align-items: center; text-decoration: none; transition: background .2s, padding .25s var(--ease); }
a.row:hover { background: var(--grey-50); padding-left: 12px; padding-right: 12px; }
.row h3, .row h4 { font-size: 19px; margin: 0 0 4px; }
.row p { margin: 0; font-size: 15px; color: var(--grey-600); }
.tag { display: inline-block; border: var(--hair); padding: 3px 9px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.tag--ink { background: var(--ink); color: #fff; }
.table-wrap { overflow-x: auto; border-top: var(--rule); }
.table { font-size: 15px; min-width: 640px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 14px 12px 14px 0; border-bottom: var(--hair); color: var(--grey-600); }
.table td { padding: 14px 12px 14px 0; border-bottom: var(--hair); vertical-align: top; }
.table td.n, .table th.n { text-align: right; font-variant-numeric: tabular-nums; }
.table tbody tr:hover { background: var(--grey-50); }
.table tfoot td { font-weight: 700; border-bottom: var(--rule); }

/* ---------- Statistik ---------- */
.stat-big { border-top: var(--rule); padding-top: 16px; }
.stat-big .num { font-size: clamp(48px, 6vw, 104px); line-height: .9; display: block; margin: 10px 0 8px; }
.section--ink .stat-big { border-color: #fff; }
.section--ink .muted { color: #b5b5b5; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 180px 1fr 90px; gap: 16px; align-items: center; font-size: 15px; }
.bar__track { height: 22px; background: rgba(255, 255, 255, .12); position: relative; }
.section:not(.section--ink) .bar__track { background: var(--grey-100); }
.bar__fill { position: absolute; inset: 0 auto 0 0; background: var(--blue); width: 0; transition: width 1.2s var(--ease); }
.bar__val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Agenda ---------- */
.agenda-item { display: grid; grid-template-columns: 120px 1fr 220px auto; gap: var(--gutter); padding: 22px 0; align-items: center; }
.agenda-date { display: flex; align-items: baseline; gap: 8px; }
.agenda-date .num { font-size: 56px; line-height: .85; }
.agenda-date span { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.agenda-item h3 { font-size: 21px; margin: 0 0 4px; }
.agenda-place { font-size: 14.5px; color: var(--grey-600); display: flex; gap: 8px; }
.calendar { border: var(--rule); }
.calendar__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: var(--hair); font-family: var(--font-head); font-weight: 800; font-size: 20px; }
.calendar__grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 14px; }
.calendar__grid span { padding: 10px 0; border-right: 1px solid var(--grey-100); border-bottom: 1px solid var(--grey-100); font-variant-numeric: tabular-nums; }
.calendar__grid span:nth-child(7n) { border-right: 0; }
.calendar__grid .dow { font-weight: 600; font-size: 12px; color: var(--grey-600); text-transform: uppercase; }
.calendar__grid .has { background: var(--blue); color: #fff; font-weight: 700; }
.calendar__grid .today { outline: 2px solid var(--ink); outline-offset: -2px; font-weight: 700; }

/* ---------- Wisata (asimetris) ---------- */
.tour-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.tour { position: relative; text-decoration: none; display: block; }
.tour img { width: 100%; height: 100%; object-fit: cover; }
.tour__fig { overflow: hidden; height: 100%; }
.tour:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.tour:nth-child(2) { grid-column: span 5; }
.tour:nth-child(3) { grid-column: span 5; }
.tour__cap { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 14px 18px 12px 0; max-width: 80%; }
.tour__cap h3 { margin: 4px 0 0; font-size: clamp(20px, 2vw, 30px); }
.tour:hover .tour__cap h3 { color: var(--blue); }
.tour--tall .tour__fig { aspect-ratio: auto; }

/* ---------- CTA ---------- */
.cta { background: var(--blue); color: #fff; }
.cta .wrap { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(48px, 6vw, 88px); align-items: end; }
.cta h2 { grid-column: span 8; margin: 0; }
.cta__act { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- Header halaman dalam ---------- */
.page-head { border-bottom: var(--rule); padding: clamp(32px, 5vw, 72px) 0 0; }
.crumb { font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; color: var(--grey-600); list-style: none; }
.crumb li + li::before { content: "/"; margin-right: 8px; color: var(--grey-300); }
.crumb a { text-decoration: none; }
.page-head__grid { margin-top: 24px; align-items: end; }
.page-head__no { grid-column: span 3; font-family: var(--font-head); font-weight: 800; font-size: clamp(64px, 9vw, 150px); line-height: .8; letter-spacing: -0.06em; color: var(--blue); }
.page-head__title { grid-column: span 9; }
.page-head__title h1 { font-size: clamp(42px, 7vw, 116px); line-height: .88; letter-spacing: -0.05em; margin: 0; }
.page-head__lead { grid-column: 4 / span 6; margin: 28px 0 0; }
.subnav { display: flex; gap: 0; overflow-x: auto; margin-top: 40px; border-top: var(--hair); scrollbar-width: none; }
.subnav a { padding: 14px 22px 14px 0; margin-right: 22px; text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.subnav a span { color: var(--grey-600); font-weight: 500; margin-right: 6px; }

/* ---------- Teks panjang ---------- */
.prose { font-size: 18px; line-height: 1.7; }
.prose h2 { font-size: clamp(26px, 2.6vw, 36px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 22px; margin: 1.4em 0 .4em; }
.prose blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 6px solid var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; letter-spacing: -0.025em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 14px; color: var(--grey-600); border-top: var(--hair); margin-top: 10px; padding-top: 8px; }
.dropcap::first-letter { float: left; font-family: var(--font-head); font-weight: 800; font-size: 5.2em; line-height: .78; margin: .06em .08em 0 0; color: var(--blue); }

/* Timeline (sejarah) */
.timeline { list-style: none; border-top: var(--rule); }
.timeline li { display: grid; grid-template-columns: 3fr 9fr; gap: var(--gutter); border-bottom: var(--hair); padding: 24px 0; }
.timeline .num { font-size: clamp(36px, 4vw, 60px); line-height: .9; }
.timeline h3 { font-size: 21px; margin-bottom: 6px; }
.timeline p { margin: 0; color: var(--grey-600); }

/* Misi bernomor */
.misi { list-style: none; counter-reset: misi; }
.misi li { counter-increment: misi; display: grid; grid-template-columns: 64px 1fr; border-top: var(--hair); padding: 18px 0; font-size: 18px; }
.misi li::before { content: counter(misi, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 22px; }

/* Definisi (geografis) */
.deflist { display: grid; grid-template-columns: 1fr 1fr; border-top: var(--rule); }
.deflist div { border-bottom: var(--hair); padding: 14px 0; }
.deflist div:nth-child(odd) { padding-right: 16px; }
.deflist dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--grey-600); }
.deflist dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }

/* ---------- Pejabat ---------- */
.person { border-top: var(--rule); padding-top: 14px; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--grey-100); margin-bottom: 16px; }
.person h3 { font-size: 26px; margin: 4px 0; }
.person p { color: var(--grey-600); font-size: 15px; }
.org { display: grid; gap: 0; text-align: center; }
.org__row { display: flex; justify-content: center; gap: var(--gutter); position: relative; padding-top: 28px; flex-wrap: wrap; }
.org__row + .org__row::before { content: ""; position: absolute; top: 0; left: 50%; height: 28px; border-left: var(--hair); }
.org__box { border: var(--rule); padding: 12px 16px; min-width: 180px; background: var(--paper); font-size: 14px; }
.org__box b { display: block; font-family: var(--font-head); font-size: 16px; letter-spacing: -0.01em; }
.org__box--blue { background: var(--blue); color: #fff; border-color: var(--blue); }
.org__box--ink { background: var(--ink); color: #fff; }

/* ---------- Toolbar filter/pencarian ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 280px; max-width: 460px; }
.search input { width: 100%; border: 0; border-bottom: var(--rule); padding: 12px 12px 12px 36px; background: transparent; font-size: 17px; border-radius: 0; }
.search input:focus { outline: none; border-color: var(--blue); }
.search .icon { position: absolute; left: 0; top: 50%; transform: translateY(-50%); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: var(--hair); background: var(--paper); padding: 8px 14px; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.empty { padding: 40px 0; border-bottom: var(--hair); color: var(--grey-600); }
.result-count { font-size: 14px; color: var(--grey-600); }
.is-hidden { display: none !important; }

/* ---------- Akordeon ---------- */
.acc { border-top: var(--rule); }
.acc__item { border-bottom: var(--hair); }
.acc__btn { width: 100%; background: none; border: 0; text-align: left; display: grid; grid-template-columns: 48px 1fr 32px; gap: 12px; align-items: center; padding: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.015em; }
.acc__btn span:first-child { color: var(--grey-600); font-size: 14px; font-family: var(--font-body); }
.acc__btn:hover { color: var(--blue); }
.acc__sign { width: 28px; height: 28px; position: relative; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 6px; right: 6px; top: 13px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.acc__sign::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__sign::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.acc__panel > div { overflow: hidden; }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { padding: 0 44px 24px 60px; color: var(--grey-600); }

/* Alur langkah */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); border-top: var(--rule); }
.steps li { padding: 18px 18px 18px 0; border-right: var(--hair); }
.steps li + li { padding-left: 18px; }
.steps li:last-child { border-right: 0; }
.steps .num { font-size: 44px; color: var(--blue); line-height: 1; display: block; margin-bottom: 14px; }
.steps h4 { font-size: 18px; margin: 0 0 6px; }
.steps p { margin: 0; font-size: 14.5px; color: var(--grey-600); }

/* Kartu layanan detail */
.svc-detail { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); border-top: var(--rule); padding: 28px 0; }
.svc-detail h3 { font-size: 26px; margin-top: 8px; }
.svc-detail ul { padding-left: 1.1em; }
.svc-detail li { margin-bottom: 4px; }
.svc-detail__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 18px; border-top: var(--hair); padding-top: 14px; font-size: 14.5px; }
.svc-detail__meta b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--grey-600); }

/* ---------- Galeri ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); grid-auto-flow: dense; }
.gallery__item { position: relative; border: 0; padding: 0; background: var(--grey-100); overflow: hidden; text-align: left; aspect-ratio: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery__item:nth-child(1), .gallery__item:nth-child(9) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 10px 12px; background: var(--paper); font-size: 14px; font-weight: 600; transform: translateY(100%); transition: transform .3s var(--ease); display: flex; justify-content: space-between; gap: 8px; }
.gallery__item:hover figcaption, .gallery__item:focus-visible figcaption { transform: none; }
.gallery__item figcaption span { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.lightbox, .vmodal { position: fixed; inset: 0; z-index: 400; background: rgba(10, 10, 10, .96); color: #fff; display: none; align-items: center; justify-content: center; padding: 64px 72px; }
.lightbox.is-open, .vmodal.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; background: #fff; }
.lightbox figcaption { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #fff; margin-top: 14px; padding-top: 10px; font-size: 15px; }
.lb-btn { position: absolute; width: 52px; height: 52px; border: 1px solid #fff; background: transparent; color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: var(--blue); border-color: var(--blue); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
.vmodal__box { width: min(1100px, 100%); aspect-ratio: 16 / 9; background: #000; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; }

.video-card { border: 0; background: none; padding: 0; text-align: left; width: 100%; border-top: var(--rule); padding-top: 14px; }
.video-card__thumb { position: relative; overflow: hidden; margin-bottom: 14px; }
.video-card__thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s var(--ease); }
.video-card__play { position: absolute; left: 0; bottom: 0; width: 72px; height: 72px; background: var(--blue); display: grid; place-items: center; color: #fff; transition: width .3s var(--ease); }
.video-card__play .icon { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.video-card:hover .video-card__play { width: 112px; }
.video-card:hover img { transform: scale(1.04); }
.video-card h3 { font-size: 21px; margin: 6px 0 4px; }
.video-card__dur { position: absolute; right: 0; top: 0; background: var(--ink); color: #fff; font-size: 13px; padding: 4px 10px; font-variant-numeric: tabular-nums; }

/* ---------- Form ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea { border: 0; border-bottom: var(--rule); padding: 10px 0; background: transparent; font-size: 17px; border-radius: 0; width: 100%; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 50%, calc(100% - 6px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); }
.field__err { color: var(--danger); font-size: 13.5px; min-height: 1em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 3px; }

.toast { position: fixed; left: 50%; bottom: 24px; z-index: 500; visibility: hidden; transform: translate(-50%, calc(100% + 40px)); background: var(--ink); color: #fff; padding: 16px 20px; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); border-left: 8px solid var(--blue); transition: transform .4s var(--ease); font-size: 15px; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- Kontak ---------- */
.contact-cell { border-top: var(--rule); padding-top: 14px; }
.contact-cell h3 { font-size: 20px; margin: 10px 0 6px; }
.contact-cell p { margin: 0; color: var(--grey-600); font-size: 15.5px; }
.map { width: 100%; height: 440px; border: 0; filter: grayscale(1) contrast(1.1); display: block; }

/* ---------- Artikel ---------- */
.article-head h1 { font-size: clamp(36px, 5vw, 78px); line-height: .94; letter-spacing: -0.045em; }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.share a, .share button { width: 44px; height: 44px; display: grid; place-items: center; border: var(--hair); background: var(--paper); text-decoration: none; }
.share a:hover, .share button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.aside-box { border-top: var(--rule); padding-top: 14px; margin-bottom: 40px; }
.aside-box h2 { font-size: 20px; letter-spacing: -0.02em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: flex; gap: 0; margin-top: 48px; border-top: var(--rule); }
.pager a, .pager span { min-width: 52px; height: 52px; display: grid; place-items: center; border-right: var(--hair); text-decoration: none; font-weight: 600; padding: 0 12px; }
.pager [aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dcdcdc; padding-top: clamp(56px, 7vw, 96px); font-size: 15px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #8fb0ff; }
.footer-word { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: clamp(48px, 10.6vw, 178px); line-height: .82; letter-spacing: -0.06em; margin: 0 0 clamp(40px, 5vw, 72px); }
.footer-word span { color: var(--blue); }
.footer-grid { border-top: 2px solid #fff; padding-top: 20px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: #9a9a9a; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid address { font-style: normal; }
.footer-bottom { border-top: 1px solid #333; margin-top: 56px; padding: 18px 0 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: #a5a5a5; }
.footer-bottom a { text-decoration: underline; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 52px; height: 52px; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .3s var(--ease); }
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ink); }

/* ---------- 404 ---------- */
.e404 { min-height: 70vh; display: flex; align-items: center; border-bottom: var(--rule); padding: 48px 0; }
.e404 .num { font-size: clamp(140px, 30vw, 480px); line-height: .78; color: var(--blue); letter-spacing: -0.07em; }

/* ---------- Animasi muncul ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsif ---------- */
@media (max-width: 1240px) {
  .nav-main a { padding: 0 9px; font-size: 14px; }
  .nav-main a::after { left: 9px; right: 9px; }
  .nav-main a sup { display: none; }
}
@media (max-width: 1080px) {
  .nav-main { display: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .agenda-item { grid-template-columns: 110px 1fr auto; }
  .agenda-item .agenda-place { grid-column: 2; }
  .agenda-item .agenda-act { grid-column: 3; grid-row: 1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li, .steps li + li { padding: 18px 18px 18px 0; border-right: 0; border-bottom: var(--hair); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --header-h: 66px; }
  .c-9, .c-8, .c-7, .c-6, .c-5, .c-4, .c-3 { grid-column: span 12; }
  .footer-grid .c-3, .footer-grid .c-2 { grid-column: span 6; }
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .s-4, .s-5, .s-7 { grid-column-start: auto; }
  .hero__title, .hero__art, .hero__intro, .hero__actions { grid-column: span 12; grid-row: auto; }
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__art { order: -1; max-width: 360px; }
  .hero__art img { aspect-ratio: 16 / 10; }
  .hero__actions { justify-content: flex-start; margin-top: 8px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(3) { padding-left: 0; }
  .stat:nth-child(n+3) { border-top: var(--hair); }
  .sec-head__no { grid-column: span 12; flex-direction: row; gap: 12px; }
  .sec-head__title { grid-column: span 12; }
  .sec-head__aside { grid-column: span 12; justify-content: flex-start; }
  .welcome__fig, .welcome__body { grid-column: span 12; }
  .welcome__fig { max-width: 340px; }
  .welcome__body .cols { columns: 1; }
  .news-feature, .news-list { grid-column: span 12; }
  .tour:nth-child(n) { grid-column: span 12; grid-row: auto; }
  .tour__fig { aspect-ratio: 4 / 3; }
  .cta h2, .cta__act { grid-column: span 12; }
  .page-head__no, .page-head__title, .page-head__lead { grid-column: span 12; }
  .page-head__no { font-size: 64px; }
  .row { grid-template-columns: 1fr; gap: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .svc-detail { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 120px 1fr 70px; font-size: 14px; }
  .index-list { grid-template-columns: 1fr; }
  .ticker .wrap { grid-template-columns: 1fr auto; }
  .ticker__label { display: none; }
  .lightbox, .vmodal { padding: 64px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .form { grid-template-columns: 1fr; }
  .card-grid { gap: 36px var(--gutter); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar__info span:not(:first-child) { display: none; }
  .brand__text { font-size: 18px; }
  .brand img { width: 38px; height: 38px; }
  .index-btn .t { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { min-height: 0; padding: 16px; }
  .svc .icon { width: 32px; height: 32px; margin: 12px 0 0; }
  .svc h3 { font-size: 18px; margin-top: 14px; }
  .svc p { font-size: 13.5px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .agenda-item { grid-template-columns: 76px 1fr; }
  .agenda-item .agenda-act { grid-column: 2; grid-row: auto; }
  .agenda-date { flex-direction: column; gap: 2px; }
  .agenda-date .num { font-size: 42px; }
  .steps { grid-template-columns: 1fr; }
  .deflist { grid-template-columns: 1fr; }
  .svc-detail__meta { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 1fr 64px; }
  .bar__label { grid-column: 1 / -1; }
  .welcome__quote { text-indent: 0; }
  .acc__btn { grid-template-columns: 32px 1fr 28px; font-size: 17px; }
  .acc__inner { padding: 0 0 20px 44px; }
  .slider__count { display: none; }
}
@media print {
  .topbar, .site-header, .index-panel, .to-top, .site-footer, .cta { display: none !important; }
}
