/* ============================================
   VELLUM SYSTEMS — SHARED STYLES v2
   Premium institutional design system
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy-deepest: #050D1A;
    --navy-deep: #0A1628;
    --navy: #0D2147;
    --navy-mid: #1A3D7C;
    --blue-accent: #6FB3FF;
    --blue-glow: #A5C8FF;
    --blue-deep: #4A8EE0;
    --ivory: #F5F2EC;
    --off-white: #E8E4DA;
    --text-muted: rgba(245, 242, 236, 0.62);
    --text-faint: rgba(245, 242, 236, 0.35);
    --border-subtle: rgba(245, 242, 236, 0.08);
    --border-light: rgba(245, 242, 236, 0.15);
    --border-strong: rgba(245, 242, 236, 0.25);
    --border-accent: rgba(111, 179, 255, 0.25);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--ivory);
    background: var(--navy-deepest);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(26, 61, 124, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(13, 33, 71, 0.45) 0%, transparent 50%),
        linear-gradient(180deg, var(--navy-deepest) 0%, var(--navy-deep) 100%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.4'/%3E%3C/svg%3E");
    opacity: 0.025;
    z-index: -1;
    pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
    font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variation-settings: "opsz" 36;
}

a {
    color: var(--blue-accent);
    text-decoration: none;
    transition: color 0.2s var(--ease-out);
}

a:hover {
    color: var(--blue-glow);
}

.mono {
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 7rem 0;
    position: relative;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--ivory);
    color: var(--navy-deep);
    padding: 8px 16px;
    z-index: 1000;
    text-decoration: none;
}

.skip-link:focus { top: 0; }

/* ===== NAVIGATION ===== */
nav.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(5, 13, 26, 0.7);
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.3s var(--ease-out);
}

nav.site-nav.scrolled {
    background: rgba(5, 13, 26, 0.92);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ivory);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo:hover { color: var(--ivory); }

.logo-mark {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    display: block;
    transition: transform 0.3s var(--ease-out);
}

.logo:hover .logo-mark {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--ivory);
}

.nav-cta {
    background: var(--blue-accent);
    color: var(--navy-deepest) !important;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all 0.2s var(--ease-out);
}

.nav-cta:hover {
    background: var(--blue-glow);
    color: var(--navy-deepest) !important;
    box-shadow: 0 6px 20px rgba(111, 179, 255, 0.25);
    transform: translateY(-1px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--ivory);
    cursor: pointer;
    padding: 0.25rem;
}

/* ===== BUTTONS — light blue, rectangular ===== */
.btn-primary {
    background: var(--blue-accent);
    color: var(--navy-deepest);
    padding: 1rem 1.75rem;
    border-radius: var(--radius-md);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.25s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    transition: left 0.6s var(--ease-out);
}

.btn-primary:hover {
    background: var(--blue-glow);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(111, 179, 255, 0.3);
    color: var(--navy-deepest);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary svg {
    transition: transform 0.25s var(--ease-out);
    position: relative;
    z-index: 1;
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    color: var(--ivory);
    padding: 1rem 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.btn-secondary:hover {
    color: var(--blue-accent);
    border-bottom-color: var(--blue-accent);
}

.btn-secondary svg {
    transition: transform 0.25s var(--ease-out);
}

.btn-secondary:hover svg {
    transform: translateX(3px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    margin-bottom: 4.5rem;
    max-width: 760px;
}

.section-tag {
    color: var(--blue-accent);
    margin-bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.section-tag::before {
    content: '';
    width: 32px;
    height: 1px;
    background: var(--blue-accent);
    opacity: 0.6;
}

h1.page-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.0;
    margin-bottom: 1.75rem;
}

h2.section-title {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

h3 {
    font-size: 1.625rem;
    line-height: 1.2;
}

.section-intro {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.65;
}

em.accent {
    font-style: italic;
    font-weight: 300;
    background: linear-gradient(135deg, var(--blue-glow) 0%, var(--blue-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== PAGE HEADER ===== */
.page-header {
    padding: 10rem 0 5rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-header-content {
    max-width: 820px;
}

.page-header p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 1rem;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-faint);
    font-size: 0.85rem;
}

.breadcrumb a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.breadcrumb a:hover { color: var(--ivory); }

.breadcrumb-separator { color: var(--text-faint); }

/* ===== CARDS ===== */
.card {
    background: rgba(13, 33, 71, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--blue-accent) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
}

.card:hover {
    background: rgba(13, 33, 71, 0.5);
    border-color: var(--border-light);
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.card:hover::before { opacity: 1; }

/* ===== ICONS — hover magnification ===== */
.icon-block {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-accent);
    margin-bottom: 1.5rem;
    transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.icon-block svg {
    width: 100%;
    height: 100%;
}

.card:hover .icon-block,
[data-icon-hover]:hover .icon-block {
    transform: scale(1.12);
    color: var(--blue-glow);
}

.icon-inline {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: -3px;
    color: var(--blue-accent);
}

/* ===== FOOTER ===== */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul a {
    color: var(--off-white);
    font-size: 0.9rem;
    transition: color 0.2s var(--ease-out);
}

.footer-col ul a:hover { color: var(--blue-accent); }

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo { margin-bottom: 0.5rem; }

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.5;
}

.footer-availability {
    color: var(--text-muted);
    font-family: 'Manrope', sans-serif;
    font-size: 0.8rem;
}

.footer-relationship {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
}

.footer-relationship a {
    color: var(--blue-accent);
    text-decoration: underline;
    text-decoration-color: rgba(111, 179, 255, 0.35);
    text-underline-offset: 3px;
}

.footer-relationship a:hover {
    color: var(--blue-glow);
    text-decoration-color: var(--blue-glow);
}

.footer-meta {
    color: var(--text-faint);
    font-size: 0.8rem;
    font-family: 'JetBrains Mono', monospace;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    z-index: 200;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: none;
    animation: slideUp 0.4s var(--ease-out) forwards;
}

.cookie-banner.visible { display: block; }

.cookie-banner p {
    color: var(--off-white);
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}

.cookie-banner a {
    color: var(--blue-accent);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-md);
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s var(--ease-out);
}

.cookie-btn-accept {
    background: var(--blue-accent);
    color: var(--navy-deepest);
    border-color: var(--blue-accent);
    font-weight: 600;
}

.cookie-btn-accept:hover {
    background: var(--blue-glow);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--off-white);
    border-color: var(--border-light);
}

.cookie-btn-decline:hover {
    border-color: var(--border-strong);
    background: rgba(245, 242, 236, 0.05);
}

/* ===== ANIMATIONS ===== */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }

.reveal-stagger.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ===== REDUCED MOTION ===== */
@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;
    }
    .reveal, .reveal-stagger > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    section { padding: 5rem 0; }
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container,
    .container-narrow {
        padding: 0 1.5rem;
    }
    .nav-links { display: none; }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
    }
    .mobile-menu-toggle { display: block; }
    section { padding: 4rem 0; }
    .page-header { padding: 8rem 0 3.5rem; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .footer-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        padding: 1.25rem;
    }
}
