@font-face {
    font-family: 'Avigea';
    src: url('../assets/Avigea.otf') format('opentype');
    font-display: swap;
}

@font-face {
    font-family: 'GilroyLight';
    src: url('../assets/Gilroy-Light.otf') format('opentype');
    font-display: swap;
}

:root {
    --bg-main: #1e1e1e;
    --bg-panel: #1f062f;
    --bg-accent: #341157;
    --text-main: #c0c0c0;
    --border-main: #c5c5c5;
    --link-main: #c39dff;
    --link-hover: #78a0ff;
    --hero-glow: rgba(155, 0, 255, 0.5);
    --box-shadow-black: 0 0 30px rgba(0, 0, 0, 0.25);
    --ptb-glow: 0 0 45px rgba(51, 109, 255, 0.4);
    --content-width: 1190px;
    --content-outer-width: 1200px;
    --border-heavy: 5px solid var(--border-main);
    --radius-lg: 20px;
    --radius-md: 18px;
    --transition-fast: 180ms ease;
    --transition-medium: 300ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(68, 0, 117, 0.28), transparent 34%),
        linear-gradient(180deg, #1f1d21 0%, var(--bg-main) 26%, #181818 100%);
    color: var(--text-main);
    font-family: 'GilroyLight', Arial, sans-serif;
    overflow-x: hidden;
}

a {
    color: var(--link-main);
    text-decoration: none;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

img {
    display: block;
    max-width: 100%;
}

.page-shell {
    opacity: 0;
    transition: opacity 420ms ease;
}

.page-shell.is-ready {
    opacity: 1;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    gap: 1rem;
    background:
        radial-gradient(circle at center, rgba(52, 17, 87, 0.75), rgba(30, 30, 30, 0.95) 58%),
        var(--bg-main);
    transition: opacity 380ms ease, visibility 380ms ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-orb-wrap {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-orb,
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}

.loader-orb {
    margin: auto;
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 30% 30%, #f0d8ff 0%, #7d52ff 40%, #341157 100%);
    box-shadow: 0 0 28px rgba(124, 77, 255, 0.7);
    animation: pulseOrb 1.8s ease-in-out infinite;
}

.loader-ring {
    border: 2px solid rgba(197, 197, 197, 0.3);
    border-top-color: rgba(120, 160, 255, 0.95);
    animation: spinRing 1.2s linear infinite;
}

.loader-text {
    margin: 0;
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 2rem);
    letter-spacing: 0.02em;
    text-shadow: 0 0 14px rgba(0, 0, 0, 0.35);
}

.hero-stage {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
    overflow: visible;
}

.hero-stage__glow {
    position: absolute;
    left: 50%;
    top: 2rem;
    width: min(84vw, 1160px);
    height: min(44vw, 520px);
    transform: translateX(-50%);
    background: radial-gradient(circle at center, var(--hero-glow) 0%, rgba(155, 0, 255, 0.24) 38%, rgba(155, 0, 255, 0) 74%);
    filter: blur(18px);
    pointer-events: none;
}

.hero-figure-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: end;
    width: min(100%, 1320px);
    margin: 0 auto;
}

.hero-figure {
    width: min(100%, 1304px);
    height: auto;
    object-fit: contain;
}

.topbar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.8rem;
    height: 140px;
    background: #341157 url('../assets/Topbar-BG-Img.gif') repeat;
    border-top: var(--border-heavy);
    border-bottom: var(--border-heavy);
    box-shadow: var(--box-shadow-black);
}

.page-title-box {
    position: absolute;
    left: 50%;
    bottom: calc(0.8rem + 70px - 90px);
    transform: translateX(-50%);
    z-index: 2;
    width: min(calc(100% - 2rem), 748px);
    min-height: 180px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-panel);
    border: var(--border-heavy);
    border-radius: var(--radius-lg);
    box-shadow: var(--ptb-glow);
    animation: magicalPulse 3.8s ease-in-out infinite;
}

.page-title-box__logo {
    width: min(100%, 664px);
    height: auto;
}

.main-nav {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 2rem), var(--content-outer-width));
    margin: -0.15rem auto 1.25rem;
    padding: 1rem 1rem 1.1rem;
    background:
        linear-gradient(180deg, rgba(56, 18, 87, 0.96), rgba(31, 6, 47, 0.98)),
        #2a0d40;
    border-left: var(--border-heavy);
    border-right: var(--border-heavy);
    border-bottom: var(--border-heavy);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.main-nav__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
}

.nav-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 0.85rem 1.2rem;
    background:
        linear-gradient(180deg, rgba(82, 36, 123, 0.95), rgba(44, 13, 69, 0.95)),
        #341157;
    border: 2px solid rgba(197, 197, 197, 0.85);
    border-radius: 999px;
    color: var(--text-main);
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    letter-spacing: 0.015em;
    box-shadow: 0 0 18px rgba(57, 99, 255, 0.14);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.nav-pill::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    pointer-events: none;
}

.nav-pill:hover,
.nav-pill:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0 24px rgba(92, 124, 255, 0.28);
    border-color: rgba(120, 160, 255, 0.95);
}

.nav-pill[aria-disabled='true'] {
    cursor: default;
}

.content-column {
    width: min(calc(100% - 2rem), var(--content-outer-width));
    margin: 0 auto;
    background: var(--bg-panel);
    border-left: var(--border-heavy);
    border-right: var(--border-heavy);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.slideshow-section {
    border-bottom: var(--border-heavy);
}

.slideshow {
    position: relative;
    background: #12051e;
}

.slides-track {
    position: relative;
    aspect-ratio: 1190 / 900;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.015);
    transition: opacity 520ms ease, transform 520ms ease, visibility 520ms ease;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    width: 62px;
    height: 122px;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.slide-control:hover,
.slide-control:focus-visible {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 16px rgba(150, 105, 255, 0.55));
}

.slide-control--left {
    left: 0.65rem;
}

.slide-control--right {
    right: 0.65rem;
}

.slide-indicators {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.9rem 0.95rem 0;
}

.slide-indicator {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.slide-indicator:hover,
.slide-indicator:focus-visible {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(120, 160, 255, 0.5));
}

.about-section,
.highlights-section {
    padding: clamp(1.2rem, 2vw, 1.7rem) clamp(1rem, 2vw, 1.75rem) 2.5rem;
}

.about-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.display-title {
    margin: 0;
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(2.05rem, 3.5vw, 4rem);
    line-height: 1.02;
    color: #d7d2dc;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.28);
}

.display-title--center {
    text-align: center;
    margin-bottom: 1.8rem;
}

.keyword-box {
    position: relative;
    min-width: min(100%, 422px);
    min-height: 112px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(rgba(52, 17, 87, 0.82), rgba(52, 17, 87, 0.82)),
        url('../assets/Topbar-BG-Img.gif') repeat;
    border: var(--border-heavy);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.keyword-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.keyword-box__text {
    position: relative;
    z-index: 1;
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(1.9rem, 3vw, 3.25rem);
    color: #8ab0ff;
    text-align: center;
    text-transform: lowercase;
    word-break: break-word;
}

.about-copy {
    max-width: 1000px;
}

.about-copy p {
    margin: 0 0 1.35rem;
    font-size: clamp(1.12rem, 1.85vw, 2rem);
    line-height: 1.28;
    letter-spacing: 0.01em;
}

.divider-wrap {
    display: flex;
    justify-content: center;
    padding-top: 1.75rem;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.highlight-card {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.highlight-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--border-main);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-medium);
}

.highlight-card:hover img,
.highlight-card:focus-visible img {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), 0 0 24px rgba(91, 124, 255, 0.22);
    border-color: #d8daff;
}

.site-footer {
    min-height: 200px;
    display: grid;
    place-items: center;
    margin-top: 0;
    background: #341157 url('../assets/Topbar-BG-Img.gif') repeat;
    border-top: var(--border-heavy);
    text-align: center;
    box-shadow: 0 -14px 26px rgba(0, 0, 0, 0.12);
}

.site-footer p {
    margin: 0;
    padding: 1rem;
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(1.05rem, 1.5vw, 1.45rem);
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}


.modal-backdrop[hidden] {
    display: none !important;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(9, 7, 13, 0.82);
    backdrop-filter: blur(6px);
}

.modal {
    position: relative;
    width: min(900px, 100%);
    max-height: min(88vh, 940px);
    overflow: auto;
    background: linear-gradient(180deg, rgba(44, 13, 69, 0.98), rgba(31, 6, 47, 0.98));
    border: var(--border-heavy);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 36px rgba(61, 95, 255, 0.18);
}

.modal__close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(197, 197, 197, 0.85);
    background: rgba(26, 11, 39, 0.85);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
}

.modal__media {
    border-bottom: var(--border-heavy);
}

.modal__media img {
    width: 100%;
    max-height: 58vh;
    object-fit: cover;
}

.modal__content {
    padding: 1.25rem 1.25rem 1.5rem;
}

.modal__content h3 {
    margin: 0 0 0.55rem;
    font-family: 'Avigea', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.modal__content p {
    margin: 0 0 1rem;
    font-size: 1.08rem;
    line-height: 1.45;
}

.modal__gallery-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    border: 2px solid rgba(197, 197, 197, 0.9);
    background: linear-gradient(180deg, rgba(88, 43, 130, 0.95), rgba(52, 17, 87, 0.95));
    color: var(--text-main);
    font-family: 'Avigea', Georgia, serif;
}

@keyframes magicalPulse {
    0%, 100% { box-shadow: 0 0 32px rgba(51, 109, 255, 0.28), 0 0 58px rgba(51, 109, 255, 0.18); }
    50% { box-shadow: 0 0 44px rgba(51, 109, 255, 0.52), 0 0 68px rgba(132, 91, 255, 0.28); }
}

@keyframes pulseOrb {
    0%, 100% { transform: scale(0.88); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
    .content-column,
    .main-nav {
        width: min(calc(100% - 1rem), var(--content-outer-width));
    }

    .slide-control {
        width: 54px;
        height: 110px;
    }

    .about-title-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .keyword-box {
        width: 100%;
        min-width: 0;
    }

    .highlights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-stage {
        padding-top: 1rem;
        padding-bottom: 2rem;
    }

    .topbar {
        height: 110px;
        bottom: 0.2rem;
    }

    .page-title-box {
        bottom: calc(0.2rem + 55px - 68px);
        min-height: 136px;
        border-radius: 18px;
        padding: 0.85rem 1rem;
    }

    .main-nav {
        margin-top: 0.45rem;
        padding: 0.8rem 0.8rem 0.9rem;
    }

    .nav-pill {
        min-width: 116px;
        padding: 0.72rem 1rem;
    }

    .slide-control {
        width: 42px;
        height: 86px;
    }

    .slide-control--left {
        left: 0.3rem;
    }

    .slide-control--right {
        right: 0.3rem;
    }

    .slide-indicators {
        justify-content: center;
    }

    .about-copy p {
        line-height: 1.38;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        min-height: 148px;
    }
}

@media (max-width: 520px) {
    .page-title-box {
        width: calc(100% - 1rem);
        min-height: 112px;
    }

    .main-nav__inner {
        gap: 0.55rem;
    }

    .nav-pill {
        min-width: calc(50% - 0.5rem);
        flex: 1 1 calc(50% - 0.5rem);
        font-size: 0.98rem;
    }

    .display-title {
        font-size: clamp(1.85rem, 9vw, 2.5rem);
    }

    .keyword-box {
        min-height: 88px;
    }

    .keyword-box__text {
        font-size: clamp(1.6rem, 8vw, 2.2rem);
    }

    .about-copy p {
        font-size: 1.02rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 100%;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
