/* IMPORTANT (home.css): Forside-only styles. Keep navy/gold theme; do not change global site tokens. */
/* IMPORTANT (home.css): Aldrig sæt position på .site-header — det ødelægger fixed sidebar (desktop). */
/* IMPORTANT (home.css): Faelles sidebar-baggrundsflow ligger i styles.css (body.site-page). Her kun ekstra guldlys. */

body.site-page.eg-home {
    background-image:
        radial-gradient(900px 520px at 72% 12%, rgba(255, 235, 167, 0.07), transparent 58%),
        radial-gradient(720px 480px at 88% 48%, rgba(251, 191, 36, 0.04), transparent 55%),
        linear-gradient(
            90deg,
            #020617 0%,
            #020617 18%,
            #07111f 48%,
            #0b1526 78%,
            #0f172a 100%
        );
}

@media (min-width: 1024px) {
    body.site-page.eg-home {
        background-image:
            radial-gradient(820px 480px at calc(var(--eg-site-sidebar-width) + 42%) 10%, rgba(255, 235, 167, 0.07), transparent 60%),
            radial-gradient(640px 420px at 92% 55%, rgba(251, 191, 36, 0.04), transparent 58%),
            linear-gradient(
                90deg,
                #020617 0%,
                #020617 8%,
                #060f1c 36%,
                #0a1526 68%,
                #0f172a 100%
            );
    }
}

.eg-home-main {
    position: relative;
    padding: 22px 0 40px;
    isolation: isolate;
    background: transparent;
}

.eg-home-main::before {
    content: "";
    position: absolute;
    inset: -40px 0 auto 0;
    height: min(720px, 90vh);
    pointer-events: none;
    z-index: 0;
    /* Guldlys ovenpå samme base — ikke et nyt baggrundspanel */
    background:
        radial-gradient(780px 420px at 8% 0%, rgba(255, 235, 167, 0.08), transparent 62%),
        radial-gradient(560px 360px at 78% 18%, rgba(255, 235, 167, 0.05), transparent 60%);
}

.eg-home-main > * {
    position: relative;
    z-index: 1;
}

/* ---- Open stage (no hero card box) ---- */
.eg-home-stage {
    position: relative;
    min-height: clamp(340px, 52vh, 520px);
    padding: 28px 8px 36px;
    overflow: visible;
    animation: egHomeIn 0.55s ease both;
}

.eg-home-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.eg-home-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    opacity: 0.55;
}

.eg-home-orb-a {
    width: 220px;
    height: 220px;
    top: -30px;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 235, 167, 0.28), transparent 70%);
    animation: egHomeDriftA 11s ease-in-out infinite alternate;
}

.eg-home-orb-b {
    width: 160px;
    height: 160px;
    bottom: 10%;
    left: 4%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 70%);
    animation: egHomeDriftB 13s ease-in-out infinite alternate;
}

.eg-home-orb-c {
    width: 120px;
    height: 120px;
    top: 40%;
    left: 45%;
    background: radial-gradient(circle, rgba(255, 235, 167, 0.12), transparent 70%);
    animation: egHomeDriftC 9s ease-in-out infinite alternate;
}

.eg-home-spark {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffeba7;
    box-shadow: 0 0 12px rgba(255, 235, 167, 0.85);
    animation: egHomeSpark 4.8s ease-in-out infinite;
}

.eg-home-spark-1 { top: 18%; left: 22%; animation-delay: 0s; }
.eg-home-spark-2 { top: 28%; right: 18%; animation-delay: 0.7s; }
.eg-home-spark-3 { bottom: 22%; left: 38%; animation-delay: 1.4s; }
.eg-home-spark-4 { top: 55%; right: 28%; animation-delay: 2.1s; }
.eg-home-spark-5 { top: 12%; left: 58%; animation-delay: 2.8s; }

.eg-home-laser {
    position: absolute;
    top: 30%;
    left: -10%;
    width: 42%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffeba7, #fbbf24, transparent);
    opacity: 0.35;
    transform: rotate(-8deg);
    animation: egHomeLaser 6.5s linear infinite;
    box-shadow: 0 0 14px rgba(255, 235, 167, 0.45);
}

/* IMPORTANT (home.css): Flyvende kategori-knapper i grid med luft — må ikke overlappe hinanden. */
/* Bevægelse er levende (x/y/rotation) men lille nok til at blive i egen celle. */
.eg-home-floaters {
    position: absolute;
    top: 8%;
    right: 2%;
    bottom: 6%;
    left: 52%;
    z-index: 4;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-content: center;
    justify-items: center;
    gap: 30px 24px;
    padding: 10px 8px;
}

.eg-home-float-slot {
    position: relative;
    pointer-events: auto;
    z-index: 1;
    display: flex;
    justify-content: center;
    max-width: 100%;
    will-change: transform;
}

.eg-home-float-slot:nth-child(1) {
    grid-column: 1 / -1;
    animation: egHomeDriftA 5.2s ease-in-out infinite;
}
.eg-home-float-slot:nth-child(2) { animation: egHomeDriftB 6.1s ease-in-out infinite; }
.eg-home-float-slot:nth-child(3) { animation: egHomeDriftC 5.6s ease-in-out infinite; }
.eg-home-float-slot:nth-child(4) { animation: egHomeDriftD 6.8s ease-in-out infinite; }
.eg-home-float-slot:nth-child(5) { animation: egHomeDriftE 5.9s ease-in-out infinite; }
.eg-home-float-slot:nth-child(6) { animation: egHomeDriftF 6.4s ease-in-out infinite; }
.eg-home-float-slot:nth-child(7) { animation: egHomeDriftG 5.4s ease-in-out infinite; }
.eg-home-float-slot:nth-child(8) {
    grid-column: 1 / -1;
    animation: egHomeDriftH 6.6s ease-in-out infinite;
}

/* Printvarer = nyt tiltag — tydeligt fremhævet blandt flyvende genveje */
.eg-home-float-slot--print {
    z-index: 2;
}

.eg-home-float--print {
    gap: 8px;
    padding: 0.62rem 1.15rem;
    font-size: 0.95rem;
    color: #0b1120;
    border-color: rgba(255, 235, 167, 0.95);
    background: linear-gradient(180deg, #ffeba7 0%, #fbbf24 100%);
    box-shadow:
        0 10px 0 rgba(120, 73, 0, 0.5),
        0 18px 28px rgba(0, 0, 0, 0.45),
        0 0 28px rgba(255, 235, 167, 0.35);
    animation: egHomePrintPulse 2.4s ease-in-out infinite;
}

.eg-home-float-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffeba7;
    background: #0b1120;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.eg-home-float-slot--print:hover .eg-home-float--print,
.eg-home-float--print:hover,
.eg-home-float--print:focus-visible {
    color: #0b1120;
    filter: brightness(1.06);
    transform: scale(1.07);
    box-shadow:
        0 12px 0 rgba(120, 73, 0, 0.55),
        0 22px 34px rgba(0, 0, 0, 0.5),
        0 0 36px rgba(255, 235, 167, 0.5);
}

.eg-home-float-slot:hover,
.eg-home-float-slot:focus-within {
    z-index: 6;
    animation-play-state: paused !important;
}

.eg-home-float {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 235, 167, 0.42);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.86));
    color: #ffeba7;
    text-decoration: none;
    font-weight: 850;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow:
        0 8px 0 rgba(2, 6, 23, 0.55),
        0 14px 22px rgba(0, 0, 0, 0.35),
        0 0 18px rgba(255, 235, 167, 0.12);
    transition:
        background 140ms ease,
        border-color 140ms ease,
        color 140ms ease,
        box-shadow 140ms ease,
        transform 140ms ease;
}

.eg-home-float-slot:hover .eg-home-float,
.eg-home-float:hover,
.eg-home-float:focus-visible {
    color: #0b1120;
    border-color: rgba(255, 235, 167, 0.95);
    background: linear-gradient(180deg, #ffeba7 0%, #fbbf24 100%);
    transform: scale(1.05);
    box-shadow:
        0 10px 0 rgba(120, 73, 0, 0.45),
        0 16px 26px rgba(0, 0, 0, 0.4),
        0 0 22px rgba(255, 235, 167, 0.35);
}

.eg-home-float:focus-visible {
    outline: 2px solid #ffeba7;
    outline-offset: 3px;
}

.eg-home-intro {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    padding-top: 18px;
    pointer-events: none;
}

.eg-home-intro .eg-home-cta-row,
.eg-home-intro .eg-home-cta-row a {
    pointer-events: auto;
}

.eg-home-brand-signal {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 900;
    line-height: 1.05;
    color: #ffeba7;
    text-shadow:
        0 3px 0 rgba(120, 73, 0, 0.35),
        0 18px 40px rgba(0, 0, 0, 0.45);
    margin: 0 0 12px;
    animation: egHomeBrandPulse 5s ease-in-out infinite;
}

.eg-home-stage h1 {
    margin: 0;
    font-size: clamp(1.45rem, 3.2vw, 2.15rem);
    line-height: 1.15;
    color: #e5e7eb;
    max-width: 16ch;
}

.eg-home-lead {
    margin-top: 14px;
    max-width: 40ch;
    font-size: 1.05rem;
    color: #c4c3ca;
}

.eg-home-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.eg-home-cta-row .button {
    min-height: 46px;
    padding: 0.7rem 1.15rem;
    font-size: 0.9rem;
}

/* ---- Sections ---- */
.eg-home-section {
    margin-top: 28px;
    animation: egHomeIn 0.6s ease both;
}

.eg-home-section:nth-of-type(3) { animation-delay: 0.06s; }
.eg-home-section:nth-of-type(4) { animation-delay: 0.12s; }
.eg-home-section:nth-of-type(5) { animation-delay: 0.18s; }

.eg-home-section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 10px 16px;
    margin-bottom: 14px;
}

.eg-home-section-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffeba7;
}

.eg-home-section-head p {
    margin: 4px 0 0;
    color: #c4c3ca;
    max-width: 56ch;
}

/* ---- Service cards (levende, uden gule bogstav-badges) ---- */
.eg-home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    perspective: 1100px;
}

.eg-home-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 158px;
    padding: 1.2rem 1.15rem 1.15rem;
    border-radius: 18px;
    text-decoration: none;
    color: #c4c3ca;
    overflow: hidden;
    border: 1px solid rgba(255, 235, 167, 0.18);
    background:
        linear-gradient(155deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.88) 48%, rgba(30, 41, 59, 0.72) 100%);
    box-shadow:
        0 12px 0 rgba(2, 6, 23, 0.7),
        0 20px 32px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 235, 167, 0.08);
    transform: translateZ(0);
    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease,
        filter 200ms ease;
    animation: egHomeCardFloat 5.8s ease-in-out infinite;
}

.eg-home-card:nth-child(1) { animation-delay: 0s; }
.eg-home-card:nth-child(2) { animation-delay: 0.35s; }
.eg-home-card:nth-child(3) { animation-delay: 0.7s; }
.eg-home-card:nth-child(4) { animation-delay: 0.2s; }
.eg-home-card:nth-child(5) { animation-delay: 0.55s; }
.eg-home-card:nth-child(6) { animation-delay: 0.9s; }
.eg-home-card:nth-child(7) { animation-delay: 0.4s; }

.eg-home-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #ffeba7, #fbbf24 55%, transparent);
    opacity: 0.85;
}

.eg-home-card::after {
    content: "";
    position: absolute;
    top: -40%;
    left: -30%;
    width: 55%;
    height: 180%;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 235, 167, 0.12) 48%,
        transparent 62%
    );
    transform: translateX(-120%) rotate(8deg);
    pointer-events: none;
    animation: egHomeCardShine 7.5s ease-in-out infinite;
}

.eg-home-card:nth-child(2n)::after { animation-delay: 1.2s; }
.eg-home-card:nth-child(3n)::after { animation-delay: 2.4s; }

.eg-home-card:hover,
.eg-home-card:focus-visible {
    color: #e5e7eb;
    border-color: rgba(255, 235, 167, 0.55);
    animation-play-state: paused;
    transform: translateY(-8px) rotateX(5deg) rotateY(-4deg) scale(1.02);
    filter: brightness(1.07);
    box-shadow:
        0 18px 0 rgba(120, 73, 0, 0.28),
        0 30px 44px rgba(0, 0, 0, 0.52),
        0 0 28px rgba(255, 235, 167, 0.14);
}

.eg-home-card:hover::before,
.eg-home-card:focus-visible::before {
    width: 4px;
    box-shadow: 0 0 16px rgba(255, 235, 167, 0.55);
}

.eg-home-card:hover .eg-home-card-go,
.eg-home-card:focus-visible .eg-home-card-go {
    transform: translateX(4px);
    color: #ffeba7;
}

.eg-home-card:focus-visible {
    outline: 2px solid #ffeba7;
    outline-offset: 3px;
}

.eg-home-card-title {
    font-weight: 900;
    font-size: 1.12rem;
    color: #ffeba7;
    letter-spacing: 0.01em;
    text-shadow: 0 0 18px rgba(255, 235, 167, 0.18);
}

.eg-home-card-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1;
}

.eg-home-card-go {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 235, 167, 0.88);
    transition: transform 180ms ease, color 180ms ease;
}

/* ---- Print highlight ---- */
.eg-home-print {
    position: relative;
    padding: 22px 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 235, 167, 0.38);
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96) 0%, rgba(41, 30, 12, 0.55) 45%, rgba(15, 23, 42, 0.96) 100%);
    box-shadow:
        0 18px 0 rgba(120, 73, 0, 0.22),
        0 28px 50px rgba(0, 0, 0, 0.48),
        0 0 40px rgba(255, 235, 167, 0.08);
    overflow: hidden;
}

.eg-home-print::before {
    content: "";
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 235, 167, 0.16), transparent 42%);
    pointer-events: none;
    animation: egHomeGlow 4.5s ease-in-out infinite alternate;
}

.eg-home-print > * {
    position: relative;
    z-index: 1;
}

.eg-home-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b1120;
    background: linear-gradient(180deg, #ffeba7 0%, #fbbf24 100%);
    box-shadow: 0 4px 0 rgba(120, 73, 0, 0.45);
    margin-bottom: 10px;
}

.eg-home-print h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 900;
    color: #ffeba7;
}

.eg-home-print-lead {
    margin: 10px 0 0;
    max-width: 62ch;
    color: #c4c3ca;
}

.eg-home-print-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 16px;
}

.eg-home-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eg-home-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.48rem 0.78rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 235, 167, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 750;
    font-size: 0.82rem;
    box-shadow: 0 4px 0 rgba(2, 6, 23, 0.65);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease;
}

.eg-home-chip:hover,
.eg-home-chip:focus-visible {
    color: #0b1120;
    border-color: rgba(255, 235, 167, 0.8);
    background: linear-gradient(180deg, #ffeba7 0%, #fbbf24 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(120, 73, 0, 0.4);
}

.eg-home-chip:focus-visible {
    outline: 2px solid #ffeba7;
    outline-offset: 2px;
}

/* ---- About strip ---- */
.eg-home-about {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 235, 167, 0.14);
    background: rgba(15, 23, 42, 0.72);
    box-shadow:
        0 12px 0 rgba(2, 6, 23, 0.55),
        0 20px 32px rgba(0, 0, 0, 0.35);
}

.eg-home-about h2 {
    margin: 0 0 8px;
    color: #ffeba7;
    font-size: 1.2rem;
    font-weight: 900;
}

.eg-home-about p {
    margin: 0 0 8px;
    color: #c4c3ca;
}

.eg-home-about-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 235, 167, 0.18);
    background: linear-gradient(180deg, rgba(255, 235, 167, 0.08), rgba(15, 23, 42, 0.4));
}

.eg-home-about-side a {
    color: #ffeba7;
    font-weight: 800;
}

@media (max-width: 980px) {
    .eg-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eg-home-about {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .eg-home-stage {
        min-height: auto;
        padding-bottom: 12px;
    }

    .eg-home-floaters {
        position: relative;
        inset: auto;
        left: auto;
        top: auto;
        right: auto;
        bottom: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
        pointer-events: auto;
        padding: 0;
    }

    .eg-home-float-slot {
        position: static;
        grid-column: auto !important;
        animation: egHomeDriftB 4.8s ease-in-out infinite !important;
    }

    .eg-home-float-slot:nth-child(2n) { animation-name: egHomeDriftC !important; }
    .eg-home-float-slot:nth-child(3n) { animation-name: egHomeDriftE !important; }
    .eg-home-floaters { gap: 12px; }

    .eg-home-intro {
        pointer-events: auto;
    }

    .eg-home-laser,
    .eg-home-orb-c {
        display: none;
    }
}

@media (max-width: 640px) {
    .eg-home-grid {
        grid-template-columns: 1fr;
    }

    .eg-home-card:hover,
    .eg-home-card:focus-visible {
        transform: translateY(-5px) scale(1.01);
    }
}

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

@keyframes egHomeGlow {
    from { opacity: 0.55; }
    to { opacity: 1; }
}

@keyframes egHomeBrandPulse {
    0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 235, 167, 0)); }
    50% { filter: drop-shadow(0 0 14px rgba(255, 235, 167, 0.28)); }
}

@keyframes egHomeDriftA {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-28px, 22px) scale(1.08); }
}

@keyframes egHomeDriftB {
    from { transform: translate(0, 0); }
    to { transform: translate(34px, -18px); }
}

@keyframes egHomeDriftC {
    from { transform: translate(0, 0); }
    to { transform: translate(-18px, -24px); }
}

@keyframes egHomeSpark {
    0%, 100% { opacity: 0.15; transform: translateY(0) scale(0.7); }
    50% { opacity: 1; transform: translateY(-10px) scale(1.15); }
}

@keyframes egHomeLaser {
    0% { transform: translateX(0) rotate(-8deg); opacity: 0; }
    15% { opacity: 0.45; }
    50% { opacity: 0.25; }
    100% { transform: translateX(160%) rotate(-8deg); opacity: 0; }
}

/* Små baner (max ~8px) + rotation — livligt uden at knapperne rammer hinanden */
@keyframes egHomeDriftA {
    0%, 100% { transform: translate(0, 0) rotate(-1deg) scale(1); }
    25% { transform: translate(7px, -6px) rotate(2deg) scale(1.02); }
    50% { transform: translate(-5px, -8px) rotate(-2deg) scale(1.03); }
    75% { transform: translate(6px, 4px) rotate(1deg) scale(1.01); }
}

@keyframes egHomeDriftB {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    33% { transform: translate(-8px, -5px) rotate(-2deg); }
    66% { transform: translate(6px, 7px) rotate(2deg); }
}

@keyframes egHomeDriftC {
    0%, 100% { transform: translate(0, 0) rotate(-1.5deg); }
    40% { transform: translate(8px, 5px) rotate(2deg); }
    70% { transform: translate(-6px, -7px) rotate(-1deg); }
}

@keyframes egHomeDriftD {
    0%, 100% { transform: translate(0, 0) rotate(0.5deg) scale(1); }
    50% { transform: translate(-7px, 6px) rotate(-2.5deg) scale(1.03); }
}

@keyframes egHomeDriftE {
    0%, 100% { transform: translate(0, 0) rotate(1deg); }
    30% { transform: translate(5px, -8px) rotate(-1deg); }
    60% { transform: translate(-8px, 3px) rotate(2deg); }
}

@keyframes egHomeDriftF {
    0%, 100% { transform: translate(0, 0) rotate(-0.5deg); }
    45% { transform: translate(7px, 7px) rotate(2deg); }
    80% { transform: translate(-5px, -6px) rotate(-2deg); }
}

@keyframes egHomeDriftG {
    0%, 100% { transform: translate(0, 0) rotate(1.5deg) scale(1); }
    50% { transform: translate(8px, -5px) rotate(-2deg) scale(1.04); }
}

@keyframes egHomeDriftH {
    0%, 100% { transform: translate(0, 0) rotate(-1deg); }
    25% { transform: translate(-7px, 5px) rotate(1.5deg); }
    55% { transform: translate(6px, -7px) rotate(-2deg); }
    80% { transform: translate(-4px, -3px) rotate(1deg); }
}

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

@keyframes egHomePrintPulse {
    0%, 100% {
        box-shadow:
            0 10px 0 rgba(120, 73, 0, 0.5),
            0 18px 28px rgba(0, 0, 0, 0.45),
            0 0 22px rgba(255, 235, 167, 0.28);
    }
    50% {
        box-shadow:
            0 10px 0 rgba(120, 73, 0, 0.5),
            0 18px 28px rgba(0, 0, 0, 0.45),
            0 0 34px rgba(255, 235, 167, 0.55);
    }
}

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

@keyframes egHomeCardShine {
    0%, 62% { transform: translateX(-120%) rotate(8deg); opacity: 0; }
    70% { opacity: 1; }
    88%, 100% { transform: translateX(220%) rotate(8deg); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .eg-home-stage,
    .eg-home-section,
    .eg-home-print::before,
    .eg-home-orb,
    .eg-home-spark,
    .eg-home-laser,
    .eg-home-float-slot,
    .eg-home-float--print,
    .eg-home-brand-signal,
    .eg-home-card,
    .eg-home-card::after {
        animation: none !important;
    }

    .eg-home-card,
    .eg-home-chip,
    .eg-home-cta-row .button,
    .eg-home-float,
    .eg-home-card-go {
        transition: none !important;
    }

    .eg-home-card:hover,
    .eg-home-card:focus-visible {
        transform: none;
    }
}
