:root {
    --uiac-navy: #0f3c68;
    --uiac-royal: #184f85;
    --uiac-gold: #c9a24a;
    --uiac-mist: #f4f7fb;
    --uiac-slate: #4f647a;
}

html {
    scroll-behavior: smooth;
}

.js-ready [data-reveal] {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(42px) scale(0.985);
    transition:
        opacity 0.85s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.85s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.js-ready [data-reveal].is-visible {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.js-ready [data-no-reveal],
.js-ready [data-no-reveal] * {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    visibility: visible !important;
}

body {
    background:
        radial-gradient(circle at top right, rgba(201, 162, 74, 0.08), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at center, black 18%, transparent 78%);
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    z-index: 0;
    transition: opacity 0.9s ease, visibility 0s linear 0.9s;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    z-index: 2;
    transition: opacity 0.9s ease;
}

.hero-slide img {
    transform: scale(1.08);
    transition: transform 6.5s ease;
}

.hero-slide.is-active img {
    transform: scale(1);
}

.hero-slide-overlay {
    background:
        linear-gradient(90deg, rgba(6, 17, 31, 0.12), rgba(6, 17, 31, 0.18));
}

.hero-slide-panel {
    position: relative;
    z-index: 4;
    display: block !important;
    width: min(100%, 56rem);
    margin-inline: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 2rem;
    background:
        linear-gradient(180deg, rgba(2, 12, 22, 0.58), rgba(15, 60, 104, 0.42));
    box-shadow:
        0 30px 80px rgba(2, 12, 22, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 1 !important;
    padding: 2rem;
    visibility: visible !important;
}

.hero-slide-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

.hero-slide.is-active .hero-slide-panel {
    animation: heroPanelIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide-panel.is-swapping {
    animation: heroPanelIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-slide-title,
.hero-slide-subtitle,
.hero-slide-description {
    position: relative;
    z-index: 1;
    text-shadow: 0 6px 24px rgba(2, 12, 22, 0.38);
}

.hero-slide-title {
    color: #fff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.5rem, 6vw, 5.8rem);
    font-weight: 600;
    line-height: 0.98;
}

.hero-slide-subtitle {
    margin-top: 1rem;
    color: #f3d98f;
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-slide-description {
    width: min(100%, 42rem);
    margin: 1.25rem auto 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 2.2vw, 1.34rem);
    line-height: 1.75;
}

.hero-slide-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15rem;
    padding: 0.95rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

.hero-slide-cta:hover {
    transform: translateY(-3px);
}

.hero-slide-cta-primary {
    background: #ffffff;
    color: var(--uiac-navy);
    box-shadow: 0 16px 35px rgba(2, 12, 22, 0.18);
}

.hero-slide-cta-primary:hover {
    background: #d9e8f5;
}

.hero-slide-cta-secondary {
    border: 1px solid rgba(255, 255, 255, 0.26);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-slide-cta-secondary:hover {
    border-color: var(--uiac-gold);
    color: #f3d98f;
}

header {
    animation: navReveal 0.75s ease both;
}

.desktop-submenu {
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    visibility: hidden;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease,
        visibility 0s linear 0.22s;
}

.group\/nav:hover .desktop-submenu,
.group\/nav:focus-within .desktop-submenu,
.desktop-submenu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.menu-icon {
    color: rgba(15, 60, 104, 0.72);
    transition: color 0.25s ease, transform 0.25s ease;
}

.group:hover .menu-icon,
a:hover .menu-icon,
button:hover .menu-icon {
    color: var(--uiac-gold);
    transform: translateY(-1px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 999px;
    background: rgba(15, 60, 104, 0.08);
    color: var(--uiac-royal);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    padding: 0.55rem 1rem;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--uiac-gold);
}

.section-kicker-dark {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.section-title {
    margin-top: 1rem;
    color: var(--uiac-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 600;
    line-height: 1.05;
}

.section-title-dark {
    color: white;
}

.copy-justify {
    text-align: left;
}

.section-kicker,
.section-title,
a,
button,
article,
img {
    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        opacity 0.25s ease;
}

article[class*="rounded"] {
    will-change: transform;
}

article[class*="rounded"]:hover {
    box-shadow: 0 22px 50px rgba(15, 60, 104, 0.12);
    transform: translateY(-6px);
}

article[class*="rounded"]:hover img {
    transform: scale(1.04);
}

@keyframes heroPanelIn {
    0% {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes navReveal {
    0% {
        opacity: 0;
        transform: translateY(-18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.lightbox {
    align-items: center;
    background: rgba(2, 12, 22, 0.88);
    display: none;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    padding: 2rem;
    position: fixed;
    z-index: 60;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-close {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: white;
    font-size: 2rem;
    line-height: 1;
    padding: 0.25rem 0.85rem;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

.surface-pattern {
    background-image:
        linear-gradient(135deg, rgba(15, 60, 104, 0.02) 25%, transparent 25%),
        linear-gradient(225deg, rgba(15, 60, 104, 0.02) 25%, transparent 25%),
        linear-gradient(45deg, rgba(15, 60, 104, 0.02) 25%, transparent 25%),
        linear-gradient(315deg, rgba(15, 60, 104, 0.02) 25%, #ffffff 25%);
    background-position: 22px 0, 22px 0, 0 0, 0 0;
    background-size: 22px 22px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--uiac-gold) !important;
    box-shadow: 0 0 0 4px rgba(201, 162, 74, 0.16) !important;
    outline: none;
}

@media (min-width: 768px) {
    .copy-justify {
        text-align: justify;
        text-justify: inter-word;
    }
}

@media (max-width: 768px) {
    .lightbox-close {
        right: 1rem;
        top: 1rem;
    }

    .hero-slide-panel {
        border-radius: 1.5rem;
        padding: 1.4rem 1.15rem;
    }

    .hero-slide-title,
    .hero-slide-subtitle,
    .hero-slide-description {
        text-shadow: 0 3px 14px rgba(2, 12, 22, 0.36);
    }
}

@media (max-width: 640px) {
    .hero-slide-description {
        line-height: 1.65;
    }

    .hero-slide-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-slide-cta {
        width: 100%;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .js-ready [data-reveal],
    .hero-slide,
    .hero-slide img,
    .hero-slide-panel,
    .section-kicker,
    .section-title,
    a,
    button,
    article,
    img {
        transition: none !important;
        transform: none !important;
        filter: none !important;
    }

    header,
    .hero-slide.is-active .hero-slide-panel {
        animation: none !important;
    }
}
