/* SPENIWA V19 — restrained motion system. Public pages only. */
:root {
    --motion-ink: #0e335e;
    --motion-ease: cubic-bezier(.22, 1, .36, 1);
}
/* Do not make the page invisible before animation libraries become available. */
html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
html.lenis.lenis-stopped { overflow: clip; }
html.lenis.lenis-smooth iframe { pointer-events: auto; }
[id] { scroll-margin-top: 95px; }

/* Smart navbar: independent of the transparent/solid background classes from V15. */
#mainNavbar {
    transition: transform .36s var(--motion-ease), background-color .3s ease,
        border-color .3s ease, box-shadow .3s ease;
    will-change: auto;
}
#mainNavbar.navbar-hidden-v19 {
    transform: translate3d(0, calc(-100% - 4px), 0);
    pointer-events: none;
}
#mainNavbar:focus-within { transform: translate3d(0,0,0) !important; pointer-events: auto; }

/* Centered editorial hero. The underlying carousel and responsive wave remain intact. */
.home-hero-v10.home-hero-v17.home-hero-v19 {
    height: auto !important;
    min-height: max(775px, calc(100svh + 190px));
    padding: clamp(140px,16svh,190px) 0 clamp(215px,24svh,310px) !important;
    display: grid;
    place-items: center;
    isolation: isolate;
}
.home-hero-v19 .carousel-inner,
.home-hero-v19 .carousel-item { height: 100% !important; }
.home-hero-v19 .hero-bg-v6 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    backface-visibility: hidden;
}
.home-hero-v19 .carousel-item::after {
    background: linear-gradient(180deg,
        rgba(3,18,44,.64) 0%, rgba(6,28,64,.62) 45%,
        rgba(6,27,57,.47) 77%, rgba(6,23,47,.32) 100%);
}
.home-hero-v19 .hero-content-v19 {
    position: relative;
    top: auto !important;
    left: auto !important;
    margin: 0 auto !important;
    padding-inline: clamp(20px,4.2vw,64px);
    width: 100%;
    max-width: 1160px;
    z-index: 2;
    /* GSAP controls this element's transform while scrolling. */
    transform: none;
}
.home-hero-v19 .hero-content-v19 .hero-heading-v5 {
    max-width: 950px;
    margin-inline: auto;
    font-size: clamp(2.35rem, 4.9vw, 4.75rem);
    line-height: 1.12;
    letter-spacing: -.047em;
    text-wrap: balance;
}
.home-hero-v19 .hero-lead-v5 { max-width: 720px; margin-inline: auto; }
.home-hero-v19 .hero-content-v19 .btn { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; }
/* Text word spans are created after the heading has been read and labelled for accessibility. */
.motion-word-v19 { display: inline-block; white-space: nowrap; }
.hero-scroll-cue-v19 {
    position: absolute;
    left: 50%;
    bottom: calc(var(--v17-wave-height, 100px) + 152px);
    transform: translateX(-50%);
    z-index: 5;
    color: #f1f6fc;
    text-decoration: none;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .155em;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    white-space: nowrap;
    padding: 12px 10px;
    text-shadow: 0 1px 7px #06172d80;
}
.hero-scroll-cue-v19:hover, .hero-scroll-cue-v19:focus-visible { color: #fff; }
.hero-scroll-cue-line-v19 { width: 35px; height: 1px; background: currentColor; opacity: .82; }
.hero-scroll-cue-v19 .bi { font-size: 1.3rem; line-height: 1; transition: transform .32s ease; }
.hero-scroll-cue-v19:hover .bi { transform: translateY(5px); }
.home-hero-v19 .hero-wave-v16 { z-index: 4; }
#sambutanBeranda { scroll-margin-top: 108px; }

/* Principal: perspective on wrapper only, so existing skeleton and image cropping remain stable. */
.principal-tilt-stage-v19 { perspective: 1150px; padding: 2px; }
.principal-tilt-v19 {
    transform-style: preserve-3d;
    transform-origin: center center;
    border-radius: 18px;
    transition: box-shadow .3s ease;
}
.principal-tilt-v19:hover { box-shadow: 0 22px 45px rgba(8,43,86,.16); }
html:not(.v19-gsap-ready) .principal-tilt-v19:hover { transform: translateY(-3px); }
.principal-tilt-v19 img { backface-visibility: hidden; }

/* Motion changes only selected cards; stacked achievement slides retain V8 pointer/drag transforms. */
[data-motion-card] { transform-origin: center; }
.v19-motion-ready .news-card,
.v19-motion-ready .gallery-tile { transition: box-shadow .25s ease, border-color .25s ease; }
.v19-motion-ready .news-card:hover { transform: none; box-shadow: 0 20px 38px rgba(10,45,88,.14); }
.v19-motion-ready .gallery-tile:hover { transform: none; box-shadow: 0 14px 32px rgba(10,45,88,.14); }

@media (max-width: 767.98px) {
    .home-hero-v10.home-hero-v17.home-hero-v19 {
        min-height: max(725px, calc(100svh + 158px));
        padding: 135px 0 225px !important;
    }
    .home-hero-v19 .hero-content-v19 { padding-inline: 20px; }
    .home-hero-v19 .hero-content-v19 .hero-heading-v5 {
        font-size: clamp(2rem, 8.3vw, 3.2rem);
        line-height: 1.16;
    }
    .home-hero-v19 .hero-scroll-cue-v19 { bottom: calc(var(--v17-wave-height, 80px) + 133px); }
    .home-hero-v19 .hero-content-v19 .btn { font-size: .87rem; padding-inline: 17px !important; }
    .principal-tilt-v19 { transform: none !important; }
}
@media (max-width: 375px) {
    .home-hero-v19 .hero-heading-v5 { font-size: 2rem; }
    .hero-scroll-cue-v19 { letter-spacing: .12em; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto !important; }
    #mainNavbar { transition: none !important; transform: none !important; }
    .hero-scroll-cue-v19 .bi, .principal-tilt-v19 { transition: none !important; transform: none !important; }
    .motion-word-v19 { opacity: 1 !important; transform: none !important; }
}
