
:root {
    --accent: #cb4e9d;
    --accent-dark: #16213a;
    --accent-soft: #fff1e6;
    --ink: #16213a;
    --muted: #6b7385;
    --line: #e0dfda;
    --bg: #f3f2ef;
    --bg-alt: #eae9e5;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(22, 33, 58, .04), 0 8px 24px rgba(22, 33, 58, .07);
    --header-h: 72px;
    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.02em; font-weight: 800; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1180px, 100% - 48px); margin-inline: auto; }
section { padding: 72px 0; }

/* Eyebrow: label section */
.eyebrow, .hero-kicker {
    display: flex; align-items: center;
    font-size: 12px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 34px); }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 12px; }

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 11px 24px;
    font: 700 14px var(--font);
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(242, 107, 16, .28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-lg.btn-primary::after, .profil .btn-primary::after { content: "→"; font-size: 17px; line-height: 1; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Splash sambutan ---------- */
.splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--accent-dark);
    color: #fff;
    transition: opacity .4s ease, visibility .4s ease;
}
.splash.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
body.splash-active { overflow: hidden; }

.splash-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: splashZoom 16s ease-out forwards;
}
@keyframes splashZoom {
    from { transform: scale(1); }
    to { transform: scale(1.05); }
}

/* lapisan gelap */
.splash-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(22, 33, 58, .45) 0%, rgba(27, 27, 27, 0.181) 100%);
}

.splash-inner {
    position: relative;
    width: min(440px, 100% - 40px);
    padding: 40px 28px 36px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: splashRise .7s ease-out both;
}
@keyframes splashRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

.splash-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    object-fit: contain;
}

.splash-kicker {
    margin: 0 0 6px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
}

.splash-title {
    margin: 0 0 8px;
    font-family: var(--font);
    font-size: clamp(2.75rem, 12vw, 3.75rem);
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.05;
}

.splash-sub {
    margin: 0 0 28px;
    font-size: .95rem;
    color: rgba(255, 255, 255, .88);
}

.splash-enter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 36px;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(114, 102, 110, 0.4);
    transition: background .2s, transform .2s;
}
.splash-enter::after { content: "\2192"; font-size: 1.1rem; line-height: 1; transition: transform .2s; }
.splash-enter:hover { background: #fff; color: var(--accent-dark); transform: translateY(-1px); }
.splash-enter:hover::after { transform: translateX(3px); }
.splash-enter:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .splash { transition: none; }
    .splash-bg, .splash-inner { animation: none; }
    .splash-enter, .splash-enter::after { transition: none; }
}

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
    position: relative; overflow: hidden;
    width: 46px; height: 46px; flex: none;
    display: grid; place-items: center;
    background: var(--accent-soft);
    border-radius: 12px;
}
.brand-mark svg { width: 24px; height: 24px; stroke: var(--accent); }
.logo-img {
    height: 48px;
    width: auto;
    display: block;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; }
.brand-text small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.nav-links { display: none; gap: 6px; }
.nav-links a {
    position: relative;
    padding: 8px 16px;
    font-size: 14px; font-weight: 600;
    color: var(--ink);
    transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--accent); font-weight: 700; }
.nav-links a.active::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: -6px;
    height: 2px; background: var(--accent); border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- Layout ---------- */
.page-shell { display: block; }
.content-area { min-width: 0; }
.sidebar { display: none; } /* bar kedua disembunyikan agar tampilan seperti referensi */

/* ---------- Hero ---------- */
.hero { position: relative; padding: 0; overflow: hidden; background: var(--bg); }
.hero > .container { position: relative; }
.hero-grid {
    display: grid;
    min-height: clamp(400px, 34vw, 480px);
    align-items: center;
    padding-block: 56px;
}
.hero-copy { position: relative; z-index: 2; width: min(520px, 46vw); }
.hero h1 { font-size: clamp(16px, 1.5vw, 19px); font-weight: 500; line-height: 1.6; color: var(--muted); letter-spacing: 0; }
.hero h1 br { display: none; }
.hero-school-name {
    display: block;
    margin-bottom: 14px;
    font-size: clamp(36px, 4.6vw, 58px);
    font-weight: 800; line-height: 1.06; letter-spacing: -.03em;
    color: var(--ink);
}
.hero h1 .mark { color: var(--accent); font-weight: 700; }
.hero-desc { margin-top: 16px; max-width: 460px; font-size: 16px; line-height: 1.75; color: var(--muted); text-align: justify; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-meta span {
    padding: 4px 14px;
    font-size: 12.5px; font-weight: 600;
    color: var(--accent); background: var(--accent-soft);
    border-radius: 999px;
}
.hero-action { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-media {
    position: absolute; top: 0; right: min(-24px, calc((1180px - 100vw) / 2)); bottom: 0;
    width: 68%;
    background:
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, .35), transparent 45%),
        linear-gradient(135deg, #ffb37a, var(--accent));
    clip-path: polygon(7% 0, 100% 0, 100% 100%, 10% 100%, 0 80%);
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-media::after {
    content: ""; position: absolute; right: 0; bottom: 0;
    width: 24%; height: 15%;
    background: var(--accent);
    clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-coords {
    position: absolute; z-index: 2;
    left: 0; bottom: 16px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
    font-size: 11.5px; line-height: 1.6; color: var(--muted); letter-spacing: .03em;
}

/* ---------- Strip data (seperti 4 fitur di referensi) ---------- */
.stats { padding: 44px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); align-items: stretch; }
.stats-head { padding-right: 24px; align-self: center; }
.stats-head h2 { font-size: 22px; }
.stat-card {
    padding: 8px 28px;
    border-left: 1px solid var(--line);
    display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
}
.stat-number, .stat-suffix { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.stat-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: center; }

/* ---------- Profil / Tentang sekolah ---------- */
.profil { background: var(--bg-alt); }
.profil-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.profil-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.profil-img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.profil-bedge-number { display: inline-block; font-size: 44px; font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1; }
.profil-bedge-label { display: inline-block; margin-left: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.profil-desc {
    max-width: 62ch;
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
    text-align: justify;
    hyphens: auto;
}
.profil-list { margin: 28px 0 32px; display: grid; }
.profil-item { display: flex; gap: 14px; padding: 15px 0; border-top: 1px solid var(--line); }
.profil-icon {
    flex: none; width: 26px; height: 26px; margin-top: 3px;
    display: grid; place-items: center;
    font-size: 12px; font-weight: 800;
    color: var(--accent); background: var(--accent-soft);
    border-radius: 50%;
}
.profil-item h3 { font-size: 16px; }
.profil-item p { font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.profil-link { color: var(--accent); font-weight: 700; text-underline-offset: 3px; text-decoration: underline; }
.profil-link:hover { color: var(--accent-dark); }

/* Daftar misi di kartu Profil */
.profil-misi {
    list-style: none;
    margin: .5rem 0 0;
    padding: 0;
    display: grid;
    gap: .65rem;
    counter-reset: misi;
}

.profil-misi li {
    position: relative;
    counter-increment: misi;
    padding-left: 2rem;
    font-size: .92rem;
    line-height: 1.6;
    text-align: left;
}

.profil-misi li::before {
    content: counter(misi);
    position: absolute;
    left: 0;
    top: .15rem;
    width: 1.35rem;
    height: 1.35rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1;
}

.profil-misi em { font-style: italic; }

/* ---------- Struktur organisasi ---------- */
.struktur {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse at 50% 0%, transparent 40%, rgba(203, 78, 157, .035) 42% 45%, transparent 47%),
        radial-gradient(ellipse at 0% 50%, transparent 40%, rgba(203, 78, 157, .035) 42% 45%, transparent 47%),
        radial-gradient(ellipse at 100% 50%, transparent 40%, rgba(203, 78, 157, .035) 42% 45%, transparent 47%),
        radial-gradient(ellipse at 50% 100%, transparent 40%, rgba(203, 78, 157, .035) 42% 45%, transparent 47%);
    background-size: 64px 64px;
}
.struktur .section-head {
    margin: 0 auto 40px;
    text-align: center;
}
.struktur .eyebrow { justify-content: center; }

.org-chart {
    --org-gap: 16px;
    --org-line: rgba(203, 78, 157, .45);
    --org-photo: 72px;
    --org-staff-soft: var(--accent-soft);
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1120px;
    margin-inline: auto;
}

.org-leadership {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--org-gap);
    width: 100%;
}

.org-leadership::before {
    content: "";
    position: absolute;
    top: 50%;
    left: calc((100% - 2 * var(--org-gap)) / 3);
    width: calc(var(--org-gap) + (100% - 2 * var(--org-gap)) / 6);
    border-top: 2px dashed var(--org-line);
    transform: translateY(-1px);
}

.org-committee {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.org-leadership > .org-card.lead {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 1;
}

.org-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--org-gap);
    width: 100%;
}

.org-stack {
    display: grid;
    align-content: start;
    gap: var(--org-gap);
    min-width: 0;
}

.org-mapel-stack {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 0;
}

.org-mapel-connector {
    flex: 1 0 28px;
    align-self: center;
}

/* Kartu Guru Mapel: tautan ke halaman daftar guru */
.org-mapel-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-color: rgba(203, 78, 157, .45);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.org-mapel-card:hover,
.org-mapel-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 1px 2px rgba(22, 33, 58, .04), 0 12px 28px rgba(203, 78, 157, .16);
}
.org-mapel-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.org-mapel-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 12px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}
.org-mapel-cta svg { width: 16px; height: 16px; transition: transform .2s ease; }
.org-mapel-card:hover .org-mapel-cta svg,
.org-mapel-card:focus-visible .org-mapel-cta svg { transform: translateX(3px); }

.org-mapel-column::after {
    top: -1px;
    height: 21px;
}

.org-card {
    min-width: 0;
    padding: 20px 18px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.org-card h3 { font-size: 16px; }
.org-card p { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.org-lead-img {
    grid-column: 1;
    grid-row: 1 / -1;
    width: var(--org-photo, 72px);
    height: var(--org-photo, 72px);
    margin: 0;
    border-radius: 10px;
    object-fit: cover;
    object-position: center 20%;
    background: var(--accent-soft);
}

.org-lead-img[src="Ibu Siti.jpeg"] {
    object-position: center 10%;
}

.org-card:has(> .org-lead-img) {
    display: grid;
    grid-template-columns: var(--org-photo, 72px) minmax(0, 1fr);
    grid-template-rows: 1fr auto auto auto 1fr;
    column-gap: 14px;
    row-gap: 0;
    align-items: center;
    text-align: left;
    padding: 16px;
}

.org-card:has(> .org-lead-img) .org-label {
    grid-column: 2;
    grid-row: 2;
}

.org-card:has(> .org-lead-img) h3 {
    grid-column: 2;
    grid-row: 3;
    min-width: 0;
}

.org-card:has(> .org-lead-img) p {
    grid-column: 2;
    grid-row: 4;
    min-width: 0;
    margin-top: 4px;
    overflow-wrap: anywhere;
}

.org-row-split {
    grid-auto-flow: column;
    grid-template-rows: auto auto;
}

.org-row-split .org-stack,
.org-row-split .org-mapel-stack { display: contents; }

.org-row-split .org-mapel-connector {
    justify-self: center;
    align-self: stretch;
    height: auto;
    margin-top: calc(-1 * var(--org-gap));
}

.org-label {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.org-card.lead {
    width: min(320px, 100%);
    padding: 22px 20px;
    background: var(--ink);
    border-color: var(--ink);
}
.org-card.org-independent { width: 100%; }
.org-card.lead h3 { margin-top: 6px; color: #fff; font-size: 18px; }
.org-card.lead .org-label { color: #f6a8d1; }
.org-card.lead p { color: rgba(255, 255, 255, .75); }
.org-row-bidang .org-card { border-top: 3px solid var(--accent); }
.org-staff {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--org-gap);
    width: 100%;
}
.org-col {
    position: relative;
    display: grid;
    align-content: start;
    gap: var(--org-gap);
    padding-top: 20px;
}
.org-col::before {
    content: "";
    position: absolute;
    top: 0;
    left: calc(var(--org-gap) / -2);
    right: calc(var(--org-gap) / -2);
    height: 2px;
    background: var(--org-line);
}
.org-col:first-child::before { left: 50%; }
.org-col:last-child::before { right: 50%; }
.org-col::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    transform: translateX(-1px);
    background: var(--org-line);
}
.org-staff-card {
    padding: 0;
    overflow: hidden;
    border-radius: 4px;
    border: 0;
    border-top: 3px solid var(--ink);
    background: #fff;
}
.org-staff-card h3 {
    padding: 7px 6px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
}
.org-staff-card p {
    margin: 0;
    padding: 9px 6px;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.35;
    text-transform: uppercase;
}
.org-staff-card.org-siswa {
    background: var(--accent);
    border: 1px solid var(--accent);
}
.org-staff-card.org-siswa h3 {
    padding: 14px 6px;
    background: transparent;
    color: #fff;
    border-bottom: 0;
    font-size: 13px;
}
.org-staff-card.org-siswa p { color: rgba(255, 255, 255, .85); }

.org-students {
    width: min(320px, 100%);
    align-self: center;
    background: rgba(203, 78, 157, .08);
    border-color: rgba(203, 78, 157, .3);
    box-shadow: none;
}

.org-connector {
    width: 2px;
    height: 28px;
    background: var(--org-line);
    border-radius: 1px;
}

@media (max-width: 1024px) {
    .org-staff { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .org-col { padding-top: 0; }
    .org-col::before, .org-col::after { display: none; }
    .org-mapel-column { padding-top: 20px; }
    .org-mapel-column::after { display: block; }
}

@media (max-width: 820px) {
    .org-chart { --org-gap: 12px; }
    .org-leadership {
        display: flex;
        flex-direction: column;
        gap: var(--org-gap);
    }
    .org-leadership::before { display: none; }
    .org-committee { position: relative; width: min(320px, 100%); }
    .org-committee::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        width: 0;
        height: var(--org-gap);
        border-top: 0;
        border-left: 2px dashed var(--org-line);
    }
    .org-card { padding: 16px 14px; }
    .org-card h3 { font-size: 15px; }
    .org-card p { font-size: 13px; }
}

@media (max-width: 640px) {
    .struktur .section-head { margin-bottom: 28px; }
    .org-row { grid-template-columns: 1fr; }
    .org-row-split { grid-auto-flow: row; grid-template-rows: none; }
    .org-mapel-stack { align-self: start; }
    .org-mapel-connector { display: none; }
    .org-staff { grid-template-columns: 1fr; }
    .org-col { padding-top: 0; }
    .org-mapel-column::after { display: none; }
    .org-card, .org-card.lead, .org-students { width: 100%; }
    .org-card.org-students { width: min(320px, 100%); }
    .org-card { padding: 16px; }
    .org-connector { height: 20px; }
}

/* ---------- Visi & Misi ---------- */
.vision-grid { background: var(--bg-alt); }
.vision-wrap {
    display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: 24px; align-items: start;
}
.vision-wrap .section-head { grid-column: 1 / -1; margin-bottom: 16px; }
.vision-label {
    display: inline-block; margin-bottom: 18px; padding: 4px 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.vision-card { padding: 36px 32px; border-radius: var(--radius); }
.vision-main {
    position: sticky; top: calc(var(--header-h) + 24px);
    color: #fff; background: var(--ink); box-shadow: var(--shadow);
}
.vision-main .vision-label { color: #ff9ec9; background: rgba(255, 255, 255, .1); }
.vision-card.vision-main h3 {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 800;
    color: #fff;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.vision-card.vision-main h3 > span {
    display: inline-block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}
.vision-card h3 { font-size: 24px; line-height: 1.4; font-weight: 700; }
.vision-card p { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.visi-pillars {
    list-style: none; margin: 24px 0 0; padding: 20px 0 0;
    display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.visi-pillars li {
    position: relative;
    padding: 2px 0 2px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
}
.visi-pillars li strong,
.visi-pillars li span { display: block; }
.visi-pillars li strong { margin-bottom: 2px; color: #ffb37a; font-weight: 700; }
.visi-pillars li span { color: rgba(255, 255, 255, .76); font-weight: 500; }
.visi-pillars li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.misi-block { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.misi-block .vision-label { margin-bottom: 4px; }
.misi-list { margin: 0; padding: 0; list-style: none; }
.misi-item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px;
    padding: 22px 0; border-bottom: 1px solid var(--line);
}
.misi-item:last-child { padding-bottom: 0; border-bottom: 0; }
.misi-no {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 13px; font-weight: 800; letter-spacing: .02em;
    color: var(--accent); background: var(--accent-soft);
    transition: background .25s, color .25s;
}
.misi-item:hover .misi-no { background: var(--accent); color: #fff; }
.misi-item h4 { font-size: 16px; line-height: 1.35; }
.misi-item p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--muted); }
/* ---------- Visi & Misi ---------- */
.vision-grid { background: var(--bg-alt); }
.vision-wrap {
    display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr);
    gap: 24px; align-items: start;
}
.vision-wrap .section-head { grid-column: 1 / -1; margin-bottom: 16px; }
.vision-label {
    display: inline-block; margin-bottom: 18px; padding: 4px 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.vision-card { padding: 36px 32px; border-radius: var(--radius); }
.vision-main {
    position: sticky; top: calc(var(--header-h) + 24px);
    color: #fff; background: var(--ink); box-shadow: var(--shadow);
}
.vision-main .vision-label { color: #ff9ec9; background: rgba(255, 255, 255, .1); }
.vision-card.vision-main h3 {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 800;
    color: #fff;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}
.vision-card.vision-main h3 > span {
    display: inline-block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
}
.vision-card h3 { font-size: 24px; line-height: 1.4; font-weight: 700; }
.vision-card p { margin-top: 14px; font-size: 14.5px; line-height: 1.7; color: rgba(255, 255, 255, .74); }
.visi-pillars {
    list-style: none; margin: 24px 0 0; padding: 20px 0 0;
    display: grid; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.visi-pillars li {
    position: relative;
    padding: 2px 0 2px 20px;
    font-size: 13.5px;
    line-height: 1.6;
    text-align: left;
}
.visi-pillars li strong,
.visi-pillars li span { display: block; }
.visi-pillars li strong { margin-bottom: 2px; color: #ffb37a; font-weight: 700; }
.visi-pillars li span { color: rgba(255, 255, 255, .76); font-weight: 500; }
.visi-pillars li::before {
    content: ""; position: absolute; left: 0; top: .55em;
    width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
.misi-block { padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.misi-block .vision-label { margin-bottom: 4px; }
.misi-list { margin: 0; padding: 0; list-style: none; }
.misi-item {
    display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px;
    padding: 22px 0; border-bottom: 1px solid var(--line);
}
.misi-item:last-child { padding-bottom: 0; border-bottom: 0; }
.misi-no {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 13px; font-weight: 800; letter-spacing: .02em;
    color: var(--accent); background: var(--accent-soft);
    transition: background .25s, color .25s;
}
.misi-item:hover .misi-no { background: var(--accent); color: #fff; }
.misi-item h4 { font-size: 16px; line-height: 1.35; }
.misi-item p { margin-top: 6px; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ---------- Prestasi ---------- */
.achievement-strip { background: var(--bg); }
.achievement-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.achievement-item {
    min-height: 132px; padding: 28px 14px; text-align: center; border-left: 1px solid var(--line);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.achievement-item:first-child { border-left: 0; }
.achievement-item strong { display: block; font-size: 40px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1.1; }
.achievement-item span { display: block; margin-top: 6px; font-size: 14px; font-weight: 600; }

/* ---------- Potensi (bento) ---------- */
.potensi { background: var(--bg-alt); }
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "academic academic academic"
        "extra facilities achievement";
    grid-auto-rows: minmax(190px, auto);
    gap: 16px;
}
.bento-card {
    padding: 18px;
    display: flex; flex-direction: column; gap: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    overflow: hidden;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd9bd; }
.bento-card.has-img { overflow: hidden; }
.slider { position: relative; overflow: hidden; background: var(--accent-soft); touch-action: pan-y; }
.slider-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.slider-track > .slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
}
.bento-slider { width: calc(100% + 36px); height: 140px; margin: -18px -18px 4px; }
.bento-1 .bento-slider { height: auto; aspect-ratio: 16 / 9; }
.bento-2 { grid-area: extra; }
.bento-2 .bento-slider { height: auto; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.bento-2 .slide {
    object-fit: cover;
    object-position: center 35%;
    background: var(--bg-alt);
}
.bento-2 .slide.slide-contain { object-fit: contain; object-position: center; }
.bento-3 { grid-area: facilities; }
.bento-3 .bento-slider { height: auto; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.bento-3 .slide {
    object-fit: cover;
    object-position: center;
    background: var(--bg-alt);
}
.bento-3 .slide[src="Kopsis.jpeg"] { object-position: center 60%; }
.bento-3 .slide.slide-contain { object-fit: contain; }
.slider-btn {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    width: 34px; height: 34px; display: grid; place-items: center;
    border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .88); color: var(--ink);
    font: 700 20px/1 var(--font);
    opacity: 0; transition: opacity .2s, background .2s;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }
.slider:hover .slider-btn,
.slider:focus-within .slider-btn { opacity: 1; }
.slider-btn:focus-visible, .slider-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.slider-dots {
    position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2;
    display: flex; justify-content: center; gap: 6px;
}
.slider-dot {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
    background: rgba(255, 255, 255, .65); box-shadow: 0 0 0 1px rgba(22, 33, 58, .18);
    transition: width .25s, background .25s;
}
.slider-dot.is-active { width: 20px; background: #fff; }
.bento-2 .slider-dots { gap: 4px; }
.bento-2 .slider-dot { flex: 0 0 7px; width: 7px; height: 7px; }
.bento-2 .slider-dot.is-active { flex-basis: 16px; }
.fasilitas-card:hover .fasilitas-thumb.slider img { transform: none; }
@media (hover: none) { .slider-btn { opacity: 1; width: 30px; height: 30px; } }
.bento-card.has-img .icon { margin-bottom: 0; }
.bento-card h4 { margin-top: 4px; font-size: 18px; }
.bento-card p { font-size: 14px; color: var(--muted); }
.bento-1 {
    grid-area: academic;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.bento-1 .icon { color: #fff; background: rgba(255, 255, 255, .2); }

.bento-1 p {
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
}

.academic-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr);
    align-items: center;
    gap: 24px;
}

.academic-copy {
    display: grid;
    gap: 8px;
}

.academic-copy p { margin: 0; }

.academic-programs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.academic-programs span {
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.bento-1 h4 { font-size: 26px; }
.bento-4 { grid-area: achievement; }
.bento-4 .bento-slider { height: auto; aspect-ratio: 16 / 9; }
.bento-4 .slide { object-position: center 30%; }
.bento-4 .slide:nth-child(2) {
    object-fit: contain;
    object-position: center;
    background: var(--accent-soft);
}

@media (max-width: 640px) {
    .bento-slider { height: 160px; }
    .bento-1 .bento-slider { flex: none; min-height: 0; height: auto; aspect-ratio: 16 / 9; }
    .academic-details { grid-template-columns: 1fr; gap: 14px; }
}

/* ---------- Fasilitas (kartu seperti "Kegiatan Terbaru") ---------- */
.fasilitas { background: var(--bg); }
.fasilitas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.fasilitas-card {
    overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    transition: transform .25s, box-shadow .25s;
}
.fasilitas-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fasilitas-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--accent-soft); }
.fasilitas-thumb .slider-track { position: absolute; inset: 0; }
.fasilitas-thumb svg { width: 100%; height: 100%; filter: hue-rotate(235deg) saturate(1.4); transition: transform .5s; }
.fasilitas-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.fasilitas-card:hover .fasilitas-thumb svg,
.fasilitas-card:hover .fasilitas-thumb img { transform: scale(1.02); }
.fasilitas-body { padding: 18px 20px 22px; }
.fasilitas-body .tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.fasilitas-body h4 { margin: 6px 0 8px; font-size: 16px; }
.fasilitas-body p:last-child { font-size: 13.5px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) { .slider-track { transition: none; } }

/* ---------- Animasi saat menuju "Hubungi Kami" ---------- */
.kontak.kontak-active { animation: kontakFlash 1.4s ease-out; }

.kontak.kontak-active .kontak-copy .eyebrow,
.kontak.kontak-active .kontak-copy h2,
.kontak.kontak-active .kontak-info .row,
.kontak.kontak-active .kontak-copy .btn {
    animation: kontakSlideIn .6s cubic-bezier(.2, .7, .2, 1) backwards;
}
.kontak.kontak-active .kontak-copy .eyebrow { animation-delay: .05s; }
.kontak.kontak-active .kontak-copy h2 { animation-delay: .15s; }
.kontak.kontak-active .kontak-info .row:nth-child(1) { animation-delay: .25s; }
.kontak.kontak-active .kontak-info .row:nth-child(2) { animation-delay: .35s; }
.kontak.kontak-active .kontak-info .row:nth-child(3) { animation-delay: .45s; }
.kontak.kontak-active .kontak-info .row:nth-child(4) { animation-delay: .55s; }
.kontak.kontak-active .kontak-copy .btn { animation-delay: .7s; }

.kontak.kontak-active .map-wrap { animation: mapGlow 1.6s ease-out .2s; }

@keyframes kontakFlash {
    0%   { background: var(--accent-soft); }
    100% { background: var(--bg-alt); }
}
@keyframes kontakSlideIn {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: none; }
}
@keyframes mapGlow {
    0%   { box-shadow: 0 0 0 0 rgba(246, 40, 201, 0.45); }
    100% { box-shadow: 0 0 0 28px rgba(242, 107, 16, 0); }
}
/* ---------- Kontak ---------- */
.kontak { background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 72%); }
.kontak-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(32px, 6vw, 76px);
    align-items: center;
}
.kontak-copy {
    padding: clamp(24px, 3.5vw, 40px);
    border: 1px solid rgba(22, 33, 58, .07);
    border-radius: 22px;
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 42px rgba(22, 33, 58, .08);
}
.kontak-back {
    display: inline-flex; align-items: center; gap: 8px;
    margin-bottom: 24px;
    font-size: 14px; font-weight: 700; color: var(--muted);
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}
.kontak-back:hover, .kontak-back:focus-visible { color: var(--accent); transform: translateX(-3px); }

/* ---------- Halaman terpisah: hanya section milik halaman aktif yang tampil ---------- */
body[data-page="beranda"] .content-area > section:not([data-page="beranda"]),
body[data-page="profil"]  .content-area > section:not([data-page="profil"]),
body[data-page="potensi"] .content-area > section:not([data-page="potensi"]),
body[data-page="guru-mapel"] .content-area > section:not([data-page="guru-mapel"]),
body[data-page="kontak"]  .content-area > section:not([data-page="kontak"]) {
    display: none;
}

.content-area > section { animation: pageIn .5s cubic-bezier(.2, .7, .2, 1); }

body[data-page="kontak"] .kontak {
    display: flex; align-items: center;
    min-height: calc(100vh - var(--header-h));
}
.kontak-copy h2 { max-width: 440px; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; }
.kontak-info { margin-top: 28px; display: grid; gap: 8px; }
.kontak-info .row {
    display: grid;
    grid-template-columns: 20px 100px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(22, 33, 58, .045);
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    font-size: 14px;
    line-height: 1.6;
    color: var(--muted);
    transition: border-color .2s ease, transform .2s ease;
}
.kontak-info .row:hover { transform: translateX(3px); border-color: #ffd9bd; }
.kontak-row-icon { width: 19px; height: 19px; align-self: start; margin-top: 2px; color: var(--accent); }
.kontak-info b { color: var(--ink); font-weight: 700; }
.kontak-info a { color: inherit; text-underline-offset: 3px; }
.kontak-info a:hover { color: var(--accent); }
.kontak-value { min-width: 0; overflow-wrap: anywhere; }

@keyframes pageIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}

.map-wrap {
    position: relative; overflow: hidden;
    aspect-ratio: 1.15;
    background: var(--accent-soft);
    border: 1px solid rgba(242, 107, 16, .12);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(22, 33, 58, .1);
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer pink ---------- */
.site-footer { background: #cb4e9d; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr 1.2fr; align-items: start; gap: 40px; padding-block: 44px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand-item { display: flex; align-items: center; gap: 14px; }
.footer-brand-item > img { width: 54px; height: 54px; flex: none; object-fit: contain; padding: 4px; background: #fff; border-radius: 12px; }
.footer-brand-copy { display: flex; flex-direction: column; gap: 3px; }
.footer-brand-copy strong { font-size: 15px; font-weight: 800; text-transform: uppercase; }
.footer-brand-copy small { font-size: 12px; font-weight: 600; opacity: .9; }
.footer-link { display: flex; flex-direction: column; gap: 7px; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 24px; }
.footer-link::before { content: "Link Cepat"; margin-bottom: 4px; font-size: 14px; font-weight: 800; }
.footer-link a { font-size: 13.5px; opacity: .9; transition: opacity .2s, transform .2s; }
.footer-link a:hover { opacity: 1; transform: translateX(3px); }
.footer-social { grid-column: 3; border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 24px; }
.footer-social-title { display: block; margin-bottom: 14px; font-size: 16px; font-weight: 800; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.footer-social-links a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #cb4e9d;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s, background .2s, color .2s;
}
.footer-social-links a:hover { transform: translateY(-3px); color: #fff; background: var(--ink); }
.footer-social-links svg { width: 20px; height: 20px; }
.footer-social-links .footer-social-account { display: inline-flex; width: auto; min-height: 42px; align-items: center; gap: 9px; padding: 0 15px; border-radius: 999px; white-space: nowrap; }
.footer-social-account svg { flex: none; }
.footer-social-account span { font-size: 14px; font-weight: 700; }
.footer-fine {
    padding: 14px max(24px, calc((100% - 1180px) / 2));
    font-size: 12px; color: var(--muted); background: #fff;
}

/* ---------- Tombol ke atas ---------- */
.to-top {
    position: fixed; right: 24px; bottom: 24px; z-index: 40;
    width: 44px; height: 44px;
    font-size: 18px; color: #fff; background: var(--accent);
    border: 0; border-radius: 50%; cursor: pointer;
    box-shadow: 0 6px 16px rgba(242, 107, 16, .35);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s, transform .25s, background .2s;
}
.to-top:hover { background: var(--accent-dark); }
.to-top.is-visible, .to-top.visible, .to-top.show { opacity: 1; visibility: visible; transform: none; }

.btn-wa {
    display: inline-flex; align-items: center; gap: 10px;
    background: #25d366; color: #fff;
    box-shadow: 0 6px 16px rgba(37, 211, 102, .32);
}
.btn-wa:hover { background: #1ebe5b; }
.btn-wa .wa-icon { width: 20px; height: 20px; flex: none; }

.wa-float {
    position: fixed; right: 24px; bottom: 80px; z-index: 40;
    width: 52px; height: 52px;
    display: grid; place-items: center;
    color: #fff; background: #25d366; border-radius: 50%;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .4);
    transition: transform .2s ease, background .2s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover, .wa-float:focus-visible { background: #1ebe5b; transform: scale(1.08); }
.wa-float::after {
    content: ""; position: absolute; inset: -6px;
    border: 2px solid #25d366; border-radius: 50%;
    animation: pulse 2.2s ease-out infinite;
    pointer-events: none;
}
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 640px) {
    .wa-float { right: 16px; bottom: 72px; width: 48px; height: 48px; }
}

/* ---------- Animasi muncul (dipicu script.js lewat class .visible) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@media (scripting: none) { .reveal { opacity: 1; transform: none; } }
@keyframes pulse { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (min-width: 1025px) {
    .nav-links { display: flex; }
}

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 100%; left: 0; right: 0;
        display: none; flex-direction: column; gap: 2px;
        padding: 12px 24px 20px;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 12px 24px rgba(22, 33, 58, .08);
    }
    .nav-links.is-open, .nav-links.open, .nav-links.show { display: flex; }
    .nav-links a { padding: 12px 4px; }
    .nav-links a.active::after { left: 4px; right: auto; width: 24px; bottom: 6px; }
}

@media (max-width: 820px) {
    section { padding: 56px 0; }
    .profil-desc { text-align: left; hyphens: none; }
    .hero-grid { min-height: 0; padding-block: 40px 28px; gap: 28px; }
    .hero-copy { width: 100%; }
    .hero-media {
        position: relative; right: auto; width: 100%; height: 230px;
        clip-path: none; border-radius: 16px; overflow: hidden;
    }
    .hero-media::after { width: 30%; height: 18%; }
    .hero-coords { position: static; padding: 0 0 32px; }

    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-head { grid-column: 1 / -1; padding: 0 0 24px; }
    .stat-card { padding: 8px 14px; }
    .stats-head + .stat-card { border-left: 0; padding-left: 0; }
    .stat-number, .stat-suffix { font-size: 32px; }

    .profil-inner, .kontak-grid, .vision-wrap { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-social { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
    .vision-wrap .section-head { margin-bottom: 8px; }
    .vision-main { position: static; }
    .vision-card { padding: 28px 24px; }
    .misi-block { padding: 24px 20px; }
    .misi-item { grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding: 18px 0; }
    .misi-no { width: 34px; height: 34px; font-size: 12px; }
    .achievement-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .achievement-item:nth-child(3n + 1) { border-left: 0; }
    .achievement-item:nth-child(n + 4) { border-top: 1px solid var(--line); }
    .bento {
        grid-template-columns: repeat(3, 1fr);
        grid-template-areas:
            "academic academic academic"
            "extra facilities achievement";
        grid-auto-rows: auto;
    }
    .fasilitas-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .profil-misi { gap: .55rem; }
    .profil-misi li { font-size: .88rem; padding-left: 1.85rem; }
}

@media (max-width: 520px) {
    .container { width: calc(100% - 32px); }
    .nav-cta .btn { display: none; }
    .brand-text small { display: none; }
    .bento {
        grid-template-columns: 1fr;
        grid-template-areas:
            "academic"
            "extra"
            "facilities"
            "achievement";
    }
    .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .achievement-item:nth-child(2n + 1) { border-left: 0; }
    .achievement-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
    .achievement-item:last-child { grid-column: 1 / -1; }
    .stat-label { font-size: 12.5px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-link { border-left: 0; padding-left: 0; }
    .footer-social { grid-column: 1; }
    .kontak-info .row { grid-template-columns: 20px minmax(0, 1fr); gap: 3px 10px; }
    .kontak-row-icon { grid-row: 1 / span 2; }
    .kontak-info .kontak-value { grid-column: 2; }
    .org-row { grid-template-columns: 1fr; gap: 10px; }
    .org-card { padding: 16px; }
}