:root {
    --page-bg: #f2f2f2;
    --surface: #f7f7f7;
    --ink: #0b0d12;
    --muted: #7d8088;
    --line: #e2e2e2;
    --navy: #0d2456;
    --gold: #ccb084;
    --card: #f4f4f4;
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page-bg);
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(13, 36, 86, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(13, 36, 86, 0.05) 1px, transparent 1px);
    background-size: 160px 160px;
    opacity: 0.35;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-wrap {
    position: relative;
    z-index: 1;
    padding: clamp(6px, 0.7vw, 12px);
}

.layout-shell {
    width: 100%;
    max-width: 1780px;
    margin: 0 auto;
}

.section-container {
    margin-bottom: 18px;
}

.eyebrow {
    font-style: italic;
    font-size: 20px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

/* Motion foundation */
@keyframes fadeUpIn {
    from {
        opacity: 0;
        transform: translate3d(0, 26px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.75s ease, transform 0.75s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.hover-widget {
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease, background-color 0.22s ease;
}

.hover-widget:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 18px -14px rgba(8, 12, 24, 0.45);
}

.nav-group a,
.login-btn,
.hero-slider-controls button,
.mini-controls button,
.program-list button,
.contact-form button,
.news-foot a {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease, background-color 0.25s ease;
}

.nav-group a:hover,
.login-btn:hover,
.hero-slider-controls button:hover,
.mini-controls button:hover,
.program-list button:hover,
.contact-form button:hover,
.news-foot a:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.events-grid article img {
    transition: transform 0.45s ease, filter 0.45s ease;
}

.events-grid article:hover img {
    transform: scale(1.035);
    filter: saturate(1.06);
}

.parallax-item {
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

@media (max-width: 1024px) {
    .site-wrap {
        padding: 8px;
    }

    .section-container {
        margin-bottom: 16px;
    }

    .eyebrow {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .hover-widget,
    .events-grid article img,
    .nav-group a,
    .login-btn,
    .hero-slider-controls button,
    .mini-controls button,
    .parallax-item {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
