/* =========================================================
   Peta Pendidikan Kepri — Design System
   Token warna & tipografi ada di CLAUDE.md Bagian 5.
   ========================================================= */

:root {
    --laut-dalam: #0B3D3A;
    --hijau-kepri: #157A52;
    --hijau-kepri-2: #0f5e3e;
    --turkis-dangkal: #4FB6A3;
    --turkis-terang: #cfeae2;
    --pasir: #F1E9D6;
    --pasir-2: #FAF5E7;
    --kayu-perahu: #C98A3B;
    --kayu-perahu-2: #E5B36A;
    --tinta: #0E1B18;
    --tinta-lembut: #3a4a46;
    --putih: #ffffff;

    /* Palet ilustrasi hero (aerial illustrated) */
    --sky-0: #F7FBFE;
    --sky-1: #EAF3FB;
    --sky-2: #D7E7F2;
    --air-1: #A9CFE3;
    --air-2: #7FB1D4;
    --air-3: #5A9BC2;
    --biru-ink: #1E4E7A;
    --biru-tinta: #3A5D7A;

    --font-display: "Fraunces", ui-serif, Georgia, serif;
    --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(11, 61, 58, .06), 0 2px 6px rgba(11, 61, 58, .04);
    --shadow-md: 0 4px 12px rgba(11, 61, 58, .08), 0 10px 28px rgba(11, 61, 58, .06);

    --container-max: 1180px;
    --pad-x: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--pasir-2);
    color: var(--tinta);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--hijau-kepri); text-decoration: none; }
a:hover { color: var(--hijau-kepri-2); }

:focus-visible {
    outline: 2px solid var(--turkis-dangkal);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute; top: -40px; left: 12px;
    background: var(--laut-dalam); color: var(--putih);
    padding: .5rem .75rem; border-radius: 6px;
    z-index: 100;
}
.skip-link:focus { top: 12px; color: var(--putih); }

.num, .stat__num, .num-tab {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" on, "lnum" on;
}

/* ---------- Header / nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid rgba(11, 61, 58, .08);
}
.site-header--over-hero {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.is-landing { position: relative; }
.site-header--over-hero .site-nav > a:not(.btn) { color: var(--biru-tinta); }
.site-header--over-hero .site-nav > a:not(.btn):hover { color: var(--biru-ink); }
.site-header--over-hero .brand { color: var(--biru-ink); }
.site-header--over-hero .brand__text em { color: var(--air-3); }

.site-header__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: .9rem var(--pad-x);
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex; align-items: center; gap: .6rem;
    color: var(--tinta); font-weight: 700;
}
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}
.brand__text em { font-style: italic; color: var(--hijau-kepri); font-weight: 600; }

.site-nav {
    display: flex; align-items: center; gap: 1.5rem;
    font-size: .95rem;
}
.site-nav > a:not(.btn) { color: var(--tinta-lembut); font-weight: 500; }
.site-nav > a:not(.btn):hover { color: var(--laut-dalam); }
.site-nav .btn { margin-left: .5rem; }

@media (max-width: 640px) {
    .site-nav > a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem;
    padding: .78rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .98rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
    background: var(--hijau-kepri);
    color: var(--putih);
    box-shadow: 0 6px 14px rgba(21, 122, 82, .28);
}
.btn--primary:hover {
    background: var(--hijau-kepri-2);
    color: var(--putih);
    box-shadow: 0 8px 18px rgba(21, 122, 82, .34);
}
.btn--ghost {
    background: transparent;
    color: var(--pasir);
    border-color: rgba(241, 233, 214, .35);
}
.btn--ghost:hover { background: rgba(241, 233, 214, .12); color: var(--putih); }
.btn--outline {
    background: transparent;
    color: var(--laut-dalam);
    border-color: rgba(11, 61, 58, .18);
}
.btn--outline:hover { border-color: var(--laut-dalam); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn__arrow { transition: transform .18s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Layout helpers ---------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hijau-kepri);
}
.eyebrow::before {
    content: ""; width: 22px; height: 1px; background: currentColor;
}

.section__head { margin-bottom: 2.4rem; max-width: 60ch; }
.section__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    color: var(--laut-dalam);
    margin: .5rem 0 .8rem;
    letter-spacing: -0.015em;
}
.section__sub { color: var(--tinta-lembut); max-width: 55ch; }

/* =========================================================
   STACK — panel sticky yang saling menumpuk saat digulir
   Panel N pin di viewport; panel N+1 naik menimpanya sambil
   panel N mengecil & meredup (efek "masuk ke tumpukan").
   ========================================================= */
.stack {
    position: relative;
}
.panel {
    position: sticky;
    top: 0;
    /* Dikunci satu layar supaya bisa di-pin; konten diskalakan agar muat */
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    will-change: transform, filter;
    transform-origin: 50% 0%;
    /* transform & filter di-drive oleh JS saat panel tertimpa */
}
/* Kasus ekstrem (konten sangat tinggi) → lepas dari stack, alur normal */
.panel.is-tall {
    position: relative;
    height: auto;
    min-height: 100svh;
    transform: none !important;
    filter: none !important;
}
/* Panel di atas hero dapat sudut membulat + bayangan naik
   supaya terbaca sebagai kartu yang menimpa */
.panel:not(.panel--hero) {
    border-radius: 34px 34px 0 0;
    box-shadow:
        0 -1px 0 rgba(255, 255, 255, .5),
        0 -30px 70px -24px rgba(11, 61, 58, .38);
}
.panel--dark {
    box-shadow:
        0 -1px 0 rgba(201, 138, 59, .28),
        0 -30px 70px -24px rgba(0, 0, 0, .5);
}
.panel__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: clamp(3rem, 7vh, 5.5rem);
    padding-bottom: clamp(3rem, 7vh, 5.5rem);
    /* Skala pengaman: JS menyetel --fit bila konten sedikit melebihi layar */
    transform: scale(var(--fit, 1));
    transform-origin: 50% 50%;
}

/* Garis aksen halus di bibir atas panel */
.panel:not(.panel--hero)::before {
    content: "";
    position: absolute; top: 0; left: 12%; right: 12%;
    height: 2px;
    z-index: 3;
    background: linear-gradient(90deg,
        transparent, rgba(201, 138, 59, .55) 30%,
        rgba(201, 138, 59, .55) 70%, transparent);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-1px) scaleX(.6);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.panel.is-active::before {
    opacity: 1;
    transform: translateY(0) scaleX(1);
}

/* Di layar kecil / mobile: matikan sticky, kembali ke alur normal */
@media (max-width: 900px), (max-height: 560px) {
    .panel {
        position: relative;
        height: auto;
        min-height: 0;
        transform: none !important;
        filter: none !important;
    }
    .panel__inner, .hero__content { transform: none !important; }
    .panel:not(.panel--hero) { border-radius: 26px 26px 0 0; }
}

/* ---------- Indikator progres di sisi kanan ---------- */
.stack-nav {
    position: fixed;
    right: clamp(.9rem, 2vw, 1.8rem);
    top: 50%;
    transform: translateY(-50%);
    z-index: 45;
    display: flex; flex-direction: column; gap: .9rem;
    align-items: flex-end;
}
.stack-nav a {
    display: flex; align-items: center; gap: .6rem;
    text-decoration: none;
    color: var(--tinta-lembut);
}
.stack-nav__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: currentColor;
    opacity: .3;
    transition: opacity .3s ease, transform .3s ease, background .3s ease;
}
.stack-nav__lbl {
    font-size: .7rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity .3s ease, transform .3s ease;
    white-space: nowrap;
}
.stack-nav a:hover .stack-nav__lbl { opacity: .75; transform: none; }
.stack-nav a.is-current .stack-nav__dot {
    opacity: 1;
    transform: scale(1.5);
    background: var(--kayu-perahu);
}
.stack-nav a.is-current .stack-nav__lbl { opacity: 1; transform: none; color: var(--kayu-perahu); }
/* Saat panel gelap aktif, ubah warna indikator */
.stack-nav.on-dark a { color: rgba(241, 233, 214, .85); }
@media (max-width: 900px) { .stack-nav { display: none; } }

/* =========================================================
   HERO — Landing pendidikan Kepri (image background)
   Latar: /img/hero-landing.jpeg (ilustrasi Kepri).
   Layer: glow spotlight tengah, vignette kiri-bawah/kanan-bawah,
   ornamen animasi (.hero__fx), chip statistik, indikator gulir.
   ========================================================= */
.hero {
    color: var(--biru-ink);
    justify-content: center;
    padding: clamp(70px, 11vh, 110px) var(--pad-x) clamp(70px, 11vh, 120px);
    background: var(--sky-0);
}

/* ---------- Background image + overlay depth ---------- */
.hero__bg {
    position: absolute; inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero__bg-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    /* center — cocok dengan xMidYMid slice pada .hero__fx agar sejajar */
    object-position: center;
    /* Zoom-in loop sangat lambat supaya gambar terasa hidup */
    animation: heroZoom 24s ease-in-out infinite alternate;
    will-change: transform;
    transform-origin: 50% 50%;
}
@keyframes heroZoom {
    0%   { transform: scale(1.02); }
    100% { transform: scale(1.07); }
}

/* Spotlight lembut di tengah — memfokuskan mata ke teks */
.hero__bg-glow {
    position: absolute; inset: 0;
    background: radial-gradient(
        ellipse 55% 45% at 50% 42%,
        rgba(255,255,255,.75) 0%,
        rgba(255,255,255,.35) 40%,
        rgba(255,255,255,0) 75%
    );
}

/* Vignette — memperjelas kaki hero yang menyatu ke section berikut */
.hero__bg-vignette {
    position: absolute; inset: 0;
    background:
        linear-gradient(to bottom, rgba(255,255,255,0) 62%, #FAF6EC 100%),
        linear-gradient(to right, rgba(255,255,255,0) 78%, rgba(215,231,242,.35) 100%);
}

/* ---------- Lapisan ornamen animasi di atas ilustrasi ----------
   viewBox 1536×1024 + slice meniru object-fit:cover pada gambar,
   sehingga koordinat SVG menempel tepat pada elemen ilustrasi.
   Animasi zoom-nya dibuat identik agar keduanya bergerak seiring. */
.hero__fx {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    animation: heroZoom 24s ease-in-out infinite alternate;
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Kilatan yang meluncur sepanjang rute laut */
.fx-route {
    stroke-dasharray: 26 620;
    stroke-dashoffset: 646;
    animation: routeFlow 5.2s cubic-bezier(.5,0,.5,1) infinite;
}
.fx-route--b { animation-delay: 1.3s; animation-duration: 4.4s; }
.fx-route--c { animation-delay: 2.4s; animation-duration: 4.8s; }
.fx-route--d { animation-delay: 3.4s; animation-duration: 5.6s; }
@keyframes routeFlow {
    0%        { stroke-dashoffset: 646; opacity: 0; }
    12%       { opacity: .85; }
    82%       { opacity: .85; }
    100%      { stroke-dashoffset: 0;   opacity: 0; }
}

/* ---------- Konten teks di tengah hero ---------- */
.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    padding: 0 .5rem;
    transform: scale(var(--fit, 1));
    transform-origin: 50% 50%;
}
.hero__eyebrow {
    color: var(--air-3);
    justify-content: center;
    padding: .35rem .85rem;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 999px;
    border: 1px solid rgba(90, 155, 194, .25);
    box-shadow: 0 4px 14px rgba(30, 78, 122, .08);
}
.hero__eyebrow::before { display: none; }
.hero__title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.2rem, 5.6vw, 4.2rem);
    line-height: 1.03;
    letter-spacing: -0.025em;
    color: var(--biru-ink);
    margin: 1.1rem auto 1.2rem;
    max-width: 20ch;
    text-shadow: 0 2px 24px rgba(255,255,255,.6);
}
.hero__title em {
    font-style: italic;
    color: var(--kayu-perahu);
    font-weight: 500;
    background: linear-gradient(180deg, transparent 62%, rgba(229,179,106,.28) 62%, rgba(229,179,106,.28) 92%, transparent 92%);
    padding: 0 .1em;
}
.hero__sub {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--biru-tinta);
    max-width: 56ch;
    margin: 0 auto 2rem;
    text-shadow: 0 1px 12px rgba(255,255,255,.7);
}
.hero__ctas {
    display: flex; flex-wrap: wrap; gap: .8rem;
    justify-content: center;
}

/* ---------- Chip statistik di bawah CTA ---------- */
.hero__chips {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .7rem;
    margin-top: 2.4rem;
}
.hero-chip {
    display: inline-flex; align-items: baseline; gap: .55rem;
    padding: .55rem 1rem;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border: 1px solid rgba(90, 155, 194, .22);
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(30, 78, 122, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}
.hero-chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 78, 122, .14);
}
.hero-chip__num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--biru-ink);
    letter-spacing: -0.01em;
}
.hero-chip__lbl {
    font-size: .82rem;
    color: var(--biru-tinta);
    font-weight: 500;
}

/* ---------- Indikator gulir di kaki hero ---------- */
.hero__scroll {
    position: absolute;
    left: 50%; bottom: 30px;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    color: var(--biru-tinta);
    font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
    opacity: .8;
    transition: opacity .2s;
}
.hero__scroll:hover { opacity: 1; color: var(--biru-ink); }
.hero__scroll-tick {
    stroke: currentColor; stroke-linecap: round;
    animation: scrollTick 1.8s ease-in-out infinite;
}
@keyframes scrollTick {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50%      { transform: translateY(4px); opacity: .3; }
}
@media (max-width: 700px) {
    .hero__scroll { display: none; }
    .hero__chips { gap: .5rem; }
    .hero-chip { padding: .45rem .8rem; }
    .hero-chip__num { font-size: 1rem; }
}

/* ---------- Reveal-up animasi teks hero ---------- */
.reveal-up {
    opacity: 0;
    transform: translateY(14px);
    animation: revealUp .9s ease-out .1s forwards;
}
.reveal-up--2 { animation-delay: .25s; }
.reveal-up--3 { animation-delay: .4s; }
@keyframes revealUp {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    /* SMIL di dalam .hero__fx tak bisa dihentikan lewat CSS,
       jadi lapisan ornamennya disembunyikan sepenuhnya. */
    .hero__fx { display: none; }
    .reveal-up, .reveal-up--2, .reveal-up--3,
    .hero__bg-img, .hero__scroll-tick {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    html { scroll-behavior: auto; }
}

/* =========================================================
   EDITORIAL SYSTEM — dipakai semua panel konten
   ========================================================= */

/* ---------- Background ilustrasi per panel ---------- */
.sec-bg {
    position: absolute; inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: inherit;
}
.sec-bg__img {
    position: absolute;
    top: -8%; left: 0;
    width: 100%; height: 116%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
}

/* ---------- Nomor bab + label ---------- */
.ed-head {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: clamp(1rem, 2.4vh, 2rem);
}
.ed-head__num {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    color: var(--kayu-perahu);
    font-variant-numeric: tabular-nums;
}
.ed-head__num::after {
    content: "";
    display: inline-block;
    width: 44px; height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-left: 1rem;
    opacity: .5;
}
.ed-head__label {
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--tinta-lembut);
}
.ed-head--dark .ed-head__num { color: var(--kayu-perahu-2); }
.ed-head--dark .ed-head__label { color: rgba(241, 233, 214, .68); }

/* ---------- Split editorial: headline kiri, lede kanan ---------- */
.ed-split {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: clamp(1.2rem, 4vw, 3.5rem);
    align-items: end;
    padding-bottom: clamp(1.1rem, 2.6vh, 2.2rem);
    margin-bottom: clamp(1.2rem, 3vh, 2.4rem);
    border-bottom: 1px solid rgba(11, 61, 58, .12);
}
@media (max-width: 900px) {
    .ed-split { grid-template-columns: 1fr; align-items: start; }
}
.ed-headline {
    font-family: var(--font-display);
    font-weight: 500;
    /* sadar tinggi viewport: mengecil di layar pendek */
    font-size: clamp(1.9rem, min(4.2vw, 5.4vh), 3.4rem);
    line-height: 1.03;
    letter-spacing: -0.028em;
    color: var(--laut-dalam);
    margin: 0;
    max-width: 17ch;
}
.ed-headline em {
    font-style: italic;
    font-weight: 500;
    color: var(--kayu-perahu);
}
.ed-aside { display: grid; gap: .8rem; }
.ed-lede {
    font-size: clamp(.98rem, 1.15vw, 1.08rem);
    line-height: 1.62;
    color: var(--tinta-lembut);
    max-width: 46ch;
    margin: 0;
}
.ed-lede--em {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.4;
    color: var(--hijau-kepri);
}

/* =========================================================
   01 — MASALAH
   ========================================================= */
.masalah { background: #FAF6EC; }

.figures {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: clamp(.9rem, 1.6vw, 1.4rem);
}
@media (max-width: 900px) { .figures { grid-template-columns: 1fr; } }

.figure-card {
    background: rgba(255, 255, 255, .74);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border: 1px solid rgba(201, 138, 59, .18);
    border-radius: 18px;
    padding: clamp(1rem, min(1.8vw, 2.4vh), 1.6rem);
    display: flex; flex-direction: column;
    transition:
        transform .5s cubic-bezier(.2,.8,.2,1),
        box-shadow .5s cubic-bezier(.2,.8,.2,1),
        background .35s ease,
        border-color .35s ease;
    box-shadow: 0 18px 50px -22px rgba(11, 61, 58, .18);
}
.figure-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .9);
    border-color: rgba(201, 138, 59, .4);
    box-shadow: 0 30px 70px -20px rgba(11, 61, 58, .26);
}
.figure-card__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--tinta-lembut);
    font-weight: 600;
    margin-bottom: .9rem;
}
.figure-card__value {
    display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
    margin-bottom: .8rem;
}
.figure-num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2rem, min(4vw, 5vh), 3.2rem);
    line-height: .95;
    letter-spacing: -0.035em;
    color: var(--laut-dalam);
    font-variant-numeric: tabular-nums;
}
.figure-card--lead .figure-num { font-size: clamp(2.4rem, min(5vw, 6.2vh), 4rem); }
.figure-unit {
    font-size: .92rem; font-weight: 500;
    color: var(--tinta-lembut);
}
.figure-card__desc {
    color: var(--tinta-lembut);
    font-size: .93rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.figure-card__src {
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid rgba(11, 61, 58, .1);
    font-size: .71rem;
    color: var(--tinta-lembut);
    opacity: .78;
}
.figure-card__src em { font-style: italic; color: var(--kayu-perahu); }

/* Strip catatan / kasus contoh */
.note-strip {
    margin-top: clamp(.8rem, 1.8vh, 1.4rem);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
    padding: clamp(.7rem, 1.6vh, 1rem) 1.4rem;
    background: var(--laut-dalam);
    border-radius: 16px;
    color: var(--pasir);
    position: relative;
    overflow: hidden;
}
.note-strip::after {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 100% 0%, rgba(79, 182, 163, .22), transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(201, 138, 59, .16), transparent 60%);
    pointer-events: none;
}
.note-strip__mark { color: var(--turkis-dangkal); flex: 0 0 auto; position: relative; z-index: 1; }
.note-strip p {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(.95rem, 1.15vw, 1.08rem);
    line-height: 1.45;
    position: relative; z-index: 1;
}
.note-strip cite {
    font-style: normal;
    font-size: .68rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--turkis-dangkal);
    font-weight: 600;
    white-space: nowrap;
    position: relative; z-index: 1;
}
@media (max-width: 900px) {
    .note-strip { grid-template-columns: 1fr; gap: .7rem; }
    .note-strip cite { white-space: normal; }
}

/* =========================================================
   02 — CARA KERJA
   ========================================================= */
.cara-kerja { background: #FBF8F1; }

.chapters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2.4vw, 2.2rem);
}
@media (max-width: 900px) { .chapters { grid-template-columns: 1fr; } }

.chapter {
    position: relative;
    padding: clamp(.9rem, 2vh, 1.2rem) 1.2rem clamp(1rem, 2.2vh, 1.4rem);
    border-radius: 16px;
    transition: background .4s ease;
}
.chapter:hover {
    background: rgba(255, 255, 255, .58);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.chapter::before {
    content: "";
    position: absolute; top: 0; left: 1.2rem; right: 1.2rem;
    height: 1px;
    background: linear-gradient(to right,
        var(--kayu-perahu) 0%, var(--kayu-perahu) 30%, transparent 100%);
    opacity: .7;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .7s cubic-bezier(.2,.8,.2,1);
}
.chapter.is-visible::before { transform: scaleX(1); }
.chapter__num {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.4rem, min(5vw, 6.5vh), 4.2rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.4px var(--hijau-kepri);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    margin: .2rem 0 clamp(.6rem, 1.6vh, 1rem);
    opacity: .85;
    transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
.chapter:hover .chapter__num {
    color: var(--hijau-kepri);
    -webkit-text-stroke-color: transparent;
}
.chapter__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    line-height: 1.2;
    color: var(--laut-dalam);
    margin: 0 0 .7rem;
    letter-spacing: -0.015em;
}
.chapter__desc {
    color: var(--tinta-lembut);
    font-size: .95rem;
    line-height: 1.6;
    margin: 0 0 1.1rem;
}
.chapter__desc strong { color: var(--laut-dalam); font-weight: 600; }
.chapter__tags {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-wrap: wrap; gap: .4rem;
}
.chapter__tags li {
    font-size: .72rem;
    padding: .32rem .75rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(21, 122, 82, .18);
    color: var(--hijau-kepri);
    border-radius: 999px;
    font-weight: 600;
    transition: background .2s ease, border-color .2s ease;
}
.chapter:hover .chapter__tags li {
    background: rgba(21, 122, 82, .1);
    border-color: rgba(21, 122, 82, .3);
}

/* =========================================================
   03 — CTA
   ========================================================= */
.peta-mini {
    background: #0C4238;
    color: var(--pasir);
}
.peta-mini::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(105deg,
        rgba(10, 55, 46, .84) 0%,
        rgba(10, 55, 46, .56) 42%,
        rgba(10, 55, 46, .18) 72%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
}
.cta-editorial { max-width: 900px; }
.cta-editorial__quote {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5.4vw, 4.6rem);
    line-height: 1.03;
    letter-spacing: -0.03em;
    color: var(--pasir);
    margin: .8rem 0 1.6rem;
    max-width: 18ch;
    quotes: none;
    text-shadow: 0 2px 40px rgba(0, 0, 0, .32);
}
.cta-editorial__quote em {
    font-style: italic;
    color: var(--kayu-perahu-2);
    font-weight: 400;
}
.cta-editorial__meta {
    font-size: clamp(.98rem, 1.2vw, 1.12rem);
    line-height: 1.6;
    color: rgba(241, 233, 214, .78);
    max-width: 52ch;
    margin: 0 0 2.2rem;
}
.cta-editorial__actions {
    display: flex; flex-wrap: wrap; gap: 1rem;
    align-items: center;
}
.btn--lg { padding: 1rem 1.6rem; font-size: 1.05rem; }
.btn--ghost {
    color: rgba(241, 233, 214, .85);
    background: transparent;
    border: 1px solid rgba(241, 233, 214, .25);
}
.btn--ghost:hover {
    background: rgba(241, 233, 214, .08);
    color: var(--pasir);
    border-color: rgba(241, 233, 214, .5);
}

/* =========================================================
   SCROLL REVEAL — IntersectionObserver
   ========================================================= */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .9s cubic-bezier(.2, .8, .2, 1),
        transform .9s cubic-bezier(.2, .8, .2, 1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}
[data-reveal][data-reveal-delay="1"] { transition-delay: .12s; }
[data-reveal][data-reveal-delay="2"] { transition-delay: .24s; }
[data-reveal][data-reveal-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }
    .chapter::before { transform: scaleX(1) !important; }
    .hero__fx { display: none; }
    .sec-bg__img,
    .hero__bg-img, .hero__scroll-tick {
        animation: none !important;
        transform: none !important;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background: var(--tinta);
    color: rgba(241, 233, 214, .78);
    padding: 3rem 0 1.5rem;
    font-size: .92rem;
}

/* ---- Footer landing: satu latar dengan panel CTA ---- */
.site-footer--kepri {
    position: relative;
    z-index: 6;              /* di atas panel CTA yang sticky */
    background: #0C4238;
    overflow: hidden;
    isolation: isolate;
    padding-top: clamp(2.6rem, 5vh, 3.6rem);
}
/* Potongan bawah ilustrasi: gelombang + ornamen Melayu emas */
.sec-bg__img--footer {
    top: auto; bottom: 0;
    height: auto;
    min-height: 100%;
    object-position: center bottom;
}
/* Scrim agar teks tetap kontras di atas ilustrasi */
.site-footer--kepri::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 55, 46, .90) 0%,
        rgba(10, 55, 46, .72) 45%,
        rgba(10, 55, 46, .86) 100%
    );
    pointer-events: none;
    z-index: 1;
}
.site-footer--kepri > .site-footer__inner,
.site-footer--kepri > .site-footer__bar {
    position: relative;
    z-index: 2;
}

/* ---- Garis pemisah CTA ↔ footer ---- */
.site-footer--kepri::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    z-index: 3;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(201, 138, 59, .25) 12%,
        var(--kayu-perahu) 38%,
        var(--kayu-perahu-2) 50%,
        var(--kayu-perahu) 62%,
        rgba(201, 138, 59, .25) 88%,
        transparent 100%
    );
    box-shadow: 0 0 18px rgba(201, 138, 59, .45);
}
.site-footer__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--pad-x);
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.3fr;
    gap: 2.5rem;
}
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer h4 {
    font-family: var(--font-display); font-size: 1rem; font-weight: 600;
    color: var(--pasir); margin: 0 0 .6rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.brand--footer .brand { color: var(--pasir); }
.brand--footer .brand__text em { color: var(--turkis-dangkal); }
.muted { color: rgba(241, 233, 214, .6); }
.site-footer__bar {
    max-width: var(--container-max);
    margin: 2.5rem auto 0;
    padding: 1.2rem var(--pad-x) 0;
    border-top: 1px solid rgba(241, 233, 214, .12);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
    font-size: .82rem; color: rgba(241, 233, 214, .55);
}
