html {
    scroll-behavior: smooth;
}

body {
    background: #fffdf8;
    overflow-x: hidden;
}

::selection {
    background: #d5a84d;
    color: #140c2e;
}

section[id] {
    scroll-margin-top: 80px;
}

.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.glass-light {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(57, 33, 108, .08);
}

.hero-gradient {
    background:
        radial-gradient(circle at 20% 15%, rgba(213,168,77,.24), transparent 33%),
        radial-gradient(circle at 80% 25%, rgba(118,84,184,.22), transparent 35%),
        linear-gradient(140deg, #120A29 0%, #211044 45%, #321A63 100%);
}

.gold-text {
    background: linear-gradient(110deg, #f6e5a9, #d5a84d, #fff2c9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text {
    background: linear-gradient(110deg, #39216c, #7654b8, #b2749a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.soft-shadow {
    box-shadow: 0 30px 80px rgba(29, 15, 61, .10);
}

.card {
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 65px rgba(29, 15, 61, .12);
    border-color: rgba(213,168,77,.45);
}

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity .8s ease, transform .8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.float {
    animation: floating 6s ease-in-out infinite;
}

.float-slow {
    animation: floating 9s ease-in-out infinite reverse;
}

@keyframes floating {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

.pulse-dot {
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(213,168,77,.7); }
    70% { box-shadow: 0 0 0 12px rgba(213,168,77,0); }
    100% { box-shadow: 0 0 0 0 rgba(213,168,77,0); }
}

#progressBar {
    position: fixed;
    left: 0;
    top: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg,#d5a84d,#f6e5a9);
    z-index: 9999;
}

.orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(1px);
    pointer-events: none;
}

.outline-number {
    -webkit-text-stroke: 1px rgba(57,33,108,.16);
    color: transparent;
}

.facility-pill {
    transition: all .25s ease;
}

.facility-pill:hover {
    background: #39216c;
    color: white;
    transform: translateY(-2px);
}

.nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 2px;
    background: #d5a84d;
    transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.is-current::after {
    width: 100%;
}

.wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
}

canvas#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: .6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 14vw, 5.2rem);
    }
}

/* =========================
   BRAND MARK
========================= */
.logo-badge {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,.18), inset 0 0 0 2px rgba(213,168,77,.55);
    overflow: hidden;
}

.logo-badge img {
    width: 82%;
    height: auto;
    transform: translateY(2px);
}

/* =========================
   MEDIA: IMAGES & VIDEO
========================= */
.photo-frame {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
}

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

.gallery-tile {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 24px;
    background: #eee8fa;
    cursor: zoom-in;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(20,12,46,.55));
    opacity: 0;
    transition: opacity .35s ease;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
    transform: scale(1.05);
}

.gallery-tile:hover::after,
.gallery-tile:focus-visible::after {
    opacity: 1;
}

.gallery-tile .zoom-chip {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: all .35s ease;
}

.gallery-tile:hover .zoom-chip,
.gallery-tile:focus-visible .zoom-chip {
    opacity: 1;
    transform: translateY(0);
}

.gallery-tile:focus-visible {
    outline: 3px solid #d5a84d;
    outline-offset: 3px;
}

.video-frame {
    position: relative;
    aspect-ratio: 9 / 16;
    max-height: 78vh;
    margin-inline: auto;
    border-radius: 32px;
    overflow: hidden;
    background: #140c2e;
    box-shadow: 0 30px 80px rgba(29, 15, 61, .22);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-frame .play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(20,12,46,.1), rgba(20,12,46,.55));
    transition: opacity .3s ease;
    cursor: pointer;
    border: 0;
    width: 100%;
}

.video-frame.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

/* =========================
   OUTREACH FILTERS
========================= */
.filter-btn {
    transition: all .25s ease;
}

.filter-btn.is-active {
    background: #39216c;
    color: #fff;
    border-color: #39216c;
}

.outreach-block.is-hidden {
    display: none;
}

/* =========================
   LIGHTBOX
========================= */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(12, 7, 28, .94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 64px 16px;
}

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

#lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    user-select: none;
}

.lb-btn {
    position: absolute;
    width: 48px;
    height: 48px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    transition: background .25s ease, color .25s ease;
}

.lb-btn:hover {
    background: #d5a84d;
    color: #140c2e;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .float, .float-slow, .pulse-dot { animation: none; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
