body.emu-vg-page {
    --emu-vg-bg: var(--emu-color-bg, #080b14);
    --emu-vg-surface: var(--emu-color-surface, #111625);
    --emu-vg-surface-2: var(--emu-color-surface-elevated, #171d2f);
    --emu-vg-text: var(--emu-color-text, #f7f9ff);
    --emu-vg-muted: var(--emu-color-text-muted, #b9c1d4);
    --emu-vg-cyan: var(--emu-color-primary, #13d5df);
    --emu-vg-purple: var(--emu-color-secondary, #7c5cff);
    --emu-vg-pink: var(--emu-color-accent, #df3ca6);
    --emu-vg-border: rgba(255,255,255,.12);
    --emu-vg-max: 1180px;
}

body.emu-vg-page {
    margin: 0;
    min-width: 320px;
    background: var(--emu-vg-bg);
    color: var(--emu-vg-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

body.emu-vg-page *,
body.emu-vg-page *::before,
body.emu-vg-page *::after { box-sizing: border-box; }

body.emu-vg-page a { color: inherit; }
body.emu-vg-page img { max-width: 100%; }
body.emu-vg-page h1,
body.emu-vg-page h2,
body.emu-vg-page h3,
body.emu-vg-page p { margin-top: 0; }

.emu-vg-skip {
    position: fixed;
    z-index: 100;
    left: 12px;
    top: 12px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: 8px;
    background: #fff;
    color: #000 !important;
}
.emu-vg-skip:focus { transform: none; }

.emu-vg-container {
    width: min(100% - 32px, var(--emu-vg-max));
    margin-inline: auto;
}

.emu-vg-header {
    position: fixed;
    z-index: 50;
    inset: 0 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(8,11,20,.78);
    backdrop-filter: blur(18px);
}
.emu-vg-header__inner {
    width: min(100% - 24px, var(--emu-vg-max));
    min-height: 64px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.emu-vg-brand {
    display: inline-flex;
    width: 58px;
    height: 42px;
    align-items: center;
    justify-content: flex-start;
}
.emu-vg-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}
.emu-vg-nav { display: none; }
.emu-vg-language { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--emu-vg-muted); }
.emu-vg-language a { text-decoration: none; padding: 8px 5px; }
.emu-vg-language a.is-active { color: var(--emu-vg-cyan); font-weight: 800; }

.emu-vg-hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 100px 0 52px;
}
.emu-vg-hero__image,
.emu-vg-hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.emu-vg-hero__image { object-fit: cover; object-position: 50% 50%; }
.emu-vg-hero__overlay {
    background:
        linear-gradient(180deg, rgba(6,8,16,.42) 0%, rgba(6,8,16,.6) 44%, #080b14 100%),
        radial-gradient(circle at 50% 28%, rgba(124,92,255,.26), transparent 48%);
}
.emu-vg-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.emu-vg-hero__logo {
    display: block;
    width: 235px;
    height: auto;
    max-height: 235px;
    margin: -34px auto 16px;
    object-fit: contain;
    object-position: center;
}
.emu-vg-status-badge,
.emu-vg-focus {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 18px;
    padding: 9px 14px;
    border: 1px solid rgba(19,213,223,.48);
    border-radius: 999px;
    background: rgba(19,213,223,.1);
    color: #8ff7ff;
    font-weight: 750;
}
.emu-vg-eyebrow,
.emu-vg-section-kicker {
    color: var(--emu-vg-cyan);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.emu-vg-hero h1 {
    max-width: 13ch;
    margin: 0 auto 18px;
    font-size: clamp(36px, 11vw, 72px);
    line-height: .98;
    letter-spacing: -.055em;
}
.emu-vg-lead { max-width: 700px; margin: 0 auto 22px; color: #e3e8f5; font-size: clamp(17px, 4.6vw, 22px); }
.emu-vg-actions { display: grid; gap: 12px; }
.emu-vg-button {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 850;
}
.emu-vg-button--primary {
    background: linear-gradient(110deg, var(--emu-vg-cyan), var(--emu-vg-purple) 55%, var(--emu-vg-pink));
    box-shadow: 0 16px 38px rgba(124,92,255,.24);
}
.emu-vg-button--secondary { border: 1px solid var(--emu-vg-border); background: rgba(255,255,255,.05); }

.emu-vg-section { padding: 76px 0; }
.emu-vg-section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.025), transparent); }
.emu-vg-section h2,
.emu-vg-invite h2 {
    max-width: 18ch;
    margin-bottom: 28px;
    font-size: clamp(30px, 8vw, 56px);
    line-height: 1.05;
    letter-spacing: -.045em;
}

.emu-vg-story-grid,
.emu-vg-card-grid,
.emu-vg-phases { display: grid; gap: 16px; }
.emu-vg-story-card,
.emu-vg-card,
.emu-vg-phase,
.emu-vg-invite__panel {
    border: 1px solid var(--emu-vg-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}
.emu-vg-story-card { padding: 24px; }
.emu-vg-story-card--accent { border-color: rgba(223,60,166,.45); }
.emu-vg-story-card__number { display: block; margin-bottom: 24px; color: var(--emu-vg-purple); font-size: 13px; font-weight: 900; }
.emu-vg-story-card h3,
.emu-vg-card h3,
.emu-vg-phase h3 { margin-bottom: 10px; font-size: 22px; }
.emu-vg-story-card p,
.emu-vg-card p,
.emu-vg-phase p,
.emu-vg-status-copy,
.emu-vg-invite p { color: var(--emu-vg-muted); }

.emu-vg-card { padding: 22px; }
.emu-vg-core {
    margin-top: 22px;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(110deg, rgba(19,213,223,.12), rgba(124,92,255,.16), rgba(223,60,166,.12));
    border: 1px solid rgba(19,213,223,.3);
}
.emu-vg-core span { display: block; margin-bottom: 8px; color: var(--emu-vg-cyan); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.emu-vg-core strong { display: block; font-size: clamp(20px, 5vw, 30px); line-height: 1.2; }

.emu-vg-status-copy { max-width: 780px; font-size: 18px; margin-bottom: 28px; }
.emu-vg-phase { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 16px; padding: 20px; }
.emu-vg-phase > span {
    width: 48px; height: 48px; display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emu-vg-cyan), var(--emu-vg-purple));
    font-weight: 900;
}

.emu-vg-invite { padding: 20px 0 80px; }
.emu-vg-invite__panel { padding: 28px; border-color: rgba(19,213,223,.3); }
.emu-vg-invite__panel h2 { margin-bottom: 16px; }

.emu-vg-footer { padding: 28px 0 max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--emu-vg-border); }
.emu-vg-footer .emu-vg-container { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.emu-vg-footer img { width: 58px; height: 46px; object-fit: cover; border-radius: 8px; }
.emu-vg-footer p { margin: 0; color: var(--emu-vg-muted); text-align: right; font-size: 13px; }

@media (min-width: 640px) {
    .emu-vg-container { width: min(100% - 48px, var(--emu-vg-max)); }
    .emu-vg-actions { display: flex; justify-content: center; }
    .emu-vg-button { min-width: 210px; }
    .emu-vg-story-grid, .emu-vg-card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .emu-vg-card--wide { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
    .emu-vg-header__inner { min-height: 76px; }
    .emu-vg-brand { width: 66px; height: 50px; }
    .emu-vg-nav { display: flex; gap: 28px; margin-left: auto; margin-right: 18px; }
    .emu-vg-nav a { color: var(--emu-vg-muted); text-decoration: none; font-size: 14px; }
    .emu-vg-nav a:hover { color: var(--emu-vg-text); }
    .emu-vg-hero { align-items: center; padding-block: 130px 80px; }
    .emu-vg-hero__logo { width: 280px; max-height: 280px; margin-top: -20px; }
    .emu-vg-section { padding: 112px 0; }
    .emu-vg-story-grid { grid-template-columns: .9fr 1.1fr; }
    .emu-vg-story-card { padding: 36px; }
    .emu-vg-card-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .emu-vg-card--wide { grid-column: span 2; }
    .emu-vg-phases { grid-template-columns: repeat(3, minmax(0,1fr)); }
    .emu-vg-phase { grid-template-columns: 1fr; }
    .emu-vg-invite__panel { padding: 54px; }
}

@media (prefers-reduced-motion: no-preference) {
    .emu-vg-button, .emu-vg-card { transition: transform .2s ease, border-color .2s ease; }
    .emu-vg-button:hover, .emu-vg-card:hover { transform: translateY(-2px); }
}


.emu-vg-button--share {
    background: rgba(8, 15, 32, .82);
    color: #f7fbff;
    border: 1px solid rgba(19, 213, 223, .58);
}
.emu-vg-button--share:hover,
.emu-vg-button--share:focus-visible {
    border-color: #13d5df;
    background: rgba(13, 27, 49, .96);
}
.emu-vg-footer__contact {
    display: inline-flex;
    margin-top: 8px;
    color: #13d5df;
    text-decoration: none;
    font-weight: 800;
}
.emu-vg-footer__contact:hover,
.emu-vg-footer__contact:focus-visible {
    text-decoration: underline;
}
.emu-vg-modal-open {
    overflow: hidden;
}
.emu-vg-share-modal,
.emu-vg-qr-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: end center;
    padding: 12px;
}
.emu-vg-share-modal[hidden],
.emu-vg-qr-lightbox[hidden] {
    display: none;
}
.emu-vg-share-modal__backdrop,
.emu-vg-qr-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0, 0, 0, .76);
    backdrop-filter: blur(8px);
}
.emu-vg-share-modal__dialog,
.emu-vg-qr-lightbox__content {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    background: #0e1320;
    color: #f5f7fb;
    box-shadow: 0 28px 80px rgba(0,0,0,.55);
}
.emu-vg-share-modal__dialog {
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 24px 18px 20px;
}
.emu-vg-share-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.emu-vg-share-modal__eyebrow {
    margin: 0 44px 14px 0;
    color: #aeb8c9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
}
.emu-vg-share-modal__dialog h2 {
    margin: 0 42px 10px 0;
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.08;
}
.emu-vg-share-modal__text {
    margin: 0 0 22px;
    color: #b9c2d2;
    line-height: 1.55;
}
.emu-vg-share-modal__primary {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #13d5df;
    color: #06111b;
    font-weight: 900;
    cursor: pointer;
}
.emu-vg-share-modal__feedback {
    min-height: 20px;
    margin: 8px 0 0;
    color: #13d5df;
    font-size: 13px;
    text-align: center;
}
.emu-vg-share-modal__url {
    margin: 8px 0 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: #090d17;
    color: #c8d0de;
    overflow-wrap: anywhere;
}
.emu-vg-share-modal__qr-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(19,213,223,.42);
    border-radius: 18px;
    background: #0a1220;
    color: #fff;
    text-align: left;
    cursor: zoom-in;
}
.emu-vg-share-modal__qr-card img {
    width: 92px;
    height: 92px;
    border-radius: 12px;
    background: #fff;
}
.emu-vg-share-modal__qr-card strong,
.emu-vg-share-modal__qr-card small {
    display: block;
}
.emu-vg-share-modal__qr-card small {
    margin-top: 6px;
    color: #aeb8c9;
    line-height: 1.4;
}
.emu-vg-qr-lightbox {
    place-items: center;
}
.emu-vg-qr-lightbox__content {
    width: min(calc(100% - 24px), 560px);
    padding: 54px 20px 22px;
    text-align: center;
}
.emu-vg-qr-lightbox__content img {
    width: min(80vw, 420px);
    height: auto;
    border-radius: 18px;
    background: #fff;
}
.emu-vg-qr-lightbox__content p {
    margin: 14px 0 0;
    font-weight: 800;
    letter-spacing: .04em;
}
@media (min-width: 700px) {
    .emu-vg-share-modal {
        place-items: center;
    }
    .emu-vg-share-modal__dialog {
        padding: 30px;
    }
}

/* ==========================================================================
   v0.1.7 — Responsive hero architecture
   Mobile: 320–639px
   Tablet: 640–899px
   Desktop: 900px+
   ========================================================================== */

/* Shared hero action foundation */
.emu-vg-focus {
    margin-bottom: 36px;
}

.emu-vg-actions {
    width: 100%;
    margin-inline: auto;
}

.emu-vg-actions .emu-vg-button {
    margin: 0;
}

.emu-vg-button--secondary {
    color: #ffffff;
    border: 1px solid rgba(124, 92, 255, .76);
    background: linear-gradient(115deg, #7c3aed 0%, #5b45ed 52%, #2563eb 100%);
    box-shadow: 0 14px 32px rgba(79, 70, 229, .25);
}

.emu-vg-button--secondary:hover,
.emu-vg-button--secondary:focus-visible {
    border-color: rgba(255,255,255,.36);
    background: linear-gradient(115deg, #8b5cf6 0%, #6657f0 52%, #3474ef 100%);
}

.emu-vg-button--share {
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   Mobile — 320px to 639px
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
    .emu-vg-hero {
        min-height: auto;
        align-items: start;
        padding: 86px 0 42px;
    }

    .emu-vg-hero__content {
        width: min(100% - 30px, 500px);
    }

    .emu-vg-hero__logo {
        width: min(285px, 78vw);
        max-height: none;
        margin: -22px auto 18px;
    }

    .emu-vg-eyebrow {
        margin-bottom: 16px;
    }

    .emu-vg-hero h1 {
        margin-bottom: 22px;
    }

    .emu-vg-lead {
        margin-bottom: 24px;
    }

    .emu-vg-focus {
        margin-bottom: 36px;
    }

    .emu-vg-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .emu-vg-actions .emu-vg-button {
        width: 100%;
    }

    .emu-vg-actions .emu-vg-button--secondary {
        margin-bottom: 22px;
    }

    .emu-vg-actions .emu-vg-button--share {
        width: min(52vw, 240px);
        min-width: 176px;
        align-self: center;
        padding-inline: 18px;
    }

    .emu-vg-section {
        padding: 58px 0;
    }

    #vision.emu-vg-section {
        padding-top: 52px;
    }
}

/* --------------------------------------------------------------------------
   Tablet — 640px to 899px
   -------------------------------------------------------------------------- */
@media (min-width: 640px) and (max-width: 899px) {
    .emu-vg-hero {
        min-height: auto;
        align-items: start;
        padding: 104px 0 58px;
    }

    .emu-vg-hero__content {
        width: min(100% - 56px, 760px);
    }

    .emu-vg-hero__logo {
        width: 300px;
        max-height: none;
        margin: -24px auto 20px;
    }

    .emu-vg-lead {
        margin-bottom: 26px;
    }

    .emu-vg-focus {
        margin-bottom: 38px;
    }

    .emu-vg-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 230px));
        justify-content: center;
        gap: 16px 18px;
    }

    .emu-vg-actions .emu-vg-button {
        width: 100%;
        min-width: 0;
    }

    .emu-vg-actions .emu-vg-button--share {
        grid-column: 1 / -1;
        justify-self: center;
        width: 220px;
        margin-top: 18px;
    }

    #vision.emu-vg-section {
        padding-top: 68px;
    }
}

/* --------------------------------------------------------------------------
   Desktop — 900px+
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
    .emu-vg-hero {
        min-height: auto;
        align-items: start;
        padding: 116px 0 68px;
    }

    .emu-vg-hero__content {
        width: min(100% - 80px, 1050px);
    }

    .emu-vg-hero__logo {
        width: 330px;
        max-height: none;
        margin: -86px auto 20px;
    }

    .emu-vg-eyebrow {
        margin-bottom: 18px;
    }

    .emu-vg-hero h1 {
        margin-bottom: 24px;
    }

    .emu-vg-lead {
        margin-bottom: 28px;
    }

    .emu-vg-focus {
        margin-bottom: 40px;
    }

    .emu-vg-actions {
        display: grid;
        grid-template-columns: repeat(2, 230px);
        justify-content: center;
        column-gap: 18px;
        row-gap: 24px;
    }

    .emu-vg-actions .emu-vg-button {
        width: 230px;
        min-width: 0;
    }

    .emu-vg-actions .emu-vg-button--share {
        grid-column: 1 / -1;
        justify-self: center;
        width: 220px;
    }

    #vision.emu-vg-section {
        padding-top: 72px;
    }
}



/* ==========================================================================
   v0.2.1 — Separate invite and interest cards
   ========================================================================== */

.emu-vg-invite-grid {
    display: grid;
    gap: 20px;
}

.emu-vg-invite__panel,
.emu-vg-interest-panel {
    height: 100%;
    padding: 28px;
    border: 1px solid var(--emu-vg-border);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.emu-vg-invite__panel {
    border-color: rgba(19,213,223,.3);
}

.emu-vg-interest-panel {
    display: flex;
    flex-direction: column;
    border-color: rgba(124,92,255,.42);
    background:
        linear-gradient(180deg, rgba(124,92,255,.12), rgba(255,255,255,.025));
}

.emu-vg-interest-panel h2 {
    margin-bottom: 16px;
}

.emu-vg-interest-panel > p:not(.emu-vg-section-kicker) {
    color: var(--emu-vg-muted);
}

.emu-vg-interest-panel__button {
    width: 100%;
    margin-top: auto;
    border: 0;
    cursor: pointer;
}

/* ==========================================================================
   Interest modal
   ========================================================================== */

.emu-vg-interest-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: end center;
    padding: 12px;
}

.emu-vg-interest-modal[hidden],
.emu-vg-interest-success[hidden] {
    display: none;
}

.emu-vg-interest-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
    backdrop-filter: blur(9px);
}

.emu-vg-interest-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 520px);
    max-height: calc(100dvh - 24px);
    overflow-y: auto;
    padding: 24px 18px 20px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    background: #0e1320;
    color: #f5f7fb;
    box-shadow: 0 28px 90px rgba(0,0,0,.6);
}

.emu-vg-interest-modal__dialog h2 {
    margin: 0 44px 10px 0;
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.emu-vg-interest-modal__intro {
    margin-bottom: 22px;
    color: #b9c2d2;
}

.emu-vg-interest-form {
    display: grid;
    gap: 16px;
}

.emu-vg-interest-field {
    display: grid;
    gap: 7px;
    font-weight: 800;
}

.emu-vg-interest-field input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    background: #090e19;
    color: #f7f9ff;
    font: inherit;
    outline: none;
}

.emu-vg-interest-field input::placeholder {
    color: #788397;
}

.emu-vg-interest-field input:focus {
    border-color: var(--emu-vg-cyan);
    box-shadow: 0 0 0 3px rgba(19,213,223,.12);
}

.emu-vg-interest-consent {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    gap: 10px;
    align-items: start;
    color: #d5dbe7;
    font-size: 14px;
    line-height: 1.5;
}

.emu-vg-interest-consent input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--emu-vg-cyan);
}

.emu-vg-interest-form__privacy {
    margin: -4px 0 0;
    color: #8f9aae;
    font-size: 12px;
    line-height: 1.5;
}

.emu-vg-interest-form__message {
    min-height: 22px;
    margin: -2px 0 0;
    color: var(--emu-vg-cyan);
    font-size: 14px;
}

.emu-vg-interest-form__message.is-error {
    color: #ff8eaa;
}

.emu-vg-interest-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.emu-vg-interest-success {
    padding: 18px 4px 4px;
    text-align: center;
}

.emu-vg-interest-success__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emu-vg-cyan), var(--emu-vg-purple));
    color: #06111b;
    font-size: 34px;
    font-weight: 900;
}

.emu-vg-interest-success h2 {
    margin-right: 0;
}

.emu-vg-interest-success p {
    margin: 0 auto 24px;
    color: #c6cedd;
    line-height: 1.6;
}

.emu-vg-interest-form button[disabled] {
    opacity: .7;
    cursor: wait;
}

/* Tablet and desktop: cards side by side */
@media (min-width: 640px) {
    .emu-vg-invite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 24px;
    }

    .emu-vg-invite__panel,
    .emu-vg-interest-panel {
        padding: 34px;
    }

    .emu-vg-interest-panel__button {
        width: auto;
        min-width: 250px;
        align-self: flex-start;
    }

    .emu-vg-interest-modal {
        place-items: center;
    }

    .emu-vg-interest-modal__dialog {
        padding: 30px;
    }
}

@media (min-width: 900px) {
    .emu-vg-invite-grid {
        gap: 30px;
    }

    .emu-vg-invite__panel,
    .emu-vg-interest-panel {
        padding: 42px;
    }
}


/* ==========================================================================
   v0.2.3 — 30px top and bottom section spacing
   ========================================================================== */

/*
 * The markup uses id="emu-vg-main", not a .emu-vg-main class.
 * 30px bottom + 30px top = 60px visual gap between adjacent sections.
 */
#emu-vg-main .emu-vg-section {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    margin: 0 !important;
}

#emu-vg-main .emu-vg-section + .emu-vg-section {
    margin-top: 0 !important;
}

/* First content section keeps a compact transition from the hero. */
#emu-vg-main #vision.emu-vg-section {
    padding-top: 30px !important;
}

/* The final invite block follows the same rhythm. */
#emu-vg-main .emu-vg-invite {
    padding-top: 30px !important;
    padding-bottom: 50px !important;
    margin: 0 !important;
}

/* Prevent local wrappers from reintroducing vertical gaps. */
#emu-vg-main .emu-vg-section > .emu-vg-container,
#emu-vg-main .emu-vg-invite > .emu-vg-container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* ==========================================================================
   v0.2.6 — Diffuse diagonal chapter gradients
   Applied only to Why EMUnity? and Where we stand.
   Direction remains diagonal, but without a hard visible edge.
   ========================================================================== */

#emu-vg-main .emu-vg-section--chapter-gradient {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--emu-vg-bg);
}

#emu-vg-main .emu-vg-section--chapter-gradient::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            135deg,
            rgba(19, 213, 223, .20) 0%,
            rgba(19, 213, 223, .16) 16%,
            rgba(19, 213, 223, .11) 30%,
            rgba(19, 213, 223, .065) 44%,
            rgba(19, 213, 223, .03) 58%,
            rgba(19, 213, 223, .012) 70%,
            rgba(19, 213, 223, 0) 82%
        ),
        linear-gradient(
            315deg,
            rgba(124, 92, 255, .18) 0%,
            rgba(124, 92, 255, .14) 16%,
            rgba(124, 92, 255, .095) 30%,
            rgba(124, 92, 255, .055) 44%,
            rgba(124, 92, 255, .026) 58%,
            rgba(124, 92, 255, .01) 70%,
            rgba(124, 92, 255, 0) 82%
        );
    filter: blur(10px);
    transform: scale(1.04);
    opacity: .96;
}

#emu-vg-main .emu-vg-section--chapter-gradient::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(8, 11, 20, .08) 0%,
            rgba(8, 11, 20, 0) 16%,
            rgba(8, 11, 20, 0) 84%,
            rgba(8, 11, 20, .08) 100%
        );
}

#emu-vg-main .emu-vg-section--chapter-gradient > .emu-vg-container {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   v0.2.7 — Icon-free ecosystem cards with differentiated borders
   ========================================================================== */

#emu-vg-main .emu-vg-card {
    position: relative;
    border-width: 1px;
    border-style: solid;
}

#emu-vg-main .emu-vg-card h3 {
    margin-top: 0;
}

#emu-vg-main .emu-vg-card--cyan {
    border-color: rgba(19, 213, 223, .48);
    box-shadow: inset 0 1px 0 rgba(19, 213, 223, .05), 0 20px 60px rgba(0,0,0,.18);
}

#emu-vg-main .emu-vg-card--purple {
    border-color: rgba(124, 92, 255, .52);
    box-shadow: inset 0 1px 0 rgba(124, 92, 255, .05), 0 20px 60px rgba(0,0,0,.18);
}

#emu-vg-main .emu-vg-card--pink {
    border-color: rgba(223, 60, 166, .48);
    box-shadow: inset 0 1px 0 rgba(223, 60, 166, .05), 0 20px 60px rgba(0,0,0,.18);
}

#emu-vg-main .emu-vg-card--blue {
    border-color: rgba(59, 130, 246, .50);
    box-shadow: inset 0 1px 0 rgba(59, 130, 246, .05), 0 20px 60px rgba(0,0,0,.18);
}

#emu-vg-main .emu-vg-card--violet {
    border-color: rgba(167, 139, 250, .50);
    box-shadow: inset 0 1px 0 rgba(167, 139, 250, .05), 0 20px 60px rgba(0,0,0,.18);
}

@media (prefers-reduced-motion: no-preference) {
    #emu-vg-main .emu-vg-card--cyan:hover {
        border-color: rgba(19, 213, 223, .72);
    }

    #emu-vg-main .emu-vg-card--purple:hover {
        border-color: rgba(124, 92, 255, .76);
    }

    #emu-vg-main .emu-vg-card--pink:hover {
        border-color: rgba(223, 60, 166, .72);
    }

    #emu-vg-main .emu-vg-card--blue:hover {
        border-color: rgba(59, 130, 246, .74);
    }

    #emu-vg-main .emu-vg-card--violet:hover {
        border-color: rgba(167, 139, 250, .74);
    }
}


/* ==========================================================================
   v0.2.8 — Footer uses the same logo as the header
   ========================================================================== */

.emu-vg-footer img {
    width: 66px;
    height: 50px;
    object-fit: contain;
    object-position: left center;
    border-radius: 0;
}


/* ==========================================================================
   v0.3.0 — Four-language header switcher
   ========================================================================== */

.emu-vg-language {
    flex-wrap: nowrap;
    gap: 3px;
    font-size: 12px;
}

.emu-vg-language a {
    padding-inline: 3px;
}

@media (min-width: 640px) {
    .emu-vg-language {
        gap: 5px;
        font-size: 13px;
    }

    .emu-vg-language a {
        padding-inline: 4px;
    }
}


/* ==========================================================================
   v0.3.1 — Tablet/Desktop hero logo visibility fix
   Mobile remains unchanged.
   ========================================================================== */

@media (min-width: 640px) and (max-width: 899px) {
    .emu-vg-hero {
        padding-top: 132px;
    }

    .emu-vg-hero__logo {
        margin-top: 0;
    }
}

@media (min-width: 900px) {
    .emu-vg-hero {
        padding-top: 150px;
    }

    .emu-vg-hero__logo {
        margin-top: 0;
    }
}
