:root {
    --tokoh-text-light: #f6f2ea;
    --tokoh-cream: #f4efe7;
    --tokoh-green-soft: #cfe3c0;
    --tokoh-green-mid: #c2dbaf;
    --tokoh-green-deep: #82966a;
    --tokoh-panel: rgba(11, 15, 18, 0.45);
    --tokoh-border: rgba(255, 255, 255, 0.16);
    --tokoh-shadow: 0 16px 32px rgba(15, 18, 22, 0.24);
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: linear-gradient(180deg, #ece5da 0%, #e8e0d6 100%);
    color: #212121;
}

.tokoh-page {
    flex: 1 0 auto;
}

.tokoh-hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 42px;
    background:
        linear-gradient(180deg, rgba(14, 20, 16, 0.38) 0%, rgba(14, 20, 16, 0.42) 100%),
        url("../img/background/latartokoh.png") center / cover no-repeat;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, 0.04) 100%);
    pointer-events: none;
}

.hero-panel {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 30px;
    text-align: center;
    color: var(--tokoh-text-light);
}

.hero-kicker {
    font-family: "Cinzel", serif;
    font-size: clamp(26px, 3vw, 44px);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.tokoh-heading {
    font-family: "Cinzel", serif;
    font-size: clamp(36px, 5.2vw, 74px);
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 4px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tokoh-subheading {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(28px, 3vw, 48px);
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 14px;
}

.tokoh-intro {
    max-width: 860px;
    margin: 0 auto;
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.8;
    color: rgba(246, 242, 234, 0.94);
}

.tokoh-note {
    margin-top: 18px;
    margin-bottom: 16px;
    font-size: 14px;
    color: rgba(246, 242, 234, 0.88);
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
    align-items: end;
    perspective: 1200px;
    margin-top: 20px;
}

.tokoh-card {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
    width: 100%;
    transition: transform 0.24s ease, filter 0.24s ease, box-shadow 0.24s ease;
    transform-origin: center bottom;
    will-change: transform;
}

.tokoh-card:hover,
.tokoh-card.is-active {
    transform: translateY(-2px);
}

.tokoh-card-image-wrap {
    display: block;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background: linear-gradient(180deg, #11bed0 0%, #223643 100%);
    aspect-ratio: 1 / 1.18;
    transition: border-radius 0.42s ease, box-shadow 0.42s ease;
}

.tokoh-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tokoh-card-image-wrap-neutral {
    background: linear-gradient(180deg, #c8b69c 0%, #8b6d4f 100%);
}

.tokoh-card-body {
    display: block;
    background: rgba(255, 255, 255, 0.95);
    color: #272727;
    border-radius: 0 0 10px 10px;
    padding: 12px 12px 14px;
    min-height: 96px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
    transition: background-color 0.32s ease, box-shadow 0.42s ease;
}

.tokoh-card-name {
    display: block;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 4px;
    text-transform: none;
}

.tokoh-card-role {
    display: block;
    font-size: 12px;
    line-height: 1.45;
    color: #666;
}

.tokoh-card.is-active .tokoh-card-body {
    background: #f8f5ef;
}

.tokoh-card.is-active {
    filter: saturate(1.02);
}

.tokoh-card.is-featured {
    transform: translateY(-3px);
}

.tokoh-card.is-featured .tokoh-card-image-wrap {
    aspect-ratio: 1 / 1.26;
}

.tokoh-card.is-featured .tokoh-card-body {
    min-height: 96px;
    padding: 12px 12px 14px;
}

.tokoh-card.is-active .tokoh-card-name {
    font-size: 15px;
}

.tokoh-card.is-active .tokoh-card-role {
    font-size: 12px;
}

.spotlight-section {
    position: relative;
    padding: 20px 0 0;
    background: linear-gradient(180deg, #ede8df 0%, #ebe4da 100%);
}

.spotlight-shell {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 28px 0;
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    box-shadow: var(--tokoh-shadow);
}

.spotlight-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(240, 245, 237, 0.56) 100%),
        url("../img/background/latartokoh2.png") center center / cover no-repeat;
    z-index: -1;
    transform: scale(1);
    transition: transform 0.46s ease, filter 0.46s ease, opacity 0.46s ease;
}

.spotlight-header {
    text-align: center;
    margin-bottom: 18px;
}

.spotlight-header,
.spotlight-summary,
.fact-card,
.spotlight-figure {
    transition: opacity 0.28s ease, transform 0.34s ease, filter 0.34s ease;
    transform: translateY(0) scale(1);
    opacity: 1;
}

.spotlight-shell.is-transitioning .spotlight-header,
.spotlight-shell.is-transitioning .spotlight-summary,
.spotlight-shell.is-transitioning .fact-card,
.spotlight-shell.is-transitioning .spotlight-figure {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
    filter: blur(3px);
}

.spotlight-shell.is-transitioning .spotlight-layer {
    transform: scale(1.03);
    filter: brightness(1.02);
}

.spotlight-name {
    font-size: clamp(30px, 3vw, 48px);
    line-height: 1;
    color: #191919;
    margin-bottom: 4px;
}

.spotlight-role {
    font-size: 17px;
    color: #3c3c3c;
}

.spotlight-summary {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 16px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto 20px;
    padding: 18px 18px 18px 16px;
    background: rgba(193, 220, 181, 0.92);
    border-radius: 10px;
}

.spotlight-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(29, 39, 27, 0.6);
    color: #1f281d;
    font-size: 20px;
}

.spotlight-summary p {
    margin: 0;
    font-size: 15px;
    line-height: 1.82;
    color: #20231f;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: minmax(0, 278px) minmax(260px, 360px) minmax(220px, 320px);
    grid-template-areas:
        "left-top figure right-top"
        "left-bottom figure right-bottom";
    gap: 18px 22px;
    align-items: start;
    padding: 12px 18px 24px;
}

.spotlight-shell.has-video .spotlight-grid {
    grid-template-areas:
        "left-top figure right-top"
        "left-bottom figure video";
}

.fact-card {
    position: relative;
    width: 100%;
    padding: 18px 16px;
    background: rgba(202, 224, 191, 0.96);
    border-radius: 8px;
    color: #1f221f;
    box-shadow: 0 12px 22px rgba(37, 49, 34, 0.12);
}

.fact-card h3 {
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.fact-card p {
    font-size: 15px;
    line-height: 1.7;
}

.fact-card-left-top {
    grid-area: left-top;
}

.fact-card-right-top {
    grid-area: right-top;
}

.fact-card-left-bottom {
    grid-area: left-bottom;
}

.spotlight-shell:not(.has-video) .fact-card-left-bottom {
    grid-area: right-bottom;
}

.spotlight-figure {
    grid-area: figure;
    align-self: end;
    justify-self: center;
    width: min(100%, 360px);
    margin: 0;
}

.spotlight-figure img {
    display: block;
    width: 100%;
    height: auto;
}

.spotlight-video-wrap {
    grid-area: video;
    align-self: end;
    justify-self: end;
    width: min(100%, 320px);
    padding: 10px 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.spotlight-video-wrap[hidden] {
    display: none !important;
}

.spotlight-video-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.spotlight-video-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(25, 25, 25, 0.72);
}

.spotlight-video-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(130, 150, 106, 0.45);
    border-radius: 999px;
    padding: 7px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(229, 236, 221, 0.94) 100%);
    color: #23301f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.spotlight-video-toggle.is-playing {
    background: linear-gradient(180deg, rgba(207, 227, 192, 0.95) 0%, rgba(194, 219, 175, 0.98) 100%);
}

.spotlight-video-toggle-icon {
    width: 20px;
    height: 20px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: #273621;
    font-size: 10px;
    flex-shrink: 0;
}

.spotlight-video {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 0;
    border-radius: 14px;
    background: transparent;
}

.site-footer {
    margin-top: 0;
}

@media (max-width: 1180px) {
    .hero-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .spotlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "left-top right-top"
            "figure video"
            "left-bottom left-bottom";
        gap: 18px;
        padding-bottom: 24px;
    }

    .fact-card,
    .spotlight-figure,
    .spotlight-video-wrap {
        position: relative;
        inset: auto;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
        transform: none;
        width: 100%;
    }

    .spotlight-figure {
        align-self: end;
        justify-self: center;
        max-width: 340px;
        grid-column: 1 / -1;
    }

    .spotlight-video-wrap {
        max-width: 320px;
        justify-self: end;
        align-self: start;
    }
}

@media (max-width: 980px) {
    .tokoh-hero {
        padding: 112px 0 30px;
    }

    .hero-panel {
        padding: 0 16px;
    }

    .tokoh-intro {
        text-align: justify;
    }

    .hero-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 46vw);
        gap: 16px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 12px 4px 20px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-cards::-webkit-scrollbar {
        display: none;
    }

    .tokoh-card {
        scroll-snap-align: center;
        min-width: 0;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "figure"
            "video"
            "left-top"
            "right-top"
            "left-bottom";
        gap: 16px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .spotlight-figure {
        max-width: 280px;
        justify-self: center;
    }

    .spotlight-video-wrap {
        width: 100%;
        max-width: 340px;
        justify-self: center;
        align-self: center;
    }

    .spotlight-video-header {
        flex-wrap: wrap;
    }

    .spotlight-summary p,
    .fact-card p {
        text-align: justify;
    }
}

@media (max-width: 760px) {
    .tokoh-hero {
        padding: 100px 0 28px;
    }

    .hero-panel {
        padding: 0 14px;
    }

    .tokoh-intro {
        max-width: 640px;
        font-size: 14px;
        line-height: 1.72;
        text-align: justify;
    }

    .tokoh-note {
        margin-top: 16px;
        margin-bottom: 14px;
        font-size: 13px;
    }

    .hero-cards {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: minmax(220px, 74vw);
        gap: 18px;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: visible;
        margin-top: 14px;
        padding: 12px 6px 22px;
        scroll-snap-type: x proximity;
        scroll-padding-inline: 6px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hero-cards::-webkit-scrollbar {
        display: none;
    }

    .tokoh-card {
        scroll-snap-align: center;
        scroll-snap-stop: always;
        min-width: 0;
    }

    .tokoh-card.is-featured {
        transform: translateY(-2px);
    }

    .tokoh-card-image-wrap {
        aspect-ratio: 1 / 1.22;
    }

    .tokoh-card.is-featured .tokoh-card-image-wrap {
        aspect-ratio: 1 / 1.24;
    }

    .tokoh-card-body {
        min-height: 94px;
        padding: 12px 12px 14px;
    }

    .spotlight-section {
        padding-top: 14px;
    }

    .spotlight-shell {
        margin: 0 10px;
        padding: 20px 14px 18px;
        border-radius: 16px;
    }

    .spotlight-summary {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 12px;
        padding: 16px 14px;
    }

    .spotlight-summary p,
    .fact-card p {
        text-align: justify;
    }

    .spotlight-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "figure"
            "video"
            "left-top"
            "right-top"
            "left-bottom";
        gap: 14px;
        padding-left: 0;
        padding-right: 0;
        padding-bottom: 0;
    }

    .spotlight-figure {
        max-width: 240px;
    }

    .spotlight-video-wrap {
        width: 100%;
        max-width: 300px;
        justify-self: center;
        align-self: center;
    }

    .spotlight-video-header {
        flex-wrap: wrap;
    }

    .tokoh-card-name {
        font-size: 14px;
    }

    .tokoh-card-role {
        font-size: 11px;
    }
}

@media (max-width: 520px) {
    .tokoh-hero {
        padding: 94px 0 24px;
    }

    .hero-panel {
        padding: 0 12px;
    }

    .tokoh-heading {
        font-size: clamp(28px, 10vw, 42px);
    }

    .tokoh-subheading {
        font-size: clamp(22px, 7vw, 32px);
    }

    .tokoh-intro {
        font-size: 13px;
        line-height: 1.7;
    }

    .hero-cards {
        grid-auto-columns: minmax(200px, 82vw);
        gap: 12px;
        padding-bottom: 18px;
    }

    .spotlight-name {
        font-size: 28px;
    }

    .spotlight-role {
        font-size: 14px;
    }

    .fact-card h3 {
        font-size: 15px;
    }

    .fact-card p,
    .spotlight-summary p {
        font-size: 13px;
    }

    .spotlight-summary {
        grid-template-columns: 1fr;
    }

    .tokoh-card-body {
        min-height: 84px;
        padding: 11px 11px 12px;
    }

    .tokoh-card-name {
        font-size: 14px;
    }

    .tokoh-card-role {
        font-size: 11px;
        line-height: 1.38;
    }

    .spotlight-shell {
        margin: 0 8px;
        padding: 18px 10px 16px;
    }
}

@media (max-width: 420px) {
    .hero-panel {
        padding: 0 10px;
    }

    .tokoh-intro {
        font-size: 12.5px;
        line-height: 1.64;
    }

    .hero-cards {
        grid-auto-columns: minmax(188px, 84vw);
    }

    .spotlight-name {
        font-size: 24px;
    }

    .spotlight-role {
        font-size: 13px;
    }

    .spotlight-video-wrap {
        max-width: 260px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tokoh-card,
    .spotlight-layer,
    .spotlight-header,
    .spotlight-summary,
    .fact-card,
    .spotlight-figure {
        transition: none;
    }
}

/* Hard safety overrides for small devices to avoid cramped two-column layout */
@media (max-width: 1024px) {
    .tokoh-hero {
        padding-top: 118px !important;
    }

    .spotlight-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas:
            "figure"
            "video"
            "left-top"
            "right-top"
            "left-bottom" !important;
        gap: 14px !important;
    }

    .fact-card,
    .spotlight-summary,
    .spotlight-figure,
    .spotlight-video-wrap {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
    }

    .spotlight-figure {
        max-width: 260px !important;
        justify-self: center !important;
    }

    .spotlight-video-wrap {
        max-width: 340px !important;
        justify-self: center !important;
    }

    .spotlight-shell:not(.has-video) .fact-card-left-bottom {
        grid-area: left-bottom !important;
    }
}

@media (max-width: 420px) {
    .tokoh-hero {
        padding-top: 126px !important;
    }

    .spotlight-shell {
        margin: 0 6px;
        padding: 14px 8px 14px;
    }

    .fact-card {
        padding: 14px 12px;
    }
}
