/* ==========================================================================
   Aesthetic Eurasia — dark / red design system
   Shared header + footer, and every page that opts in with body.ae-dark
   ========================================================================== */

:root {
    --ae-bg: #070505;
    --ae-card: #120e0e;
    --ae-secondary: #1e1919;
    --ae-muted: #191515;
    --ae-fg: #f8f8f8;
    --ae-muted-fg: #a0a0a9;
    --ae-primary: #fb1c31;
    --ae-primary-fg: #fefefe;
    --ae-brand-glow: #ff5549;
    --ae-border: rgba(255, 255, 255, 0.1);
    --ae-input: rgba(255, 255, 255, 0.14);
    --ae-radius: 1rem;
    --ae-shadow-glow: 0 0 30px -4px rgba(251, 28, 49, 0.65);
    --ae-shadow-glow-lg: 0 0 70px -10px rgba(251, 28, 49, 0.75);
    --ae-font: "Poppins", ui-sans-serif, system-ui, sans-serif;
    --ae-font-display: "Oswald", "Poppins", sans-serif;
}

/* ---------- Page base (opt-in) ---------- */
body.ae-dark {
    background-color: var(--ae-bg);
    background-image:
        radial-gradient(60rem 40rem at 85% -5%, rgba(251, 28, 49, 0.22), transparent 60%),
        radial-gradient(40rem 30rem at -10% 45%, rgba(251, 28, 49, 0.12), transparent 60%);
    background-repeat: no-repeat;
    color: var(--ae-fg);
    font-family: var(--ae-font);
}

.ae,
.ae-header,
.ae-footer {
    font-family: var(--ae-font);
    color: var(--ae-fg);
    -webkit-font-smoothing: antialiased;
}
.ae *,
.ae-header *,
.ae-footer * {
    box-sizing: border-box;
}
/* Resets use :where() so they carry no class weight and any .ae-* component class wins */
:where(.ae, .ae-footer, .ae-header) :is(h1, h2, h3, h4, h5, h6) {
    font-family: var(--ae-font);
    color: var(--ae-fg);
    margin: 0;
    letter-spacing: normal;
    text-transform: none;
    font-weight: 600;
}
:where(.ae, .ae-footer, .ae-header) p { margin: 0; color: inherit; font-family: var(--ae-font); }
.ae a, .ae a:hover, .ae-header a, .ae-header a:hover, .ae-footer a, .ae-footer a:hover, .ae-topbar a, .ae-topbar a:hover { text-decoration: none !important; }
:where(.ae, .ae-footer, .ae-header, .ae-topbar) a { transition: color .15s, border-color .15s, transform .15s, box-shadow .15s; }
:where(.ae) img { max-width: 100%; }
:where(.ae, .ae-footer, .ae-header) :is(ul, ol) { list-style: none; margin: 0; padding: 0; }

/* One gutter for every section, header and footer. Side padding is set with padding-inline
   and sections only ever set padding-block, so nothing can reset the gutter. */
.ae-container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}
@media (min-width: 640px) { .ae-container { padding-left: 2rem !important; padding-right: 2rem !important; } }

.ae-section { scroll-margin-top: 6rem; }

/* ---------- Utilities ---------- */
.ae-text-primary { color: var(--ae-primary) !important; }
.ae-muted { color: var(--ae-muted-fg) !important; }
.ae-display { font-family: var(--ae-font-display) !important; text-transform: uppercase; font-weight: 700; }
.ae-outline {
    color: transparent !important;
    -webkit-text-stroke: 1px rgba(251, 28, 49, 0.45);
}
.ae-glow { box-shadow: var(--ae-shadow-glow); }

.ae-glass {
    position: relative;
    isolation: isolate;
    background: linear-gradient(135deg, rgba(248, 248, 248, 0.12), rgba(248, 248, 248, 0.02) 45%, rgba(251, 28, 49, 0.08));
    border: 1px solid rgba(248, 248, 248, 0.16);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(248, 248, 248, 0.3),
        inset 0 -1px 0 rgba(248, 248, 248, 0.06),
        inset 0 0 24px rgba(248, 248, 248, 0.05),
        0 10px 40px -12px rgba(0, 0, 0, 0.7);
}
.ae-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(120% 60% at 20% 0%, rgba(248, 248, 248, 0.14), transparent 55%);
}

.ae-streak {
    position: absolute;
    pointer-events: none;
    border-radius: 9999px;
    background: radial-gradient(closest-side, rgba(251, 28, 49, 0.45), transparent);
    filter: blur(40px);
}

/* ---------- Buttons ---------- */
.ae-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 9999px;
    padding: .75rem 1.5rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.25rem;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
}
.ae-btn-primary,
.ae-btn-primary:visited {
    background: var(--ae-primary);
    color: var(--ae-primary-fg) !important;
    box-shadow: var(--ae-shadow-glow);
}
.ae-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: var(--ae-shadow-glow-lg);
    color: var(--ae-primary-fg) !important;
}
.ae-btn-outline,
.ae-btn-outline:visited {
    border-color: rgba(248, 248, 248, 0.25);
    color: var(--ae-fg) !important;
    background: transparent;
}
.ae-btn-outline:hover { border-color: var(--ae-primary); color: var(--ae-fg) !important; }
.ae-btn-sm { padding: .5rem 1rem; font-size: 13px; }

/* Outline pill with a round red arrow on the right */
.ae-btn-arrow {
    padding: .375rem .375rem .375rem 1.25rem;
    gap: .75rem;
}
.ae-btn-arrow:hover { transform: scale(1.03); }
.ae-icon-dot {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--ae-primary);
    color: var(--ae-primary-fg);
    font-size: .8rem;
    flex-shrink: 0;
}
.ae-icon-dot-sm { width: 1.75rem; height: 1.75rem; font-size: .7rem; }
.ae-icon-dot-lg { width: 2.5rem; height: 2.5rem; font-size: 1rem; }

.ae-round-btn {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid var(--ae-border);
    background: transparent;
    color: var(--ae-fg);
    cursor: pointer;
    transition: border-color .15s, opacity .15s;
}
.ae-round-btn:hover { border-color: var(--ae-primary); }
.ae-round-btn:disabled { opacity: .4; cursor: default; }
.ae-round-btn.is-primary { background: var(--ae-primary); border-color: var(--ae-primary); color: var(--ae-primary-fg); box-shadow: var(--ae-shadow-glow); }

/* ---------- Top bar ---------- */
.ae-topbar {
    position: relative;
    z-index: 1000;
    background: #000;
    border-bottom: 1px solid var(--ae-border);
    font-family: var(--ae-font);
}
.ae-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 2.5rem;
}
.ae-topbar-contact { display: none; align-items: center; gap: 1.5rem; }
.ae-topbar-contact a,
.ae-topbar-contact a:visited { font-size: 12px; color: var(--ae-muted-fg); white-space: nowrap; }
.ae-topbar-contact a:hover { color: var(--ae-fg); }
.ae-topbar-contact i { color: var(--ae-primary); margin-right: .3rem; }
.ae-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; width: 100%; }
.ae-topbar-link,
.ae-topbar-link:visited { font-size: 12px; color: rgba(248, 248, 248, 0.8); white-space: nowrap; }
.ae-topbar-link:hover { color: var(--ae-primary); }
.ae-topbar-link i { margin-right: .3rem; font-size: 11px; }
.ae-topbar-cta,
.ae-topbar-cta:visited {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border-radius: 9999px;
    padding: .3rem .9rem;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: var(--ae-primary);
    color: var(--ae-primary-fg) !important;
    box-shadow: var(--ae-shadow-glow);
}
.ae-topbar-cta:hover { box-shadow: var(--ae-shadow-glow-lg); color: var(--ae-primary-fg) !important; }
.ae-topbar-cta i { font-size: 10px; }
@media (min-width: 768px) {
    .ae-topbar-contact { display: flex; }
    .ae-topbar-actions { width: auto; }
}

/* ---------- Header ---------- */
.ae-header {
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 1px solid var(--ae-border);
    background: rgba(7, 5, 5, 0.82);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
}
.ae-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 4.5rem;
}
.ae-logo { flex-shrink: 0; }
.ae-logo img { height: 34px; width: auto; max-width: 220px; display: block; object-fit: contain; }

.ae-nav { display: none; flex-wrap: nowrap; align-items: center; gap: .125rem; margin: 0 !important; padding: 0 !important; }
.ae-nav > li { position: relative; list-style: none; margin: 0; padding: 0; line-height: normal; }
.ae-nav-link,
.ae-nav-link:visited {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: .375rem .8rem;
    font-size: 13px;
    line-height: 1.4;
    white-space: nowrap;
    color: rgba(248, 248, 248, 0.8);
}
.ae-nav-link:hover { color: var(--ae-primary); }
.ae-nav-link.is-active { border-color: var(--ae-primary); color: var(--ae-fg); }
.ae-nav-link i { font-size: 10px; }

.ae-dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    min-width: 15rem;
    padding: .5rem;
    border-radius: var(--ae-radius);
    background: rgba(18, 14, 14, 0.96);
    border: 1px solid var(--ae-border);
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}
.ae-nav > li:hover > .ae-dropdown,
.ae-nav > li:focus-within > .ae-dropdown { opacity: 1; visibility: visible; transform: none; }
.ae-dropdown a,
.ae-dropdown a:visited {
    display: block;
    padding: .5rem .75rem;
    border-radius: .6rem;
    font-size: 13px;
    color: rgba(248, 248, 248, 0.85);
}
.ae-dropdown a:hover { background: var(--ae-secondary); color: var(--ae-primary); }
.ae-dropdown-wide { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 30rem; gap: .125rem; }


.ae-burger {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--ae-border);
    background: transparent;
    color: var(--ae-fg);
    cursor: pointer;
}

.ae-mobile-menu {
    display: none;
    border-top: 1px solid var(--ae-border);
    padding: 1rem 0 1.5rem;
    max-height: calc(100vh - 4.5rem);
    overflow-y: auto;
}
.ae-mobile-menu.is-open { display: block; }
.ae-mobile-menu a,
.ae-mobile-menu a:visited {
    display: block;
    padding: .7rem .25rem;
    font-size: 15px;
    color: rgba(248, 248, 248, 0.85);
    border-bottom: 1px solid var(--ae-border);
}
.ae-mobile-menu a:hover, .ae-mobile-menu a.is-active { color: var(--ae-primary); }
.ae-mobile-menu .ae-mobile-sub a { padding-left: 1.25rem; font-size: 13px; color: var(--ae-muted-fg); }

@media (min-width: 1200px) {
    .ae-nav { display: flex; }
    .ae-burger, .ae-mobile-menu, .ae-mobile-menu.is-open { display: none; }
}

/* ---------- Hero ---------- */
.ae-hero {
    position: relative;
    display: grid;
    align-items: center;
    gap: 3rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}
.ae-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 9999px;
    padding: .375rem .875rem;
    font-size: .75rem !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    color: rgba(248, 248, 248, 0.85) !important;
    max-width: 100%;
}
.ae-eyebrow::after { content: none; }
.ae-eyebrow .ae-dot { width: .4rem; height: .4rem; border-radius: 9999px; background: var(--ae-primary); box-shadow: var(--ae-shadow-glow); flex-shrink: 0; }
.ae-hero-title {
    margin-top: 1.5rem !important;
    font-size: 3rem;
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.025em;
}
.ae-hero-text { margin-top: 1.5rem !important; max-width: 28rem; color: var(--ae-muted-fg); font-size: 1rem; line-height: 1.6; }
.ae-hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.ae-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ae-border);
}
.ae-stat-value { white-space: nowrap; font-size: 1.5rem; font-weight: 600; color: var(--ae-primary); line-height: 1.2; }
.ae-stat-label { margin-top: .25rem !important; font-size: .75rem; color: var(--ae-muted-fg); }

/* Hero carousel: floating "before" thumbnail over a large "after" card */
.ae-hero-media {
    position: relative;
    width: 100%;
    max-width: 32rem;
    margin: 0 auto;
    padding-top: 4rem;
}
.ae-hero-streak { inset: -2.5rem; }
.ae-hero-before {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
    width: 9rem;
    padding: .375rem;
    overflow: hidden;
    border-radius: .75rem;
    animation: ae-float 4s ease-in-out infinite;
}
.ae-hero-before-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: .5rem;
    background: var(--ae-muted);
}
.ae-hero-before-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity .8s ease, transform .8s ease;
}
.ae-hero-before-frame img.is-active { opacity: 1; transform: scale(1); }
.ae-hero-badge-before {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 10;
    border-radius: .25rem;
    padding: .125rem .5rem;
    font-size: 10px;
    font-weight: 600;
    background: rgba(248, 248, 248, 0.8);
    color: var(--ae-bg);
}
.ae-hero-arrow {
    position: absolute;
    top: 6rem;
    right: 10rem;
    z-index: 10;
    display: none;
    width: 4rem;
    height: 3.5rem;
    color: rgba(248, 248, 248, 0.8);
}
.ae-hero-after {
    position: relative;
    margin-top: 4rem;
    padding: .5rem;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow:
        inset 0 1px 0 rgba(248, 248, 248, 0.3),
        inset 0 -1px 0 rgba(248, 248, 248, 0.06),
        var(--ae-shadow-glow-lg);
}
.ae-hero-after.is-solo { margin-top: 0; }
.ae-hero-after-frame {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 1rem;
    background: var(--ae-muted);
}
.ae-hero-after-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: blur(12px);
    transform: scale(1.12);
    transition: opacity .9s ease, filter .9s ease, transform .9s ease;
}
.ae-hero-after-frame img.is-active { opacity: 1; filter: blur(0); transform: scale(1); }
.ae-hero-badge-after {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    z-index: 20;
    border-radius: .375rem;
    padding: .25rem .75rem;
    font-size: .75rem;
    font-weight: 600;
    background: var(--ae-primary);
    color: var(--ae-primary-fg);
}
.ae-shine {
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 30%, rgba(248, 248, 248, 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
}
.ae-shine.is-sweeping { animation: ae-sweep 1.2s ease-in-out; }
.ae-hero-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    z-index: 20;
    display: flex;
    gap: .375rem;
    padding: .5rem .75rem;
    border-radius: 9999px;
    transform: translateX(-50%);
}
.ae-hero-dots button {
    width: .375rem;
    height: .375rem;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: rgba(248, 248, 248, 0.5);
    cursor: pointer;
    transition: width .3s, background-color .3s;
}
.ae-hero-dots button.is-active { width: 1.5rem; background: var(--ae-primary); }

@keyframes ae-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ae-sweep { from { transform: translateX(-120%); } to { transform: translateX(120%); } }

@media (min-width: 640px) {
    .ae-hero-before { width: 11rem; }
    .ae-hero-arrow { display: block; }
}
@media (min-width: 1024px) { .ae-hero-media { padding-top: 2.5rem; } }
@media (prefers-reduced-motion: reduce) {
    .ae-hero-before, .ae-shine.is-sweeping { animation: none; }
    .ae-hero-before-frame img, .ae-hero-after-frame img { transition: opacity .3s; }
}

/* Stats: divided columns like the design */
@media (min-width: 640px) {
    .ae-stats > div + div { padding-left: 1.25rem; border-left: 1px solid var(--ae-border); }
}

@media (min-width: 640px) {
    .ae-hero-title { font-size: 3.75rem; }
    .ae-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .ae-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 5rem; }
    .ae-hero-title { font-size: 4.5rem; }
    .ae-stat-value { font-size: 1.7rem; }
}

/* ---------- Badges ---------- */
.ae-badge {
    position: absolute;
    z-index: 20;
    border-radius: .3rem;
    padding: .125rem .5rem;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    pointer-events: none;
}
.ae-badge-before { top: .75rem; left: .75rem; background: rgba(7, 5, 5, 0.7); color: var(--ae-fg); }
.ae-badge-after { top: .75rem; right: .75rem; background: var(--ae-primary); color: var(--ae-primary-fg); }

/* The media frames get their size from aspect-ratio. The plugin wraps the slider in an extra
   div and positions both images absolutely, so the wrapper, slider and images must all be
   pinned to fill the frame; otherwise they collapse to 0px tall. */
:is(.ae-card-media, .ae-about-media) .twentytwenty-wrapper,
:is(.ae-card-media, .ae-about-media) .load_twentytwenty {
    position: absolute !important;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}
:is(.ae-card-media, .ae-about-media) .load_twentytwenty img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
}

/* ---------- Before / after (twentytwenty) restyle ---------- */
:is(.ae, body.ae-dark) .twentytwenty-container { border-radius: inherit; }
:is(.ae, body.ae-dark) .twentytwenty-overlay,
:is(.ae, body.ae-dark) .twentytwenty-overlay:hover { background: transparent !important; }
:is(.ae, body.ae-dark) .twentytwenty-before-label, .ae .twentytwenty-after-label { display: none; }
:is(.ae, body.ae-dark) .twentytwenty-handle {
    width: 2.25rem;
    height: 2.25rem;
    margin-left: -1.125rem;
    margin-top: -1.125rem;
    border: 0;
    border-radius: 9999px;
    background: var(--ae-bg);
    box-shadow: 0 0 0 2px var(--ae-primary), var(--ae-shadow-glow);
}
:is(.ae, body.ae-dark) .twentytwenty-horizontal .twentytwenty-handle:before,
:is(.ae, body.ae-dark) .twentytwenty-horizontal .twentytwenty-handle:after {
    width: 2px;
    margin-left: -1px;
    background: var(--ae-fg);
    box-shadow: none;
}
:is(.ae, body.ae-dark) .twentytwenty-horizontal .twentytwenty-handle:before { margin-bottom: 1.125rem; }
:is(.ae, body.ae-dark) .twentytwenty-horizontal .twentytwenty-handle:after { margin-top: 1.125rem; }
:is(.ae, body.ae-dark) .twentytwenty-left-arrow { border-right-color: var(--ae-fg); margin-left: -15px; }
:is(.ae, body.ae-dark) .twentytwenty-right-arrow { border-left-color: var(--ae-fg); margin-right: -15px; }

/* ---------- Trusted by (logo carousel) ---------- */
.ae-trusted {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-block: 2rem;
    border-top: 1px solid var(--ae-border);
    border-bottom: 1px solid var(--ae-border);
}
.ae-trusted-label { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ae-muted-fg); text-align: center; }

.ae-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ae-marquee-track {
    display: flex;
    width: max-content;
    animation: ae-marquee var(--ae-marquee-duration, 40s) linear infinite;
}
.ae-marquee:hover .ae-marquee-track,
.ae-marquee:focus-within .ae-marquee-track { animation-play-state: paused; }
.ae-marquee-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-right: 2.5rem !important;
    flex-shrink: 0;
}
.ae-marquee-list li { list-style: none; }
@keyframes ae-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Client logos are uploaded on white backgrounds: invert + screen turns them into light marks on dark */
/* Every logo gets the same box; the page script trims each file's empty margins so the mark fills it */
.ae-logo-chip {
    display: grid;
    place-items: center;
    width: 7.5rem;
    height: 2.25rem;
}
.ae-logo-chip img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    filter: grayscale(1) invert(1) brightness(1.15);
    mix-blend-mode: screen;
    opacity: .7;
    transition: opacity .2s;
}
.ae-logo-chip:hover img { opacity: 1; }

@media (min-width: 768px) {
    /* Label and carousel share one row */
    .ae-trusted { flex-direction: row; gap: 2.5rem; }
    .ae-trusted-label { flex-shrink: 0; max-width: 11rem; text-align: left; line-height: 1.6; }
    .ae-marquee { flex: 1; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ae-marquee { overflow-x: auto; }
    .ae-marquee-track { animation: none; }
}

/* ---------- Section headings ---------- */
.ae-h2 { font-size: 2.25rem !important; line-height: 1.2 !important; font-weight: 600 !important; }
.ae-h2-display { font-size: 2.25rem !important; line-height: 1.15 !important; }
.ae-lead { margin-top: 1rem !important; font-size: .875rem; line-height: 1.65; color: var(--ae-muted-fg); }
@media (min-width: 640px) { .ae-h2-display { font-size: 3rem !important; } }

/* ---------- Services carousel ---------- */
.ae-services {
    display: grid;
    gap: 2.5rem;
    padding-block: 6rem;
}
.ae-services-intro .ae-btn { margin-top: 2rem; }
.ae-services-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2.5rem;
}
.ae-services-meta p { font-size: .75rem; color: var(--ae-muted-fg); }
.ae-carousel-nav { display: flex; gap: .5rem; }
.ae-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: .5rem;
    scrollbar-width: none;
}
.ae-track::-webkit-scrollbar { display: none; }
.ae-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .ae-track { grid-auto-columns: calc((100% - 1.25rem) / 2); } }
@media (min-width: 1280px) { .ae-track { grid-auto-columns: calc((100% - 2.5rem) / 3); } }
@media (min-width: 1024px) { .ae-services { grid-template-columns: 300px minmax(0, 1fr); } }

.ae-card {
    overflow: hidden;
    border-radius: var(--ae-radius);
    border: 1px solid var(--ae-border);
    background: rgba(18, 14, 14, 0.6);
    transition: border-color .2s;
}
.ae-card:hover { border-color: rgba(251, 28, 49, 0.5); }
.ae-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--ae-muted);
}
.ae-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ae-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1rem 1.1rem 1.15rem;
}
.ae-card-body h3 { font-size: .875rem !important; font-weight: 600 !important; line-height: 1.35 !important; }
.ae-card-body h3 a, .ae-card-body h3 a:visited { color: var(--ae-fg); }
.ae-card-body h3 a:hover { color: var(--ae-primary); }
.ae-card-body p { margin-top: .25rem !important; font-size: .75rem; line-height: 1.5; color: var(--ae-muted-fg); }
.ae-card-price { margin-top: .4rem !important; font-size: .7rem !important; color: var(--ae-primary) !important; font-weight: 500; }

/* ---------- Transforming ideas (about) ---------- */
.ae-about {
    display: grid;
    gap: 3rem;
    align-items: center;
}
.ae-about-list { margin-top: 2rem !important; display: grid; gap: .75rem; }
.ae-about-list li { font-size: .9rem; color: rgba(248, 248, 248, 0.85); }
.ae-about-list li a, .ae-about-list li a:visited { color: rgba(248, 248, 248, 0.85); }
.ae-about-list li a:hover { color: var(--ae-primary); }
.ae-about-list .ae-bullet { margin-right: .75rem; color: var(--ae-primary); }
.ae-about-media { position: relative; overflow: hidden; border-radius: 1.5rem; aspect-ratio: 16 / 11; background: var(--ae-card); }
.ae-about-media img, .ae-about-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.ae-read-more, .ae-read-more:visited {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1;
    color: var(--ae-primary);
}
.ae-read-more i { font-size: .7rem; line-height: 1; margin: 0; transition: transform .2s; }
.ae-read-more:hover { color: var(--ae-brand-glow); }
.ae-read-more:hover i { transform: translateX(3px); }
@media (min-width: 1024px) { .ae-about { grid-template-columns: 5fr 7fr; } }

/* ---------- Why us ---------- */
.ae-why { padding-top: 4rem; }
.ae-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.ae-why-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 9rem;
    padding: 1.25rem;
    border-radius: var(--ae-radius);
}
.ae-why-item p { max-width: 9rem; font-size: .875rem; font-weight: 500; line-height: 1.4; }
.ae-why-item .ae-icon-dot { align-self: flex-end; margin-top: 1rem; box-shadow: var(--ae-shadow-glow); }
@media (min-width: 768px) { .ae-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Process ---------- */
.ae-process { padding-block: 6rem; }
.ae-process-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ae-steps {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ae-step { position: relative; padding-top: 1.25rem; border-top: 1px solid var(--ae-border); }
.ae-step::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 3rem;
    height: 1px;
    background: var(--ae-primary);
    box-shadow: var(--ae-shadow-glow);
}
.ae-step-num { display: block; font-size: 3.75rem; line-height: 1; }
.ae-step h3 { margin-top: .75rem !important; font-size: .875rem !important; font-weight: 600 !important; }
.ae-step p { margin-top: .25rem !important; max-width: 14rem; font-size: .75rem; line-height: 1.55; color: var(--ae-muted-fg); }
@media (min-width: 1024px) { .ae-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Portfolio ---------- */
.ae-portfolio { padding-bottom: 6rem; }
.ae-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.ae-filter {
    border-radius: 9999px;
    padding: .375rem 1rem;
    font-size: .75rem;
    color: var(--ae-fg);
    cursor: pointer;
    font-family: var(--ae-font);
}
.ae-filter:hover { border-color: var(--ae-primary); }
.ae-filter.is-active {
    background: var(--ae-primary);
    border-color: var(--ae-primary);
    color: var(--ae-primary-fg);
    box-shadow: var(--ae-shadow-glow);
}
.ae-filter.is-active::before { display: none; }
.ae-grid-4 {
    display: grid;
    gap: 1.25rem;
    margin-top: 2rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) { .ae-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ae-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ae-portfolio-item { display: block; }
.ae-portfolio-item .ae-card-media img { transition: transform .5s; }
.ae-portfolio-item:hover .ae-card-media img { transform: scale(1.05); }
.ae-portfolio-item[hidden] { display: none; }
.ae-portfolio-tag {
    position: absolute;
    left: .75rem;
    bottom: .75rem;
    border-radius: 9999px;
    padding: .2rem .65rem;
    font-size: 10px;
    color: var(--ae-fg);
}

/* ---------- Testimonials ---------- */
.ae-testimonials { padding-bottom: 6rem; }
.ae-testi-grid {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.ae-testi-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.ae-testi-word { font-size: 3rem; line-height: .95; }
.ae-testi-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: var(--ae-radius);
    transition: transform .3s, box-shadow .3s, border-color .3s;
}
.ae-testi-card:hover { transform: translateY(-4px); box-shadow: var(--ae-shadow-glow); }
/* Stars on the left, glowing quote badge on the right */
.ae-testi-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ae-testi-quote {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .625rem;
    background: var(--ae-primary);
    color: var(--ae-primary-fg);
    box-shadow: var(--ae-shadow-glow);
}
.ae-testi-quote svg { width: 1.125rem; height: 1.125rem; }
.ae-testi-card .ae-testi-text {
    margin: .875rem 0 0;
    font-size: .8125rem;
    line-height: 1.6;
    color: rgba(248, 248, 248, 0.85);
    /* Long reviews stop at five lines so every card stays compact */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ae-testi-author { display: flex; align-items: center; gap: .625rem; padding-top: 1rem; border-top: 1px solid var(--ae-border); }
.ae-testi-author img { width: 2.25rem; height: 2.25rem; border-radius: 9999px; object-fit: cover; }
.ae-testi-author strong { display: block; font-size: .8125rem; font-weight: 600; }
.ae-testi-author span { display: block; font-size: .6875rem; color: var(--ae-muted-fg); }
.ae-stars { color: var(--ae-primary); font-size: .8rem; letter-spacing: .15em; }
.ae-happy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem;
    border-radius: var(--ae-radius);
}
.ae-happy-num { font-size: 3rem; font-weight: 600; line-height: 1; }
.ae-happy-label { margin-top: .5rem !important; font-size: .875rem; color: var(--ae-muted-fg); }
@media (min-width: 768px) { .ae-testi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ae-testi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Blog ---------- */
.ae-blog { padding-bottom: 6rem; }
.ae-blog-grid { display: grid; gap: 1.25rem; margin-top: 2rem; }
@media (min-width: 768px) { .ae-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ae-blog-card .ae-card-body { display: block; }
.ae-blog-meta { font-size: .7rem !important; color: var(--ae-muted-fg) !important; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem !important; }

/* ---------- Final CTA ---------- */
.ae-cta {
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    border-top: 1px solid var(--ae-border);
    background: rgba(18, 14, 14, 0.3);
}
.ae-cta-grid { position: relative; display: grid; gap: 3rem; align-items: center; }
.ae-cta-title { font-size: 3rem; line-height: 1.05; font-weight: 700; }
.ae-cta-text { margin-top: 1.25rem !important; max-width: 24rem; font-size: .875rem; line-height: 1.65; color: var(--ae-muted-fg); }
.ae-cta-buttons { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.ae-myth-fact { display: grid; gap: 2rem; padding: 1rem 0; }
.ae-mf-card { position: relative; padding: 2rem 1.75rem 1.75rem; border-radius: var(--ae-radius); }
.ae-mf-card p { font-size: 1.125rem; line-height: 1.5; }
.ae-mf-myth p { color: var(--ae-muted-fg); text-decoration: line-through; text-decoration-color: rgba(251, 28, 49, 0.6); }
.ae-mf-fact { border-color: rgba(251, 28, 49, 0.45); box-shadow: var(--ae-shadow-glow); }
.ae-mf-fact p { font-weight: 500; }
.ae-mf-tag {
    position: absolute;
    top: -.75rem;
    border-radius: .3rem;
    padding: .125rem .75rem;
    font-size: .75rem;
    font-weight: 600;
}
.ae-mf-myth .ae-mf-tag { right: 1.5rem; transform: rotate(6deg); background: rgba(248, 248, 248, 0.8); color: var(--ae-bg); }
.ae-mf-fact .ae-mf-tag { left: 1.5rem; transform: rotate(-6deg); background: var(--ae-primary); color: var(--ae-primary-fg); }
@media (min-width: 640px) { .ae-cta-title { font-size: 3.75rem; } }
@media (min-width: 1024px) {
    .ae-cta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ae-mf-myth { margin-right: 4rem; }
    .ae-mf-fact { margin-left: 4rem; }
}

/* ---------- Footer ---------- */
.ae-footer {
    border-top: 1px solid var(--ae-border);
    background: var(--ae-bg);
    padding: 4rem 0 2rem;
}
.ae-footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ae-footer-brand { grid-column: 1 / -1; }
.ae-footer-brand img { height: 34px; width: auto; }
.ae-footer-brand p { margin-top: 1rem !important; max-width: 20rem; font-size: .75rem; line-height: 1.65; color: var(--ae-muted-fg); }
.ae-footer h3 { font-size: .875rem !important; font-weight: 600 !important; margin-bottom: 1rem !important; }
.ae-footer-links li + li { margin-top: .6rem; }
.ae-footer-links a, .ae-footer-links a:visited, .ae-footer-links span { font-size: .75rem; color: var(--ae-muted-fg); line-height: 1.5; }
.ae-footer-links a:hover { color: var(--ae-primary); }
.ae-footer-links i { width: 1rem; margin-right: .35rem; color: var(--ae-primary); }
.ae-newsletter-text { font-size: .75rem; color: var(--ae-muted-fg); }
.ae-newsletter {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .25rem .25rem .25rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--ae-input);
    background: rgba(255, 255, 255, 0.03);
}
.ae-newsletter input {
    flex: 1;
    min-width: 0;
    height: 2rem;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: var(--ae-fg) !important;
    font-size: .75rem;
    font-family: var(--ae-font);
    padding: 0;
    box-shadow: none !important;
}
.ae-newsletter input::placeholder { color: var(--ae-muted-fg); }
.ae-newsletter button { border: 0; cursor: pointer; width: 2rem; height: 2rem; }
.ae-socials { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.ae-socials a, .ae-socials a:visited { color: var(--ae-fg); font-size: 1rem; }
.ae-socials a:hover { color: var(--ae-primary); }
.ae-basis { margin-top: 1.5rem; }
/* Beats .ae-footer-brand img, which sizes the site logo */
.ae-footer-brand .ae-basis img { height: 4rem; max-height: none; width: auto; border-radius: .375rem; }
.ae-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ae-border);
    font-size: .75rem;
    color: var(--ae-muted-fg);
}
.ae-footer-bottom p, .ae-footer-bottom a, .ae-footer-bottom a:visited { color: var(--ae-muted-fg); font-size: .75rem; margin: 0; }
.ae-footer-bottom a:hover { color: var(--ae-primary); }
@media (min-width: 768px) {
    .ae-footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 1024px) {
    .ae-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1.4fr; }
    .ae-footer-brand { grid-column: auto; }
}

/* ---------- Global floating bits restyled ---------- */
.back-to-top a {
    background: var(--ae-primary) !important;
    border-radius: 9999px !important;
    box-shadow: var(--ae-shadow-glow);
    color: #fff !important;
}
#slideout .slide-bttn {
    background: var(--ae-primary) !important;
    box-shadow: var(--ae-shadow-glow);
    font-family: var(--ae-font);
}

/* ==========================================================================
   Inner pages — bring the theme10-global components onto this palette so
   every page matches the home page (theme10-global.css loads before this file)
   ========================================================================== */

:root {
    --t10-ink: var(--ae-bg);
    --t10-surface: var(--ae-card);
    --t10-surface-soft: var(--ae-secondary);
    --t10-line: var(--ae-border);
    --t10-text: var(--ae-fg);
    --t10-muted: var(--ae-muted-fg);
    --t10-accent: var(--ae-primary);
    --t10-accent-deep: #d3142a;
    --t10-accent-tint: rgba(251, 28, 49, 0.12);
}

/* :where() keeps these base rules at element weight so any component class (home page included) wins */
body.ae-dark,
:where(body.ae-dark) :is(p, li, input, textarea, select, button) { font-family: var(--ae-font); }
:where(body.ae-dark) :is(h1, h2, h3, h4, h5, h6) { font-family: var(--ae-font); color: var(--ae-fg); }
:where(body.ae-dark) p { color: var(--ae-muted-fg); }
:where(body.ae-dark) option { background: var(--ae-card); color: var(--ae-fg); }

/* Same content width and gutter as the home page */
body.ae-dark main .container-1470,
body.ae-dark > section .container-1470,
body.ae-dark > div:not(.ae-header):not(.ae-topbar) .container-1470 {
    max-width: 80rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}
@media (min-width: 640px) {
    body.ae-dark main .container-1470,
    body.ae-dark > section .container-1470,
    body.ae-dark > div:not(.ae-header):not(.ae-topbar) .container-1470 { padding-left: 2rem; padding-right: 2rem; }
}

/* Page banners: the home hero's red glow on near-black */
body.ae-dark .page-title-area {
    background:
        radial-gradient(50rem 22rem at 50% -20%, rgba(251, 28, 49, 0.28), transparent 70%),
        var(--ae-bg) !important;
    border-bottom: 1px solid var(--ae-border);
}
body.ae-dark .page-title-area .overlay { display: none; }
body.ae-dark .t10g-page-title,
body.ae-dark .page-title-item .title { font-weight: 700; letter-spacing: -0.02em; }

/* Eyebrow chips look like the home hero's tag line */
body.ae-dark :is(.t10-eyebrow, .t10g-eyebrow) {
    background: rgba(251, 28, 49, 0.08);
    border-color: rgba(251, 28, 49, 0.35);
    color: var(--ae-fg);
}
body.ae-dark :is(.t10-eyebrow, .t10g-eyebrow) i { color: var(--ae-primary); }

/* Buttons: home page pills with the red glow */
body.ae-dark .t10-btn { font-family: var(--ae-font); font-size: .875rem; padding: .75rem 1.5rem; }
body.ae-dark .t10-btn-primary,
body.ae-dark .main-btn {
    background: var(--ae-primary);
    color: var(--ae-primary-fg) !important;
    box-shadow: var(--ae-shadow-glow);
    border-radius: 9999px;
}
body.ae-dark .t10-btn-primary:hover,
body.ae-dark .main-btn:hover {
    background: var(--ae-primary);
    transform: scale(1.03);
    box-shadow: var(--ae-shadow-glow-lg);
}

/* Cards and form fields: home page card colours and radius */
body.ae-dark :is(.t10-contact-form-card, .t10-blog-card) {
    background: var(--ae-card);
    border: 1px solid var(--ae-border);
    border-radius: var(--ae-radius);
}
body.ae-dark .t10-form-row :is(input, textarea, select),
body.ae-dark .select2-container--bootstrap4 .select2-selection {
    background: var(--ae-secondary) !important;
    border: 1px solid var(--ae-input) !important;
    color: var(--ae-fg) !important;
    border-radius: .75rem;
}
body.ae-dark .t10-form-row :is(input, textarea, select):focus { border-color: var(--ae-primary) !important; }
body.ae-dark input[type="datetime-local"] { color-scheme: dark; }

/* Free-trial highlight: dark glass card with a red glow instead of the old orange block */
body.ae-dark .free-trial-left {
    background:
        radial-gradient(30rem 20rem at 0% 0%, rgba(251, 28, 49, 0.28), transparent 65%),
        var(--ae-card) !important;
    border: 1px solid rgba(251, 28, 49, 0.35);
    border-radius: var(--ae-radius);
    box-shadow: var(--ae-shadow-glow);
}
body.ae-dark .free-trial-left :is(h2, h3) { color: var(--ae-fg); }
body.ae-dark .free-trial-left ul { list-style: none; padding-left: 0; }
body.ae-dark .free-trial-left li { color: var(--ae-fg); font-size: 1rem; line-height: 1.6; margin-bottom: .75rem; }
body.ae-dark .free-trial-left li::before { display: none; }
body.ae-dark .free-trial-left li i { color: var(--ae-primary); margin-right: .5rem; }

/* Select2 sits inside .t10-form-row; give it one border and the same height as the inputs */
body.ae-dark .t10-form-row .select2-container { width: 100% !important; }
body.ae-dark .select2-container--bootstrap4 .select2-selection {
    min-height: 50px;
    display: flex;
    align-items: center;
    padding: 0 .75rem;
}
body.ae-dark .select2-container--bootstrap4 .select2-selection__choice {
    background: rgba(251, 28, 49, 0.12) !important;
    border-color: rgba(251, 28, 49, 0.35) !important;
    border-radius: 9999px;
}
body.ae-dark .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected] { background: var(--ae-primary) !important; }

/* Pagination: disabled arrows were white */
body.ae-dark .page-item.disabled .page-link {
    background: var(--ae-card);
    border-color: var(--ae-border);
    color: var(--ae-muted-fg);
}
body.ae-dark .page-item .page-link { border-radius: 9999px; }
body.ae-dark .page-item.active .page-link { box-shadow: var(--ae-shadow-glow); }

/* Sidebar "Make a call" box: red-tinted dark card instead of the blue photo overlay */
body.ae-dark .side-bar-contact { border-radius: var(--ae-radius); overflow: hidden; border: 1px solid var(--ae-border); }
body.ae-dark .side-bar-contact .overlay {
    background: linear-gradient(160deg, rgba(251, 28, 49, 0.85), rgba(7, 5, 5, 0.92)) !important;
    opacity: 1 !important;
}
body.ae-dark .select2-selection .select2-search__field {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ae-fg) !important;
}

/* ==========================================================================
   Cards — one look for every card on the inner pages, matching the
   reference services grid: thin red border, translucent dark card, inset
   rounded image, red kicker line, and a "Read More" + glowing icon footer
   ========================================================================== */

body.ae-dark :is(
    .t10g-service-card, .t10-blog-card, .t10g-team-card, .t10g-portfolio-card,
    .t10g-job-card, .t10g-price-card, .t10g-cap-card, .t10g-howwork-step, .t10-service-card
) {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: .75rem !important;
    overflow: hidden;
    background: rgba(18, 14, 14, 0.7) !important;
    border: 1px solid rgba(251, 28, 49, 0.25) !important;
    border-radius: 1rem !important;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: none;
    transition: transform .3s, box-shadow .3s, border-color .3s;
    text-decoration: none !important;
    color: var(--ae-fg);
}
body.ae-dark :is(
    .t10g-service-card, .t10-blog-card, .t10g-team-card, .t10g-portfolio-card,
    .t10g-job-card, .t10g-price-card, .t10g-cap-card, .t10g-howwork-step, .t10-service-card
):hover {
    transform: translateY(-4px);
    border-color: rgba(251, 28, 49, 0.55) !important;
    box-shadow: var(--ae-shadow-glow);
}

/* Inset image with its own rounded corners, zooming slightly on hover */
body.ae-dark :is(.t10g-service-card-media, .t10-blog-card-img, .t10g-team-photo, .t10g-portfolio-card-img, .t10-service-card-img, .t10g-howwork-media) {
    border-radius: .75rem !important;
    overflow: hidden;
    margin: 0 !important;
}
body.ae-dark :is(.t10g-service-card-media, .t10-blog-card-img, .t10-service-card-img) {
    aspect-ratio: 4 / 3;
    height: auto !important;
}
body.ae-dark :is(.t10g-service-card-media, .t10-blog-card-img, .t10-service-card-img) > img,
body.ae-dark .t10g-service-card-media:not(.twentytwenty-container) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.ae-dark :is(.t10-blog-card-img, .t10g-team-photo, .t10g-portfolio-card-img, .t10-service-card-img) img {
    transition: transform .5s;
}
body.ae-dark :is(.t10-blog-card, .t10g-team-card, .t10g-portfolio-card, .t10-service-card):hover :is(.t10-blog-card-img, .t10g-team-photo, .t10g-portfolio-card-img, .t10-service-card-img) img {
    transform: scale(1.05);
}

/* Card body */
body.ae-dark :is(.t10g-service-card-body, .t10-blog-card-body, .t10g-portfolio-card-body, .t10-service-card-body, .t10g-price-card-body) {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .75rem !important;
    background: transparent !important;
}
body.ae-dark .ae-card-kicker {
    margin: 0 !important;
    font-size: .75rem !important;
    line-height: 1rem;
    color: var(--ae-primary) !important;
}
body.ae-dark .ae-card-kicker i { margin-right: .25rem; }
body.ae-dark :is(.t10g-service-card-title, .t10-blog-card-body h3, .t10g-portfolio-card-title, .t10g-job-card-title) {
    margin: .375rem 0 0 !important;
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
    font-weight: 600 !important;
    color: var(--ae-fg) !important;
}
body.ae-dark :is(.t10g-service-card-title, .t10g-job-card-title) a { color: inherit !important; }
body.ae-dark :is(.t10g-service-card-title, .t10g-job-card-title) a:hover { color: var(--ae-primary) !important; }
body.ae-dark :is(.t10g-service-card-text, .t10g-blog-excerpt) {
    margin: .5rem 0 0 !important;
    font-size: .875rem !important;
    line-height: 1.25rem !important;
    color: var(--ae-muted-fg) !important;
}

/* Footer: "Read More →" on the left, glowing red icon square on the right */
body.ae-dark .ae-card-foot {
    margin-top: auto;
    padding-top: 1.25rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}
body.ae-dark .ae-card-more {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ae-fg) !important;
    text-decoration: none !important;
    transition: color .15s;
}
body.ae-dark .ae-card-more i { font-size: .75rem; transition: transform .15s; }
body.ae-dark .ae-card-more:hover,
body.ae-dark .t10-blog-card:hover .ae-card-more { color: var(--ae-primary) !important; }
body.ae-dark .t10-blog-card:hover .ae-card-more i,
body.ae-dark .ae-card-more:hover i { transform: translateX(3px); }
body.ae-dark .ae-card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: var(--ae-primary);
    color: var(--ae-primary-fg);
    font-size: 1.05rem;
    box-shadow: var(--ae-shadow-glow);
}

/* Grids: equal-height cards, reference spacing */
body.ae-dark .service-items > [class*="col-"],
body.ae-dark .row > [class*="col-"] > .t10g-team-card,
body.ae-dark .row > [class*="col-"] > .t10g-portfolio-card { display: flex; flex-direction: column; }
body.ae-dark .t10-blog-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }

/* Team, portfolio and job card details */
body.ae-dark .t10g-team-card :is(.t10g-team-info, .t10g-team-content, .t10g-team-body) { padding: .75rem .75rem .25rem !important; background: transparent !important; }
body.ae-dark .t10g-portfolio-card-tag { color: var(--ae-primary) !important; font-size: .75rem !important; background: transparent !important; padding: 0 !important; border: 0 !important; }
body.ae-dark .t10g-job-card { padding: 1.5rem !important; }
body.ae-dark :is(.t10g-service-card-body, .t10-blog-card-body, .t10g-portfolio-card-body) { gap: 0 !important; }
body.ae-dark :is(.t10g-service-card-text, .t10g-blog-excerpt) { flex: none !important; }
body.ae-dark .service-items > [class*="col-"] { margin-bottom: 1.5rem !important; }

/* Pin single images inside the 4:3 frame; otherwise a tall image stretches the frame */
body.ae-dark :is(.t10g-service-card-media:not(.load_twentytwenty), .t10-blog-card-img, .t10-service-card-img) { position: relative; }
body.ae-dark :is(.t10g-service-card-media:not(.load_twentytwenty), .t10-blog-card-img, .t10-service-card-img) > img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto;
    object-fit: cover;
}
/* Job cards are a vertical list, not a grid row */
body.ae-dark .t10g-job-card { height: auto; margin-bottom: 1.5rem; }

/* Sidebar widgets and form cards share the card frame (no hover lift) */
body.ae-dark :is(.t10g-widget, .t10-contact-form-card, .t10g-faq-card, .t10g-meta-card, .t10g-payment-card-wrap) {
    background: rgba(18, 14, 14, 0.7) !important;
    border: 1px solid rgba(251, 28, 49, 0.25) !important;
    border-radius: 1rem !important;
}

/* Service "Why choose" section: long text beside one image. The image starts level
   with the heading and stays in view (below the sticky header) while the text scrolls */
body.ae-dark .t10g-narrative-row { align-items: stretch; }
body.ae-dark .t10g-narrative-media {
    padding: .75rem;
    background: rgba(18, 14, 14, 0.7);
    border: 1px solid rgba(251, 28, 49, 0.25);
    border-radius: 1rem;
    box-shadow: var(--ae-shadow-glow);
}
body.ae-dark .t10g-narrative-media img {
    border-radius: .75rem;
    aspect-ratio: 4 / 5;
    background: #fff;
}
@media (min-width: 992px) {
    body.ae-dark .t10g-narrative-media {
        position: sticky;
        top: 6.5rem;
    }
    body.ae-dark .t10g-narrative-content { padding-left: 1.5rem; }
}

/* ==========================================================================
   Spacing — consistent breathing room between stacked blocks
   ========================================================================== */

/* Content that follows a form/card (e.g. payment description) */
body.ae-dark * + .t10g-dynamic-content { margin-top: 3.5rem !important; }

/* The first section under a page banner, and the last one before the footer, get the
   same gap on every page (some theme sections had 20px, others 120px) */
body.ae-dark .page-title-area + section,
body.ae-dark .page-title-area + .container + section { padding-top: 4rem !important; }
body.ae-dark > section:not(.page-title-area):last-of-type { padding-bottom: 5rem !important; }
@media (max-width: 767px) {
    body.ae-dark .page-title-area + section,
    body.ae-dark .page-title-area + .container + section { padding-top: 2.5rem !important; }
    body.ae-dark > section:not(.page-title-area):last-of-type { padding-bottom: 3.5rem !important; }
}

/* How-it-works steps: keep the number badge visible and space the image from the title */
body.ae-dark .t10g-howwork-grid { padding-top: 1.5rem; }
body.ae-dark .t10g-howwork-step { overflow: visible; padding: 2rem 1.25rem 1.5rem !important; }
body.ae-dark .t10g-howwork-step .t10g-howwork-media { margin-bottom: 1.25rem !important; }
body.ae-dark .t10g-howwork-step h3 { margin: 0 0 .5rem; font-size: 1.125rem; }
body.ae-dark .t10g-howwork-step .t10-process-num {
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    background: var(--ae-primary);
    color: var(--ae-primary-fg);
    font-family: var(--ae-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    box-shadow: var(--ae-shadow-glow);
}

/* FTP request form card */
body.ae-dark .ae-ftp-card { max-width: 56rem; margin: 0 auto; padding-top: 1.5rem; }

/* ==========================================================================
   Typography — one type scale for every inner page, matching the home page:
   grey body copy, white headings and bold, Poppins throughout
   ========================================================================== */

/* Admin-written content (CMS editor HTML). Editors paste inline colours, sizes,
   fonts and weights; normalise them so every page reads the same */
body.ae-dark .editor-content,
body.ae-dark .editor-content :is(p, div, li, span, font, td, th, blockquote, dd, dt) {
    color: var(--ae-muted-fg) !important;
    font-family: var(--ae-font) !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    background-color: transparent !important;
}
body.ae-dark .editor-content :is(p, ul, ol, table, blockquote) { margin: 0 0 1rem !important; }
body.ae-dark .editor-content :is(p, div)[style*="justify"] { text-align: left !important; }
body.ae-dark .editor-content :is(ul, ol) { padding-left: 1.25rem !important; }
body.ae-dark .editor-content ul { list-style: disc !important; }
body.ae-dark .editor-content ol { list-style: decimal !important; }
body.ae-dark .editor-content li { margin-bottom: .375rem !important; }
body.ae-dark .editor-content li::marker { color: var(--ae-primary); }
body.ae-dark .editor-content :is(b, strong),
body.ae-dark .editor-content :is(b, strong) * {
    color: var(--ae-fg) !important;
    font-weight: 600 !important;
    font-size: inherit !important;
}
body.ae-dark .editor-content a,
body.ae-dark .editor-content a * { color: var(--ae-primary) !important; text-decoration: none !important; }
body.ae-dark .editor-content a:hover { text-decoration: underline !important; }

body.ae-dark .editor-content :is(h1, h2, h3, h4, h5, h6),
body.ae-dark .editor-content :is(h1, h2, h3, h4, h5, h6) * {
    color: var(--ae-fg) !important;
    font-family: var(--ae-font) !important;
    letter-spacing: -0.01em !important;
    line-height: 1.3 !important;
    background-color: transparent !important;
}
body.ae-dark .editor-content :is(h1, h2, h3, h4, h5, h6) { margin: 2rem 0 .75rem !important; }
body.ae-dark .editor-content > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0 !important; }
body.ae-dark .editor-content h1, body.ae-dark .editor-content h1 * { font-size: 2rem !important;    font-weight: 700 !important; }
body.ae-dark .editor-content h2, body.ae-dark .editor-content h2 * { font-size: 1.75rem !important; font-weight: 700 !important; }
body.ae-dark .editor-content h3, body.ae-dark .editor-content h3 * { font-size: 1.375rem !important; font-weight: 600 !important; }
body.ae-dark .editor-content h4, body.ae-dark .editor-content h4 * { font-size: 1.125rem !important; font-weight: 600 !important; }
body.ae-dark .editor-content h5, body.ae-dark .editor-content h5 * { font-size: 1rem !important;     font-weight: 600 !important; }
body.ae-dark .editor-content h6, body.ae-dark .editor-content h6 * { font-size: .9375rem !important; font-weight: 600 !important; }
@media (max-width: 767px) {
    body.ae-dark .editor-content h1, body.ae-dark .editor-content h1 * { font-size: 1.625rem !important; }
    body.ae-dark .editor-content h2, body.ae-dark .editor-content h2 * { font-size: 1.5rem !important; }
    body.ae-dark .editor-content h3, body.ae-dark .editor-content h3 * { font-size: 1.25rem !important; }
}
/* Short intro copy under a section heading keeps its own slightly larger size */
body.ae-dark :is(.t10g-section-subtitle, .t10g-section-sub, .t10-section-sub).editor-content,
body.ae-dark :is(.t10g-section-subtitle, .t10g-section-sub, .t10-section-sub).editor-content :is(p, div, span) { font-size: 1.0625rem !important; }
/* Answers and card copy inside compact components */
body.ae-dark :is(.t10g-faq-body, .t10g-feature-text).editor-content,
body.ae-dark :is(.t10g-faq-body, .t10g-feature-text).editor-content :is(p, div, li, span) { font-size: .9375rem !important; }

/* Section headings outside the editor: one size and weight on every page */
body.ae-dark :is(.t10g-section-title, .t10-section-title, .t10g-narrative-title, .t10g-about-heading, .t10g-cta-title, .t10g-detail-title, .t10g-detail-heading) {
    font-family: var(--ae-font) !important;
    font-size: 2.25rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: -0.02em !important;
    color: var(--ae-fg) !important;
}
@media (max-width: 767px) {
    body.ae-dark :is(.t10g-section-title, .t10-section-title, .t10g-narrative-title, .t10g-about-heading, .t10g-cta-title, .t10g-detail-title, .t10g-detail-heading) { font-size: 1.75rem !important; }
}
/* Card and widget headings */
body.ae-dark :is(.t10g-cap-title, .t10g-step-title, .t10g-team-name, .t10g-widget-title, .t10g-team-details-name, .t10g-howwork-step h3, .t10g-price-card h3, .t10g-contact-info h3) {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    color: var(--ae-fg) !important;
}
body.ae-dark h2.t10g-team-details-name.t10g-team-details-name { font-size: 1.75rem !important; font-weight: 700 !important; }
body.ae-dark .t10g-trial-highlight h3 { font-size: 1.75rem !important; font-weight: 700 !important; line-height: 1.25 !important; }
/* Card / step body copy */
body.ae-dark :is(.t10g-cap-text, .t10g-step-desc, .t10g-price-sub, .t10g-howwork-step .editor-content, .t10g-howwork-step .editor-content :is(p, div, span)) {
    font-size: .875rem !important;
    line-height: 1.6 !important;
    color: var(--ae-muted-fg) !important;
}
/* Empty states ("No FAQ found") */
body.ae-dark .t10g-empty-state :is(h3, h4) { font-size: 1.125rem !important; font-weight: 600 !important; color: var(--ae-muted-fg) !important; }
/* Text written as <div> blocks instead of <p> gets the same paragraph spacing */
body.ae-dark .editor-content div:not(:has(> :is(p, div, h1, h2, h3, h4, h5, h6, ul, ol, table, img, iframe))) { margin: 0 0 1rem !important; }
