:root {
    --burgundy: #6d1320;
    --burgundy-deep: #3a0b12;
    --burgundy-soft: #8b2432;
    --gold: #c9a44a;
    --gold-bright: #e4c878;
    --gold-dim: #8f7430;
    --cream: #f4ebd8;
    --paper: #fbf6ea;
    --ink: #1c120f;
    --muted: #6b574a;
    --line: rgba(201, 164, 74, 0.35);
    --shadow: 0 18px 50px rgba(58, 11, 18, 0.18);
    --radius: 18px;
    --header-h: 108px;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-sans: "Outfit", "Segoe UI", sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 10% -10%, rgba(201, 164, 74, 0.16), transparent 50%),
        radial-gradient(900px 400px at 110% 8%, rgba(109, 19, 32, 0.12), transparent 45%),
        var(--paper);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
}

img,
video {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    overflow: visible;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.topbar {
    background: var(--burgundy-deep);
    color: var(--gold-bright);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 34px;
}

.topbar .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--gold);
}

.navbar {
    position: relative;
    z-index: 201;
    overflow: visible;
    background: rgba(251, 246, 234, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 0 3px rgba(109, 19, 32, 0.15);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 0.08em;
    color: var(--burgundy);
}

.brand-text small {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    transition: 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: var(--burgundy);
    color: var(--cream);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--gold);
    background: var(--burgundy);
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    z-index: 220;
    padding: 0;
    touch-action: manipulation;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--gold-bright);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: calc(100vh - var(--header-h));
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--cream);
    background: var(--burgundy-deep);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) brightness(0.45);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(58, 11, 18, 0.35) 0%, rgba(58, 11, 18, 0.72) 55%, rgba(28, 18, 15, 0.92) 100%),
        radial-gradient(circle at 70% 20%, rgba(201, 164, 74, 0.28), transparent 36%);
}

.hero-inner {
    text-align: center;
    padding: 80px 20px 90px;
    max-width: 860px;
}

.hero-logo {
    width: 168px;
    height: 168px;
    margin: 0 auto 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-bright);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 12px;
}

.hero h1,
.page-hero h1,
.section-title h2 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.12;
    margin: 0 0 14px;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 78px);
}

.hero p.lead {
    font-size: 20px;
    color: rgba(244, 235, 216, 0.88);
    max-width: 640px;
    margin: 0 auto 28px;
}

.hero-actions,
.cta-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-gold {
    background: linear-gradient(180deg, var(--gold-bright), var(--gold));
    color: var(--burgundy-deep);
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 164, 74, 0.35);
}

.btn-ghost {
    border-color: rgba(228, 200, 120, 0.7);
    color: var(--cream);
    background: transparent;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
    border-color: var(--burgundy);
    color: var(--burgundy);
    background: transparent;
}

.btn-outline:hover {
    background: var(--burgundy);
    color: var(--cream);
}

.section {
    padding: 84px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 44px;
}

.section-title h2 {
    font-size: clamp(32px, 4vw, 48px);
    color: var(--burgundy);
}

.section-title p {
    margin: 0 auto;
    max-width: 640px;
    color: var(--muted);
}

.ornament {
    width: 88px;
    height: 14px;
    margin: 0 auto 16px;
    background:
        radial-gradient(circle at center, var(--gold) 0 5px, transparent 6px),
        linear-gradient(var(--gold), var(--gold)) center/70px 1px no-repeat;
}

.split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.split img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.kicker {
    color: var(--gold-dim);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.prose h2,
.prose h3 {
    font-family: var(--font-serif);
    color: var(--burgundy);
}

.prose p {
    color: #3d2b24;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.card,
.member-card,
.stat-card,
.principle {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(58, 11, 18, 0.06);
}

.principle {
    padding: 28px 24px;
}

.principle h3 {
    margin: 8px 0 10px;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--burgundy);
}

.principle p {
    margin: 0;
    color: var(--muted);
}

.icon-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--burgundy);
    color: var(--gold-bright);
    font-family: var(--font-serif);
    font-size: 20px;
}

.page-hero {
    padding: 72px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 62px);
    color: var(--burgundy);
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}

.mosaic a,
.mosaic article {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #1c120f;
}

.mosaic img,
.mosaic video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.45s ease;
}

.mosaic a:hover img,
.mosaic a:hover video {
    transform: scale(1.06);
}

.mosaic .wide {
    grid-column: span 2;
}

.mosaic .tall {
    grid-row: span 2;
}

.mosaic figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    font-size: 14px;
}

.badge-play {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(109, 19, 32, 0.88);
    color: var(--gold-bright);
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 5px 9px;
    border-radius: 999px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding-inline: 8px;
}

.filter-bar button {
    border: 1px solid var(--line);
    background: #fffdf8;
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
}

.filter-bar button.is-active {
    background: var(--burgundy);
    color: var(--cream);
    border-color: var(--burgundy);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #1c120f;
    min-height: 240px;
    cursor: pointer;
    border: 0;
    padding: 0;
    text-align: left;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-item .meta {
    position: absolute;
    inset: auto 0 0;
    padding: 16px;
    color: #fff;
    background: linear-gradient(transparent, rgba(28, 18, 15, 0.86));
}

.gallery-item h3 {
    margin: 0 0 4px;
    font-size: 18px;
    font-family: var(--font-serif);
}

.gallery-item p {
    margin: 0;
    font-size: 13px;
    opacity: 0.86;
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.member-card {
    padding: 28px;
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 20px;
}

.member-card.placeholder {
    grid-template-columns: 1fr;
    min-height: 180px;
    place-items: center;
    text-align: center;
    background:
        repeating-linear-gradient(-45deg, rgba(201, 164, 74, 0.05) 0 12px, transparent 12px 24px),
        #fffdf8;
}

.avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--burgundy), var(--burgundy-soft));
    color: var(--gold-bright);
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: 0.04em;
    border: 2px solid var(--gold);
}

.member-card h3 {
    margin: 0 0 4px;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--burgundy);
}

.role {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--gold-dim);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.member-card p {
    margin: 0;
    color: #46352c;
}

.tuzuk-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}

.tuzuk-toc {
    position: sticky;
    top: 24px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.tuzuk-toc h2 {
    margin: 0 0 12px;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tuzuk-toc a {
    display: block;
    padding: 8px 6px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
}

.tuzuk-toc a:hover {
    background: rgba(109, 19, 32, 0.06);
    color: var(--burgundy);
}

.tuzuk-article {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 30px;
    margin-bottom: 16px;
}

.tuzuk-article h2,
.tuzuk-article h3 {
    font-family: var(--font-serif);
    color: var(--burgundy);
    margin-top: 0;
}

.tuzuk-article h2 {
    font-size: 30px;
}

.tuzuk-article h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.tuzuk-article ul {
    padding-left: 18px;
}

.tuzuk-article li + li {
    margin-top: 6px;
}

.form {
    display: grid;
    gap: 14px;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}

.form label {
    display: grid;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
}

.form input,
.form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
}

.form textarea {
    min-height: 140px;
    resize: vertical;
}

.alert {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.alert-ok {
    background: #e9f6ea;
    color: #1e5a2a;
}

.alert-err {
    background: #fdecea;
    color: #8a1f1f;
}

.contact-cards {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 24px;
}

.info-box {
    background: var(--burgundy);
    color: var(--cream);
    border-radius: var(--radius);
    padding: 32px 28px;
}

.info-box h2 {
    font-family: var(--font-serif);
    margin-top: 0;
}

.info-box p {
    color: rgba(244, 235, 216, 0.86);
}

.cta-band {
    background:
        linear-gradient(120deg, rgba(58, 11, 18, 0.9), rgba(109, 19, 32, 0.86)),
        url("../img/galeri/07-aile-bulusmasi.jpeg") center/cover;
    color: var(--cream);
    text-align: center;
}

.cta-band h2 {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    margin: 0 0 10px;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(12, 6, 6, 0.92);
    display: grid;
    place-items: center;
    padding: 40px 20px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-body img,
.lightbox-body video {
    max-height: 78vh;
    max-width: min(960px, 92vw);
    border-radius: 12px;
}

.lightbox-caption {
    color: var(--cream);
    text-align: center;
    margin: 12px 0 0;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
}

.site-footer {
    margin-top: 40px;
    background: var(--burgundy-deep);
    color: var(--cream);
    padding-top: 48px;
}

.footer-ornament {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin-bottom: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 36px;
}

.footer-brand {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-brand img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
}

.footer-brand h2 {
    margin: 0;
    font-family: var(--font-serif);
    letter-spacing: 0.08em;
}

.footer-brand p,
.muted {
    margin: 0;
    color: rgba(244, 235, 216, 0.72);
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 14px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-bright);
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: var(--gold-bright);
}

.footer-bottom {
    border-top: 1px solid rgba(201, 164, 74, 0.2);
    padding: 16px 0;
    font-size: 14px;
    color: rgba(244, 235, 216, 0.65);
}

.quote {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--burgundy);
    margin: 0;
}

@media (max-width: 980px) {
    .split,
    .card-grid,
    .gallery-grid,
    .member-grid,
    .contact-cards,
    .footer-grid,
    .tuzuk-layout {
        grid-template-columns: 1fr;
    }

    .mosaic {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 160px;
    }

    .tuzuk-toc {
        position: static;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navbar-inner {
        position: relative;
        overflow: visible;
        padding-right: 8px;
    }

    .brand-text small {
        display: none;
    }

    .hero h1 {
        font-size: clamp(28px, 8vw, 52px);
        padding-inline: 6px;
    }

    .hero-actions {
        padding-inline: 16px;
    }

    .hero-actions .btn {
        min-width: 148px;
    }

    .hero p.lead {
        font-size: 16px;
        padding-inline: 12px;
    }

    .page-hero p {
        padding-inline: 8px;
    }

    .topbar {
        letter-spacing: 0.08em;
        font-size: 11px;
    }

    .site-nav {
        display: flex;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 10px);
        z-index: 230;
        background: #fffdf8;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 10px;
        flex-direction: column;
        gap: 4px;
        box-shadow: var(--shadow);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    }

    .site-nav a {
        width: 100%;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .site-nav.is-open {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .member-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mosaic {
        grid-template-columns: 1fr;
    }

    .hero-logo {
        width: 128px;
        height: 128px;
    }
}
