/* =========================================================
   LCMS Homepage Redesign v2
   Hero · Events · People · Login · Social
   ========================================================= */

/* ── Global page background ─────────────────────────────── */
body,
body.moving-gradient-background {
    background: #F7F6F5;
    animation: none;
}

/* ── Hero Base ─────────────────────────────────────────────── */
.lcms-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #04080f;
    color: #fff;
    text-align: center;
}

/* Dot / star grid overlay */
.lcms-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.065) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* ── Central Sphere ────────────────────────────────────────── */
.lcms-hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.lcms-hero-sphere {
    position: absolute;
    width: 680px;
    height: 680px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -56%);
    /* Off-center highlight → 3-D sphere illusion */
    background: radial-gradient(
        circle at 37% 34%,
        rgba(190, 210, 255, 0.65) 0%,
        rgba(99, 102, 241, 0.48) 18%,
        rgba(37, 99, 235, 0.30) 38%,
        rgba(29, 78, 216, 0.13) 58%,
        transparent 76%
    );
    filter: blur(14px);
    animation: lcms-sphere-pulse 6s ease-in-out infinite;
}

@keyframes lcms-sphere-pulse {
    0%,  100% { transform: translate(-50%, -56%) scale(1.00); opacity: 0.80; }
    50%        { transform: translate(-50%, -56%) scale(1.10); opacity: 1.00; }
}

/* Concentric ring halos */
.lcms-hero-ring {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(99, 102, 241, 0.20);
    animation: lcms-ring-breathe 6s ease-in-out infinite;
}

.lcms-hero-ring-1 {
    width: 780px;
    height: 780px;
    transform: translate(-50%, -56%);
}

.lcms-hero-ring-2 {
    width: 920px;
    height: 920px;
    border-color: rgba(99, 102, 241, 0.10);
    transform: translate(-50%, -56%);
    animation-delay: -3s;
}

@keyframes lcms-ring-breathe {
    0%,  100% { transform: translate(-50%, -56%) scale(1.00); opacity: 0.7; }
    50%        { transform: translate(-50%, -56%) scale(1.04); opacity: 1.0; }
}

/* ── Hero Content ──────────────────────────────────────────── */
.lcms-hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 9rem 1.5rem 5rem;   /* extra top clears the floating nav */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Eyebrow badge */
.lcms-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(147, 197, 253, 0.95);
    background: rgba(59, 130, 246, 0.10);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 2.25rem;
    backdrop-filter: blur(6px);
}

.lcms-eyebrow-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #60a5fa;
    border-radius: 50%;
    box-shadow: 0 0 7px rgba(96, 165, 250, 1);
    animation: lcms-dot-pulse 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes lcms-dot-pulse {
    0%,  100% { opacity: 1;   transform: scale(1); }
    50%        { opacity: 0.4; transform: scale(0.75); }
}

/* Headline */
.lcms-hero-title {
    font-size: clamp(2.5rem, 7vw, 5.25rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin: 0 0 1.375rem;
    text-shadow: 0 2px 40px rgba(99, 102, 241, 0.25);
}

/* Subtitle */
.lcms-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.1875rem);
    color: rgba(255, 255, 255, 0.55);
    max-width: 42ch;
    margin: 0 auto 2.75rem;
    line-height: 1.78;
    font-weight: 400;
}

/* CTA row */
.lcms-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Primary button */
.lcms-btn-primary,
.lcms-btn-primary:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.875rem;
    border-radius: 10px;
    text-decoration: none;
    transition:
        background  0.18s ease,
        transform   0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow  0.18s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45), 0 0 0 0 rgba(37, 99, 235, 0);
}
.lcms-btn-primary svg { flex-shrink: 0; }

.lcms-btn-primary:hover,
.lcms-btn-primary:focus {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.50), 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* Ghost button */
.lcms-btn-ghost,
.lcms-btn-ghost:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.875rem 1.875rem;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    transition:
        background   0.18s ease,
        border-color 0.18s ease,
        color        0.18s ease,
        transform    0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lcms-btn-ghost:hover,
.lcms-btn-ghost:focus {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-3px);
}

/* Trust tagline */
.lcms-hero-trust {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.28);
    margin: 0;
    font-weight: 500;
}

/* Scroll indicator */
.lcms-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.5625rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
}

@keyframes lcms-scroll-bounce {
    0%,  100% { transform: translateY(0px); opacity: 0.75; }
    50%        { transform: translateY(5px); opacity: 0.28; }
}
.lcms-scroll-dot { animation: lcms-scroll-bounce 1.9s ease-in-out infinite; }


/* =========================================================
   SHARED SECTION HEADER ATOMS
   ========================================================= */
.lcms-section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.lcms-section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.20);
    border-radius: 100px;
    padding: 0.3rem 0.875rem;
    margin-bottom: 1.25rem;
}

.lcms-section-title {
    font-size: clamp(1.875rem, 4.5vw, 2.875rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0 0 0.875rem;
}

.lcms-section-sub {
    font-size: 1rem;
    color: #64748b;
    max-width: 42ch;
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================================================
   EVENTS SECTION
   ========================================================= */
.lcms-events-section {
    padding: 6rem 0;
    background: #F7F6F5;
}

.lcms-events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .lcms-events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .lcms-events-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   EVENT CARD — Philippines card architecture
   CSS background-image · Blur layer · Gradient · Content
   ========================================================= */

/* Card shell */
.lcms-event-card {
    display: block;
    position: relative;
    min-height: 380px;
    border-radius: 26px;
    overflow: hidden;
    border: 5px solid #ffffff;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.14),
        0  2px  8px rgba(0, 0, 0, 0.08);
    background-color: #1a2f5e;    /* fallback colour */
    text-decoration: none;
    transition: transform 0.32s cubic-bezier(0.25,1,0.5,1), box-shadow 0.28s ease;
    will-change: transform;
    color: #ffffff;
}
.lcms-event-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.18),
        0  4px 12px rgba(0, 0, 0, 0.10);
    text-decoration: none;
    color: #ffffff;
}

/* Layer 1 — CSS background-image (photo or gradient) */
.lcms-event-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* gradient shows when no photo is set */
    background-image: linear-gradient(160deg, #1a2f5e 0%, #1d4ed8 55%, #2563eb 100%);
    transition: transform 0.50s ease;
    z-index: 1;
}
.lcms-event-card:hover .lcms-event-bg { transform: scale(1.04); }

/* Layer 2 — masked blur (fades out at top) */
.lcms-event-blur {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 62%;
    border-radius: inherit;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    -webkit-mask-image: linear-gradient(to top, black 40%, transparent 100%);
    mask-image:         linear-gradient(to top, black 40%, transparent 100%);
    z-index: 2;
}

/* Layer 3 — dark navy gradient */
.lcms-event-gradient {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 68%;
    background: linear-gradient(
        to top,
        rgba(8, 12, 30, 0.97) 0%,
        rgba(10, 18, 45, 0.66) 42%,
        transparent 100%
    );
    z-index: 3;
}

/* Date badge — top right, z-index above all layers */
.lcms-event-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 6;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 0.5rem 0.6875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 46px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.20);
}
.lcms-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.05;
}
.lcms-date-month {
    display: block;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #2563eb;
    text-transform: uppercase;
    margin-top: 0.2rem;
}

/* Layer 4 — content panel */
.lcms-event-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.375rem 1.25rem 1.25rem;
    z-index: 5;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.lcms-event-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.22;
    margin: 0 0 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lcms-event-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.76);
    margin: 0 0 0.875rem;
    line-height: 1.4;
}

/* Detail row — icon + label pairs */
.lcms-event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}
.lcms-event-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.02em;
}
.lcms-event-detail svg { flex-shrink: 0; }

/* Actions row */
.lcms-event-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

/* "Book flight" style pill CTA */
.lcms-event-cta {
    flex: 1;
    height: 48px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.lcms-event-card:hover .lcms-event-cta,
.lcms-event-card-modal:hover .lcms-event-cta {
    background: rgba(255, 255, 255, 0.28);
    border-color: rgba(255, 255, 255, 0.42);
}

/* Footer "View All" */
.lcms-events-footer {
    text-align: center;
    margin-top: 3rem;
}

.lcms-view-all-btn,
.lcms-view-all-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #0f172a;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.875rem 1.875rem;
    border-radius: 10px;
    text-decoration: none;
    transition:
        background 0.18s ease,
        transform  0.30s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.18s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.22);
}
.lcms-view-all-btn:hover {
    background: #1e293b;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
    text-decoration: none;
}


/* =========================================================
   OUR PEOPLE — Framer-style Cards
   ========================================================= */
.lcms-people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.375rem;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 480px) {
    .lcms-people-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
@media (min-width: 1024px) {
    .lcms-people-grid { gap: 1.75rem; }
}

.lcms-person-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow:
        0 1px 2px  rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(0, 0, 0, 0.06);
    transition:
        transform  0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.35s cubic-bezier(0.25, 1.00, 0.50, 1);
    will-change: transform;
}
.lcms-person-card:hover {
    transform: translateY(-10px) scale(1.018);
    box-shadow:
        0 22px 52px rgba(30, 64, 175, 0.14),
        0  6px 18px rgba(0,  0,   0, 0.08);
}

.lcms-person-photo-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    background: #e5e7eb;
}
.lcms-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
}
.lcms-person-card:hover .lcms-person-photo { transform: scale(1.07); }

.lcms-person-photo-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, rgba(17, 24, 39, 0.12) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.lcms-person-card:hover .lcms-person-photo-wrap::after { opacity: 1; }

.lcms-person-meta {
    padding: 1.0625rem 1.1875rem 1.3125rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.lcms-person-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.2rem;
    line-height: 1.3;
}
.lcms-person-role {
    font-size: 0.78125rem;
    font-weight: 500;
    color: #6b7280;
    margin: 0;
    line-height: 1.45;
}


/* =========================================================
   HOMEPAGE LOGIN SECTION — Dark Glassmorphism Override
   ========================================================= */
body.home section#login {
    background: linear-gradient(145deg, #030c1e 0%, #0b1d47 55%, #040c1f 100%) !important;
    min-height: auto !important;
    padding: 7rem 1.5rem !important;
    position: relative;
    overflow: hidden;
}

/* Ambient glow behind the card */
body.home section#login::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* Glass card */
body.home section#login > div {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    border-radius: 22px !important;
}

/* Heading */
body.home section#login h2 {
    color: #ffffff !important;
    font-size: 1.75rem !important;
    letter-spacing: -0.02em !important;
}

/* Labels */
body.home section#login label,
body.home section#login .text-gray-700 {
    color: rgba(255, 255, 255, 0.62) !important;
}

/* Text */
body.home section#login .text-gray-900 {
    color: rgba(255, 255, 255, 0.78) !important;
}
body.home section#login .text-gray-600,
body.home section#login .text-sm.text-gray-600,
body.home section#login p:not(.text-blue-600) {
    color: rgba(255, 255, 255, 0.48) !important;
}

/* Inputs */
body.home section#login input[type="text"],
body.home section#login input[type="password"] {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.13) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
body.home section#login input[type="text"]:focus,
body.home section#login input[type="password"]:focus {
    border-color: rgba(99, 102, 241, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
    outline: none !important;
}
body.home section#login input::placeholder {
    color: rgba(255, 255, 255, 0.28) !important;
}

/* Links */
body.home section#login a:not(.portal-button):not(.lcms-btn-primary) {
    color: rgba(147, 197, 253, 0.90) !important;
}
body.home section#login a:not(.portal-button):not(.lcms-btn-primary):hover {
    color: rgba(147, 197, 253, 1) !important;
}

/* Divider */
body.home section#login .border-t {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

/* Error banner */
body.home section#login .bg-red-100 {
    background: rgba(239, 68, 68, 0.14) !important;
    border-color: rgba(239, 68, 68, 0.30) !important;
    color: rgba(252, 165, 165, 1) !important;
}

/* "Go to Member Portal" welcome state text */
body.home section#login .flex.flex-col > p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 1.0625rem !important;
}


/* =========================================================
   SOCIAL LINKS
   ========================================================= */
.lcms-social-section {
    padding: 5.5rem 0 6rem;
    background: #ffffff;
}

.lcms-social-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 640px)  { .lcms-social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lcms-social-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }

.lcms-social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.375rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.04);
    transition:
        transform  0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.28s ease,
        border-color 0.20s ease;
    position: relative;
    overflow: hidden;
}

/* Subtle accent stripe on left */
.lcms-social-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent, #1D4ED8);
    border-radius: 14px 0 0 14px;
    opacity: 0;
    transition: opacity 0.22s ease;
}
.lcms-social-card:hover::before { opacity: 1; }

.lcms-social-card:hover {
    transform: translateY(-5px) scale(1.008);
    box-shadow: 0 14px 40px rgba(0,0,0,0.10), 0 4px 10px rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.10);
    text-decoration: none;
}

.lcms-social-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--accent, #1D4ED8);
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lcms-social-card:hover .lcms-social-icon-wrap {
    transform: scale(1.1) rotate(-4deg);
}

.lcms-social-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lcms-social-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.lcms-social-desc {
    font-size: 0.78125rem;
    color: #64748b;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lcms-social-arrow {
    color: #94a3b8;
    flex-shrink: 0;
    transition: color 0.18s ease, transform 0.22s ease;
}
.lcms-social-card:hover .lcms-social-arrow {
    color: var(--accent, #1D4ED8);
    transform: translate(2px, -2px);
}


/* =========================================================
   MOBILE CAROUSEL (hero DVD stack legacy)
   ========================================================= */
@media (max-width: 767px) {
    .mobile-carousel {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .mobile-carousel::-webkit-scrollbar { display: none; }

    .mobile-carousel-item {
        position: relative;
        display: inline-block;
        width: 250px !important;
        height: 350px !important;
        margin-right: 1rem;
        border-radius: 0.75rem;
        overflow: hidden;
    }

    .mobile-carousel-item .stack-item-text {
        position: absolute;
        bottom: 1rem;
        left: 1rem;
        font-weight: bold;
        color: white;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
        white-space: normal;
    }
}


/* =========================================================
   MOBILE OPTIMIZATIONS — feels like an app on phone
   ========================================================= */

/* ── Small phones and up (≤639px) ─────────────────────────── */
@media (max-width: 639px) {

    /* HERO: fit viewport, breathable padding */
    .lcms-hero {
        min-height: 90vh;
    }

    .lcms-hero-content {
        padding: 5rem 1.25rem 3rem;
    }

    /* Sphere: scale to fit, static (saves battery) */
    .lcms-hero-sphere {
        width: 320px;
        height: 320px;
        filter: blur(10px);
        animation: none;
        transform: translate(-50%, -62%);
        opacity: 0.85;
    }

    /* Rings: too wide for phones, hide them */
    .lcms-hero-ring-1,
    .lcms-hero-ring-2 {
        display: none;
    }

    /* Headline: slightly smaller + tighter */
    .lcms-hero-title {
        font-size: clamp(1.875rem, 9.5vw, 2.5rem);
        margin-bottom: 1rem;
        letter-spacing: -0.025em;
    }

    .lcms-hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 2rem;
        line-height: 1.7;
    }

    /* Buttons: stack full-width — easy to thumb-tap */
    .lcms-hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 310px;
        gap: 0.625rem;
        margin-bottom: 1.75rem;
    }

    .lcms-btn-primary,
    .lcms-btn-ghost {
        justify-content: center;
        padding: 1rem 1.375rem;  /* 48px min-height — above 44px target */
    }

    /* Trust line: hide to reduce clutter */
    .lcms-hero-trust {
        display: none;
    }

    /* Scroll indicator: not useful on mobile */
    .lcms-scroll-indicator {
        display: none;
    }

    /* ── Section spacing ─────────────────────────────────── */
    .lcms-section-header {
        margin-bottom: 2.25rem;
    }

    .lcms-section-title {
        font-size: clamp(1.625rem, 5vw, 2rem);
    }

    /* ── Events ──────────────────────────────────────────── */
    .lcms-events-section {
        padding: 3.5rem 0;
    }

    .lcms-events-grid {
        gap: 1rem;
    }

    .lcms-event-image-wrap {
        height: 170px;
    }

    .lcms-events-footer {
        margin-top: 2rem;
    }

    .lcms-view-all-btn {
        width: 100%;
        max-width: 310px;
        justify-content: center;
    }

    /* ── People grid: 2 columns on phones ───────────────── */
    .lcms-people-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.875rem;
    }

    .lcms-person-meta {
        padding: 0.8125rem 0.9375rem 1rem;
    }

    .lcms-person-name {
        font-size: 0.875rem;
    }

    .lcms-person-role {
        font-size: 0.71875rem;
    }

    /* ── Login section ───────────────────────────────────── */
    body.home section#login {
        padding: 4.5rem 1.125rem !important;
    }

    body.home section#login > div {
        border-radius: 16px !important;
        padding: 1.625rem !important;
    }

    body.home section#login h2 {
        font-size: 1.375rem !important;
    }

    /* 16px min prevents iOS Safari auto-zoom on focus */
    body.home section#login input[type="text"],
    body.home section#login input[type="password"] {
        font-size: 1rem !important;
        padding: 0.875rem 0.75rem !important;
        -webkit-appearance: none;
        appearance: none;
    }

    body.home section#login button[type="submit"] {
        padding: 0.9375rem 1rem !important;
        font-size: 1rem !important;
    }

    /* ── Social links ────────────────────────────────────── */
    .lcms-social-section {
        padding: 3.5rem 0 4rem;
    }

    .lcms-social-grid {
        gap: 0.75rem;
    }

    .lcms-social-card {
        padding: 1rem 1.125rem;
    }

    /* Allow descriptions to wrap on small screens */
    .lcms-social-desc {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    /* Disable hover lift on touch */
    .lcms-social-card:hover,
    .lcms-event-card:hover,
    .lcms-person-card:hover,
    .lcms-event-card-modal:hover {
        transform: none;
    }

}

/* ── Stable viewport height (modern iOS Safari) ────────────── */
@supports (min-height: 90svh) {
    @media (max-width: 639px) {
        .lcms-hero { min-height: 90svh; }
    }
}

/* ── Very small phones (≤359px) ────────────────────────────── */
@media (max-width: 359px) {

    .lcms-hero-content {
        padding-top: 4.25rem;
    }

    .lcms-hero-title {
        font-size: 1.75rem;
    }

    .lcms-hero-actions {
        max-width: 100%;
    }

    .lcms-people-grid {
        gap: 0.625rem;
    }

    .lcms-person-meta {
        padding: 0.6875rem 0.75rem 0.875rem;
    }

}

/* ── Reduce motion preference ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .lcms-hero-sphere,
    .lcms-hero-ring-1,
    .lcms-hero-ring-2,
    .lcms-eyebrow-dot,
    .lcms-scroll-dot {
        animation: none !important;
    }

    .lcms-event-card,
    .lcms-person-card,
    .lcms-social-card,
    .lcms-btn-primary,
    .lcms-btn-ghost,
    .lcms-view-all-btn {
        transition: none !important;
    }
}


/* =========================================================
   SITE FOOTER — Dark Ambient (mirrors hero pattern)
   ========================================================= */
.lcms-footer {
    position: relative;
    background: #04080f;
    color: #ffffff;
    overflow: hidden;
}

/* Dot / star grid overlay */
.lcms-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.048) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

/* Ambient glow blobs */
.lcms-footer-bg { position: absolute; inset: 0; pointer-events: none; }

.lcms-footer-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
}
.lcms-footer-glow-l {
    width: 520px;
    height: 520px;
    bottom: -160px;
    left: -120px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.16) 0%, transparent 68%);
}
.lcms-footer-glow-r {
    width: 380px;
    height: 380px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.13) 0%, transparent 65%);
}

/* Main body */
.lcms-footer-body {
    position: relative;
    z-index: 1;
    padding: 5rem 0 3.5rem;
}

.lcms-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* ── Brand column ─────────────────────────────────────────── */
.lcms-footer-wordmark {
    font-size: 1.125rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.015em;
    margin: 0 0 0.875rem;
}

.lcms-footer-tagline {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.72;
    margin: 0 0 1.625rem;
    max-width: 27ch;
}

/* Liquid glass pill CTA — matches .lcms-event-cta pattern */
.lcms-footer-cta,
.lcms-footer-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 44px;
    padding: 0 1.375rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.30s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lcms-footer-cta:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.38);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ── Column headings ─────────────────────────────────────── */
.lcms-footer-heading {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.32);
    margin: 0 0 1.125rem;
}

/* ── Link lists ──────────────────────────────────────────── */
.lcms-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.lcms-footer-links a,
.lcms-footer-links a:visited {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color 0.18s ease;
    line-height: 1.4;
}
.lcms-footer-links a:hover {
    color: rgba(255, 255, 255, 0.90);
    text-decoration: none;
}

/* ── Column body text ────────────────────────────────────── */
.lcms-footer-col-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.72;
    margin: 0 0 1.25rem;
}

/* Liquid glass ghost button */
.lcms-footer-ghost-btn,
.lcms-footer-ghost-btn:visited {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    height: 40px;
    padding: 0 1.125rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.lcms-footer-ghost-btn:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    text-decoration: none;
}

/* ── Divider ─────────────────────────────────────────────── */
.lcms-footer-divider {
    position: relative;
    z-index: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 1.5rem;
}

/* ── Bottom bar ──────────────────────────────────────────── */
.lcms-footer-bottom {
    position: relative;
    z-index: 1;
    padding: 1.375rem 0;
}
.lcms-footer-bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.lcms-footer-copy {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.25);
    margin: 0;
}
.lcms-footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.lcms-footer-bottom-links a,
.lcms-footer-bottom-links a:visited {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.30);
    text-decoration: none;
    transition: color 0.18s ease;
}
.lcms-footer-bottom-links a:hover {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}
.lcms-footer-logout-btn,
.lcms-footer-logout-btn:visited {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 0.875rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.60) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
}
.lcms-footer-logout-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    text-decoration: none;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1023px) {
    .lcms-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 3rem;
    }
    .lcms-footer-tagline { max-width: 100%; }
}

@media (max-width: 639px) {
    .lcms-footer-body { padding: 3rem 0 2rem; }
    .lcms-footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .lcms-footer-tagline { max-width: 100%; }
    .lcms-footer-bottom-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .lcms-footer-cta { width: 100%; justify-content: center; }
}
