/* atomwebsite — glass / glossy translucent vibe + mega menu (on top of landing.css) */

body.atomware-landing-page {
    --atw-glass: rgba(12, 18, 36, 0.42);
    --atw-glass-hi: rgba(255, 255, 255, 0.08);
    --atw-glass-edge: rgba(255, 255, 255, 0.14);
    --atw-glass-shine: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.04) 35%,
        rgba(255, 255, 255, 0) 60%
    );
    /* Scrolled header + mobile dock + form shell — bright blue glass (no purple) */
    --atw-chrome-bg:
        linear-gradient(
            115deg,
            rgba(8, 14, 32, 0.92) 0%,
            rgba(12, 32, 78, 0.9) 40%,
            rgba(8, 20, 52, 0.94) 100%
        ),
        linear-gradient(
            180deg,
            rgba(37, 99, 235, 0.24) 0%,
            rgba(21, 82, 204, 0.14) 55%,
            rgba(0, 0, 0, 0.18) 100%
        );
    --atw-chrome-border: color-mix(in srgb, var(--atw-primary, #1552cc) 32%, rgba(255, 255, 255, 0.1));
    --atw-chrome-shadow:
        0 1px 0 rgba(147, 197, 253, 0.1) inset,
        0 10px 32px rgba(0, 0, 0, 0.28);
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(21, 82, 204, 0.3), transparent 55%),
        radial-gradient(900px 500px at 88% 8%, rgba(14, 116, 180, 0.14), transparent 50%),
        radial-gradient(800px 480px at 50% 100%, rgba(21, 82, 204, 0.12), transparent 55%),
        #050b18;
}

/* Soft blue wash */
.atomware-landing-page .atw-page-aurora {
    opacity: 0.86;
    filter: saturate(1.12) blur(0.4px);
}

.atomware-landing-page .atw-hero-bg {
    display: none !important;
    background: none !important;
    background-image: none !important;
}

/* Nav — transparent at top (no slab); frosted only when .is-scrolled */
.atomware-landing-page .atw-nav:not(.is-scrolled),
body.atw-service-page .atw-nav:not(.is-scrolled) {
    background: transparent !important;
    border-bottom-color: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.atomware-landing-page .atw-nav:not(.is-scrolled)::before {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
}

.atomware-landing-page .atw-nav.is-scrolled {
    background: var(--atw-chrome-bg);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    box-shadow: var(--atw-chrome-shadow);
}

.atomware-landing-page .atw-nav.is-scrolled::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--atw-glass-shine);
    opacity: 0.35;
}

.atomware-landing-page .atw-nav-inner {
    position: relative;
    z-index: 1;
}

/* Sections — no fills; only the page (body) background shows through */
.atomware-landing-page .atw-hero,
.atomware-landing-page .atw-section,
.atomware-landing-page .atw-section.atw-section-alt,
.atomware-landing-page .atw-section-faq,
.atomware-landing-page .atw-contact-strip,
.atomware-landing-page .atw-footer,
.atomware-landing-page #global-footprint,
.atomware-landing-page #onboarding {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}

/* Interactive cards — glass base + soft per-service tint (try once) */
.atomware-landing-page .atw-feature-card,
.atomware-landing-page .atw-form-card {
    background: var(--atw-glass);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 50px rgba(0, 0, 0, 0.28);
    position: relative;
    overflow: hidden;
    color: inherit;
    text-decoration: none !important;
}

.atomware-landing-page a.atw-feature-card,
.atomware-landing-page a.atw-feature-card:link,
.atomware-landing-page a.atw-feature-card:visited,
.atomware-landing-page a.atw-feature-card:hover,
.atomware-landing-page a.atw-feature-card:active,
.atomware-landing-page a.atw-feature-card:focus,
.atomware-landing-page a.atw-feature-card h3,
.atomware-landing-page a.atw-feature-card p {
    color: inherit;
    text-decoration: none !important;
    text-decoration-color: transparent !important;
}

.atomware-landing-page a.atw-feature-card h3 {
    color: var(--atw-text);
}

.atomware-landing-page a.atw-feature-card p {
    color: var(--atw-text-sub);
}

.atomware-landing-page .atw-feature-card.atw-svc--web-design,
.atomware-landing-page .atw-feature-card.atw-svc--ecommerce,
.atomware-landing-page .atw-feature-card.atw-svc--custom-dev,
.atomware-landing-page .atw-feature-card.atw-svc--hosting,
.atomware-landing-page .atw-feature-card.atw-svc--seo,
.atomware-landing-page .atw-feature-card.atw-svc--graphic {
    background:
        linear-gradient(
            165deg,
            color-mix(in srgb, var(--atw-svc) 18%, transparent) 0%,
            color-mix(in srgb, var(--atw-svc) 7%, rgba(8, 12, 28, 0.72)) 42%,
            rgba(8, 12, 28, 0.78) 100%
        ),
        var(--atw-glass);
    border-color: color-mix(in srgb, var(--atw-svc) 28%, rgba(255, 255, 255, 0.08));
}

.atomware-landing-page .atw-feature-card::before,
.atomware-landing-page .atw-form-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--atw-glass-shine);
    opacity: 0.35;
    pointer-events: none;
}

.atomware-landing-page .atw-feature-card:hover {
    border-color: color-mix(in srgb, var(--atw-svc, #93c5fd) 42%, rgba(147, 197, 253, 0.28));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 22px 60px color-mix(in srgb, var(--atw-svc, #1552cc) 18%, transparent);
}

body.atomware-landing-page p,
body.atomware-landing-page .atw-hero-sub,
body.atomware-landing-page .atw-section-sub,
body.atomware-landing-page .atw-about-content p,
body.atomware-landing-page .atw-feature-card p,
body.atomware-landing-page .atw-faq-a p,
body.atomware-landing-page .atw-related-feature p {
    color: #ffffff !important;
}

/* Undo any glass boxing on copy / FAQ / map — borderless */
.atomware-landing-page .atw-about-content,
.atomware-landing-page .atw-faq-copy,
.atomware-landing-page .atw-faq-item,
.atomware-landing-page .atw-map-stage,
.atomware-landing-page .atw-container {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.atomware-landing-page .atw-about-content,
.atomware-landing-page .atw-about-stats,
.atomware-landing-page .atw-stat {
    overflow: visible !important;
}

.atomware-landing-page .atw-about-content::before,
.atomware-landing-page .atw-faq-copy::before,
.atomware-landing-page .atw-faq-item::before {
    content: none !important;
    display: none !important;
}

.atomware-landing-page .atw-btn-primary {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.12) inset,
        0 10px 28px rgba(21, 82, 204, 0.35);
}

.atomware-landing-page .atw-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Footer glass strip — edge only, not a content box */
.atomware-landing-page .atw-footer {
    background: rgba(4, 8, 18, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.atw-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.atw-mega {
    position: relative;
}

.atw-mega-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.35) 0%,
            rgba(15, 23, 42, 0.55) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 16px rgba(21, 82, 204, 0.18);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.atw-mega-toggle .material-icons,
.atw-mega-toggle-icon {
    font-size: 20px !important;
    line-height: 1;
}

.atw-mega-toggle:hover,
.atw-mega-toggle:focus-visible {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.55) 0%,
            rgba(15, 23, 42, 0.7) 100%
        );
    transform: translateY(-1px);
}

.atw-mega.is-open .atw-mega-toggle {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.7);
    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.65) 0%,
            rgba(21, 82, 204, 0.45) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 0 0 1px rgba(59, 130, 246, 0.2);
}

.atw-mega-chevron {
    display: none !important;
}

/* Scrim — clears header + mobile dock; click closes drawer */
.atw-mega-scrim {
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1205;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(2, 6, 18, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.atw-mega-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
}

.atw-mega-scrim[hidden] {
    display: none !important;
}

/*
 * Right slide-in drawer (Linux-style side panel).
 * Always fixed on <body> — hangs under header, above mobile dock.
 * Use top + height (not top+bottom) — dual insets were resolving to
 * document-sized tops and parking the panel off-screen.
 */
.atw-mega-panel,
.atw-mega-panel.is-body {
    position: fixed !important;
    top: 66px !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    width: min(400px, calc(100vw - 48px)) !important;
    max-width: none !important;
    height: calc(100vh - 78px) !important;
    max-height: calc(100vh - 78px) !important;
    margin: 0;
    padding: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    z-index: 1210;
    border-radius: 16px 0 0 16px;
    background: var(--atw-chrome-bg);
    border: 1px solid var(--atw-chrome-border);
    border-right: 0;
    box-shadow:
        -18px 0 48px rgba(0, 0, 0, 0.38),
        var(--atw-chrome-shadow);
    backdrop-filter: blur(16px) saturate(1.35);
    -webkit-backdrop-filter: blur(16px) saturate(1.35);
    transform: translate3d(110%, 0, 0) !important;
    visibility: hidden;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
        visibility 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.atw-mega-panel.is-open,
.atw-mega-panel.is-body.is-open {
    transform: translate3d(0, 0, 0) !important;
    visibility: visible;
    pointer-events: auto;
}

/* Keep [hidden] for a11y after slide-out finishes — don't fight mid-animation */
.atw-mega-panel[hidden]:not(.is-open) {
    display: none !important;
}

.atw-mega-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.atw-mega-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 2px;
    min-width: 0;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.atw-mega-card:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
}

/* Current service page — clearer tint than hover */
.atw-mega-card.is-active {
    border-color: rgba(96, 165, 250, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.28) 0%,
            rgba(21, 82, 204, 0.16) 55%,
            rgba(15, 23, 42, 0.35) 100%
        );
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.12);
}

.atw-mega-card-media {
    grid-row: 1 / span 2;
    align-self: center;
    min-width: 0;
}

.atw-mega-card-media img {
    width: 64px;
    height: auto;
    display: block;
    border-radius: 8px;
}

.atw-mega-card-title {
    font-family: var(--atw-font-display, 'Poppins', 'Segoe UI', sans-serif);
    font-weight: 700;
    font-size: 14px;
    color: #f3f6fb;
    min-width: 0;
    overflow-wrap: anywhere;
}

.atw-mega-card-lead {
    font-size: 12px;
    line-height: 1.35;
    color: rgba(226, 232, 240, 0.72);
    min-width: 0;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Quote CTAs — gradient shift only (no float bob) */
@keyframes atw-quote-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Shared quote fill (nav / FAQ / hero) — keep Atomware blues */
.atw-nav-cta,
.atw-faq-cta,
.atomware-landing-page .atw-hero-actions a.atw-btn-primary[href="#onboarding"] {
    position: relative;
    color: #eff6ff;
    border: 1px solid rgba(59, 130, 246, 0.45);
    border-radius: 999px;
    box-sizing: border-box;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.62) 0%,
            rgba(21, 82, 204, 0.48) 45%,
            rgba(15, 23, 42, 0.72) 100%
        );
    background-size: 300% 300%;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 8px 20px rgba(21, 82, 204, 0.22);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease,
        box-shadow 0.2s ease;
    animation: atw-quote-gradient-shift 6s ease infinite;
}

/* Header quote — same pill + type as FAQ / .atw-btn */
.atw-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    padding: 9px 16px;
    min-height: 0;
    height: auto;
    font-family: var(--atw-font-body, 'DM Sans', 'Segoe UI', sans-serif);
    font-size: var(--atw-fs-btn, 0.8125rem);
    font-weight: var(--atw-fw-btn, 600);
    letter-spacing: var(--atw-btn-tracking, 0.03em);
    text-transform: uppercase;
    line-height: 1;
    text-decoration: none !important;
}

.atw-nav-cta .material-icons {
    font-size: 16px !important;
    line-height: 1;
    color: #bfdbfe;
}

.atw-nav-cta:hover,
.atw-faq-cta:hover,
.atomware-landing-page .atw-hero-actions a.atw-btn-primary[href="#onboarding"]:hover {
    animation: none;
    color: #fff;
    border-color: rgba(147, 197, 253, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.78) 0%,
            rgba(37, 99, 235, 0.58) 55%,
            rgba(15, 23, 42, 0.78) 100%
        );
    background-size: 300% 300%;
    background-position: 50% 50%;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 12px 28px rgba(21, 82, 204, 0.36),
        0 0 22px rgba(21, 82, 204, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .atw-nav-cta,
    .atw-faq-cta,
    .atomware-landing-page .atw-hero-actions a.atw-btn-primary[href="#onboarding"] {
        animation: none !important;
    }
}

/* Far-right home (non-home pages) — Linux-style house glyph */
.atw-nav-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 2px;
    border-radius: 999px;
    color: #bfdbfe;
    text-decoration: none !important;
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-sizing: border-box;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.35) 0%,
            rgba(15, 23, 42, 0.55) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 16px rgba(21, 82, 204, 0.18);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

.atw-nav-home .material-icons {
    font-size: 20px !important;
    line-height: 1;
}

.atw-nav-home:hover,
.atw-nav-home:focus-visible {
    color: #fff;
    border-color: rgba(147, 197, 253, 0.65);
    background:
        linear-gradient(
            135deg,
            rgba(59, 130, 246, 0.55) 0%,
            rgba(15, 23, 42, 0.7) 100%
        );
    transform: translateY(-1px);
}

/* Footer: social-only — logo lives in header / hero */
.atw-footer-brand,
.atw-footer-logo {
    display: none !important;
}

.atw-footer-inner {
    justify-content: center !important;
}

.atw-footer-social {
    justify-content: center;
    margin-inline: auto;
}

.atw-hero--service .atw-hero-title {
    font-size: var(--atw-fs-hero);
}

/* Service pages open on What We Do — clear fixed nav */
body.atw-service-page {
    padding-top: calc(76px + env(safe-area-inset-top, 0px));
}

body.atw-service-page.atw-logo-docked .atw-nav-logo {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

#about-service.atw-section,
#about-service.atw-service-start {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(28px, 3.5vw, 48px);
}

.atw-about.atw-about--service {
    /* Desktop: copy left, Lottie right (swapped from old visual-first) */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: clamp(12px, 2.5vw, 32px);
    align-items: stretch;
    /* Clip Lottie spill — section height follows copy only */
    overflow: hidden;
}

@media (min-width: 1025px) {
    /* Taller hero cell so 155% art fits without eating the header or clipping the base */
    body.atw-service-page #about-service .atw-about.atw-about--service {
        min-height: clamp(560px, 68vh, 720px);
    }
}

.atw-about--service .atw-about-content {
    order: 1;
    position: relative;
    z-index: 2;
}

.atw-about--service .atw-about-visual {
    order: 2;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Height comes from the copy column; Lottie fills + clips inside */
    overflow: hidden;
    position: relative;
    z-index: 0;
    isolation: isolate;
    min-height: 0;
    align-self: stretch;
}

/* Service heroes — fill the copy-tall cell, zoom art, clip edges */
.atw-service-about-lottie.atw-lottie-host {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    transform: none;
}

.atw-service-about-lottie.atw-lottie-host svg,
.atw-service-about-lottie.atw-lottie-host canvas {
    /* Width/margin zoom (not scale) — reliable under overflow:hidden clip */
    transform: none !important;
    width: 138% !important;
    height: 138% !important;
    max-width: none !important;
    display: block;
    background: transparent !important;
    overflow: hidden !important;
    /* Slight bottom bias; keep top of art readable */
    margin: -10% -8% -28% -30%;
}

@media (min-width: 1025px) {
    .atw-service-about-lottie.atw-lottie-host svg,
    .atw-service-about-lottie.atw-lottie-host canvas {
        width: 155% !important;
        height: 155% !important;
        /* Desktop only: same size, shift up — phones untouched below */
        margin: -18% -10% -20% -32%;
        transform: translateY(-8%) !important;
    }
}

/*
 * Managed Hosting / Digital Marketing / Graphic Design —
 * milder zoom than Web Design (155%) so full art fits without crop.
 * Web Design / e-com / custom keep the big default above.
 */
@media (min-width: 1025px) {
    body[data-atw-service="managed-hosting"] .atw-service-about-lottie.atw-lottie-host svg,
    body[data-atw-service="managed-hosting"] .atw-service-about-lottie.atw-lottie-host canvas,
    body[data-atw-service="digital-marketing-and-seo"] .atw-service-about-lottie.atw-lottie-host svg,
    body[data-atw-service="digital-marketing-and-seo"] .atw-service-about-lottie.atw-lottie-host canvas,
    body[data-atw-service="graphic-design"] .atw-service-about-lottie.atw-lottie-host svg,
    body[data-atw-service="graphic-design"] .atw-service-about-lottie.atw-lottie-host canvas {
        width: 118% !important;
        height: 118% !important;
        margin: -6% -6% -12% -12% !important;
        transform: none !important;
        max-width: none !important;
    }
}

@media (max-width: 1024px) {
    /* Stacked layout: Lottie is its own block — full size, no crop */
    #about-service .atw-about.atw-about--service,
    body.atw-service-page #about-service .atw-about.atw-about--service {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 20px !important;
        align-items: stretch !important;
        overflow: visible !important;
    }

    #about-service .atw-about-visual,
    body.atw-service-page #about-service .atw-about-visual {
        order: -1 !important;
        width: 100% !important;
        max-width: min(100%, 520px) !important;
        overflow: visible !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative;
        aspect-ratio: 1;
        max-height: none !important;
        align-self: center;
    }

    #about-service .atw-about-content,
    body.atw-service-page #about-service .atw-about-content {
        order: 1 !important;
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    #about-service .atw-service-about-lottie.atw-lottie-host,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: none !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    #about-service .atw-service-about-lottie.atw-lottie-host svg,
    #about-service .atw-service-about-lottie.atw-lottie-host canvas,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host svg,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host canvas {
        transform: none !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        max-width: none !important;
    }

    #about-service .atw-service-eyebrow,
    #about-service .atw-hero-label.atw-service-eyebrow {
        display: inline-block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    /* Force single column — service grid must not stay 2-col on phones */
    #about-service .atw-about.atw-about--service {
        grid-template-columns: 1fr !important;
        gap: 16px;
        overflow: visible !important;
    }

    #about-service.atw-service-start {
        padding-top: clamp(8px, 2vw, 16px);
        padding-bottom: clamp(8px, 2vw, 16px);
    }

    #about-service .atw-about-visual,
    body.atw-service-page #about-service .atw-about-visual,
    .atw-about--service .atw-about-visual {
        overflow: visible !important;
        width: 100% !important;
        max-width: min(100%, 420px) !important;
        aspect-ratio: 1;
        max-height: none !important;
        margin: 0 auto !important;
        position: relative;
    }

    .atw-service-about-lottie.atw-lottie-host,
    #about-service .atw-service-about-lottie.atw-lottie-host,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host {
        position: relative !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
        max-width: none !important;
        margin: 0 !important;
        transform: none;
        overflow: visible !important;
    }

    #about-service .atw-service-about-lottie.atw-lottie-host svg,
    #about-service .atw-service-about-lottie.atw-lottie-host canvas,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host svg,
    body.atw-service-page .atw-service-about-lottie.atw-lottie-host canvas {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        transform: none !important;
    }
}

.atw-service-eyebrow {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    #about-service .atw-service-eyebrow,
    #about-service .atw-hero-label.atw-service-eyebrow {
        display: inline-block;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    #about-service .atw-about-content {
        text-align: center;
        align-items: center;
    }

    #about-service .atw-about-visual {
        order: -1;
    }
}


/* Related services — boxed title like home; marquee alone is full-bleed */
.atw-related-services .atw-section-title,
.atw-related-services .atw-section-sub {
    max-width: 1100px;
}

.atw-related-services .atw-section-sub {
    margin-bottom: 16px;
}

.atw-marquee--services {
    margin-top: 8px;
    width: 100%;
    max-width: none;
    /* Room for hover lift — parent .atw-social-proof uses overflow:hidden */
    padding-top: 14px;
    padding-bottom: 18px;
    margin-bottom: -6px;
    overflow: visible;
}

.atw-related-services.atw-social-proof {
    overflow: visible;
}

/* Ensure service page copy stays in the same box as homepage */
body.atw-service-page .atw-container {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.atw-marquee--services .atw-marquee-viewport {
    overflow: hidden;
    padding-top: 12px;
    padding-bottom: 16px;
    margin-top: -12px;
    margin-bottom: -8px;
}

.atw-related-marquee-group {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding-right: 16px;
}

.atw-related-feature.atw-feature-card {
    flex: 0 0 min(280px, 78vw);
    width: min(280px, 78vw);
    max-width: 280px;
    margin: 0;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.atw-related-feature.atw-feature-card > h3 {
    width: 100%;
    max-width: none;
    white-space: normal;
}

.atw-related-feature.atw-feature-card > .atw-feature-icon {
    width: 100%;
    max-width: none;
}


.atw-marquee--services .atw-marquee-track {
    animation-duration: 55s;
}

@media (max-width: 768px) {
    body.atw-service-page {
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    .atw-related-feature.atw-feature-card {
        flex-basis: min(240px, 82vw);
        width: min(240px, 82vw);
        max-width: 240px;
    }
}

/* Lottie gallery */
.atw-lottie-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 24px 0 64px;
}

.atw-lottie-tile {
    background: rgba(12, 18, 36, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.atw-lottie-tile h3 {
    font-size: 14px;
    margin: 0 0 8px;
    color: #e2e8f0;
}

.atw-lottie-tile .atw-lottie-host {
    min-height: 180px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
}

.atw-lottie-tile code {
    font-size: 11px;
    color: #94a3b8;
}

/* FAQ Lottie — sticky in-section; clip only on the host (not the sticky box) */
.atomware-landing-page .atw-faq-copy {
    overflow: visible;
    z-index: 1;
    position: sticky !important;
    top: 72px !important;
    align-self: start;
}

.atomware-landing-page .atw-faq-main {
    position: relative;
    z-index: 2;
}

.atomware-landing-page .atw-faq-lottie.atw-lottie-host {
    width: min(100%, 420px) !important;
    max-width: 100% !important;
    aspect-ratio: 1 !important;
    overflow: hidden !important;
}

.atomware-landing-page .atw-faq-lottie.atw-lottie-host canvas,
.atomware-landing-page .atw-faq-lottie.atw-lottie-host svg {
    /* No scale() — it ignored parent overflow and covered FAQ text */
    transform: none !important;
    width: 112% !important;
    height: 112% !important;
    max-width: none !important;
    margin: -6% 0 0 -6%;
    overflow: hidden !important;
}

@media (min-width: 769px) {
    .atomware-landing-page .atw-faq-copy {
        /* Sit the sticky art a touch higher — same size, no shrink */
        margin-top: -20px;
    }

    .atomware-landing-page .atw-faq-lottie.atw-lottie-host canvas,
    .atomware-landing-page .atw-faq-lottie.atw-lottie-host svg {
        transform: translateY(-6%) !important;
        width: 118% !important;
        height: 118% !important;
        margin: -4% 0 0 -9%;
    }
}

@media (max-width: 1024px) {
    /* Dock owns Services on phone/tablet — hide header duplicate */
    .atw-mega-toggle {
        display: none !important;
    }

    /* Scrim clears sticky mdock; sheet slides over it from below */
    .atw-mega-scrim {
        top: 0;
        bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }

    /*
     * Phone/tablet: bottom sheet — slides up from under the dock,
     * slides back down the same way. Full width between header + dock.
     */
    .atw-mega-panel,
    .atw-mega-panel.is-body {
        top: 64px !important;
        right: 8px !important;
        left: 8px !important;
        bottom: auto !important;
        width: auto !important;
        max-width: none !important;
        height: calc(100vh - 160px) !important;
        max-height: calc(100vh - 160px) !important;
        padding: 10px;
        border-radius: 16px 16px 12px 12px;
        border-right: 1px solid var(--atw-chrome-border);
        box-shadow:
            0 -18px 48px rgba(0, 0, 0, 0.38),
            var(--atw-chrome-shadow);
        /* Off-canvas below the dock, then rise into place */
        transform: translate3d(0, calc(100% + 100px), 0) !important;
    }

    .atw-mega-panel.is-open,
    .atw-mega-panel.is-body.is-open {
        transform: translate3d(0, 0, 0) !important;
    }

    .atw-mega-card {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 10px;
    }

    .atw-mega-card-media img {
        width: 56px;
    }

    .atw-mega-card-lead {
        -webkit-line-clamp: 2;
    }

    .atw-nav-cta {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .atw-mega-panel,
    .atw-mega-panel.is-body,
    .atw-mega-scrim {
        transition: none !important;
    }

    .atomware-landing-page .atw-feature-card,
    .atomware-landing-page .atw-nav,
    .atomware-landing-page .atw-faq-item {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* ── Sticky mobile dock (tablet + phone only) ───────────────────── */
.atw-mdock {
    display: none;
}

@media (max-width: 1024px) {
    body.atomware-landing-page {
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .atw-mdock {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        z-index: 120;
        gap: 4px;
        padding: 8px 6px;
        border-radius: 18px;
        background: var(--atw-chrome-bg);
        border: 1px solid var(--atw-chrome-border);
        backdrop-filter: blur(16px) saturate(1.35);
        -webkit-backdrop-filter: blur(16px) saturate(1.35);
        box-shadow: var(--atw-chrome-shadow);
    }

    .atw-mdock-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 52px;
        margin: 0;
        padding: 6px 4px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #cbd5e1;
        text-decoration: none !important;
        font: inherit;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
    }

    .atw-mdock-item .material-icons {
        font-size: 22px;
        line-height: 1;
        color: inherit;
    }

    .atw-mdock-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.01em;
        line-height: 1.15;
        white-space: nowrap;
        overflow: visible;
        max-width: none;
    }

    .atw-mdock-item:hover,
    .atw-mdock-item:focus-visible,
    .atw-mdock-item.is-active {
        color: #eff6ff;
        background:
            linear-gradient(
                135deg,
                rgba(37, 99, 235, 0.38) 0%,
                rgba(21, 82, 204, 0.22) 100%
            );
        outline: none;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
}

/* Fast glass page handoff — frosted veil hides loading page underneath.
 * Must sit above fixed nav (z-index 1000) so chrome never peeks through. */
.atw-page-veil {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background:
        linear-gradient(
            145deg,
            rgba(5, 11, 24, 0.92) 0%,
            rgba(8, 20, 48, 0.9) 45%,
            rgba(4, 10, 22, 0.94) 100%
        );
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.atw-page-veil.is-on {
    opacity: 1;
    pointer-events: auto;
}

/* In-site hops — snappier veil than a cold first load */
.atw-page-veil.is-soft {
    transition: opacity 0.12s ease;
}

.atw-page-veil.is-handoff {
    /* Soften during logo flight — never fully clear while page logos still hidden */
    background: rgba(5, 11, 24, 0.72);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    pointer-events: none;
}

.atw-page-veil img,
.atw-page-veil-logo {
    width: min(180px, 46vw);
    height: auto;
    opacity: 0.95;
    filter: drop-shadow(0 8px 24px rgba(21, 82, 204, 0.35));
    will-change: transform, opacity;
}

/* Hide all chrome for the full preloader (including FLIP handoff) */
html.atw-booting .atw-nav,
html.atw-booting .atw-footer,
html.atw-booting .atw-mdock,
html.atw-booting .atw-back-top,
html.atw-booting .atw-mega-panel,
html.atw-booting .atw-mega-scrim,
body.atw-booting .atw-nav,
body.atw-booting .atw-footer,
body.atw-booting .atw-mdock,
body.atw-booting .atw-back-top,
body.atw-booting .atw-mega-panel,
body.atw-booting .atw-mega-scrim {
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Page logos stay dead for the whole boot — only the veil logo is visible */
html.atw-booting .atw-nav-logo,
html.atw-booting .atw-hero-logo,
html.atw-booting.atw-logo-docked .atw-nav-logo,
html.atw-booting body.atw-logo-docked .atw-nav-logo,
body.atw-booting .atw-nav-logo,
body.atw-booting .atw-hero-logo,
body.atw-booting.atw-logo-docked .atw-nav-logo,
body.atw-booting.atw-mega-open .atw-nav-logo {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.atw-booting .atw-nav,
body.atw-booting .atw-nav {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Logo target may be forced visible for FLIP; keep the rest of the bar dead */
html.atw-booting .atw-nav-actions,
html.atw-booting .atw-mega,
html.atw-booting .atw-nav-cta,
html.atw-booting .atw-nav-home,
body.atw-booting .atw-nav-actions,
body.atw-booting .atw-mega,
body.atw-booting .atw-nav-cta,
body.atw-booting .atw-nav-home {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .atw-page-veil {
        transition: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(5, 11, 24, 0.96);
    }

    html.atw-booting .atw-nav,
    html.atw-booting .atw-footer,
    html.atw-booting .atw-mdock,
    html.atw-booting .atw-back-top,
    body.atw-booting .atw-nav,
    body.atw-booting .atw-footer,
    body.atw-booting .atw-mdock,
    body.atw-booting .atw-back-top {
        visibility: visible !important;
        pointer-events: auto !important;
    }
}


body.atw-mega-open {
    overflow: hidden;
}

html.atw-mega-open {
    overflow: hidden;
}

/* Drawer sits above back-to-top FAB while open */
body.atw-mega-open .atw-back-top {
    z-index: 100 !important;
    pointer-events: none;
}

body.atw-mega-open .atw-nav-logo {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body.atw-mega-open .atw-nav {
    border-bottom-color: transparent !important;
    border-bottom: 1px solid transparent !important;
}

/* Sidebar open at top of home — never leave hero logo up with the nav logo */
body.atw-mega-open .atw-hero-logo {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Local Privacy / Terms */
.atw-legal-section {
    padding-top: clamp(6.5rem, 12vh, 8.5rem);
    padding-bottom: clamp(3rem, 6vh, 5rem);
}

.atw-legal-eyebrow {
    margin: 0 0 0.65rem;
}

.atw-legal-title {
    margin: 0 0 0.85rem;
    max-width: 18ch;
}

.atw-legal-intro {
    margin: 0 0 2rem;
    max-width: 52rem;
    color: #fff;
}

.atw-legal-prose {
    max-width: 52rem;
    color: #fff;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: var(--atw-fs-body, 1.05rem);
    line-height: 1.7;
}

.atw-legal-prose h2 {
    margin: 2.1rem 0 0.7rem;
    font-family: Poppins, system-ui, sans-serif;
    font-size: var(--atw-fs-h3, 1.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

.atw-legal-prose h3 {
    margin: 1.4rem 0 0.55rem;
    font-family: "DM Sans", system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
}

.atw-legal-prose p,
.atw-legal-prose li {
    color: #fff;
}

.atw-legal-prose p {
    margin: 0 0 0.95rem;
}

.atw-legal-prose ul {
    margin: 0 0 1.1rem;
    padding-left: 1.2rem;
}

.atw-legal-prose li {
    margin: 0 0 0.4rem;
}

.atw-legal-prose a {
    color: color-mix(in srgb, var(--atw-primary, #1552cc) 72%, #fff);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.atw-legal-prose a:hover {
    color: #fff;
}

.atw-legal-back {
    margin: 2.5rem 0 0;
}


/* Invisible reCAPTCHA v3 — no badge on marketing pages */
.grecaptcha-badge,
.Atomware-captcha--v3 {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}
