/* ==========================================================================
   World of Luthfi — tampilan publik
   Warna aksen (--accent, --accent-ink) diisi dari dashboard lewat <style> di kerangka.
   ========================================================================== */

:root {
    --bg: #0e0e10;
    --surface: #17171a;
    --surface-2: #1f1f23;
    --active: #26262b;
    --line: #2a2a2f;
    --line-strong: #3a3a40;
    --text: #f4f4f5;
    --muted: #a1a1aa;
    --dim: #8b8b94;
    --accent: #e9a23b;
    --accent-ink: #16130d;
    --eng: #f4f4f5;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --node-offset: 9px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 30;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
    text-decoration: none;
}
.skip:focus { top: 16px; }

/* --- Kerangka -------------------------------------------------------- */

.backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shell {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 16px 104px;
}

/* --- Menu ------------------------------------------------------------ */

.rail {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 20;
    display: flex;
    gap: 2px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface-2);
    box-shadow: 0 8px 24px rgb(0 0 0 / 40%);
}

.rail__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 52px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.rail__item:hover { color: var(--text); }
.rail__item:active { transform: scale(0.97); }
.rail__num { color: var(--dim); font: 400 11px/1 var(--mono); }
.rail__item[aria-current='page'] { background: #2e2e34; color: var(--text); font-weight: 600; }
.rail__item[aria-current='page'] .rail__num { color: var(--accent); }

/* --- Kartu profil ---------------------------------------------------- */

.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.card__cover {
    position: relative;
    height: 124px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface) 70%);
}
.card__cover svg { width: 100%; height: 100%; }
.card__brand {
    position: absolute;
    left: 20px;
    top: 18px;
    color: var(--muted);
    font: 400 11px/1 var(--mono);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cover-line { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.cover-line--ads { stroke: var(--accent); }
.cover-line--eng { stroke: var(--eng); opacity: 0.85; }
.cover-dot--ads { fill: var(--accent); }
.cover-dot--eng { fill: var(--eng); }

.card__body { padding: 0 20px 20px; }

.card__avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin-top: -40px;
    overflow: hidden;
    border: 5px solid var(--surface);
    border-radius: 50%;
    background: var(--active);
    color: var(--muted);
    font: 600 22px/1 var(--font);
}
.card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.card__name {
    margin-top: 12px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.card__role {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    margin-top: 6px;
    color: var(--accent);
    font: 400 13px/1.4 var(--mono);
}
.card__role[data-track='engineering'] { color: var(--eng); }
.card__role[data-track='other'] { color: var(--muted); }
.caret { width: 7px; height: 15px; background: currentColor; animation: blink 1.1s steps(1) infinite; }

.card__tagline { display: none; margin-top: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.card__meta { display: none; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.card__meta div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding: 5px 0; }
.card__meta dt { color: var(--dim); font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.card__meta dd { font-size: 14px; font-weight: 500; }
.card__meta a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.card__meta a:hover { text-decoration-color: var(--accent); }
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: breathe 2.6s ease-in-out infinite;
}

.card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }

/* Di ponsel, halaman selain About memakai kartu ringkas. */
.shell:not([data-page='about']) .card__cover { display: none; }
.shell:not([data-page='about']) .card__body {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    align-items: center;
    padding: 12px;
}
.shell:not([data-page='about']) .card__avatar { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-width: 0; font-size: 14px; }
.shell:not([data-page='about']) .card__name { margin: 0; font-size: 15px; }
.shell:not([data-page='about']) .card__role { margin: 0; font-size: 11px; min-height: 16px; }
.shell:not([data-page='about']) .card__actions { display: none; }

/* --- Tombol ---------------------------------------------------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s var(--ease), background-color 0.3s var(--ease), border-color 0.3s var(--ease);
    will-change: transform;
}
.btn:active { transform: scale(0.98) !important; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--muted); }

/* --- Panel isi ------------------------------------------------------- */

.panel { margin-top: 16px; }
.panel:focus { outline: none; }
.panel__inner { padding: 8px; }

.panel__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; margin-bottom: 20px; }

.eyebrow {
    color: var(--dim);
    font: 400 12px/1.4 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lang { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.lang a {
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 28px;
    border-radius: 14px;
    color: var(--dim);
    font: 400 11px/1 var(--mono);
    text-decoration: none;
    text-transform: uppercase;
}
.lang a[aria-current='true'] { background: var(--active); color: var(--text); }

.headline {
    max-width: 18ch;
    font-size: clamp(28px, 4.4vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}
.headline--wide { max-width: 26ch; }

.lead { max-width: 60ch; margin-top: 20px; color: var(--muted); }

.section-title { margin: 44px 0 14px; }

/* --- Angka ----------------------------------------------------------- */

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}
.stat--highlight { grid-column: 1 / -1; }
.stat__value { display: block; font: 300 28px/1.15 var(--mono); letter-spacing: -0.03em; }
.stat--highlight .stat__value { color: var(--accent); font-size: clamp(44px, 7vw, 56px); letter-spacing: -0.04em; }
.stat__label { display: block; max-width: 30ch; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* --- Baris daftar ---------------------------------------------------- */

.rows { border-bottom: 1px solid var(--line); }
.row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 14px;
    align-items: baseline;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}
.row__name { font-weight: 600; }
.row__items { grid-column: 2; color: var(--muted); font-size: 14px; }
.row__meta { grid-column: 2; color: var(--dim); font: 400 11px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.row a { text-decoration: none; }
.row a:hover .row__name { color: var(--accent); }

.dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; }
.dot--ads { background: var(--accent); }
.dot--engineering { background: var(--eng); }
.dot--other { border: 1.5px solid var(--muted); }

/* --- Garis waktu dua jalur ------------------------------------------- */

.timeline {
    display: grid;
    grid-template-columns: 16px 16px minmax(0, 1fr);
    column-gap: 6px;
    margin-top: 28px;
}

.timeline__legend {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-column: 1 / -1;
    padding-bottom: 6px;
    color: var(--muted);
    font: 400 11px/1.4 var(--mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.timeline__legend--ads { grid-row: 1; }
.timeline__legend--engineering { grid-row: 2; padding-bottom: 18px; }

.node,
.entry,
.seg { grid-row: calc(var(--seq) + 2); }

.node {
    position: relative;
    justify-self: center;
    width: 10px;
    height: 10px;
    margin-top: calc(var(--node-offset) - 5px);
    border-radius: 50%;
    z-index: 1;
}
.node--ads { grid-column: 1; background: var(--accent); }
.node--engineering { grid-column: 2; background: var(--eng); }
.node--hollow { border: 2px solid var(--dim); background: var(--bg); }
.node--engineering.node--hollow { border-color: var(--eng); }
.node--current::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.22;
    animation: pulse 2.4s ease-out infinite;
}
.node--ads.node--current { color: var(--accent); }
.node--engineering.node--current { color: var(--eng); }

.seg {
    grid-row: calc(var(--mfrom) + 2) / calc(var(--mto) + 2);
    justify-self: center;
    width: 2px;
    margin-top: var(--node-offset);
    margin-bottom: calc(var(--node-offset) * -1);
    transform-origin: top;
}
.seg--ads { grid-column: 1; background: var(--accent); }
.seg--engineering { grid-column: 2; background: var(--eng); opacity: 0.9; }
.seg--dashed {
    background: repeating-linear-gradient(to bottom, #4a4a52 0 3px, transparent 3px 9px);
    opacity: 1;
}

.entry { grid-column: 3; padding: 0 0 22px 8px; }
.entry__period { color: var(--dim); font: 400 11px/1.6 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.entry--current.entry--ads .entry__period { color: var(--accent); }
.entry--current.entry--engineering .entry__period { color: var(--eng); }
.entry__title { font-size: 15px; font-weight: 600; line-height: 1.4; }
.entry__org { color: var(--muted); font-size: 13px; }
.entry__desc { max-width: 46ch; margin-top: 6px; color: var(--dim); font-size: 13px; line-height: 1.55; }
.entry--muted .entry__title { color: var(--muted); }

/* --- Kartu karya dan artikel ----------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 15px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: none;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--muted); color: var(--text); }
.chip[aria-current='true'],
.chip:has(input:checked) { border-color: var(--text); background: var(--text); color: var(--bg); font-weight: 600; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.tiles { display: grid; gap: 12px; margin-top: 24px; }
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--surface-2);
    text-decoration: none;
    transition: transform 0.4s var(--ease), background-color 0.4s var(--ease);
}
.tile:hover { background: #24242a; transform: translateY(-2px); }
.tile:active { transform: scale(0.99); }
.tile__visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 200px;
    padding: 24px 28px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--surface-2)), var(--surface-2) 75%);
}
.tile__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile__figure { position: relative; color: var(--accent); font: 300 clamp(56px, 9vw, 84px)/1 var(--mono); letter-spacing: -0.05em; }
.tile__body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 28px 28px; }
.tile__tag { display: flex; align-items: center; gap: 10px; color: var(--muted); font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.tile__title { font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.tile--featured .tile__title { font-size: 22px; letter-spacing: -0.02em; }
.tile__summary { color: var(--muted); font-size: 14px; line-height: 1.55; }
.tile__more { margin-top: auto; padding-top: 8px; color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.tile__foot { margin-top: auto; padding-top: 8px; color: var(--dim); font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

.empty {
    margin-top: 28px;
    padding: 40px 28px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-md);
    color: var(--muted);
}

.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }

.notice {
    margin-top: 20px;
    padding: 14px 18px;
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    font-size: 14px;
}

/* --- Halaman baca ---------------------------------------------------- */

.back { display: inline-block; color: var(--muted); font-size: 14px; text-decoration: none; }
.back:hover { color: var(--text); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0 12px; color: var(--muted); font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.article__cover { margin-top: 24px; overflow: hidden; border-radius: var(--radius-md); }

.prose { max-width: 65ch; margin-top: 28px; color: #d4d4d8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 2em; color: var(--text); font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; }
.prose h3 { margin-top: 1.6em; color: var(--text); font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--accent); text-underline-offset: 4px; }
.prose em { color: var(--muted); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--active); font: 400 0.9em var(--mono); }
.prose pre { overflow-x: auto; padding: 16px; border-radius: var(--radius-sm); background: var(--bg); }
.prose pre code { padding: 0; background: none; }
.prose blockquote { padding-left: 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose img { border-radius: var(--radius-sm); }

/* --- Formulir kontak ------------------------------------------------- */

.contact { display: grid; gap: 40px; margin-top: 32px; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label, .field > legend { padding: 0; font-size: 13px; font-weight: 500; }
fieldset.field { margin: 0; padding: 0; border: 0; }
.input {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg);
    transition: border-color 0.3s var(--ease);
}
.input::placeholder { color: var(--dim); }
.input:hover { border-color: var(--line-strong); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.input[aria-invalid='true'] { border-color: #f0787c; }
textarea.input { min-height: 120px; resize: vertical; }
.field__error { color: #f79a9d; font-size: 13px; }
.field__hint { color: var(--dim); font-size: 12px; }
.hp { position: absolute; left: -9999px; }

.info { border-bottom: 1px solid var(--line); }
.info div { padding: 16px 0; border-top: 1px solid var(--line); }
.info dt { color: var(--dim); font: 400 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.info dd { margin-top: 6px; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.info a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }

/* --- Blok unduh CV --------------------------------------------------- */

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding: 28px;
    border-radius: var(--radius-md);
    background: var(--surface-2);
}
.cta__title { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.cta__note { margin-top: 4px; color: var(--muted); font-size: 14px; }

/* --- Layar lebar: kartu kiri, panel kanan ----------------------------- */

@media (min-width: 1024px) {
    .shell {
        display: grid;
        grid-template-columns: 88px minmax(320px, 400px) minmax(0, 1fr);
        gap: 24px;
        height: 100dvh;
        min-height: 620px;
        padding: clamp(20px, 6vh, 60px) clamp(20px, 4vw, 64px);
    }

    .rail {
        position: static;
        align-self: start;
        flex-direction: column;
        gap: 4px;
        padding: 12px;
        border-radius: 24px;
        background: var(--surface);
        box-shadow: none;
    }
    .rail__item { flex: none; min-height: 64px; gap: 4px; }
    .rail__item[aria-current='page'] { background: var(--active); }

    .card { display: flex; flex-direction: column; overflow-y: auto; border-radius: var(--radius-lg); }
    .card__cover,
    .shell:not([data-page='about']) .card__cover { display: block; flex: none; height: 248px; }
    .card__brand { left: 32px; top: 28px; }
    .card__body,
    .shell:not([data-page='about']) .card__body { display: flex; flex: 1; flex-direction: column; align-items: stretch; padding: 0 32px 32px; }
    .card__avatar,
    .shell:not([data-page='about']) .card__avatar { flex: none; width: 112px; height: 112px; margin: -60px 0 0; border-width: 6px; font-size: 30px; }
    .card__name,
    .shell:not([data-page='about']) .card__name { margin-top: 24px; font-size: 30px; }
    .card__role,
    .shell:not([data-page='about']) .card__role { margin-top: 10px; font-size: 14px; min-height: 22px; }
    .card__tagline,
    .card__meta { display: block; }
    .card__actions,
    .shell:not([data-page='about']) .card__actions { display: grid; margin-top: auto; padding-top: 28px; }

    .panel {
        margin: 0;
        overflow-y: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        background: var(--surface);
        scrollbar-color: var(--line-strong) transparent;
        scrollbar-width: thin;
    }
    .panel__inner { padding: 36px 48px 48px; }

    .stats { grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
    .stat--highlight { grid-column: auto; }
    .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
    .stat:not(.stat--highlight) .stat__value { margin-top: 10px; font-size: 32px; }

    .row { grid-template-columns: auto 216px 1fr; gap: 16px; padding: 17px 0; }
    .row__items, .row__meta { grid-column: auto; }
    .row--post { grid-template-columns: 120px 1fr auto; }

    .timeline { grid-template-columns: 28px minmax(0, 1fr) 28px minmax(0, 1fr); column-gap: 0; }
    .timeline__legend--ads { grid-column: 1 / 3; grid-row: 1; padding-left: 9px; padding-bottom: 22px; }
    .timeline__legend--engineering { grid-column: 3 / 5; grid-row: 1; padding-left: 9px; padding-bottom: 22px; }
    .node, .entry { grid-row: calc(var(--row) + 1); }
    .seg { grid-row: calc(var(--from) + 1) / calc(var(--to) + 1); }
    .node { width: 12px; height: 12px; margin-top: calc(var(--node-offset) - 6px); }
    .node--ads, .seg--ads { grid-column: 1; }
    .node--engineering, .seg--engineering { grid-column: 3; }
    .entry { padding: 0 24px 20px 4px; }
    .entry--ads { grid-column: 2; }
    .entry--engineering { grid-column: 4; }

    .tiles { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
    .tile--featured { grid-row: span 2; }
    .tile--featured .tile__visual { min-height: 280px; }
    .tiles--single { grid-template-columns: 1fr; }

    .contact { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 40px; }
}

/* --- Gerakan --------------------------------------------------------- */

@keyframes blink { 50% { opacity: 0; } }
@keyframes breathe { 50% { opacity: 0.45; } }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.35; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes pop { from { transform: scale(0); } }

.cover-line { stroke-dasharray: 1; animation: draw 1.6s var(--ease) both; }
.cover-line--eng { animation-delay: 0.15s; }
.cover-dot { transform-box: fill-box; transform-origin: center; animation: pop 0.5s var(--ease) 1.1s both; }

/* Isi panel masuk berurutan. */
.panel__inner > * { animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
.panel__inner > :nth-child(2) { --i: 1; }
.panel__inner > :nth-child(3) { --i: 2; }
.panel__inner > :nth-child(4) { --i: 3; }
.panel__inner > :nth-child(5) { --i: 4; }
.panel__inner > :nth-child(n + 6) { --i: 5; }

.panel__inner { transition: opacity 0.18s ease, transform 0.18s ease; }
.panel.is-leaving .panel__inner { opacity: 0; transform: translateX(-16px); }

/* Garis waktu tergambar saat terlihat (hanya bila JavaScript aktif). */
.js [data-timeline]:not(.is-drawn) .seg { transform: scaleY(0); }
.js [data-timeline]:not(.is-drawn) .node { transform: scale(0); }
.js [data-timeline]:not(.is-drawn) .entry { opacity: 0; }
[data-timeline] .seg { transition: transform 0.7s var(--ease); transition-delay: calc(var(--mfrom) * 90ms); }
[data-timeline] .node { transition: transform 0.5s var(--ease); transition-delay: calc(var(--seq) * 90ms); }
[data-timeline] .entry { transition: opacity 0.6s var(--ease); transition-delay: calc(var(--seq) * 90ms); }

html[data-anim-transition='0'] .panel__inner,
html[data-anim-transition='0'] .panel__inner > * { animation: none; transition: none; }
html[data-anim-timeline='0'] [data-timeline] .seg,
html[data-anim-timeline='0'] [data-timeline] .node,
html[data-anim-timeline='0'] [data-timeline] .entry { transform: none !important; opacity: 1 !important; transition: none; }
html[data-anim-typed='0'] .caret { display: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }
    .caret, .node--current::after { display: none; }
}
