:root {
    --apfl-blue: #0b3d70;
    --apfl-orange: #ff5a1f;
    --apfl-focus: #ffd04f;
}

html {
    scroll-behavior: smooth;
}

.apfl-body {
    margin: 0;
    background: #ffffff;
    color: var(--apfl-blue);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.apfl-body * {
    box-sizing: border-box;
}

.apfl-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 99999;
    transform: translateY(-160%);
    border-radius: 999px;
    background: var(--apfl-orange);
    color: #ffffff;
    padding: 10px 16px;
    font-size: 14px;
    line-height: 1;
    text-decoration: none;
    transition: transform 160ms ease;
}

.apfl-skip-link:focus {
    transform: translateY(0);
}

.apfl-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.apfl-page {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background: #ffffff;
}

.apfl-slice {
    position: relative;
    width: min(100%, var(--apfl-slice-width));
    margin: 0 auto;
    line-height: 0;
}

.apfl-slice img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    user-select: none;
}

.apfl-hotspot {
    position: absolute;
    z-index: 5;
    display: block;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: transparent;
    cursor: pointer;
    overflow: hidden;
    text-indent: -9999px;
    appearance: none;
}

.apfl-hotspot:hover,
.apfl-hotspot:focus-visible {
    background: rgba(255, 208, 79, 0.18);
    outline: 3px solid rgba(255, 208, 79, 0.95);
    outline-offset: 3px;
}

.apfl-animate-ready .apfl-slice[data-apfl-animate] {
    opacity: 0;
    transition:
        opacity 820ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 980ms cubic-bezier(0.22, 1, 0.36, 1),
        clip-path 1120ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 980ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--apfl-animate-delay, 0ms);
    transform-origin: 50% 50%;
    will-change: opacity, transform, clip-path, filter;
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="fade"] {
    transform: none;
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="fade-rise"] {
    transform: translate3d(0, 34px, 0);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="drop-rise"] {
    transform: translate3d(0, -24px, 0);
    filter: saturate(0.9) brightness(1.02);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="brush-rise"] {
    clip-path: inset(0 100% 0 0);
    transform: translate3d(0, 22px, 0);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="wipe"] {
    clip-path: inset(0 100% 0 0);
    transform: translate3d(0, 8px, 0);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="ink"],
.apfl-animate-ready .apfl-slice[data-apfl-animate="ink-fade"],
.apfl-animate-ready .apfl-slice[data-apfl-animate="rise-ink"] {
    transform: translate3d(0, 28px, 0) scale(0.985);
    filter: saturate(0.86) brightness(1.05);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="gradient-lines"] {
    clip-path: inset(0 0 14% 0);
    transform: translate3d(0, 26px, 0);
    filter: saturate(0.92) brightness(1.04);
}

.apfl-animate-ready .apfl-slice[data-apfl-animate="digital-rise"] {
    transform: translate3d(0, 22px, 0);
    filter: blur(5px) saturate(0.94);
}

.apfl-animate-ready .apfl-slice.is-visible,
.apfl-animation-fallback .apfl-slice[data-apfl-animate] {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    clip-path: inset(0 0 0 0);
    filter: none;
}

.apfl-search-modal {
    position: fixed;
    inset: 0;
    z-index: 99998;
    display: none;
    place-items: center;
    padding: 24px;
    background: rgba(8, 18, 31, 0.68);
}

.apfl-search-modal.is-open {
    display: grid;
}

.apfl-search-panel {
    position: relative;
    width: min(520px, 100%);
    border-radius: 18px;
    background: #ffffff;
    padding: 32px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    line-height: 1.35;
}

.apfl-search-panel h2 {
    margin: 0 0 18px;
    color: var(--apfl-blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 4vw, 34px);
    font-weight: 400;
}

.apfl-search-panel form {
    display: grid;
    gap: 14px;
}

.apfl-search-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.apfl-search-panel input {
    width: 100%;
    border: 1px solid rgba(11, 61, 112, 0.25);
    border-radius: 999px;
    padding: 14px 18px;
    color: var(--apfl-blue);
    font: inherit;
}

.apfl-search-panel input:focus {
    border-color: var(--apfl-orange);
    outline: 3px solid rgba(255, 90, 31, 0.18);
}

.apfl-search-panel button[type="submit"] {
    justify-self: start;
    border: 0;
    border-radius: 999px;
    background: var(--apfl-orange);
    color: #ffffff;
    padding: 12px 24px;
    font: inherit;
    cursor: pointer;
}

.apfl-search-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: #f4f0ea;
    color: var(--apfl-blue);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 720px) {
    .apfl-search-panel {
        padding: 28px 20px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .apfl-skip-link {
        transition: none;
    }

    .apfl-slice[data-apfl-animate] {
        opacity: 1;
        transform: none;
        clip-path: none;
        filter: none;
        transition: none;
    }
}
