/* ==========================================================
   SDN 2 Duda Timur — desain baru (hijau pegunungan)
   Dipakai halaman versi baru. Halaman lama tetap pakai style.css.
   ========================================================== */

:root {
    --bg: #EEF2EC;
    --bg-soft: #DFE8DD;
    --ink: #0F1A14;
    --muted: #4F5D54;
    --line: #CFD8CF;
    --accent: #1F4D3A;
    --accent-ink: #EEF2EC;
    --deep: #0F241B;
    --deep-line: #3E5A4C;
    --deep-muted: #A9BDB1;
    --deep-text: #CBD8CF;
    --foot-muted: #BFD3C6;
    --media: #C7D6C9;
    --radius: 6px;
    --wrap: 1360px;
    --gutter: clamp(16px, 4vw, 40px);
    --font-display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
    --font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; z-index: 50; }
.skip-link:focus { top: 12px; color: var(--accent-ink); }

/* ── Tombol ─────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    min-height: 48px; padding: 0 24px; border-radius: 999px;
    font: 500 15px/1 var(--font-body); cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-light { background: var(--bg); color: var(--ink); }
.btn-light:hover { color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-lift { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), background-color .3s; }
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 36, 27, .18); }
.text-link { font-size: 15px; border-bottom: 1px solid currentColor; padding: 10px 0 2px; }
.link-button { background: none; border: 0; padding: 10px 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── Header ─────────────────────────────── */
.site-header { position: relative; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 20px; padding-bottom: 20px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; }
.main-nav a { padding: 12px 0; }
.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--accent); }
.main-nav .nav-pill { padding: 11px 18px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; font: 500 15px var(--font-body); color: var(--ink); cursor: pointer; }

/* ── Hero ───────────────────────────────── */
.hero { padding-top: clamp(40px, 7vw, 104px); padding-bottom: 44px; }
.eyebrow { margin: 0 0 24px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-title { font-size: clamp(38px, 6.4vw, 100px); line-height: 1.0; letter-spacing: -0.035em; max-width: 1220px; }
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--accent); }
.hero-bar { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.stats { margin: 0; display: flex; flex-wrap: wrap; gap: 16px 48px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 4px 0 0; font: 600 32px/1.1 var(--font-display); font-variant-numeric: tabular-nums; }

.hero-photo { margin-top: 0; margin-bottom: 0; }
.hero-photo img { width: 100%; height: auto; aspect-ratio: 21 / 9; min-height: 260px; object-fit: cover; object-position: 35% 70%; border-radius: var(--radius); background: var(--media); }
.hero-photo figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ── Pita berjalan ──────────────────────── */
.ribbon { margin-top: clamp(56px, 7vw, 96px); background: var(--accent); color: var(--accent-ink); overflow: hidden; padding: 20px 0; }
.ribbon-track { display: flex; width: max-content; font: 500 clamp(22px, 3vw, 40px)/1.2 var(--font-display); white-space: nowrap; animation: marquee 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { padding-right: 48px; }

/* ── Seksi umum ─────────────────────────── */
.section { padding-top: clamp(64px, 8vw, 128px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 3.2vw, 44px); }

/* Kartu kegiatan */
.feature-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card-0, .card-3 { grid-column: span 7; }
.card-1, .card-2 { grid-column: span 5; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--media); aspect-ratio: 16 / 10; }
.card-1 .card-media, .card-2 .card-media { aspect-ratio: 4 / 3.4; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), opacity .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-tag { position: absolute; left: 14px; bottom: 14px; background: var(--bg); color: var(--ink); font-size: 12px; padding: 5px 10px; border-radius: 999px; }
.card-meta { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; }
.card-title { font-weight: 600; transition: color .4s var(--ease); }
.card:hover .card-title { color: var(--accent); }
.card-sub { color: var(--muted); white-space: nowrap; }

/* Arsip + filter */
.archive { margin-top: 72px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 500 14px var(--font-body); cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); }
.chip span { opacity: .7; margin-left: 4px; }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
a.chip { display: inline-flex; align-items: center; }
a.chip:hover { color: var(--ink); background: var(--bg-soft); }
a.chip[aria-current="true"]:hover { color: var(--accent-ink); background: var(--accent); }
.archive-list, .service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.archive-list li[hidden] { display: none; }
.archive-list li.is-entering { animation: row-in .5s var(--ease-out) both; animation-delay: var(--i, 0s); }
.archive-empty { color: var(--muted); padding: 18px 8px; }

.row-link { display: flex; align-items: center; gap: 16px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background-color .45s var(--ease), padding .45s var(--ease-out), color .3s; }
.row-link:hover { background: var(--bg-soft); padding-left: 16px; color: var(--ink); }
.row-arrow { display: inline-flex; opacity: 0; transform: translateX(-10px); transition: opacity .4s var(--ease), transform .5s var(--ease-out); }
.row-link:hover .row-arrow, .row-link:focus-visible .row-arrow { opacity: 1; transform: none; }
.row-title { flex: 1; font: 400 clamp(18px, 2vw, 26px)/1.25 var(--font-display); letter-spacing: -0.01em; }
.row-cat { color: var(--muted); font-size: 14px; min-width: 150px; }
.row-date { color: var(--muted); font-size: 14px; min-width: 76px; text-align: right; }
.row-link.big { padding: 24px 8px; border-bottom-color: var(--ink); }
.row-link.big .row-title { font-size: clamp(28px, 4.4vw, 64px); letter-spacing: -0.03em; }
.row-link.big .row-cat { max-width: 320px; text-align: right; font-size: 15px; }

/* Visi */
.statement { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.statement > .eyebrow { grid-column: span 3; }
.statement > div { grid-column: span 9; }
.statement-text { margin: 0 0 32px; font: 400 clamp(26px, 3.2vw, 46px)/1.15 var(--font-display); letter-spacing: -0.02em; }

/* Pengumuman */
.dark-band { background: var(--deep); color: var(--bg); margin-top: clamp(64px, 8vw, 128px); }
.dark-band .section { padding-bottom: clamp(64px, 8vw, 120px); }
.dark-band a { color: var(--bg); }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
.news { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--deep-line); padding-top: 20px; }
.news-meta { font-size: 13px; color: var(--deep-muted); }
.news-flag { margin-left: 8px; font-weight: 600; color: var(--bg); background: var(--accent); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.news-title { font: 400 24px/1.2 var(--font-display); }
.news:hover .news-title { text-decoration: underline; text-underline-offset: 4px; }
.news-text { font-size: 15px; color: var(--deep-text); }

.service-list { margin-top: 0; }

/* ── Halaman daftar & artikel ──────────── */
.page-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: 32px; }
.page-title { font-size: clamp(40px, 6vw, 88px); line-height: 1; letter-spacing: -0.035em; }
.page-lead { margin: 18px 0 0; max-width: 560px; font-size: 17px; color: var(--muted); }

.list-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--ink); }
.list-tools .chips { margin: 0; }
.search { display: flex; gap: 8px; flex: 1 1 280px; max-width: 420px; min-width: 0; }
.search input { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 46px; padding: 0 16px; border: 1px solid var(--muted); border-radius: 999px; background: #fff; font: 16px var(--font-body); color: var(--ink); }
.search .btn { min-height: 46px; }
.result-note { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.result-note a { text-decoration: underline; text-underline-offset: 3px; }

.ann-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ann { display: grid; grid-template-columns: 84px minmax(0, 1fr) 28px; gap: 8px 24px; align-items: start; padding: 26px 8px; border-bottom: 1px solid var(--line); transition: background-color .45s var(--ease), padding .45s var(--ease-out); }
.ann:hover { background: var(--bg-soft); padding-left: 16px; color: var(--ink); }
.ann:hover .row-arrow { opacity: 1; transform: none; }
.ann .row-arrow { align-self: center; }
.ann-date { display: flex; flex-direction: column; font-family: var(--font-display); line-height: 1; }
.ann-day { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ann-month { margin-top: 6px; font-size: 13px; color: var(--muted); font-family: var(--font-body); }
.ann-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ann-meta { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.flag { font-weight: 600; font-size: 12px; color: var(--accent-ink); background: var(--accent); padding: 2px 9px; border-radius: 999px; }
.flag-soft { font-weight: 500; color: var(--accent); background: transparent; border: 1px solid var(--accent); }
.ann-title { font: 500 clamp(20px, 2.2vw, 28px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.ann-text { color: var(--muted); font-size: 15px; }
.empty { padding: 48px 8px; border-top: 1px solid var(--line); }
.empty p { margin: 0 0 20px; color: var(--muted); }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-top: 32px; }
.pager > :last-child { justify-self: end; }
.pager-info { color: var(--muted); font-size: 14px; }

.article { max-width: 860px; padding-top: clamp(28px, 4vw, 56px); }
.back-link { display: inline-flex; padding: 10px 0; font-size: 15px; color: var(--muted); }
.article-head { margin: 20px 0 32px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.article-title { margin-top: 14px; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.article-date { margin: 16px 0 0; color: var(--muted); font-size: 15px; }

.prose { font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.6em 0 .5em; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 1.5em 0 .5em; letter-spacing: -0.01em; }
.prose h4 { font-size: 17px; font-weight: 600; margin: 1.2em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.4em; }
.prose li { margin: .3em 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.table-scroll { margin: 1.2em 0 1.6em; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.table-scroll:focus-visible { outline-offset: 2px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose thead th { background: var(--bg); font-weight: 600; white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: #F7F9F6; }

.attachment { margin: 32px 0 0; }
.attachment img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.file-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--ink); border-radius: 10px; }
.file-info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.file-info span { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.more { padding-top: clamp(56px, 7vw, 96px); }

/* ── Profil ─────────────────────────────── */
.fact-grid { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.fact-grid > div { padding: 20px 16px 4px 0; }
.fact-grid dt { font-size: 13px; color: var(--muted); }
.fact-grid dd { margin: 6px 0 0; font: 600 clamp(26px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.split > .eyebrow { grid-column: span 3; margin: 6px 0 0; font-family: var(--font-body); font-weight: 400; letter-spacing: .08em; }
.split > div { grid-column: span 9; min-width: 0; }
.sub-label { margin: 40px 0 16px; font: 500 14px var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; border-top: 1px solid var(--line); }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.numbered li::before { content: counter(n, decimal-leading-zero); font: 600 15px/1.6 var(--font-display); color: var(--accent); }
.history-mark { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 20px !important; color: var(--muted); font-size: 15px; }
.history-mark span { font: 600 clamp(44px, 6vw, 80px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--accent); }
.principal { display: flex; align-items: center; gap: 20px; padding: 24px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.principal .person-initial { width: 72px; height: 72px; font-size: 30px; }
.principal .person-name { font-size: clamp(22px, 2.4vw, 30px); }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.person { display: flex; align-items: center; gap: 16px; padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.person-initial { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--accent); font: 600 22px/1 var(--font-display); }
.person-name { margin: 0; font: 500 18px/1.3 var(--font-display); overflow-wrap: anywhere; }
.person-role { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.two-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; }
.list-title { font-size: clamp(24px, 2.6vw, 32px); padding-bottom: 16px; border-bottom: 1px solid var(--ink); margin-bottom: 0; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.identity { margin: 0; border-top: 1px solid var(--ink); }
.identity > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.identity dt { color: var(--muted); font-size: 15px; }
.identity dd { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.identity a { text-decoration: underline; text-underline-offset: 3px; }
.muted { color: var(--muted); font-size: 14px; }

/* ── Galeri ─────────────────────────────── */
.gallery-count { margin: 18px 0 0; font-size: 14px; color: var(--muted); letter-spacing: .02em; }
.spotlight { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px 40px; align-items: center; margin-top: 8px; }
.spotlight-media { grid-column: span 8; position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--deep); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s var(--ease); }
.spotlight-media:hover img { transform: scale(1.025); filter: brightness(.92); }
.spotlight-text { grid-column: span 4; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.spotlight-title { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.1; letter-spacing: -0.025em; }
.spotlight-desc { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.play-btn { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; padding-left: 4px; color: var(--deep); background: rgba(238, 242, 236, .92); box-shadow: 0 10px 30px rgba(15, 36, 27, .3); transition: transform .5s var(--ease-out), background-color .3s; }
.spotlight-media:hover .play-btn { transform: scale(1.08); background: var(--bg); }

.gallery-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 8px; border-top: 1px solid var(--ink); }
.gallery-tools .chips { margin: 0; }
.gallery-status { margin: 0; font-size: 14px; color: var(--muted); min-height: 1em; }
.year-group { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-top: 40px; }
.year-group[hidden] { display: none; }
.year-label { position: sticky; top: 24px; align-self: start; margin: 0; font: 600 clamp(32px, 3.6vw, 52px)/1 var(--font-display); letter-spacing: -0.04em; color: var(--accent); }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.g-card[hidden] { display: none; }
.g-link { display: flex; flex-direction: column; gap: 12px; }
.g-link:hover { color: var(--ink); }
.g-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--media); }
.g-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .5s var(--ease); }
.g-link:hover .g-media img { transform: scale(1.04); filter: brightness(.9); }
.g-badge { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(15, 26, 20, .72); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-meta { font-size: 13px; color: var(--muted); }
.g-title { font: 500 19px/1.3 var(--font-display); letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .35s var(--ease); }
.g-link:hover .g-title { color: var(--accent); }

/* ── Layanan musiman: pita, status, SPMB, kelulusan ── */
.season-bar { background: var(--deep); color: var(--accent-ink); font-size: 14px; }
.season-row { display: flex; flex-wrap: wrap; gap: 0 28px; }
.season-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: inherit; min-height: 44px; }
.season-item:hover { color: #fff; }
.season-dot { width: 8px; height: 8px; border-radius: 50%; background: #9BD3AE; box-shadow: 0 0 0 0 rgba(155, 211, 174, .7); animation: pulse 2.2s infinite; flex: none; }
.season-cta { font-weight: 600; white-space: nowrap; }
.season-cta span { display: inline-block; transition: transform .4s var(--ease-out); }
.season-item:hover .season-cta span { transform: translateX(3px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(155, 211, 174, .6); } 70% { box-shadow: 0 0 0 8px rgba(155, 211, 174, 0); } 100% { box-shadow: 0 0 0 0 rgba(155, 211, 174, 0); } }

.state-card { display: inline-flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #F7F9F6; font-size: 15px; line-height: 1.4; }
.state-card strong { font-weight: 600; }
.state-sub { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.state-dot { width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--muted); flex: none; }
.state-card.is-open { border-color: #A9CDB5; background: #E3F0E6; }
.state-card.is-open .state-dot { background: #2E8B57; animation: pulse 2.2s infinite; }
.state-card.is-soon { border-color: #E2CF8E; background: #F6EFD6; }
.state-card.is-soon .state-dot { background: #B8901F; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }

.spmb-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px 64px; align-items: start; }
.spmb-head .state-card { margin-top: 28px; }
.spmb-note { margin: 22px 0 0; padding-left: 14px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 15px; }
.spmb-poster { margin: 0; }
.spmb-poster img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 24px 50px -24px rgba(15, 36, 27, .45); transition: transform .8s var(--ease-out); }
.spmb-poster a:hover img { transform: translateY(-4px); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px minmax(170px, 240px) minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.timeline-mark { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--muted); background: var(--bg); justify-self: center; }
.timeline-when { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline-what { font: 500 19px/1.3 var(--font-display); letter-spacing: -0.01em; }
.timeline-pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.timeline-item.is-past { color: var(--muted); }
.timeline-item.is-past .timeline-what { color: var(--muted); }
.timeline-item.is-past .timeline-mark { background: var(--muted); border-color: var(--muted); }
.timeline-item.is-now { background: #E3F0E6; }
.timeline-item.is-now .timeline-mark { border-color: #2E8B57; background: #2E8B57; animation: pulse 2.2s infinite; }
.timeline-item.is-now .timeline-pill { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.plain-lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.plain-lines li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.spmb-help { align-self: end; }
.spmb-help p { margin: 0; color: var(--muted); font-size: 17px; }

.lulus-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: start; padding-top: 8px; }
.lulus-panel { position: relative; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); background: #F7F9F6; padding: clamp(22px, 3.5vw, 40px); }
.lulus-panel h2 { font-size: clamp(24px, 2.4vw, 32px); }
.lulus-form > p.muted { margin: 8px 0 24px; }
.lulus-form label, .lulus-form legend { display: block; font-weight: 600; font-size: 15px; margin: 18px 0 8px; padding: 0; }
.lulus-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.lulus-form input, .lulus-form select { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font: 500 18px var(--font-body); }
.lulus-form input { letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lulus-form input:focus, .lulus-form select:focus { outline: 3px solid rgba(31, 77, 58, .25); outline-offset: 1px; }
.dob { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.2fr); gap: 10px; }
.lulus-form button { width: 100%; margin-top: 26px; min-height: 52px; font-size: 16px; }
.form-msg { margin: 14px 0 0; min-height: 1.4em; color: #9F1239; font-weight: 500; }
.privacy-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.lulus-when { font: 500 clamp(20px, 2vw, 26px)/1.3 var(--font-display); margin: 8px 0 22px; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.countdown span { display: flex; flex-direction: column; align-items: center; padding: 14px 6px; background: var(--deep); color: var(--deep-muted); border-radius: var(--radius); font-size: 13px; }
.countdown b { font: 600 clamp(28px, 4vw, 44px)/1 var(--font-display); color: var(--accent-ink); font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.lulus-closed p { margin: 12px 0 24px; }
.lulus-result { outline: none; scroll-margin-top: 96px; animation: rise .7s var(--ease-out) both; }
.result-head { display: flex; align-items: center; gap: 18px; }
.result-photo { width: 84px; height: 104px; border-radius: var(--radius); object-fit: cover; background: var(--media); flex: none; }
.result-initial { display: grid; place-items: center; font: 600 36px var(--font-display); color: var(--accent); }
.result-name { margin: 0; font: 500 clamp(22px, 2.4vw, 30px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.result-head .muted { margin: 4px 0 0; }
.result-status { margin: 26px 0 0; font: 600 clamp(40px, 6vw, 72px)/1 var(--font-display); letter-spacing: -0.03em; }
.is-lulus .result-status { color: var(--accent); }
.is-tidak .result-status, .is-pending .result-status { font-size: clamp(28px, 3.4vw, 40px); }
.result-desc { margin: 12px 0 0; font-size: 17px; }
.result-msg { margin: 20px 0 24px; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 16px; line-height: 1.65; }
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petals i { position: absolute; top: -14px; width: 9px; height: 13px; border-radius: 60% 0 60% 0; opacity: 0; animation: petal linear forwards; }
@keyframes petal { 0% { opacity: 0; transform: translate(0, 0) rotate(0); } 10% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), 420px) rotate(var(--r)); } }
.lulus-info .check-list { margin-bottom: 24px; }
.lulus-catatan { margin: 0; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-soft); color: var(--muted); font-size: 15px; line-height: 1.6; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service { position: relative; display: flex; flex-direction: column; gap: 22px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: #F7F9F6; transition: background-color .45s var(--ease), transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
.service:hover { color: var(--ink); background: #fff; transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(15, 36, 27, .45); }
.service-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.service-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.service-title { font: 500 clamp(24px, 2.4vw, 32px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.service-desc { color: var(--muted); font-size: 16px; }
.service .state-card { margin-top: 8px; }
.service-cta { margin-top: auto; font-weight: 600; }
.service-cta span { display: inline-block; transition: transform .5s var(--ease-out); }
.service:hover .service-cta span { transform: translateX(4px); }

/* ── Kontak & lokasi (Profil) ────────────── */
.contact { scroll-margin-top: 24px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 56px; align-items: stretch; }
.contact-info .identity > div { grid-template-columns: 170px minmax(0, 1fr); }
.contact-social { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.map-box { position: relative; min-height: 360px; border-radius: var(--radius); overflow: hidden; background: var(--deep); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--accent-ink); background: radial-gradient(120% 90% at 50% 110%, #2B5E47 0%, var(--accent) 45%, var(--deep) 100%); }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent-ink); }
.map-pin { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--accent); box-shadow: 0 10px 30px rgba(5, 15, 10, .35); animation: pin-float 3.2s var(--ease) infinite; }
.map-label { position: relative; margin: 0; font: 500 22px/1.25 var(--font-display); letter-spacing: -0.01em; }
.map-label span { display: block; margin-top: 4px; font: 400 14px var(--font-body); color: var(--deep-muted); }
.map-load, .map-open { position: relative; }
.map-open { font-size: 14px; color: var(--deep-text); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.map-open:hover { color: #fff; }
@keyframes pin-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── Artikel ───────────────────────────── */
.story-lead { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 48px; align-items: center; padding: 8px 0 0; color: var(--ink); }
.story-lead:hover { color: var(--ink); }
.story-lead-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--media); }
.story-lead-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out), filter .6s var(--ease); }
.story-lead:hover .story-lead-media img { transform: scale(1.025); filter: brightness(.94); }
.story-lead-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.story-lead-title { font: 500 clamp(28px, 3.3vw, 46px)/1.08 var(--font-display); letter-spacing: -0.028em; transition: color .4s var(--ease); }
.story-lead:hover .story-lead-title { color: var(--accent); }
.story-lead-excerpt { color: var(--muted); font-size: 17px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.story-lead-more { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-weight: 500; font-size: 15px; }
.story-lead-more > span[aria-hidden] { display: inline-block; transition: transform .5s var(--ease-out); }
.story-lead:hover .story-lead-more > span[aria-hidden] { transform: translateX(4px); }
.story-section .list-tools { margin-bottom: 40px; }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 28px; }
.story-link { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.story-link:hover { color: var(--ink); }
.story-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--media); margin-bottom: 6px; }
.story-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .5s var(--ease); }
.story-link:hover .story-media img { transform: scale(1.04); filter: brightness(.92); }
.story-placeholder { position: absolute; inset: 0; display: flex; align-items: flex-start; padding: 20px; background: linear-gradient(165deg, var(--accent) 0%, var(--deep) 100%); color: var(--accent-ink); font: 500 18px/1.2 var(--font-display); letter-spacing: -0.01em; }
.story-placeholder::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; background: rgba(238, 242, 236, .1); clip-path: polygon(0 100%, 0 62%, 22% 34%, 34% 50%, 55% 8%, 72% 44%, 84% 30%, 100% 58%, 100% 100%); }
.story-meta { font-size: 13px; color: var(--muted); }
.story-title { font: 500 21px/1.25 var(--font-display); letter-spacing: -0.012em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .35s var(--ease); }
.story-link:hover .story-title { color: var(--accent); }
.story-excerpt { color: var(--muted); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-read { font-size: 13px; font-weight: 400; color: var(--muted); }

.draft-bar { background: #F6EBC8; color: #4A3A0A; border-bottom: 1px solid #E2CF8E; padding: 12px 0; font-size: 14px; }
.draft-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.story-head, .story-body { max-width: calc(780px + 2 * var(--gutter)); }
.story-head { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 44px); }
.story-head .ann-meta { margin-top: 20px; }
.story-head .ann-meta a { color: var(--accent); font-weight: 600; letter-spacing: .02em; }
.story-h1 { margin-top: 14px; font-size: clamp(32px, 4.8vw, 60px); line-height: 1.06; letter-spacing: -0.032em; overflow-wrap: anywhere; text-wrap: balance; }
.story-dek { margin: 22px 0 0; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.story-byline { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--ink); font-size: 14px; color: var(--muted); }
.story-byline span + span::before { content: "·"; margin: 0 10px; }
.story-byline span:first-child { color: var(--ink); font-weight: 500; }
.story-cover { max-width: calc(1120px + 2 * var(--gutter)); margin: 0 auto clamp(36px, 5vw, 64px); }
.story-cover img { display: block; width: 100%; height: auto; max-height: 78vh; object-fit: cover; border-radius: var(--radius); background: var(--media); }
.prose-story { font-size: 18px; line-height: 1.78; }
.prose-story > p:first-child::first-letter { float: left; font: 500 3.6em/0.82 var(--font-display); margin: .08em .1em 0 0; color: var(--accent); }
.prose figure { margin: 2em 0; }
.prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); background: var(--media); }
.prose figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.prose p > img { margin: 1.4em 0; }
.embed-video { margin: 2em 0; }
.embed-yt { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--deep); }
.prose .embed-yt img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.2s var(--ease-out), filter .5s var(--ease); }
.embed-yt:hover img { transform: scale(1.02); filter: brightness(.85); }
.embed-yt:hover .play-btn { transform: scale(1.08); }
.embed-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: #000; }
.story-body .share { margin-top: 48px; }

/* Penampil layar penuh */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #0B140F; color: #EEF2EC; display: none; }
.viewer[open] { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; animation: viewer-in .45s var(--ease-out); }
.viewer::backdrop { background: rgba(5, 10, 7, .85); }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
html.viewer-open { overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 3vw, 32px); }
.viewer-meta { margin: 0; font-size: 13px; color: #A9BDB1; letter-spacing: .02em; }
.viewer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(238, 242, 236, .25); background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; transition: background-color .3s; }
.viewer-close:hover, .viewer-nav:hover { background: rgba(238, 242, 236, .12); }
.viewer-stage { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 clamp(8px, 6vw, 88px); }
.viewer-media { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.viewer-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; opacity: 0; transform: scale(.985); transition: opacity .45s var(--ease), transform .6s var(--ease-out); user-select: none; -webkit-user-drag: none; }
.viewer-img.is-loaded { opacity: 1; transform: none; }
.viewer-video { width: min(100%, calc((100dvh - 260px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 4px; overflow: hidden; }
.viewer-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(238, 242, 236, .25); background: rgba(11, 20, 15, .5); color: inherit; display: grid; place-items: center; cursor: pointer; z-index: 2; transition: background-color .3s; }
.viewer-nav.prev { left: clamp(8px, 2vw, 24px); }
.viewer-nav.next { right: clamp(8px, 2vw, 24px); }
.viewer-nav[hidden] { display: none; }
.viewer-info { min-width: 0; padding: 16px clamp(16px, 3vw, 32px) 20px; max-width: 1100px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.viewer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.viewer-title { margin: 0; font: 500 clamp(20px, 2.2vw, 28px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.viewer-count { margin: 0; flex: none; font-size: 14px; color: #A9BDB1; font-variant-numeric: tabular-nums; }
.viewer-thumbs { min-width: 0; display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: thin; }
.viewer-thumbs:empty { display: none; }
.viewer-thumbs button { flex: none; width: 72px; height: 48px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: #000; cursor: pointer; opacity: .55; transition: opacity .3s, border-color .3s; }
.viewer-thumbs button[aria-current="true"], .viewer-thumbs button:hover { opacity: 1; border-color: #EEF2EC; }
.viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer-desc { margin: 10px 0 0; max-height: 7.5em; overflow-y: auto; color: #CBD8CF; font-size: 15px; line-height: 1.6; white-space: pre-line; }
.viewer-desc[hidden] { display: none; }
.viewer-actions { margin: 8px 0 0; }
.viewer-actions:empty { display: none; }
.viewer-actions a { color: #EEF2EC; }

/* ── Footer ─────────────────────────────── */
.site-footer { margin-top: clamp(64px, 8vw, 120px); background: var(--accent); color: var(--accent-ink); overflow: hidden; }
.site-footer a { color: var(--accent-ink); }
.site-footer .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; font-size: 15px; line-height: 1.6; }
.footer-grid p { margin: 0; }
.footer-cta { grid-column: span 2; }
.footer-lead { margin: 0 0 20px !important; font: 400 clamp(24px, 2.6vw, 36px)/1.15 var(--font-display); letter-spacing: -0.02em; max-width: 520px; }
.site-footer .btn-light { color: var(--ink); }
.footer-label { margin: 0 0 8px !important; color: var(--foot-muted); font-size: 13px; }
.footer-social { display: flex; gap: 20px; margin-top: 16px !important; }
.footer-social a { border-bottom: 1px solid currentColor; padding: 10px 0 2px; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .35s var(--ease); }
.footer-links a:hover { border-bottom-color: currentColor; }
.footer-ridge { display: block; width: 100%; height: 72px; margin-top: clamp(48px, 7vw, 96px); fill: var(--accent-ink); opacity: .12; }
.footer-wordmark { margin: 0; font: 600 clamp(48px, 11.5vw, 176px)/.9 var(--font-display); letter-spacing: -0.05em; white-space: nowrap; }
.footer-bottom { margin-top: 32px; padding-top: 16px; border-top: 1px solid #4E7A62; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: 13px; color: var(--foot-muted); }

/* ── Dialog login ───────────────────────── */
.login-dialog { border: 0; border-radius: 12px; padding: 0; width: min(420px, calc(100vw - 32px)); background: var(--bg); color: var(--ink); box-shadow: 0 24px 60px rgba(15, 36, 27, .35); }
.login-dialog::backdrop { background: rgba(15, 26, 20, .55); }
.login-dialog form { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.login-dialog h2 { font-size: 28px; margin-bottom: 12px; }
.login-dialog label { font-size: 14px; font-weight: 500; }
.login-dialog input { min-height: 46px; padding: 0 14px; border: 1px solid var(--muted); border-radius: 8px; background: #fff; font: 16px var(--font-body); color: var(--ink); margin-bottom: 8px; }
.login-error { min-height: 20px; margin: 0; color: #9B1C1C; font-size: 14px; }
.login-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ── Gerak (halus, sekali jalan) ─────────── */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Hero: muncul bertahap saat halaman dibuka */
.reveal { opacity: 0; animation: rise 1.1s var(--ease-out) forwards; animation-delay: var(--d, 0s); }
.reveal-photo { overflow: hidden; border-radius: var(--radius); }
.reveal-photo img { animation: photo-in 1.6s var(--ease-out) .1s both; }

/* Tahan animasi hero sampai foto & font siap (lihat skrip di <head>) */
.js:not(.hero-ready) .reveal { animation-play-state: paused; }
.js:not(.photo-ready) .reveal-photo img { animation-play-state: paused; }

/* Seksi lain: muncul pelan saat digulir (hanya bila JavaScript aktif) */
.js .reveal-on-scroll { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-photo img, .archive-list li.is-entering { opacity: 1; animation: none; }
    .viewer[open] { animation: none; }
    .map-pin { animation: none; }
    .season-dot, .state-card.is-open .state-dot, .timeline-item.is-now .timeline-mark { animation: none; }
    .lulus-result { animation: none; }
    .service, .spmb-poster img { transition: none; }
    .viewer-img { transition: none; opacity: 1; transform: none; }
    .g-media img, .spotlight-media img, .story-media img, .story-lead-media img, .embed-yt img { transition: none; }
    .js .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
    .ribbon-track { animation: none; }
    .card-media img, .row-link, .row-arrow, .btn-lift, .chip { transition: none; }
}

/* ── Layar kecil ────────────────────────── */
@media (max-width: 1100px) {
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .story-lead { grid-template-columns: minmax(0, 1fr); }
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
    .spmb-head, .lulus-grid { grid-template-columns: minmax(0, 1fr); }
    .spmb-poster { max-width: 520px; }
    .year-group { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .year-label { position: static; }
    .spotlight { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .spotlight-media, .spotlight-text { grid-column: auto; }
    .fact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .js .nav-toggle { display: inline-flex; }
    .main-nav { display: flex; width: 100%; flex-direction: column; align-items: stretch; gap: 0; border-top: 1px solid var(--ink); padding-top: 8px; }
    .js .main-nav:not(.is-open) { display: none; }
    .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
    .main-nav a[aria-current="page"] { border-bottom: 1px solid var(--line); color: var(--accent); font-weight: 600; }
    .main-nav .nav-pill { margin-top: 10px; text-align: center; border-bottom: 1px solid var(--ink); }
}
@media (max-width: 760px) {
    .feature-grid, .news-grid, .footer-grid, .statement { grid-template-columns: minmax(0, 1fr); }
    .card-0, .card-1, .card-2, .card-3, .footer-cta, .statement > .eyebrow, .statement > div { grid-column: auto; }
    .card-1 .card-media, .card-2 .card-media { aspect-ratio: 16 / 10; }
    .card-meta { flex-direction: column; gap: 2px; }
    .row-cat { display: none; }
    .row-link .row-arrow { display: none; }
    .row-link:hover { padding-left: 8px; }
    .row-link.big .row-cat { display: none; }
    .stats { gap: 16px 32px; }
    .stats dd { font-size: 28px; }
    .hero-photo img { aspect-ratio: 4 / 3; }
    .ann { grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: 22px 4px; }
    .ann .row-arrow { display: none; }
    .ann-day { font-size: 30px; }
    .search { max-width: none; flex-basis: 100%; }
    .pager { grid-template-columns: 1fr 1fr; }
    .pager-info { grid-column: 1 / -1; grid-row: 1; text-align: center; }
    .prose { font-size: 16px; }
    .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .story-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
    .prose-story { font-size: 17px; }
    .story-byline span:first-child { flex-basis: 100%; }
    .story-byline span:nth-child(2)::before { content: none; margin: 0; }
    .story-cover { padding-left: 0; padding-right: 0; }
    .story-cover img { border-radius: 0; max-height: none; }
    .play-btn { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
    .viewer-nav { width: 44px; height: 44px; margin-top: -22px; background: rgba(11, 20, 15, .65); }
    .viewer-stage { padding: 0; }
    .viewer-video { width: 100%; }
    .viewer-desc { max-height: 6em; font-size: 14px; }
    .split, .two-lists { grid-template-columns: minmax(0, 1fr); }
    .split > .eyebrow, .split > div { grid-column: auto; }
    .fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .people { grid-template-columns: minmax(0, 1fr); }
    .identity > div, .contact-info .identity > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .map-box { min-height: 300px; }
    .services { grid-template-columns: minmax(0, 1fr); }
    .timeline-item { grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; padding: 16px 4px; }
    .timeline-mark { grid-row: 1 / span 3; align-self: start; margin-top: 4px; }
    .timeline-when, .timeline-what, .timeline-pill { grid-column: 2; justify-self: start; }
    .season-text { font-size: 13px; }
    .result-status { margin-top: 20px; }
    .numbered li { grid-template-columns: 36px minmax(0, 1fr); font-size: 16px; }
}
