/* Root Technologies — clean professional UI, logo red brand */
:root {
    --primary-hex: #e11d24;
    --primary-dark-hex: #b91c1c;
    --secondary-hex: #9b1b1f;
    --ink: #111827;
    --primary-rgb: 225, 29, 36;
    --secondary-rgb: 155, 27, 31;

    /* Shared public form scale (aligned with admin control rhythm) */
    --site-font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
    --site-font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --site-fs-label: 0.8125rem;
    --site-fs-input: 0.875rem;
    --site-input-height: 2.75rem;
    --site-input-radius: 0.75rem;
    --site-input-bg: #f9fafb;
    --site-input-border: #e5e7eb;
}

* { box-sizing: border-box; }

html {
    width: 100%;
    /* Overflow on the root element is propagated to the viewport itself
       (CSS spec), so this blocks horizontal bleed without creating an
       inner clipping/scroll box. Do NOT repeat overflow-x on <body> —
       that would make body its own scroll container and break
       position: sticky for every descendant on the site. */
    overflow-x: hidden;
    overflow-y: scroll;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-y: visible;
}

#site-main,
header,
footer {
    width: 100%;
    max-width: 100%;
    overflow: visible;
}

/*
 * Site-wide content width — navbar + every page section use the same box.
 * Use class "site-container" inside each <section> (full-bleed bg stays on section).
 */
header .site-container,
#site-main .site-container,
#site-main section > .site-container,
.site-container,
footer .site-container {
    width: 100%;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: max(1.25rem, env(safe-area-inset-left, 0px)) max(1.25rem, env(safe-area-inset-right, 0px));
    box-sizing: border-box;
}

/* Tailwind .container on frontend pages — match navbar width */
#site-main .container {
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    header .site-container,
    #site-main .site-container,
    #site-main section > .site-container,
    .site-container,
    footer .site-container,
    #site-main .container {
        padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
    }
}

@media (min-width: 1280px) {
    header .site-container,
    #site-main .site-container,
    #site-main section > .site-container,
    .site-container,
    footer .site-container,
    #site-main .container {
        padding-inline: max(2.5rem, env(safe-area-inset-left, 0px)) max(2.5rem, env(safe-area-inset-right, 0px));
    }
}

/* Rounded CTA blocks — align with nav, not extra side margin */
.section-panel {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}

@media (min-width: 768px) {
    .section-panel {
        border-radius: 3rem;
    }
}

body {
    font-family: var(--site-font-body);
    line-height: 1.6;
    background: #ffffff;
    color: #374151;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--site-font-ui);
    color: var(--ink);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-hex), var(--secondary-hex));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-hex), var(--secondary-hex));
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-hex);
    background: var(--admin-tint-2, #fef2f2);
    border: 1px solid rgba(var(--primary-rgb), 0.22);
}

.section-heading {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    border-radius: 9999px;
    background: var(--primary-hex);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--primary-dark-hex);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
    border-radius: 9999px;
    border: 2px solid #e5e7eb;
    background: #fff;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary-hex);
    color: var(--primary-hex);
}

.btn-light {
    background: #fff;
    color: var(--ink);
    box-shadow: none;
}

.btn-light:hover {
    background: #f3f4f6;
}

.btn-on-dark {
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    background: transparent;
}

.btn-on-dark:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
}

.nav-cta-btn {
    padding: 0.625rem 1.25rem;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 9999px;
    background: var(--ink);
    transition: background 0.2s;
    text-decoration: none;
}

.nav-cta-btn:hover {
    background: var(--primary-hex);
}

/* Home + inner pages share hero background theme */
.hero-section,
.page-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background-color: #f9fafb;
    padding-top: 5.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Light hero — inner pages & landing pages (no blobs/particles) */
.page-hero--light,
.hero-section--light {
    padding-top: 4.5rem;
}

.page-hero--light .hero-shine,
.page-hero--light .hero-grid-anim,
.page-hero--light .hero-particles,
.page-hero--light .hero-blob,
.page-hero--light .hero-orbit-ring,
.page-hero--light .hero-aurora,
.hero-section--light .hero-shine,
.hero-section--light .hero-grid-anim,
.hero-section--light .hero-particles,
.hero-section--light .hero-blob,
.hero-section--light .hero-orbit-ring,
.hero-section--light .hero-aurora {
    display: none !important;
}

.page-hero--light .hero-gradient-mesh,
.hero-section--light .hero-gradient-mesh {
    animation: none;
    opacity: 0.55;
    inset: -10%;
}

.page-hero--light .page-hero-inner,
.hero-section--light .hero-centered {
    padding-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .page-hero--light,
    .hero-section--light {
        padding-top: 5rem;
    }
}

.hero-section.has-bg-img,
.page-hero.has-bg-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section.has-bg-img::before,
.page-hero.has-bg-img::before {
    background: linear-gradient(125deg, rgba(var(--primary-rgb), 0.72) 0%, rgba(var(--secondary-rgb), 0.62) 35%, rgba(var(--primary-rgb), 0.72) 70%, rgba(var(--secondary-rgb), 0.62) 100%);
    background-size: 400% 400%;
    animation: heroBgShift 10s ease infinite;
}

.hero-section.has-bg-img::after,
.page-hero.has-bg-img::after {
    display: block;
    opacity: 0.3;
}

.hero-section.has-bg-img .hero-animated-bg,
.page-hero.has-bg-img .hero-animated-bg {
    opacity: 0.8;
}

.hero-section.has-bg-img .hero-bottom-fade,
.page-hero.has-bg-img .hero-bottom-fade {
    display: block !important;
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.04) 22%,
        rgba(255, 255, 255, 0.16) 44%,
        rgba(255, 255, 255, 0.42) 68%,
        rgba(249, 250, 251, 0.88) 88%,
        #f9fafb 100%
    ) !important;
    opacity: 1 !important;
    height: 500px !important;
    max-height: 60vh !important;
    z-index: 10 !important;
    bottom: -1px !important;
}

.hero-section.has-bg-img .text-ink,
.hero-section.has-bg-img .text-gray-600,
.page-hero.has-bg-img .section-heading,
.page-hero.has-bg-img .text-slate-600 {
    color: #ffffff !important;
}

.hero-section.has-bg-img .eyebrow,
.page-hero.has-bg-img .eyebrow {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.hero-section.has-bg-img .hero-centered .text-body,
.hero-section.has-bg-img .hero-centered .text-body-muted {
    color: rgba(241, 245, 249, 0.92) !important;
    text-shadow: 0 1px 12px rgba(2, 6, 23, 0.35);
}

.hero-section.has-bg-img .hero-centered > ul,
.hero-section.has-bg-img .hero-stack__badges {
    gap: 0.5rem 0.65rem !important;
}

.hero-section.has-bg-img .hero-centered > ul > li,
.hero-section.has-bg-img .hero-stack__badges > li {
    color: rgba(248, 250, 252, 0.95) !important;
    background: rgba(15, 23, 42, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    backdrop-filter: blur(4px);
}

.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.hero-section > .site-container {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.hero-centered {
    text-align: center;
}

.hero-centered .eyebrow {
    margin-left: auto;
    margin-right: auto;
}

/* Hero content rhythm — flex gap (not transforms) keeps title/lead apart */
.hero-section .hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 52rem;
    gap: 0.9rem;
}

.hero-section .hero-stack > .eyebrow {
    max-width: min(42rem, 100%);
    margin: 0;
    padding: 0.55rem 1.15rem;
    line-height: 1.55;
    letter-spacing: 0.04em;
    white-space: normal;
    text-wrap: balance;
}

.hero-section .hero-stack > .section-heading {
    margin: 0;
    max-width: 46rem;
    line-height: 1.22;
    text-wrap: balance;
    position: relative;
    z-index: 1;
}

.hero-section .hero-stack > .hero-stack__lead {
    margin: 0;
    max-width: 40rem;
    line-height: 1.6;
    position: relative;
    z-index: 0;
}

.hero-section .hero-stack > .hero-stack__cta {
    margin: 0;
    padding-top: 0.15rem;
}

.hero-section .hero-stack > .hero-stack__cta .btn-primary,
.hero-section .hero-stack > .hero-stack__cta .btn-outline {
    min-height: 3rem;
    line-height: 1.25;
}

.hero-section .hero-stack > .hero-stack__badges {
    margin: 0;
    padding-top: 0.15rem;
    max-width: 46rem;
}

/* Never let reveal transforms pull hero title over the lead */
.hero-section .hero-stack > [data-animate],
.page-hero .page-hero-content > [data-animate] {
    transform: none;
}

@media (min-width: 768px) {
    .hero-section .hero-stack {
        gap: 1.05rem;
    }
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 6.5rem;
    }
    .hero-section > .site-container {
        padding-bottom: 2.5rem;
    }
}

.hero-section::before,
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(125deg, #fff 0%, var(--hero-tint-1, #ffe8e9) 35%, #fff 70%, var(--hero-tint-2, #ffebec) 100%);
    background-size: 400% 400%;
    animation: heroBgShift 10s ease infinite;
}

.hero-section::after,
.page-hero::after {
    content: "";
    position: absolute;
    width: min(50%, 520px);
    height: 50%;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.4) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    pointer-events: none;
    animation: heroOrb1 12s ease-in-out infinite;
}

@keyframes heroBgShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes heroOrb1 {
    0%, 100% { transform: translateX(-50%) translate(0, 0) scale(1); }
    50% { transform: translateX(-50%) translate(-40px, 30px) scale(1.15); }
}

/* Animated hero background — full section, no side gap */
.hero-animated-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

/* Smooth fade into next section — no visible hard end line */
.hero-bottom-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: min(55%, 420px);
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 38%,
        rgba(255, 255, 255, 0.82) 72%,
        #ffffff 100%
    );
}

.hero-gradient-mesh {
    position: absolute;
    inset: -20%;
    z-index: 1;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(var(--primary-rgb), 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 45% at 80% 60%, rgba(var(--secondary-rgb), 0.22) 0%, transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 0%, rgba(var(--primary-rgb), 0.16) 0%, transparent 45%);
    animation: hero-mesh-pulse 8s ease-in-out infinite alternate;
}

/* Aurora ribbon waves */
.hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-aurora-band {
    position: absolute;
    width: 140%;
    height: 45%;
    left: -20%;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.55;
    will-change: transform;
}

.hero-aurora-band-1 {
    top: 5%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--primary-rgb), 0.45) 35%,
        rgba(var(--secondary-rgb), 0.35) 65%,
        transparent 100%
    );
    animation: hero-aurora-drift-1 14s ease-in-out infinite;
}

.hero-aurora-band-2 {
    top: 28%;
    height: 38%;
    background: linear-gradient(
        100deg,
        transparent 10%,
        rgba(var(--secondary-rgb), 0.3) 45%,
        rgba(var(--primary-rgb), 0.25) 70%,
        transparent 95%
    );
    animation: hero-aurora-drift-2 18s ease-in-out infinite;
    opacity: 0.45;
}

.hero-aurora-band-3 {
    bottom: 8%;
    height: 42%;
    background: linear-gradient(
        85deg,
        transparent 0%,
        rgba(var(--primary-rgb), 0.2) 40%,
        rgba(255, 255, 255, 0.35) 60%,
        transparent 100%
    );
    animation: hero-aurora-drift-3 16s ease-in-out infinite reverse;
    opacity: 0.5;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    will-change: transform;
}

.hero-blob-1 {
    z-index: 1;
    width: min(480px, 70vw);
    height: min(480px, 70vw);
    top: -20%;
    right: 0;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.5) 0%, transparent 68%);
    opacity: 0.9;
    animation: hero-blob-drift-1 10s ease-in-out infinite;
}

.hero-blob-2 {
    z-index: 1;
    width: min(380px, 65vw);
    height: min(380px, 65vw);
    bottom: -15%;
    left: -12%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.42) 0%, transparent 68%);
    opacity: 0.85;
    animation: hero-blob-drift-2 12s ease-in-out infinite;
}

.hero-blob-3 {
    z-index: 1;
    width: min(260px, 45vw);
    height: min(260px, 45vw);
    top: 35%;
    left: 30%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.38) 0%, transparent 70%);
    opacity: 0.75;
    animation: hero-blob-drift-3 9s ease-in-out infinite;
}

.hero-blob-4 {
    z-index: 1;
    width: min(200px, 35vw);
    height: min(200px, 35vw);
    top: 12%;
    left: 55%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.35) 0%, transparent 72%);
    opacity: 0.7;
    animation: hero-blob-drift-4 11s ease-in-out infinite;
}

/* Subtle rotating orbit rings */
.hero-orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    pointer-events: none;
    z-index: 1;
}

.hero-orbit-ring-1 {
    width: min(520px, 85vw);
    height: min(520px, 85vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: hero-orbit-spin 28s linear infinite;
}

.hero-orbit-ring-2 {
    width: min(340px, 60vw);
    height: min(340px, 60vw);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: dashed;
    border-color: rgba(var(--secondary-rgb), 0.15);
    animation: hero-orbit-spin-rev 22s linear infinite;
}

.hero-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 255, 255, 0.35) 50%,
        transparent 60%
    );
    animation: hero-shine-sweep 6s ease-in-out infinite;
}

.hero-grid-anim {
    position: absolute;
    inset: -50%;
    z-index: 1;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    -webkit-mask-image: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 1) 30%,
        rgba(0, 0, 0, 0.55) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    animation: hero-grid-slide 25s linear infinite;
    transform: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-particles span {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-hex);
    box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.5);
    animation: hero-particle-float 12s ease-in-out infinite;
}

.hero-next-section {
    margin-top: -4.5rem;
    padding-top: 0;
    padding-bottom: 2rem;
    position: relative;
    z-index: 5;
    background: transparent;
}

@media (min-width: 768px) {
    .hero-next-section {
        margin-top: -5.5rem;
        padding-bottom: 2.5rem;
    }
}

.hero-particles span:nth-child(1) { left: 8%; top: 20%; animation-delay: 0s; animation-duration: 11s; }
.hero-particles span:nth-child(2) { left: 22%; top: 65%; animation-delay: -2s; width: 4px; height: 4px; }
.hero-particles span:nth-child(3) { left: 45%; top: 15%; animation-delay: -4s; animation-duration: 14s; }
.hero-particles span:nth-child(4) { left: 62%; top: 75%; animation-delay: -1s; width: 5px; height: 5px; }
.hero-particles span:nth-child(5) { left: 78%; top: 30%; animation-delay: -3s; animation-duration: 10s; }
.hero-particles span:nth-child(6) { left: 88%; top: 55%; animation-delay: -5s; width: 4px; height: 4px; }
.hero-particles span:nth-child(7) { left: 35%; top: 85%; animation-delay: -2.5s; }
.hero-particles span:nth-child(8) { left: 55%; top: 45%; animation-delay: -6s; animation-duration: 13s; width: 5px; height: 5px; }
.hero-particles span:nth-child(9) { left: 15%; top: 42%; animation-delay: -3.5s; width: 3px; height: 3px; }
.hero-particles span:nth-child(10) { left: 68%; top: 18%; animation-delay: -7s; animation-duration: 15s; }
.hero-particles span:nth-child(11) { left: 92%; top: 72%; animation-delay: -1.5s; width: 6px; height: 6px; }
.hero-particles span:nth-child(12) { left: 48%; top: 68%; animation-delay: -4.5s; animation-duration: 9s; width: 3px; height: 3px; }

/* Hero content entrance */
.hero-content-in {
    opacity: 0;
    transform: translateY(24px);
    animation: hero-content-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes hero-mesh-pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.9; }
    100% { transform: scale(1.08) translate(2%, -2%); opacity: 1; }
}

@keyframes hero-blob-drift-1 {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    33% { transform: translate(-50px, 40px) scale(1.12) rotate(8deg); }
    66% { transform: translate(35px, -25px) scale(0.92) rotate(-5deg); }
}

@keyframes hero-blob-drift-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(55px, -45px) scale(1.15); }
}

@keyframes hero-blob-drift-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.65; }
    50% { transform: translate(-40px, 35px) scale(1.1); opacity: 1; }
}

@keyframes hero-blob-drift-4 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(-30px, 50px) scale(1.08); }
    70% { transform: translate(25px, -20px) scale(0.95); }
}

@keyframes hero-aurora-drift-1 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(-2deg) scale(1); }
    50% { transform: translateX(6%) translateY(-4%) rotate(3deg) scale(1.06); }
}

@keyframes hero-aurora-drift-2 {
    0%, 100% { transform: translateX(0) translateY(0) rotate(1deg); }
    50% { transform: translateX(-5%) translateY(5%) rotate(-2deg); }
}

@keyframes hero-aurora-drift-3 {
    0%, 100% { transform: translateX(0) scaleX(1); }
    50% { transform: translateX(4%) scaleX(1.08); }
}

@keyframes hero-orbit-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes hero-orbit-spin-rev {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes hero-grid-slide {
    0% { background-position: 0 0; }
    100% { background-position: 40px 40px; }
}

@keyframes hero-shine-sweep {
    0%, 100% { left: -100%; opacity: 0; }
    10% { opacity: 1; }
    50% { left: 120%; opacity: 1; }
    60% { opacity: 0; }
}

@keyframes hero-particle-float {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.4; }
    50% { transform: translateY(-35px) scale(1.2); opacity: 0.9; }
}

@keyframes hero-content-in {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-section.has-bg-img .hero-aurora-band {
    opacity: 0.35;
}

.hero-section.has-bg-img .hero-orbit-ring {
    border-color: rgba(255, 255, 255, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .hero-gradient-mesh,
    .hero-aurora-band,
    .hero-blob,
    .hero-orbit-ring,
    .hero-shine,
    .hero-grid-anim,
    .hero-particles span,
    .hero-content-in,
    .hero-section::before,
    .hero-section::after {
        animation: none;
    }
    .hero-content-in {
        opacity: 1;
        transform: none;
    }
}

.stats-bar {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        135deg,
        var(--ink) 0%,
        #1e293b 45%,
        rgba(var(--primary-rgb), 0.9) 100%
    );
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 24px 48px -14px rgba(17, 24, 39, 0.4),
        0 12px 28px -10px rgba(var(--primary-rgb), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stats-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 80% at 0% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse 60% 70% at 100% 100%, rgba(var(--primary-rgb), 0.25) 0%, transparent 50%);
}

.stats-bar > .row {
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .stats-bar {
        padding: 2.75rem 2.5rem;
        border-radius: 1.5rem;
    }
}

.stats-bar__item {
    text-align: center;
}

@media (min-width: 768px) {
    .stats-bar__item {
        padding: 0 2rem;
    }

    .stats-bar__item + .stats-bar__item {
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }
}

.stat-num {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.5rem;
}

.stats-bar__desc {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 0.5rem;
    margin-bottom: 0;
    line-height: 1.45;
}

.card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: box-shadow 0.25s, border-color 0.25s;
}

.card:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 8px 24px -8px rgba(var(--primary-rgb), 0.12);
}

.card-sm {
    padding: 1.25rem;
}

/* Cards inside service page HTML content (from admin editor) */
.service-about-content .grid-cards-3,
.service-page-content .grid-cards-3 {
    margin: 2rem 0;
}

.service-about-content .card,
.service-page-content .card {
    margin-top: 0;
}

.service-about-content .card-title,
.service-page-content.prose .card-title {
    margin-top: 0;
    color: #1a0a0a;
}

.service-about-content .card-desc,
.service-page-content.prose .card-desc {
    margin-bottom: 0;
    color: #4b5563;
}

.service-about-content h2,
.service-about-content h3,
.service-page-content.prose h2,
.service-page-content.prose h3 {
    color: #1a0a0a;
}

/* Service page — About Content (TinyMCE / rich HTML) */
.service-about-section {
    position: relative;
    overflow: visible;
}

.service-about-wrap {
    max-width: 52rem;
    margin: 0 auto;
    overflow: visible;
}

.service-about-panel {
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

@media (min-width: 768px) {
    .service-about-panel {
        padding: 2.5rem 3rem;
        border-radius: 1.75rem;
    }
}

.service-about-content {
    text-align: center;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.8;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.service-about-content ul,
.service-about-content ol {
    text-align: left;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
}

.service-about-content > :first-child {
    margin-top: 0 !important;
}

.service-about-content > :last-child {
    margin-bottom: 0 !important;
}

.service-about-content p {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #4b5563;
}

.service-about-content p:empty {
    display: none;
}

.service-about-content h1,
.service-about-content h2 {
    margin: 2rem 0 1rem;
    font-size: clamp(1.375rem, 2.5vw, 1.75rem);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.service-about-content h3 {
    margin: 1.75rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}

.service-about-content h4,
.service-about-content h5,
.service-about-content h6 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
}

.service-about-content ul,
.service-about-content ol {
    margin: 0 0 1.25rem;
    padding-left: 1.35rem;
}

.service-about-content ul {
    list-style: disc;
}

.service-about-content ol {
    list-style: decimal;
}

.service-about-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    color: #4b5563;
}

.service-about-content li::marker {
    color: var(--primary-hex);
}

.service-about-content a {
    color: var(--primary-hex);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.service-about-content a:hover {
    color: var(--primary-dark-hex);
}

.service-about-content strong,
.service-about-content b {
    font-weight: 700;
    color: var(--ink);
}

.service-about-content em,
.service-about-content i {
    font-style: italic;
}

.service-about-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--primary-hex);
    background: rgba(var(--primary-rgb), 0.05);
    border-radius: 0 0.75rem 0.75rem 0;
    color: #374151;
    font-style: italic;
}

.service-about-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    border-radius: 1rem;
    box-shadow: 0 8px 24px -12px rgba(15, 23, 42, 0.2);
}

.service-table-wrap {
    width: 100%;
    max-width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    overflow-y: clip;
    -webkit-overflow-scrolling: touch;
}

.service-about-content table,
.service-pricing-content table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.9375rem;
    display: table;
    overflow: visible;
}

.service-about-content div:not(.service-table-wrap),
.service-about-content section,
.service-about-content article,
.service-pricing-content div:not(.service-table-wrap),
.service-pricing-content section,
.service-pricing-content article {
    overflow: visible !important;
    max-height: none !important;
}

.service-about-content th,
.service-about-content td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.875rem;
    text-align: left;
}

.service-about-content th {
    background: #f9fafb;
    font-weight: 700;
    color: var(--ink);
}

.service-about-content hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.service-about-content .card {
    height: auto;
    overflow: visible;
    margin-bottom: 1rem;
}

.service-about-content iframe,
.service-about-content video {
    max-width: 100%;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

.service-page-content .card {
    margin-top: 0;
}

.prose-invert ul {
    list-style: none !important;
    padding-left: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 1.5rem !important;
}

@media (min-width: 768px) {
    .prose-invert ul {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.prose-invert li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem !important;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    display: flex !important;
    flex-direction: column;
}

.prose-invert li:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-hex);
    transform: translateY(-5px);
}

.prose-invert li strong {
    color: #ffffff;
    font-size: 1.25rem;
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Bullet points inside the card */
.prose-invert li span {
    display: block;
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.prose-invert li span::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-hex);
    font-weight: bold;
}

/* Base prose typography (blog, landing, service content) */
.prose,
.prose-sm {
    color: #4b5563;
    line-height: 1.75;
    max-width: 65ch;
}

.prose :where(p, ul, ol, blockquote, pre, table) {
    margin-top: 1em;
    margin-bottom: 1em;
}

.prose :where(h1, h2, h3, h4) {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.prose :where(ul, ol) {
    padding-left: 1.25rem;
}

.prose :where(a) {
    color: var(--primary-hex);
    text-decoration: underline;
}

.prose-sm {
    font-size: 0.9375rem;
}

/* Blog detail content should use full available width */
.blog-detail-content.prose,
.blog-detail-content.prose-sm {
    max-width: 100% !important;
}

/* Home-aligned typography, spacing & card parts */
.section-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .section-intro {
        margin-bottom: 3rem;
    }
}

.text-body {
    color: #4b5563;
    line-height: 1.625;
}

.text-body-sm {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
}

.grid-2 {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

.grid-2 > * {
    min-width: 0;
}

@media (min-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.grid-cards-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .grid-cards-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (min-width: 992px) {
    .grid-cards-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-list-stack {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .blog-list-stack {
        gap: 1.5rem;
    }
}

.card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--admin-tint-2, #fef2f2);
    color: var(--primary-hex);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.card-meta {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    display: block;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 0.75rem;
}

.card-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-hex);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.hero-img-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.hero-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.info-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.info-row + .info-row {
    margin-top: 1rem;
}

.info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #9ca3af;
    margin-bottom: 0.25rem;
    display: block;
}

.info-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.stat-inline-num {
    display: block;
    font-size: clamp(1.875rem, 4vw, 2.25rem);
    font-weight: 800;
    color: var(--primary-hex);
    line-height: 1;
}

.stat-inline-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.card--dark {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.card--dark .card-title {
    color: #fff;
}

.card--dark .card-desc,
.card--dark p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Slightly larger white cards (Vision / Mission — matches home, not dark panel) */
.card-lg {
    padding: 1.75rem;
}

@media (min-width: 768px) {
    .card-lg {
        padding: 2rem;
    }
}

.card-title-lg {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.625rem;
    line-height: 1.3;
}

@media (min-width: 768px) {
    .card-title-lg {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
}

.form-label {
    display: block;
    font-family: var(--site-font-ui);
    font-size: var(--site-fs-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    min-height: var(--site-input-height);
    padding: 0.625rem 0.875rem;
    font-family: var(--site-font-ui);
    font-size: var(--site-fs-input);
    font-weight: 600;
    color: var(--ink);
    background: var(--site-input-bg);
    border: 1px solid var(--site-input-border);
    border-radius: var(--site-input-radius);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-input:focus {
    border-color: var(--primary-hex);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

/* Compact solution boxes (Growth Strategies) */
.solution-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.solution-card:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 4px 16px -4px rgba(var(--primary-rgb), 0.12);
}

.solution-card-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--primary-hex);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.solution-card-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.solution-card-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    flex-grow: 1;
}

.solution-card-list li {
    position: relative;
    padding-left: 0.875rem;
    margin-bottom: 0.35rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    color: #6b7280;
}

.solution-card-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-hex);
}

.solution-card-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    background: var(--primary-hex);
    border-radius: 9999px;
    text-decoration: none;
    transition: background 0.2s;
}

.solution-card-btn:hover {
    background: var(--primary-dark-hex);
}

/* ========== Service detail page ========== */
.service-page {
    overflow: visible;
}

.service-page-section {
    position: relative;
    padding: 3.5rem 0;
    overflow: visible;
}

@media (min-width: 768px) {
    .service-page-section {
        padding: 5rem 0;
    }
}

.service-page-section--muted {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.service-page-section--gradient {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        rgba(var(--primary-rgb), 0.05) 26%,
        #fff7f8 54%,
        rgba(var(--secondary-rgb), 0.05) 100%
    );
}

.service-page-section--gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(var(--primary-rgb), 0.11) 0%, transparent 58%),
        radial-gradient(ellipse 68% 56% at 100% 100%, rgba(var(--secondary-rgb), 0.09) 0%, transparent 60%);
}

.service-page-section--gradient > .site-container {
    position: relative;
    z-index: 1;
}

.service-section-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    overflow: visible;
}

.service-section-head--left {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}

.service-section-head .section-heading {
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.service-section-head__desc {
    margin: 1rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #6b7280;
}

/* Key Features */
.service-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width: 768px) {
    .service-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.service-feature-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    overflow: visible;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.08);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-feature-card:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    box-shadow: 0 16px 40px -12px rgba(var(--primary-rgb), 0.18);
    transform: translateY(-4px);
}

.service-feature-card__icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, rgba(var(--primary-rgb), 0.06) 100%);
    color: var(--primary-hex);
    transition: transform 0.25s ease, background 0.25s ease;
}

.service-feature-card:hover .service-feature-card__icon {
    transform: scale(1.06);
    background: rgba(var(--primary-rgb), 0.14);
}

.service-feature-card__body {
    flex: 1;
    min-width: 0;
    overflow: visible;
}

.service-feature-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.service-feature-card__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #64748b;
    overflow: visible;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

/* Why Choose Us */
.service-why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .service-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .service-why-grid[data-count="3"],
    .service-why-grid[data-count="6"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.service-why-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-why-card:hover {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 16px 40px -12px rgba(var(--primary-rgb), 0.15);
    transform: translateY(-4px);
}

.service-why-card__icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    color: var(--primary-hex);
    transition: transform 0.25s ease;
}

.service-why-card:hover .service-why-card__icon {
    transform: scale(1.05);
}

.service-why-card__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--ink);
}

.service-why-card__desc {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #64748b;
    flex: 1;
}

/* Our Process */
.service-process-section {
    overflow-x: clip;
    overflow-y: visible;
}

.service-process-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 45% at 10% 0%, rgba(var(--primary-rgb), 0.07) 0%, transparent 55%),
        radial-gradient(ellipse 45% 40% at 95% 100%, rgba(var(--secondary-rgb), 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.service-process-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .service-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .service-process-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.service-process-step {
    position: relative;
    min-width: 0;
}

.service-process-step__inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
    padding: 1.75rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1.25rem;
    box-shadow: 0 4px 20px -8px rgba(15, 23, 42, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-process-step:hover .service-process-step__inner,
.service-process-step:focus-within .service-process-step__inner {
    border-color: rgba(var(--primary-rgb), 0.28);
    box-shadow: 0 16px 40px -12px rgba(var(--primary-rgb), 0.18);
    transform: translateY(-4px);
}

.service-process-step__badge {
    display: flex;
    align-items: center;
}

.service-process-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-hex) 0%, var(--primary-dark, var(--primary-hex)) 100%);
    box-shadow: 0 8px 22px -6px rgba(var(--primary-rgb), 0.55);
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-process-step:hover .service-process-step__number {
    transform: scale(1.06);
}

.service-process-step__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
}

.service-process-step__desc {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #64748b;
}

.service-process-connector {
    display: none;
}

@media (min-width: 1024px) {
    .service-process-step:not(:nth-child(3n)) .service-process-connector {
        display: block;
        position: absolute;
        top: 2.6rem;
        right: -0.95rem;
        width: 1.75rem;
        height: 2px;
        background: linear-gradient(90deg, rgba(var(--primary-rgb), 0.5), rgba(var(--primary-rgb), 0.1));
        z-index: 2;
        pointer-events: none;
    }

    .service-process-step:not(:nth-child(3n)) .service-process-connector::after {
        content: '';
        position: absolute;
        right: -2px;
        top: 50%;
        width: 7px;
        height: 7px;
        margin-top: -3.5px;
        border-radius: 50%;
        background: var(--primary-hex);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    }
}

@media (max-width: 767px) {
    .service-process-step:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 1.6rem;
        top: 4.75rem;
        bottom: -1.25rem;
        width: 2px;
        background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.35), rgba(var(--primary-rgb), 0.06));
        z-index: 0;
        pointer-events: none;
    }

    .service-process-step__inner {
        position: relative;
        z-index: 1;
    }
}

/* Pricing */
.service-pricing-section {
    background:
        linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    overflow: hidden;
}

.service-pricing-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 65% 50% at 15% 20%, rgba(var(--primary-rgb), 0.32) 0%, transparent 62%),
        radial-gradient(ellipse 58% 48% at 85% 82%, rgba(var(--secondary-rgb), 0.28) 0%, transparent 64%),
        linear-gradient(120deg, rgba(var(--primary-rgb), 0.15), rgba(var(--secondary-rgb), 0.14), rgba(var(--primary-rgb), 0.1));
    background-size: 140% 140%, 140% 140%, 220% 220%;
    animation: service-pricing-aurora 9s ease-in-out infinite;
    opacity: 1;
}

.service-pricing-section .service-section-head .eyebrow {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.22);
    color: var(--primary-hex);
}

.service-pricing-section .section-heading {
    color: var(--ink);
}

.service-pricing-section .service-section-head__desc {
    color: #64748b;
}

.service-pricing-glow {
    position: absolute;
    top: -14%;
    right: -10%;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.14);
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

.service-pricing-panel {
    max-width: 54rem;
    margin: 0 auto;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 1.75rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow:
        0 18px 44px -24px rgba(15, 23, 42, 0.24);
}

.service-pricing-panel::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 56%;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(var(--secondary-rgb), 0.03), rgba(var(--secondary-rgb), 0));
}

@media (min-width: 768px) {
    .service-pricing-panel {
        padding: 1.75rem 2rem;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 1.5rem;
        align-items: end;
    }
}

.service-pricing-cta {
    margin-top: 1.15rem;
    text-align: center;
}

.service-pricing-content {
    color: #475569;
    position: relative;
    z-index: 1;
}

.service-pricing-content :where(p, li, td, th, strong, span) {
    color: inherit;
}

.service-pricing-content p {
    margin-bottom: 0.7rem;
}

.service-pricing-content strong {
    color: #0f172a;
    font-weight: 700;
}

.service-pricing-richtext :where(ul, ol) {
    margin: 0.95rem 0;
    padding-left: 1.2rem;
}

.service-pricing-richtext :where(li) {
    margin-bottom: 0.45rem;
    color: #475569;
}

@media (min-width: 768px) {
    .service-pricing-cta {
        margin-top: 0;
        text-align: right;
        align-self: end;
    }
}

@keyframes service-pricing-aurora {
    0% {
        background-position: 0% 0%, 100% 100%, 0% 50%;
        filter: saturate(100%);
    }
    50% {
        background-position: 35% 20%, 70% 80%, 100% 50%;
        filter: saturate(115%);
    }
    100% {
        background-position: 0% 0%, 100% 100%, 0% 50%;
        filter: saturate(100%);
    }
}

/* Blog on service page */
.service-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .service-blog-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.75rem;
    }
}

.service-blog-footer {
    margin-top: 2.5rem;
    text-align: center;
}

/* FAQ */
.service-faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-faq-item {
    padding: 1.5rem 1.75rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 1.25rem;
    box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-faq-item:hover {
    border-color: rgba(var(--primary-rgb), 0.25);
    box-shadow: 0 8px 24px -8px rgba(var(--primary-rgb), 0.12);
}

.service-faq-item__q {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.service-faq-item__num {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-hex);
    letter-spacing: 0.08em;
    padding-top: 0.2rem;
}

.service-faq-item__title {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--ink);
}

.service-faq-item__a {
    margin: 0 0 0 2.25rem;
    font-size: 0.9rem;
    line-height: 1.75;
    color: #64748b;
}

@media (max-width: 640px) {
    .service-faq-item__a {
        margin-left: 0;
        padding-top: 0.25rem;
    }
}

.cta-banner {
    background: linear-gradient(135deg, var(--ink) 0%, var(--secondary-hex) 100%);
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
}

@media (min-width: 768px) {
    .cta-banner {
        padding: 2.5rem 2rem;
        border-radius: 1rem;
    }
}

.cta-banner .section-heading {
    color: #fff;
}

.page-hero-inner {
    position: relative;
    z-index: 10;
    padding: 2.5rem 0 3.5rem;
}

/* Inner pages: light gradient hero keeps dark readable headings */
.page-hero:not(.has-bg-img) .section-heading {
    color: var(--ink);
}

.page-hero:not(.has-bg-img) .eyebrow {
    color: var(--primary-hex);
    background: var(--admin-tint-2, #fef2f2);
    border-color: rgba(var(--primary-rgb), 0.22);
}

.page-hero:not(.has-bg-img) .text-slate-600 {
    color: #475569;
}

@media (min-width: 768px) {
    .page-hero {
        padding-top: 6.5rem;
    }
    .page-hero-inner {
        padding: 3.5rem 0 4.5rem;
    }
}

.page-hero-content {
    max-width: 48rem;
}

.page-hero-content--left {
    max-width: 56rem;
    margin-left: 0;
    margin-right: auto;
    text-align: left;
}

.page-hero-meta {
    max-width: 56rem;
}

.page-hero-breadcrumb {
    position: relative;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
}

.page-hero-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
}

.page-hero-breadcrumb a:hover {
    color: var(--primary-hex);
}

.page-hero-breadcrumb .is-current {
    color: var(--ink);
}

/* Consistent section rhythm (matches home) */
.section-block {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-block {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.section-block--muted {
    background-color: #f9fafb;
}

.about-purpose-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        rgba(var(--primary-rgb), 0.06) 30%,
        #fff6f7 58%,
        rgba(var(--secondary-rgb), 0.05) 100%
    );
}

.about-purpose-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 0% 0%, rgba(var(--primary-rgb), 0.14) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 100% 100%, rgba(var(--secondary-rgb), 0.1) 0%, transparent 62%);
}

.about-purpose-section > .site-container {
    position: relative;
    z-index: 1;
}

.services-cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        130deg,
        #f8fbff 0%,
        rgba(var(--secondary-rgb), 0.08) 35%,
        rgba(var(--primary-rgb), 0.07) 100%
    );
}

.services-cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 75% 55% at 12% 0%, rgba(var(--secondary-rgb), 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 88% 100%, rgba(var(--primary-rgb), 0.1) 0%, transparent 62%);
}

.services-cta-section > .site-container {
    position: relative;
    z-index: 1;
}

.section-kicker {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-hex);
}

/* Navbar — solid white + soft right-side brand gradient */
#main-header {
    background:
        linear-gradient(
            270deg,
            rgba(var(--primary-rgb), 0.1) 0%,
            rgba(var(--primary-rgb), 0.04) 28%,
            rgba(255, 255, 255, 0) 58%
        ),
        #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
    overflow: visible;
    z-index: 200;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

#nav-container,
#nav-container .site-container,
#nav-container .site-container > .grid,
#nav-container .nav-menu {
    overflow: visible;
}

.header-scrolled {
    background:
        linear-gradient(
            270deg,
            rgba(var(--primary-rgb), 0.12) 0%,
            rgba(var(--primary-rgb), 0.05) 30%,
            rgba(255, 255, 255, 0) 62%
        ),
        #ffffff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: rgba(var(--primary-rgb), 0.1);
    box-shadow: 0 4px 24px -12px rgba(17, 24, 39, 0.12);
}

.header-scrolled-deep {
    background:
        linear-gradient(
            270deg,
            rgba(var(--primary-rgb), 0.14) 0%,
            rgba(var(--primary-rgb), 0.05) 32%,
            rgba(255, 255, 255, 0) 65%
        ),
        #ffffff;
    box-shadow: 0 8px 28px -14px rgba(17, 24, 39, 0.14);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    #main-header,
    .header-scrolled,
    .header-scrolled-deep {
        background:
            linear-gradient(
                270deg,
                rgba(var(--primary-rgb), 0.1) 0%,
                rgba(255, 255, 255, 0) 55%
            ),
            #ffffff;
    }
}

.site-logo {
    height: 2.75rem;
    width: auto;
    max-width: 11rem;
    object-fit: contain;
}

@media (min-width: 1280px) {
    .site-logo { height: 3rem; max-width: 12rem; }
}

#nav-container .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
}

#nav-container .nav-link:hover { color: var(--primary-hex); }

#nav-container .nav-link.is-active,
#nav-container .nav-link.is-active:hover {
    color: var(--primary-hex);
}

#nav-container .nav-link--plain.is-active::after {
    width: 100%;
}

#nav-container .nav-item-dropdown.is-active > .nav-link {
    color: var(--primary-hex);
}

.nav-dropdown a.is-active,
.nav-dropdown a.is-active:hover {
    color: var(--primary-hex);
    background: rgba(var(--primary-rgb), 0.08);
}

/* Mobile menu drawer — background follows admin theme / logo brand color */
.site-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    flex-direction: column;
    background-color: var(--secondary-hex);
    background-image:
        radial-gradient(ellipse 95% 65% at 50% -8%, rgba(var(--primary-rgb), 0.42) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 100% 100%, rgba(var(--primary-rgb), 0.18) 0%, transparent 52%),
        linear-gradient(168deg, var(--primary-dark-hex) 0%, var(--secondary-hex) 38%, #070608 100%);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #ffffff;
    font-family: var(--site-font-ui, 'Plus Jakarta Sans', system-ui, sans-serif);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    overflow: hidden;
}

.site-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
}

.site-mobile-menu__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1.75rem;
    -webkit-overflow-scrolling: touch;
}

.site-mobile-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.site-mobile-menu__logo {
    height: 1.85rem;
    width: auto;
    max-width: 9rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.site-mobile-menu__brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.site-mobile-menu__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(var(--primary-rgb), 0.35);
    border-radius: 0.75rem;
    background: rgba(var(--primary-rgb), 0.12);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.site-mobile-menu__close:hover {
    background: rgba(var(--primary-rgb), 0.22);
    border-color: rgba(var(--primary-rgb), 0.5);
}

.site-mobile-menu__close svg {
    width: 1.35rem;
    height: 1.35rem;
}

.site-mobile-menu__nav {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-mobile-menu__item {
    margin: 0;
    padding: 0;
}

.site-mobile-menu__link {
    display: block;
    padding: 0.35rem 0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-mobile-menu__link:hover,
.site-mobile-menu__link:focus-visible {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.45);
}

.site-mobile-menu__link.is-active {
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 18px rgba(var(--primary-rgb), 0.35);
}

.site-mobile-menu__item.is-active > .site-mobile-menu__link::before {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-right: 0.5rem;
    border-radius: 9999px;
    background: rgba(var(--primary-rgb), 0.95);
    vertical-align: middle;
    box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.65);
}

.site-mobile-menu__subnav {
    list-style: none;
    margin: 0.15rem 0 0.65rem;
    padding: 0.35rem 0 0.35rem 0.85rem;
    border-left: 2px solid rgba(var(--primary-rgb), 0.65);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.site-mobile-menu__sublink {
    display: block;
    padding: 0.25rem 0.5rem 0.25rem 0;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-mobile-menu__sublink:hover,
.site-mobile-menu__sublink:focus-visible {
    color: #ffffff;
    padding-left: 0.25rem;
}

.site-mobile-menu__sublink.is-active,
.site-mobile-menu__sublink.is-active:hover {
    color: #ffffff;
    font-weight: 600;
    padding-left: 0.25rem;
}

.site-mobile-menu__footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(var(--primary-rgb), 0.28);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.site-mobile-menu__contacts {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.site-mobile-menu__contact {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-mobile-menu__contact:hover {
    color: #ffffff;
}

.site-mobile-menu__contact-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
    color: var(--primary-hex);
}

.site-mobile-menu__cta {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

html.mobile-menu-open,
html.mobile-menu-open body {
    overflow: hidden;
}

@media (min-width: 1024px) {
    .site-mobile-menu {
        display: none !important;
    }
}

@media (min-width: 390px) {
    .site-mobile-menu__inner {
        padding: 1.25rem 1.35rem 1.75rem;
    }

    .site-mobile-menu__link {
        font-size: 1.0625rem;
    }
}

#nav-container .nav-chevron {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

#nav-container .nav-link--plain::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-hex);
    transition: width 0.2s;
}

#nav-container .nav-link--plain {
    position: relative;
}

#nav-container .nav-link--plain:hover::after { width: 100%; }

/* Nav dropdown menus */
.nav-item-dropdown {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    min-width: 16rem;
    width: max-content;
    max-width: 18rem;
    padding: 0.5rem 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 1rem;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 300;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    right: 0;
    height: 14px;
}

.nav-dropdown li {
    position: relative;
    z-index: 1;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-item-dropdown:hover .nav-chevron,
.nav-item-dropdown:focus-within .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown a {
    display: block;
    padding: 0.625rem 1.5rem;
    font-size: 12px;
    font-weight: 700;
    color: #4b5563;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}

.nav-dropdown a:hover {
    color: var(--primary-hex);
    background: #f9fafb;
}

/* ─── Rich motion (scroll-safe) ─── */
[data-animate] {
    opacity: 0;
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
}

[data-animate='rise'],
[data-animate]:not([data-animate='pop']):not([data-animate='fade']):not([data-animate='slide']) {
    transform: translate3d(0, 36px, 0);
}

[data-animate='fade'] {
    transform: translate3d(0, 12px, 0);
}

[data-animate='pop'] {
    transform: translate3d(0, 28px, 0) scale(0.94);
}

[data-animate='slide'] {
    transform: translate3d(-28px, 0, 0);
}

[data-animate].animated,
.no-js [data-animate] {
    opacity: 1;
    transform: none;
}

/* About — premium fade + multi-depth parallax (scroll-safe, no clip-path) */
.home-about-section {
    position: relative;
    overflow: visible;
}

.home-about-section .about-reveal {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-about-section .home-about-media.about-reveal {
    transition-delay: 0.02s;
}

.home-about-section .home-about-copy.about-reveal {
    transition-delay: 0.1s;
}

.home-about-section.about-in .about-reveal {
    opacity: 1;
}

.home-about-section .about-child {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1) var(--about-delay, 0s),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) var(--about-delay, 0s);
}

.home-about-section.about-in .about-child {
    opacity: 1;
    transform: none;
}

.home-about-section.about-in .list-check.about-child li {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
    animation: about-bullet-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--about-delay, 0.2s) + (var(--i, 0) * 0.07s));
}

.home-about-media__stage {
    position: relative;
    isolation: isolate;
    padding: 0.75rem;
}

.home-about-media__accent {
    position: absolute;
    inset: 0.15rem 1.1rem 1.1rem 0.15rem;
    border: 1.5px solid rgba(var(--primary-rgb), 0.22);
    border-radius: 1.4rem;
    z-index: 0;
    pointer-events: none;
    transform: translate3d(10px, 10px, 0);
    animation: about-accent-pulse 5.5s ease-in-out infinite;
}

.home-about-media__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(32px);
    opacity: 0.5;
    will-change: transform;
}

.home-about-media__orb--a {
    width: 48%;
    height: 48%;
    top: -10%;
    left: -8%;
    background: rgba(var(--primary-rgb), 0.32);
    animation: about-orb-float-a 10s ease-in-out infinite;
}

.home-about-media__orb--b {
    width: 40%;
    height: 40%;
    right: -6%;
    bottom: -8%;
    background: rgba(var(--secondary-rgb), 0.26);
    animation: about-orb-float-b 12s ease-in-out infinite;
}

.home-about-media__frame {
    position: relative;
    z-index: 1;
    box-shadow:
        0 22px 50px -20px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #f3f4f6;
}

.home-about-media__parallax {
    width: 100%;
    height: 100%;
    transform: translate3d(0, 0, 0) scale(1.14);
    will-change: transform;
    backface-visibility: hidden;
}

.home-about-media__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.home-about-media__shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        transparent 35%,
        rgba(255, 255, 255, 0.28) 48%,
        transparent 62%
    );
    transform: translateX(-120%);
    opacity: 0;
}

.home-about-section.about-in .home-about-media__shine {
    animation: about-shine-sweep 4.8s ease-in-out 0.6s infinite;
}

.home-about-media__veil {
    position: absolute;
    inset: auto 0 0 0;
    height: 38%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.18) 100%);
}

.home-about-section.about-in .home-about-copy-depth {
    transform: translate3d(0, var(--about-copy-y, 0px), 0);
    will-change: transform;
}

@keyframes about-orb-float-a {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(14px, 20px, 0) scale(1.1); }
}

@keyframes about-orb-float-b {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-16px, -12px, 0) scale(1.12); }
}

@keyframes about-accent-pulse {
    0%, 100% { opacity: 0.7; transform: translate3d(10px, 10px, 0); }
    50% { opacity: 1; transform: translate3d(14px, 14px, 0); }
}

@keyframes about-shine-sweep {
    0%, 70% { transform: translateX(-120%); opacity: 0; }
    78% { opacity: 0.9; }
    100% { transform: translateX(120%); opacity: 0; }
}

@keyframes about-bullet-in {
    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 767.98px) {
    .home-about-media__orb,
    .home-about-media__accent,
    .home-about-media__shine {
        display: none;
    }

    .home-about-media__stage {
        padding: 0;
    }

    .home-about-media__parallax {
        transform: none !important;
        will-change: auto;
    }

    .home-about-section.about-in .home-about-copy-depth {
        transform: none !important;
    }

    .home-about-section .about-child {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-about-media__orb,
    .home-about-media__accent,
    .home-about-media__shine,
    .home-about-section.about-in .list-check.about-child li {
        animation: none !important;
    }

    .home-about-media__parallax {
        transform: none !important;
        will-change: auto !important;
    }

    .home-about-section .about-child,
    .home-about-section.about-in .list-check.about-child li {
        opacity: 1 !important;
        transform: none !important;
    }

    .home-about-section.about-in .home-about-copy-depth {
        transform: none !important;
    }
}

html.native-scroll {
    overflow-x: hidden;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

html.native-scroll body {
    overflow-y: visible;
}

.hero-section,
.page-hero {
    overflow: hidden;
    isolation: isolate;
}

.hero-depth-safe .hero-animated-bg,
.hero-depth-safe .hero-gradient-mesh,
.hero-depth-safe .hero-aurora {
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
}

.hero-depth-safe .hero-centered,
.hero-depth-safe .page-hero-content {
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.hero-section.has-bg-img,
.page-hero.has-bg-img {
    background-attachment: scroll;
}

.site-motion-section .solution-card,
.site-motion-section .testimonial-card,
.site-motion-section .portfolio-card,
.site-motion-section .card,
.site-motion-section .service-feature-card,
.site-motion-section .service-why-card {
    transition:
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
    .site-motion-section .solution-card:hover,
    .site-motion-section .testimonial-card:hover,
    .site-motion-section .portfolio-card:hover,
    .site-motion-section .service-feature-card:hover,
    .site-motion-section .service-why-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 44px -20px rgba(15, 23, 42, 0.22);
    }
}

html.has-rich-motion .btn-primary,
html.has-rich-motion .btn-outline {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    html.has-rich-motion .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 28px -10px rgba(var(--primary-rgb), 0.55);
    }
}

@media (max-width: 767.98px) {
    [data-animate='rise'],
    [data-animate='pop'],
    [data-animate]:not([data-animate='fade']):not([data-animate='slide']) {
        transform: translate3d(0, 20px, 0);
    }

    [data-animate='pop'] {
        transform: translate3d(0, 18px, 0) scale(0.97);
    }

    .hero-depth-safe .hero-animated-bg,
    .hero-depth-safe .hero-gradient-mesh,
    .hero-depth-safe .hero-aurora,
    .hero-depth-safe .hero-centered,
    .hero-depth-safe .page-hero-content {
        transform: none !important;
        opacity: 1 !important;
        will-change: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html,
    html.native-scroll {
        scroll-behavior: auto;
    }

    [data-animate],
    .home-about-section .about-reveal,
    .home-about-section .about-child,
    .home-about-section .about-frame-reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
        transition-delay: 0s !important;
    }

    .hero-depth-safe .hero-animated-bg,
    .hero-depth-safe .hero-gradient-mesh,
    .hero-depth-safe .hero-aurora,
    .hero-depth-safe .hero-centered,
    .hero-depth-safe .page-hero-content {
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }

    .site-motion-section .solution-card:hover,
    .site-motion-section .testimonial-card:hover,
    .site-motion-section .portfolio-card:hover,
    html.has-rich-motion .btn-primary:hover {
        transform: none !important;
    }
}

.site-motion-section {
    position: relative;
}

section { scroll-margin-top: 90px; }

.text-ink { color: var(--ink); }
.bg-ink { background: var(--ink); }
.text-primary { color: var(--primary-hex); }
.bg-primary { background: var(--primary-hex); }

.shadow-premium {
    box-shadow: 0 20px 50px -12px rgba(var(--primary-rgb), 0.2);
}
