@font-face {
    font-family: 'CardinalClassicMid';
    src: url('../fonts/cardinalclmidw-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 18px;
}

html, body {
    height: 100%;
    min-height: 100vh;
    overflow: hidden;
    width: 100vw;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    flex: 1 0 auto;
    font-family: 'CardinalClassicMid', 'Georgia', serif;
    background-color: #ebe8e0;
}
.logo-container {
    mix-blend-mode:difference;
  }

  .slogan-text {
    mix-blend-mode:difference;
  }
  
* {
    box-sizing: border-box;
}

a, a:visited, a:focus, a:hover {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.bg-scroll {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: auto;
    opacity: 0;
}
.bg-scroll.bg-fade-in {
    animation: bg-fade-in 1.2s cubic-bezier(0.77,0,0.175,1) forwards;
}
@keyframes bg-fade-in {
    to { opacity: 1; }
}

.bg-scroll-track {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bg-scroll-up 30s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.bg-img {
    width: 100vw;
    max-width: 100vw;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
}

.progress-bar {
    width: 4px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    width: 100%;
    height: 0%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: height 0.3s ease;
}

@keyframes bg-scroll-up {
    0% { transform: translateY(0); }
    10% { transform: translateY(-5%); } /* Slow start */
    20% { transform: translateY(-15%); } /* Speed up */
    30% { transform: translateY(-25%); } /* Slow down */
    40% { transform: translateY(-35%); } /* Speed up */
    50% { transform: translateY(-45%); } /* Slow down */
    60% { transform: translateY(-55%); } /* Speed up */
    70% { transform: translateY(-65%); } /* Slow down */
    80% { transform: translateY(-75%); } /* Speed up */
    90% { transform: translateY(-85%); } /* Slow down */
    100% { transform: translateY(-100%); } /* Final speed up */
}

.logo-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex: 1 1 0;
    min-height: 0;
    margin: 0;
    position: relative;
    z-index: 2;
    max-width: 100vw;
    box-sizing: border-box;
}

.logo-wrapper {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    min-height: 0;
    flex-shrink: 1;
    padding: 0.2vw 4vw 0 4vw;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.logo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    object-fit: contain;
    margin-left: -1.5vw;
    margin-top: 0;
    filter: brightness(0) invert(1);
    transform: rotate(180deg) !important;
}

.logo-group {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.77,0,0.175,1);
}
.logo-group.logo-reveal-in {
    opacity: 1;
}

footer {
    width: 100vw;
    padding: 2rem 0 1.5rem 0;
    text-align: center;
    background: transparent;
    margin-top: auto;
    z-index: 2;
    position: relative;
    color: #fff;
    mix-blend-mode: difference;
    flex-shrink: 0;
}

.footer-content span {
    display: inline-block;
    opacity: 0;
    transform: translateY(13px);
    animation: footer-slide-up 0.7s cubic-bezier(0.77,0,0.175,1) forwards;
}
.footer-content span:nth-child(1) { animation-delay: 0.1s; }
.footer-content span:nth-child(2) { animation-delay: 0.3s; }
.footer-content span:nth-child(3) { animation-delay: 0.5s; }
.footer-content span:nth-child(4) { animation-delay: 0.7s; }
.footer-content span:nth-child(5) { animation-delay: 0.9s; }

@keyframes footer-slide-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content p, .footer-content a {
    color: #fff !important;
    mix-blend-mode: difference;
}

.footer-content p {
    margin: -0.2em 0;
    font-size: 17px;
}

.footer-content a {
    text-decoration: none;
    color: #fff;
}

@media (max-width: 600px) {
    .logo-wrapper {
        padding: 0.2vw 4vw 0 4vw;
        max-height: 50vh;
        min-height: 0;
        flex-shrink: 1;
        align-items: flex-start;
    }
    .footer-content p {
        font-size: 17px;
    }
} 

.slogan-container {
    display: none;
}
.slogan-text {
    text-align: justify;
    text-align-last: justify;
    font-size: 17px;
    color: #fff;
    max-width: 600px;
    margin: 2vw auto 2vw auto;
    line-height: 1.5;
    font-family: 'CardinalClassicMid', 'Georgia', serif;
    letter-spacing: 0.01em;
    mix-blend-mode: difference;
} 