/* Portfolio Highlights - Add dots to list items */
#story .division-content ul {
    list-style: none;
    padding-left: 0;
}

#story .division-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    line-height: 1.4;
}

#story .division-content ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #666666;
    font-size: 26px;
    font-weight: bold;
}

#story .history-timeline::before {
    bottom: 90px !important;
    height: auto !important;
}

#story .history-timeline .timeline-item:last-child {
    margin-bottom: 0 !important;
}

.page {
    display: none;
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.page.active {
    display: block;
    overflow: visible;
}

.brand-section {
    display: none;
}

.brand-section.active {
    display: block;
}

#story .os-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#story .os-animate.os-visible {
    opacity: 1;
    transform: translateY(0);
}

#story .os-card-animate {
    opacity: 0;
    transform: translateX(0);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#story .os-card-animate.os-slide-left {
    transform: translateX(-28px);
}

#story .os-card-animate.os-slide-right {
    transform: translateX(28px);
}

#story .os-card-animate.os-card-visible {
    opacity: 1;
    transform: translateX(0);
}

@media (prefers-reduced-motion: reduce) {
    #story .os-animate {
        transition: none;
        transform: none;
        opacity: 1;
    }

    #story .os-card-animate {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

.node-popup h4 {
    color: #000000 !important;
}

.node-popup,
.node-popup .popup-content {
    background: #ffffff !important;
    color: #000000 !important;
}

.node-popup {
    border: 2px solid #ffffff !important;
    width: 300px !important;
    height: 300px !important;
}

.node-popup .popup-content {
    width: 100% !important;
    height: 100% !important;
    border: 2px solid #ffffff !important;
}

.node-popup::after,
.node-popup h4::after {
    background: linear-gradient(90deg, transparent, #6c757d, transparent) !important;
}

.node-popup .discover-more-btn {
    background: #6c757d !important;
    color: #ffffff !important;
}

.node-popup .discover-more-btn:hover {
    background: #495057 !important;
    color: #ffffff !important;
}

/* Our Direction & Principles section: elegant fade + slide-up (scroll down + up) */
#story .history-section .os-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.7s cubic-bezier(0.22, 1, 0.36, 1), transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#story .history-section .os-fade-up.os-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: heading slightly earlier */
#story .history-section .os-fade-up.os-heading {
    transition-delay: 0ms;
}

#story .history-section .os-fade-up.os-content {
    transition-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
    #story .history-section .os-fade-up {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Paths to Excellence section: same elegant fade + slide-up as Our Direction & Principles */
#story .roadmap-section .os-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.7s cubic-bezier(0.22, 1, 0.36, 1), transform 1.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#story .roadmap-section .os-fade-up.os-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger: heading slightly earlier */
#story .roadmap-section .os-fade-up.os-heading {
    transition-delay: 0ms;
}

#story .roadmap-section .os-fade-up.os-content {
    transition-delay: 160ms;
}

@media (prefers-reduced-motion: reduce) {
    #story .roadmap-section .os-fade-up {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Generic reveal animation: ONLY elements with .reveal class */
#story .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

#story .reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #story .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Fix underline under 'Our Direction & Principles' heading only */
#story .history-section > h3 {
    position: relative;
    display: inline-block;
    text-align: left;
}

#story .history-section > h3::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 65px;
    height: 2px;
    background: #c9a24d;
    border-radius: 1px;
}

/* Specific reveal animation for 'Our Direction & Principles' heading and underline */
#story .history-section .reveal-heading {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1), transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
    position: relative;
    display: inline-block;
}

#story .history-section .reveal-heading.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

#story .history-section .reveal-heading .heading-underline {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 65px;
    height: 2px;
    background: #c9a24d;
    border-radius: 1px;
    opacity: 0;
    transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s, transform 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
    will-change: opacity, transform;
}

#story .history-section .reveal-heading.reveal-visible .heading-underline {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    #story .history-section .reveal-heading,
    #story .history-section .reveal-heading .heading-underline {
        transition: none;
        transform: none;
        opacity: 1;
    }
}

/* Remove gaps from Resorts section */
#resorts .hotel-info-section {
    padding: 0 !important;
}

#resorts .hotel-text {
    margin-top: 0 !important;
    padding: 0 !important;
}
