/* ==========================================================================
   BASE
   ========================================================================== */

:root {
    --brand-primary: #4f46e5;
    --brand-primary-hover: #4338ca;
    --brand-primary-light: #818cf8;
    --brand-primary-tint: #eef2ff;
    --color-base: #f7f6f2;
    --color-hero-brand: #1f1c52;
    --color-hero-brand-mid: #322da0;
    --color-surface: #ffffff;
    --color-heading: #1e1b4b;
    --color-text: #323030;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --radius-card: 1.5625rem;
    --radius-button: 9999px;
    --shadow-soft: 0 4px 40px rgba(0, 0, 0, 0.08);
    --font-serif: "DM Serif Display", Georgia, "Times New Roman", serif;
    --font-sans:
        "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --spacing-section: clamp(3.125rem, 0rem + 8.333vw, 6.25rem);
    --header-height: 4.75rem;
    --footer-bg: #1a1748;
    --footer-bg-mid: #221f5c;
    --footer-text: rgba(255, 255, 255, 0.72);
    --footer-heading: rgba(255, 255, 255, 0.92);
    --footer-border: rgba(255, 255, 255, 0.12);
    --footer-link-hover: #c7d2fe;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-base);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
}

::selection {
    background-color: var(--brand-primary);
    color: #ffffff;
}

.page-glow {
    display: none;
}

.back-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #4f46e5;
    color: #ffffff;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.35);
    transition:
        opacity 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.back-top:hover {
    background-color: #4338ca;
    color: #ffffff;
    transform: translateY(-2px);
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.back-top i {
    font-size: 1.125rem;
    line-height: 1;
}

/* ==========================================================================
   LAYOUT CONTAINERS & SECTION WRAPPERS
   ========================================================================== */

/* Standard Page Container */
.container-page {
    max-width: 80rem; /* max-w-7xl */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 640px) {
    .container-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}
@media (min-width: 1024px) {
    .container-page {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Light Section Padding */
.section-light {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-surface);
    scroll-margin-top: 6rem;
}

.error-page-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
}

.error-page {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-page-content {
    max-width: 56rem;
    width: 100%;
}

.error-page-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 22rem;
    padding: 3rem 1.5rem;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
    .error-page-card {
        min-height: 28rem;
        padding: 5rem 2.5rem;
    }
}

.error-page .body-text {
    margin-bottom: 2rem;
}

.error-page .careers-empty-actions {
    justify-content: center;
}

.error-page .btn-primary,
.error-page .btn-secondary {
    justify-content: center;
}

/* Dark Section Padding */
.section-dark {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background-color: #0b0f19;
    color: #ffffff;
    scroll-margin-top: 6rem;
}
@media (min-width: 640px) {
    .section-dark {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

/* Muted Section Padding */
.section-muted {
    padding-top: var(--spacing-section);
    padding-bottom: var(--spacing-section);
    background-color: var(--color-base);
    scroll-margin-top: 6rem;
}

/* ==========================================================================
     TYPOGRAPHY & HEADINGS
     ========================================================================== */

/* Section Pre-heading Tag (Light Backgrounds) */
.tag-label-light,
.eyebrow-heading {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-heading);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--brand-primary);
}

/* Section Pre-heading Tag (Dark Backgrounds) */
.tag-label-dark {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #818cf8;
    margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
    .tag-label-dark {
        font-size: 0.875rem;
    }
}

/* Primary Section Headings */
.heading-section-light {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 0.875rem + 2.333vw, 2.625rem);
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-heading);
    margin-bottom: 1rem;
    text-wrap: balance;
}

.heading-section-dark {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #ffffff;
    margin-bottom: 1rem;
}
@media (min-width: 640px) {
    .heading-section-dark {
        font-size: 2.25rem;
        line-height: 2.5rem;
    }
}

/* ==========================================================================
     BUTTONS & CALL-TO-ACTIONS
     ========================================================================== */

/* Primary Button (Indigo Filled) */
a.btn-primary,
button.btn-primary,
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 0;
    border-radius: var(--radius-button);
    font-size: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
    font-weight: 700;
    font-family: inherit;
    line-height: normal;
    color: #ffffff;
    background-color: var(--brand-primary);
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.2);
    text-decoration: none;
    cursor: pointer;
}
a.btn-primary:hover,
button.btn-primary:hover,
.btn-primary:hover,
a.btn-primary:focus-visible,
button.btn-primary:focus-visible,
.btn-primary:focus-visible {
    background-color: var(--brand-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.3);
}
a.btn-primary:active,
button.btn-primary:active,
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.22);
}
.btn-primary svg {
    width: 1rem;
    height: 1rem;
}

@media (prefers-reduced-motion: reduce) {
    a.btn-primary,
    button.btn-primary,
    .btn-primary,
    a.btn-secondary,
    .btn-secondary,
    .btn-white,
    .btn-outline-light {
        transition:
            color 0.2s ease,
            background-color 0.2s ease,
            border-color 0.2s ease,
            box-shadow 0.2s ease;
    }

    a.btn-primary:hover,
    button.btn-primary:hover,
    .btn-primary:hover,
    a.btn-primary:focus-visible,
    button.btn-primary:focus-visible,
    .btn-primary:focus-visible,
    a.btn-secondary:hover,
    .btn-secondary:hover,
    a.btn-secondary:focus-visible,
    .btn-secondary:focus-visible,
    .btn-white:hover,
    .btn-white:focus-visible,
    .btn-outline-light:hover,
    .btn-outline-light:focus-visible {
        transform: none;
    }
}

/* Secondary Button (Outline) */
a.btn-secondary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    text-decoration: none;
}
a.btn-secondary:hover,
.btn-secondary:hover,
a.btn-secondary:focus-visible,
.btn-secondary:focus-visible {
    background-color: #f8fafc;
    color: #4f46e5;
    border-color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
a.btn-secondary:active,
.btn-secondary:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Light/White Button (For Dark Banners) */
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    background-color: #ffffff;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.btn-white:hover,
.btn-white:focus-visible {
    background-color: #eef2ff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}
.btn-white:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

/* Circular Arrow Navigation Controls */
.btn-nav-control {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: 9999px;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.btn-nav-control:hover {
    background-color: #f8fafc;
}
.btn-nav-control svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ==========================================================================
     CARDS & CONTAINERS
     ========================================================================== */

/* Dark Service Card */
.card-service-dark {
    background-color: #131b2e;
    border: 1px solid #1e293b;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease-in-out;
}
@media (min-width: 640px) {
    .card-service-dark {
        padding: 2rem;
    }
}
.card-service-dark:hover {
    border-color: rgba(99, 102, 241, 0.5);
    transform: translateY(-0.25rem);
}

/* Light Service Card */
.card-service-light {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 1.5rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    scroll-margin-top: 7rem;
}
@media (min-width: 640px) {
    .card-service-light {
        padding: 2rem;
    }
}
.card-service-light:hover {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.card-service-light-expanded {
    height: 100%;
}

.icon-box-light {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.icon-box-light svg {
    width: 1.5rem;
    height: 1.5rem;
}

.service-highlights {
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.service-highlights li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #475569;
}

.service-highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background-color: #4f46e5;
}

.page-intro {
    max-width: 48rem;
    margin-bottom: 3rem;
}

.page-intro-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
}

.page-detail-block {
    margin-top: 4rem;
}

.page-detail-block .heading-section-light {
    margin-top: 0.75rem;
}

.grid-services-page {
    margin-top: 0;
}

.about-detail-grid {
    display: grid;
    gap: 2.5rem;
}

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

.about-detail-block .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.chip-list-wrap {
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.cta-button-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .cta-button-row {
        flex-direction: row;
    }
}

/* Light Case Study Card */
.card-case-study {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: box-shadow 0.2s ease;
}
.card-case-study:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Team Profile Card */
.card-team-member {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Testimonial Card */
.card-testimonial {
    background-color: var(--color-surface);
    border: 0;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.card-testimonial-body {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
@media (min-width: 640px) {
    .card-testimonial-body {
        padding: 2rem;
    }
}
.card-testimonial-footer {
    padding: 1.25rem 1.5rem;
    background-color: var(--color-heading);
    color: #ffffff;
}
@media (min-width: 640px) {
    .card-testimonial-footer {
        padding: 1.5rem 2rem;
    }
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
    color: #f59e0b;
    font-size: 0.875rem;
}

.testimonial-quote {
    margin: 0 0 1.5rem;
}

.testimonial-quote p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #334155;
}

.testimonial-author {
    margin-top: auto;
}

.testimonial-name {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: #ffffff;
}

.testimonial-role {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.82);
}

.grid-testimonials {
    display: grid;
    gap: 1.5rem;
}

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

.grid-process {
    display: grid;
    gap: 1.5rem;
}

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

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

.card-process {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    height: 100%;
}

.process-step-number {
    font-size: 0.875rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.section-intro-center {
    max-width: 42rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-intro-text {
    margin-top: 0.75rem;
}

.section-cta-center {
    margin-top: 2.5rem;
    text-align: center;
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-base);
    border: 2px solid var(--color-text);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.faq-item + .faq-item {
    margin-top: 1rem;
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: 0;
    background: transparent;
    font-size: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
}

.faq-question i {
    flex-shrink: 0;
    color: #64748b;
}

.faq-answer {
    padding: 0 1.25rem 1rem;
}

.form-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ==========================================================================
     ICON CONTAINERS
     ========================================================================== */

/* Dark Card Icon Box */
.icon-box-dark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}
.icon-box-dark svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Smaller Process Icon Box */
.icon-box-step {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background-color: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================================
     HEADER & NAVIGATION SPECIFICS
     ========================================================================== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--color-base);
    box-shadow: none;
    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header-inner {
    display: flex;
    height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-header-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.site-header-logo-text {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-heading);
    transition: color 0.25s ease;
}

.site-header-nav {
    display: none;
    flex: 1;
    justify-content: center;
    align-self: stretch;
}

@media (min-width: 1024px) {
    .site-header-nav {
        display: flex;
    }
}

.site-header-nav-list {
    display: flex;
    height: 100%;
    align-items: stretch;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 1280px) {
    .site-header-nav-list {
        gap: 2rem;
    }
}

.site-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.site-header-cta {
    display: none;
    padding: 0.625rem 1.375rem;
    font-size: 0.9375rem;
}

@media (min-width: 1024px) {
    .site-header-cta {
        display: inline-flex;
    }
}

.site-header-menu-toggle {
    display: inline-flex;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.125rem;
    transition: all 0.2s ease;
}

@media (min-width: 1024px) {
    .site-header-menu-toggle {
        display: none;
    }
}

.site-header-scrolled .site-header-menu-toggle {
    border-color: #e2e8f0;
    background: #ffffff;
    color: #334155;
}

.site-header-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1);
}

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

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

.site-header-mobile-list .nav-link,
.site-header-mobile-list .nav-link-active {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 2.75rem;
    height: auto;
    padding: 0.625rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

.site-header-mobile-list .nav-link:hover {
    color: var(--brand-primary);
}

.site-header-mobile-list .nav-link-active {
    color: var(--brand-primary);
}

.site-header-mobile-list .nav-link-active::after {
    display: none;
}

.site-header-mobile-cta {
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.site-header-mobile-cta .btn-primary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    background-color: var(--brand-primary);
    color: #ffffff;
}

.site-header-mobile-cta .btn-primary:hover,
.site-header-mobile-cta .btn-primary:focus-visible {
    background-color: var(--brand-primary-hover);
    color: #ffffff;
}

.site-header-scrolled {
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.site-header-scrolled .site-header-logo-text {
    color: var(--color-heading);
}

.site-header-at-brand {
    background: transparent;
    box-shadow: none;
}

.site-header-at-brand .site-header-logo-text {
    color: #ffffff;
}

.site-header-at-brand .site-header-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
}

.site-header-at-brand .site-header-nav .nav-link:hover {
    color: #ffffff;
}

.site-header-at-brand .site-header-nav .nav-link-active {
    color: #ffffff;
}

.site-header-at-brand .site-header-nav .nav-link-active::after {
    bottom: 0.875rem;
    background-color: #a5b4fc;
}

.site-header-at-brand .site-header-menu-toggle {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.site-header-at-brand .site-header-cta.btn-primary {
    background-color: #ffffff;
    color: var(--brand-primary);
}

.site-header-at-brand .site-header-cta.btn-primary:hover,
.site-header-at-brand .site-header-cta.btn-primary:focus-visible {
    background-color: #eef2ff;
    color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.site-header-at-brand .site-header-cta.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.main-offset {
    padding-top: var(--header-height);
}

.main-offset-brand {
    padding-top: 0;
}

.nav-link,
.nav-link-active {
    display: inline-flex;
    align-items: center;
    padding: 0;
    font-size: 0.9375rem;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-decoration: none;
}
.nav-link {
    font-weight: 500;
    color: #475569;
    transition: color 0.15s ease;
}
.nav-link:hover {
    color: #4f46e5;
}
.nav-link-active {
    font-weight: 600;
    color: #4f46e5;
    position: relative;
}
.nav-link-active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #4f46e5;
}
.site-header-nav .nav-link,
.site-header-nav .nav-link-active {
    height: 100%;
}
header .btn-primary {
    padding: 0.625rem 1.375rem;
    font-size: 0.9375rem;
}

/* ==========================================================================
     FOOTER SPECIFICS
     ========================================================================== */

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--footer-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.125rem;
}

.footer-link {
    font-size: 0.875rem;
    color: var(--footer-text);
    text-decoration: none;
    transition:
        color 0.15s ease,
        opacity 0.15s ease;
}
.footer-link:hover {
    color: var(--footer-link-hover);
}

.footer-social-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    border: 1px solid var(--footer-border);
    background-color: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}
.footer-social-icon:hover {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

.footer-site {
    position: relative;
    overflow: hidden;
    color: var(--footer-text);
    background:
        radial-gradient(
            ellipse 70% 55% at 12% 0%,
            rgba(99, 102, 241, 0.22),
            transparent 68%
        ),
        radial-gradient(
            ellipse 55% 45% at 88% 100%,
            rgba(129, 140, 248, 0.14),
            transparent 72%
        ),
        linear-gradient(
            180deg,
            var(--footer-bg-mid) 0%,
            var(--footer-bg) 42%,
            #141238 100%
        );
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: clamp(3.5rem, 5vw, 4.5rem);
    padding-bottom: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 1.75rem 1.25rem;
}
@media (min-width: 640px) {
    .footer-grid {
        gap: 2.5rem;
    }
}
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copy {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--footer-text);
    margin: 0 0 1.25rem;
    max-width: 18rem;
}

.footer-social-list {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-legal {
    margin-top: clamp(2.5rem, 4vw, 3.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--footer-border);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px) {
    .footer-legal {
        flex-direction: row;
    }
}

.footer-legal-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-legal-text {
    margin: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.52);
}

/* ==========================================================================
     HERO, BODY COPY & SECTION INTROS
     ========================================================================== */

.section-hero {
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: var(--spacing-section);
    scroll-margin-top: 6rem;
}

.section-hero-light {
    display: flex;
    align-items: center;
    color: var(--color-text);
    background-color: var(--color-base);
}

.section-hero-brand {
    --hero-accent: #c7d2fe;
    --hero-glow-a: rgba(99, 102, 241, 0.38);
    --hero-glow-b: rgba(129, 140, 248, 0.26);
    --hero-glow-c: rgba(79, 70, 229, 0.16);
    --hero-glow-d: rgba(167, 139, 250, 0.12);
    --hero-gradient-start: #1a1748;
    --hero-gradient-mid: var(--color-hero-brand);
    --hero-gradient-mid-2: var(--color-hero-brand-mid);
    --hero-gradient-end: #2a2668;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--header-height));
    color: #ffffff;
    background:
        radial-gradient(
            ellipse 72% 58% at 12% -5%,
            var(--hero-glow-a),
            transparent 68%
        ),
        radial-gradient(
            ellipse 58% 52% at 88% 105%,
            var(--hero-glow-b),
            transparent 70%
        ),
        radial-gradient(
            ellipse 44% 38% at 52% 42%,
            var(--hero-glow-c),
            transparent 72%
        ),
        radial-gradient(
            ellipse 35% 30% at 78% 18%,
            var(--hero-glow-d),
            transparent 75%
        ),
        linear-gradient(
            165deg,
            var(--hero-gradient-start) 0%,
            var(--hero-gradient-mid) 20%,
            var(--hero-gradient-mid-2) 56%,
            var(--hero-gradient-end) 100%
        );
}

.section-hero-brand-home {
    /* Homepage main has no header offset; cancel the brand-hero pull-up so
       100dvh covers the visible viewport instead of peeking the next section. */
    margin-top: 0;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-top: calc(var(--header-height) + clamp(3rem, 5vw + 1.25rem, 4rem));
    padding-bottom: clamp(3rem, 2rem + 3vw, 4.5rem);
}

.section-hero-brand-page {
    min-height: auto;
    align-items: flex-start;
    /* Negative hero margin cancels one header-height; pad twice + gap below nav */
    padding-top: calc((var(--header-height) * 2) + clamp(2rem, 4vh, 3.25rem));
    padding-bottom: clamp(2.5rem, 4vh, 3.5rem);
}

.section-hero-brand-indigo {
    --hero-accent: #c7d2fe;
}

.section-hero-brand-plum {
    --hero-accent: #e9d5ff;
    --hero-glow-a: rgba(192, 132, 252, 0.34);
    --hero-glow-b: rgba(167, 139, 250, 0.22);
    --hero-glow-c: rgba(126, 58, 143, 0.18);
    --hero-glow-d: rgba(244, 114, 182, 0.1);
    --hero-gradient-start: #241019;
    --hero-gradient-mid: #361726;
    --hero-gradient-mid-2: #4a2238;
    --hero-gradient-end: #361726;
}

.section-hero-brand-teal {
    --hero-accent: #99f6e4;
    --hero-glow-a: rgba(45, 212, 191, 0.28);
    --hero-glow-b: rgba(56, 189, 248, 0.2);
    --hero-glow-c: rgba(14, 116, 144, 0.22);
    --hero-glow-d: rgba(94, 234, 212, 0.1);
    --hero-gradient-start: #012029;
    --hero-gradient-mid: #013c4a;
    --hero-gradient-mid-2: #0a4a5c;
    --hero-gradient-end: #013c4a;
}

.section-hero-brand-forest {
    --hero-accent: #bbf7d0;
    --hero-glow-a: rgba(74, 222, 128, 0.22);
    --hero-glow-b: rgba(52, 211, 153, 0.16);
    --hero-glow-c: rgba(20, 83, 45, 0.2);
    --hero-glow-d: rgba(134, 239, 172, 0.1);
    --hero-gradient-start: #101818;
    --hero-gradient-mid: #1a3234;
    --hero-gradient-mid-2: #243838;
    --hero-gradient-end: #1a3234;
}

.section-hero-brand-slate {
    --hero-accent: #e4e4e7;
    --hero-glow-a: rgba(161, 161, 170, 0.22);
    --hero-glow-b: rgba(113, 113, 122, 0.18);
    --hero-glow-c: rgba(63, 63, 70, 0.2);
    --hero-glow-d: rgba(212, 212, 216, 0.08);
    --hero-gradient-start: #222222;
    --hero-gradient-mid: #323030;
    --hero-gradient-mid-2: #3d3d3d;
    --hero-gradient-end: #323030;
}

@media (min-width: 1024px) {
    .section-hero-brand-home {
        padding-top: calc(var(--header-height) + 3rem);
        padding-bottom: clamp(3.5rem, 2rem + 3vw, 5rem);
    }

    .section-hero-brand-home .hero-shell {
        min-height: calc(100svh - var(--header-height) - 2rem);
    }

    .section-hero-brand-page {
        padding-top: calc(
            (var(--header-height) * 2) + clamp(2.5rem, 5vh, 4rem)
        );
        padding-bottom: clamp(3rem, 4vh, 4rem);
    }
}

.section-hero-brand-page .hero-title {
    margin-bottom: 1.25rem;
    font-size: clamp(1.875rem, 0.5rem + 4.5vw, 3rem);
}

.section-hero-brand-page .hero-lead {
    margin-bottom: 1.75rem;
    max-width: 36rem;
}

.section-hero-brand-page.section-hero-brand-centered .hero-lead {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.section-hero-brand-page .hero-eyebrow-brand {
    margin-bottom: 1.5rem;
}

.section-hero-brand-page .hero-actions {
    gap: 1rem;
}

.section-hero-brand-page + .section-light,
.section-hero-brand-page + .section-muted {
    padding-top: clamp(3rem, 5vw, 4.5rem);
}

.section-hero-dark {
    min-height: auto;
    display: flex;
    align-items: center;
    color: #ffffff;
    background:
        radial-gradient(
            ellipse 80% 60% at 50% 40%,
            rgba(129, 140, 248, 0.2),
            transparent 70%
        ),
        linear-gradient(165deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

@media (min-width: 640px) {
    .section-hero {
        padding-top: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .section-hero {
        padding-top: 3rem;
    }
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-backdrop-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(
        ellipse 85% 75% at 35% 35%,
        black 15%,
        transparent 78%
    );
    opacity: 0.38;
}

.hero-backdrop-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
}

.hero-backdrop-glow-left {
    top: -6rem;
    left: -4rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(
        circle,
        rgba(99, 102, 241, 0.22) 0%,
        transparent 70%
    );
}

.hero-backdrop-glow-right {
    right: -6rem;
    bottom: 8rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(
        circle,
        rgba(129, 140, 248, 0.15) 0%,
        transparent 72%
    );
}

.hero-backdrop-glow-center {
    top: 18%;
    left: 42%;
    width: 20rem;
    height: 20rem;
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.1) 0%,
        transparent 72%
    );
}

.hero-loop {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}

.hero-loop-primary {
    top: -8rem;
    left: -12rem;
    width: min(52rem, 110vw);
    height: auto;
    opacity: 0.78;
    animation: hero-loop-drift 28s ease-in-out infinite alternate;
}

.hero-loop-trail {
    left: -6rem;
    bottom: -4rem;
    width: min(48rem, 95vw);
    height: auto;
    opacity: 0.68;
    animation: hero-loop-drift-reverse 34s ease-in-out infinite alternate;
}

.hero-loop-accent {
    top: 12%;
    right: 8%;
    width: min(18rem, 35vw);
    height: auto;
    opacity: 0.52;
    animation: hero-loop-drift 22s ease-in-out infinite alternate-reverse;
}

@keyframes hero-loop-drift {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    to {
        transform: translate3d(1.25rem, -0.75rem, 0) rotate(1.5deg);
    }
}

@keyframes hero-loop-drift-reverse {
    from {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    to {
        transform: translate3d(-1rem, 0.5rem, 0) rotate(-1deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-loop-primary,
    .hero-loop-trail,
    .hero-loop-accent {
        animation: none;
    }
}

.hero-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    opacity: 0.75;
}

.hero-glow-primary {
    top: -8rem;
    right: -4rem;
    width: 28rem;
    height: 28rem;
    background: radial-gradient(
        circle,
        rgba(129, 140, 248, 0.35) 0%,
        rgba(129, 140, 248, 0) 70%
    );
}

.hero-glow-secondary {
    bottom: -10rem;
    left: -6rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(
        circle,
        rgba(96, 165, 250, 0.25) 0%,
        rgba(96, 165, 250, 0) 70%
    );
}

.hero-glow-center {
    top: 20%;
    left: 50%;
    width: 36rem;
    height: 36rem;
    transform: translateX(-50%);
    background: radial-gradient(
        circle,
        rgba(167, 139, 250, 0.22) 0%,
        rgba(167, 139, 250, 0) 68%
    );
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at center, black 20%, transparent 85%);
    opacity: 0.65;
}

.hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: clamp(2rem, 0.5rem + 4vw, 3.5rem);
}

.hero-shell-split {
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-shell-split {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        gap: clamp(2.5rem, 1.5rem + 3vw, 5rem);
        align-items: center;
    }
}

.section-hero-brand-home .hero-shell {
    align-items: center;
}

@media (min-width: 1024px) {
    .section-hero-brand .hero-shell-split {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
        align-items: start;
        gap: clamp(3.5rem, 4vw, 7rem);
    }
}

.section-hero-brand .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 36rem;
    padding-top: clamp(1.5rem, 3vh, 2.5rem);
    padding-bottom: 2rem;
}

@media (max-width: 1023px) {
    .section-hero-brand-home {
        padding-top: calc(
            var(--header-height) + clamp(4.5rem, 12vw + 0.5rem, 6rem) +
                env(safe-area-inset-top, 0px)
        );
    }

    .section-hero-brand-home .hero-shell {
        min-height: auto;
        align-content: start;
    }

    .section-hero-brand-home .hero-copy {
        padding-top: clamp(1.25rem, 4vw, 2rem);
    }

    .section-hero-brand-home .hero-title {
        margin-top: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .section-hero-brand .hero-copy {
        align-self: start;
        min-height: auto;
        padding-top: clamp(3.5rem, 9vh, 6rem);
        padding-bottom: clamp(2rem, 6vh, 4rem);
        padding-right: clamp(0.5rem, 2vw, 2rem);
    }

    .section-hero-brand .hero-visual {
        margin-top: 3rem;
        padding-top: clamp(4.5rem, 11vh, 7rem);
        padding-left: clamp(0.5rem, 2vw, 1.5rem);
        padding-right: clamp(0.25rem, 1vw, 1rem);
    }
}

.hero-shell-centered {
    width: 100%;
}

.hero-copy {
    max-width: 40rem;
}

.hero-copy-centered {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.hero-eyebrow {
    margin: 0 0 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.hero-eyebrow-light {
    color: rgba(199, 210, 254, 0.95);
}

.hero-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, -1.25rem + 8.333vw, 3.75rem);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--color-heading);
    text-wrap: balance;
}

.hero-title-light {
    color: #ffffff;
}

.hero-title-accent {
    color: var(--brand-primary);
    font-style: italic;
}

.hero-title-accent-light {
    color: var(--brand-primary-light);
    font-style: italic;
}

.hero-lead {
    margin: 0 0 2rem;
    max-width: 34rem;
    font-size: clamp(1rem, 0.875rem + 0.333vw, 1.125rem);
    line-height: 1.65;
    color: var(--color-text-muted);
    text-wrap: pretty;
}

.hero-lead-light {
    color: rgba(226, 232, 240, 0.92);
}

@media (min-width: 640px) {
    .hero-lead {
        font-size: 1.125rem;
    }
}

.hero-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.875rem 1rem;
}

.hero-actions-centered {
    justify-content: center;
}

@media (max-width: 639px) {
    .section-hero-brand .hero-actions {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .section-hero-brand .hero-actions .btn-primary-lg {
        padding: 0.8125rem 1.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .section-hero-brand .hero-actions .btn-text-link {
        font-size: 0.875rem;
        white-space: nowrap;
    }
}

.hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-link-light {
    color: rgba(255, 255, 255, 0.88);
}

.hero-link:hover {
    color: #4f46e5;
}

.hero-link-light:hover {
    color: #ffffff;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.hero-trust i {
    font-size: 1rem;
}

.btn-primary-lg {
    padding: 0.9375rem 1.75rem;
    font-size: 0.9375rem;
}

.btn-white.btn-primary-lg {
    padding: 0.9375rem 1.875rem;
    border-radius: 9999px;
    font-size: 1rem;
    color: #1e1b4b;
}

/* Hero showcase cards */
.hero-showcase {
    width: 100%;
    margin-top: 1rem;
}

.hero-showcase-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 768px) {
    .hero-showcase-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

.hero-showcase-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.hero-showcase-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-showcase-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.35);
}

.hero-showcase-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-showcase-media-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(199, 210, 254, 0.85);
    font-size: 2rem;
}

.hero-showcase-body {
    padding: 0.875rem 1rem 1rem;
}

.hero-showcase-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(199, 210, 254, 0.85);
}

.hero-showcase-prompt {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.hero-stats {
    padding-top: 2rem;
    padding-bottom: 2rem;
    background-color: var(--color-surface);
    border-top: 0;
    border-bottom: 0;
}

.hero-stats .stat-number {
    color: #0f172a;
}

.hero-stats .stat-label {
    color: #64748b;
}

.heading-hero {
    font-size: 1.875rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: #0f172a;
    margin: 0 0 1.25rem;
}
@media (min-width: 640px) {
    .heading-hero {
        font-size: 2.25rem;
    }
}
@media (min-width: 768px) {
    .heading-hero {
        font-size: 3rem;
    }
}
@media (min-width: 1024px) {
    .heading-hero {
        font-size: 3.75rem;
        line-height: 1.1;
    }
}

.heading-hero-accent {
    background-image: linear-gradient(to right, #4f46e5, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.heading-card-light {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem;
}
@media (min-width: 640px) {
    .heading-card-light {
        font-size: 1.25rem;
    }
}

.heading-card-dark {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.75rem;
}

.body-text {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #475569;
}
@media (min-width: 640px) {
    .body-text {
        font-size: 1rem;
    }
}

.section-dark .body-text {
    color: #94a3b8;
}

.section-intro {
    text-align: center;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.section-intro-left {
    max-width: 42rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .section-intro-left {
        margin-bottom: 4rem;
    }
}

.section-header-split {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
@media (min-width: 640px) {
    .section-header-split {
        margin-bottom: 4rem;
    }
}
@media (min-width: 768px) {
    .section-header-split {
        flex-direction: row;
        align-items: flex-end;
    }
}

.section-header-copy {
    max-width: 42rem;
}

.section-header-cta {
    margin-top: 1.5rem;
}

.slider-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.btn-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    padding-bottom: 0.125rem;
    border-bottom: 2px solid var(--color-text);
    transition:
        color 0.2s ease,
        border-color 0.2s ease;
}
.btn-text-link:hover {
    color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.section-dark .btn-text-link {
    color: #818cf8;
}
.section-dark .btn-text-link:hover {
    color: #c7d2fe;
}
.btn-text-link svg {
    width: 1rem;
    height: 1rem;
}

.section-hero-brand .hero-copy-inner {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    padding-left: 1.25rem;
    margin-top: 0;
}

.section-hero-brand .hero-eyebrow-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 2.25rem;
    padding: 0.375rem 0.75rem 0.375rem 0;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.section-hero-brand .hero-eyebrow-brand::before {
    content: "";
    flex-shrink: 0;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 9999px;
    background: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(199, 210, 254, 0.18);
}

.section-hero-brand .hero-title {
    margin-bottom: 2rem;
    font-size: clamp(2rem, -0.5rem + 7.5vw, 3.625rem);
    line-height: 1.08;
    color: #ffffff;
}

.section-hero-brand .hero-title-accent {
    color: #c7d2fe;
    font-style: italic;
}

.section-hero-brand .hero-lead {
    margin-bottom: 2.75rem;
    max-width: 30rem;
    font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.1875rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.section-hero-brand .hero-actions {
    margin-bottom: 0;
}

.section-hero-brand .hero-cta-brand {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.hero-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 2.75rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4375rem 0.8125rem;
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 9999px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
}

.hero-trust-list i {
    color: #c7d2fe;
    font-size: 0.8125rem;
}

@media (min-width: 1024px) {
    .section-hero-brand .hero-copy-inner {
        margin-top: 8rem;
    }

    .section-hero-brand .hero-eyebrow-brand {
        margin-bottom: 2.5rem;
    }

    .section-hero-brand .hero-title {
        margin-bottom: 2.25rem;
    }

    .section-hero-brand .hero-lead {
        margin-bottom: 3rem;
    }

    .hero-trust-list {
        margin-top: 3rem;
        gap: 0.875rem 1.5rem;
    }
}

.section-hero-brand a.btn-primary,
.section-hero-brand .btn-primary {
    background-color: #ffffff;
    color: var(--brand-primary);
}

.section-hero-brand a.btn-primary:hover,
.section-hero-brand .btn-primary:hover,
.section-hero-brand a.btn-primary:focus-visible,
.section-hero-brand .btn-primary:focus-visible {
    background-color: #eef2ff;
    color: var(--brand-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
}

.section-hero-brand a.btn-primary:active,
.section-hero-brand .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.section-hero-brand-home.section-hero-brand-centered
    .section-hero-brand-shell-centered,
.section-hero-brand-home .services-hero-shell,
.section-hero-brand-home .about-hero-shell {
    position: relative;
    z-index: 1;
    min-height: calc(100svh - var(--header-height) - 2rem);
    align-items: center;
}

.section-hero-brand-page .section-hero-brand-shell-centered,
.section-hero-brand-page .services-hero-shell,
.section-hero-brand-page .about-hero-shell {
    position: relative;
    z-index: 1;
    min-height: auto;
    align-items: center;
}

.section-hero-brand-centered .hero-copy-inner-centered {
    padding-left: 0;
    max-width: 44rem;
    margin-inline: auto;
    text-align: center;
}

.section-hero-brand-centered .hero-copy-inner-centered::before {
    display: none;
}

.section-hero-brand-centered .hero-eyebrow-brand {
    justify-content: center;
}

.section-hero-brand-page.section-hero-brand-centered
    .hero-eyebrow-brand::before {
    display: none;
}

.section-hero-brand-page.section-hero-brand-centered .hero-eyebrow-brand {
    display: inline-block;
    margin-bottom: 1.75rem;
    padding: 0 0 0.625rem;
    border-bottom: 2px solid var(--hero-accent);
    letter-spacing: 0.18em;
}

.section-hero-brand-page .section-hero-brand-shell-centered,
.section-hero-brand-page .services-hero-shell,
.section-hero-brand-page .about-hero-shell {
    gap: clamp(2rem, 3vw, 3rem);
}

.section-hero-brand-page .hero-copy-inner-centered {
    padding-top: 0;
}

.section-hero-brand-page .hero-page-stats,
.section-hero-brand-page .hero-trust-list {
    margin-top: 2rem;
}

.section-hero-brand .hero-actions-centered {
    justify-content: center;
}

.section-hero-brand-centered .hero-trust-list,
.section-hero-brand-centered .hero-page-stats {
    justify-content: center;
}

.section-hero-brand .hero-text-link-brand,
.section-hero-brand .btn-text-link {
    color: rgba(255, 255, 255, 0.88);
    border-color: rgba(255, 255, 255, 0.75);
}

.section-hero-brand .hero-text-link-brand:hover,
.section-hero-brand .btn-text-link:hover,
.section-hero-brand .hero-text-link-brand:focus-visible,
.section-hero-brand .btn-text-link:focus-visible {
    color: #ffffff;
    border-color: #c7d2fe;
}

.section-hero-brand .hero-lead-link {
    color: #c7d2fe;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.section-hero-brand .hero-lead-link:hover {
    color: #ffffff;
}

.section-hero-brand .hero-page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin: 2.75rem 0 0;
    padding: 0;
    list-style: none;
}

.section-hero-brand .hero-page-stats li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4375rem 0.8125rem;
    border: 1px solid rgba(165, 180, 252, 0.18);
    border-radius: 9999px;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.04);
}

.section-hero-brand .hero-page-stats strong {
    font-size: inherit;
    font-weight: 700;
    color: #e0e7ff;
}

.section-hero-brand .page-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .section-hero-brand .services-hero-shell,
    .section-hero-brand .about-hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
        gap: clamp(3.5rem, 4vw, 7rem);
        align-items: start;
    }

    .section-hero-brand .page-hero-visual {
        padding-top: clamp(4.5rem, 11vh, 7rem);
    }
}

/* ==========================================================================
     BADGES, STATS & LISTS
     ========================================================================== */

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.375rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #fde68a;
    background-color: #fffbeb;
    font-size: 0.75rem;
    font-weight: 600;
    color: #92400e;
}
@media (min-width: 640px) {
    .badge-trust {
        margin-bottom: 1.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        font-weight: 700;
    }
}

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

.stats-row-ruled {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.section-dark .stats-row-ruled {
    border-top-color: #1e293b;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}
@media (min-width: 640px) {
    .stat-number {
        font-size: 1.875rem;
    }
}

.section-dark .stat-number {
    color: #ffffff;
}

.stat-label {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}
@media (min-width: 640px) {
    .stat-label {
        font-size: 0.875rem;
    }
}

.section-dark .stat-label {
    color: #94a3b8;
}

.feature-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}
@media (min-width: 640px) {
    .feature-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.feature-list i {
    color: #4f46e5;
    margin-top: 0.125rem;
}

.feature-list a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.feature-list a:hover {
    color: #4f46e5;
}

/* ==========================================================================
     GRIDS
     ========================================================================== */

.card-service-dark[id] {
    scroll-margin-top: 6rem;
}

.grid-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .grid-services {
        gap: 2rem;
    }
}
@media (min-width: 768px) {
    .grid-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .grid-services {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .grid-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .grid-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.product-grid-item {
    display: flex;
    min-width: 0;
}

.grid-cards .card-case-study {
    width: 100%;
    height: 100%;
}

.grid-team {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .grid-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .grid-team {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

.team-grid-item {
    display: flex;
    min-width: 0;
}

.grid-team .card-team-member {
    width: 100%;
    height: 100%;
}

.team-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.team-slider::-webkit-scrollbar {
    display: none;
}

.team-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
}
@media (min-width: 640px) {
    .team-slide {
        flex-basis: calc((100% - 1.5rem) / 2);
    }
}
@media (min-width: 1024px) {
    .team-slide {
        flex-basis: calc((100% - 4.5rem) / 4);
    }
}

.product-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.product-slider::-webkit-scrollbar {
    display: none;
}

.product-slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    display: flex;
}
@media (min-width: 768px) {
    .product-slide {
        flex-basis: calc((100% - 2rem) / 2);
    }
}
@media (min-width: 1024px) {
    .product-slide {
        flex-basis: calc((100% - 4rem) / 3);
    }
}

.split-feature {
    display: grid;
    align-items: center;
    gap: 2.5rem;
}
@media (min-width: 1024px) {
    .split-feature {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.split-feature-media img {
    width: 100%;
    height: auto;
    max-height: 36rem;
    object-fit: cover;
    border-radius: 1rem;
}

.logo-strip {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.logo-strip-heading {
    margin: 0 0 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    text-align: center;
}

.logo-strip-carousel {
    display: flex;
    width: 100%;
    overflow: hidden;
    padding: 1.25rem 0;
}

.logo-strip-track {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
    will-change: transform;
    animation: logo-strip-scroll 20s linear infinite;
}

.logo-strip-carousel:hover .logo-strip-track {
    animation-play-state: paused;
}

.logo-strip-link {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.logo-strip-link:hover {
    opacity: 1;
}

.logo-strip-logo {
    width: auto;
    height: 40px;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-strip-link:hover .logo-strip-logo {
    filter: grayscale(0%);
}

.logo-strip-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.logo-strip-link:hover .logo-strip-name {
    filter: grayscale(0%);
}

@keyframes logo-strip-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@media (max-width: 768px) {
    .logo-strip-track {
        gap: 2.5rem;
    }

    .logo-strip-link {
        min-width: 100px;
    }

    .logo-strip-logo {
        height: 36px;
        max-width: 120px;
    }
}

/* ==========================================================================
     CARD INTERNALS, CHIPS & TEAM
     ========================================================================== */

.card-case-study img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    border-radius: 0.5rem;
}

.card-case-study-media {
    background-color: #f1f5f9;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.card-case-study-body {
    padding: 1.5rem 1.5rem 1rem;
}

.card-case-study-footer {
    padding: 0 1.5rem 1.5rem;
}

.card-case-study a {
    text-decoration: none;
}
.card-case-study .heading-card-light a {
    color: inherit;
}
.card-case-study .btn-text-link {
    color: #4f46e5;
}
.card-case-study .btn-text-link:hover {
    color: #4338ca;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
}

.chip {
    border-radius: 9999px;
    background-color: #eef2ff;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
}

.chip-success {
    background-color: #ecfdf5;
    color: #047857;
}

.chip-warning {
    background-color: #fffbeb;
    color: #92400e;
}

.chip-danger {
    background-color: #fef2f2;
    color: #b91c1c;
}

.product-slide .card-case-study {
    width: 100%;
    height: 100%;
}

a.card-case-study {
    color: inherit;
    text-decoration: none;
}

.job-meta {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.job-meta li,
.job-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #475569;
}

.job-meta i,
.job-meta-row i {
    color: #4f46e5;
}

.job-meta-label {
    font-weight: 600;
    color: #0f172a;
}

.job-detail-back {
    margin-bottom: 1.5rem;
}

.job-detail-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.18);
}

@media (min-width: 640px) {
    .job-detail-card {
        padding: 3rem;
    }
}

.job-detail-header {
    margin-bottom: 1.5rem;
}

.job-detail-header .heading-section-light {
    margin-bottom: 0.5rem;
}

.job-detail-facts {
    display: grid;
    gap: 1rem;
    margin: 0 0 2rem;
}

@media (min-width: 640px) {
    .job-detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .job-detail-facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.job-detail-fact {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background-color: #f8fafc;
}

.job-detail-fact .icon-box-light {
    flex-shrink: 0;
    margin-bottom: 0;
}

.job-detail-fact-label {
    margin: 0 0 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.job-detail-fact-value {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
}

.job-detail-image {
    width: 100%;
    height: auto;
    max-height: 24rem;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.job-detail-actions {
    justify-content: flex-start;
    margin-top: 2rem;
}

.job-prose {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
}

.job-prose p,
.job-prose li,
.job-prose span {
    color: #475569;
}

.job-prose h1,
.job-prose h2,
.job-prose h3,
.job-prose h4 {
    color: #0f172a;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.job-prose a {
    color: #4f46e5;
}

.job-prose ul,
.job-prose ol {
    margin: 0 0 1rem 1.25rem;
}

.card-team-photo-wrap {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #f1f5f9;
}

.card-team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.card-team-meta {
    min-width: 0;
}

.card-team-socials {
    margin-top: auto;
    padding-top: 0.75rem;
}

.card-team-name {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.card-team-position {
    margin: 0.125rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.card-team-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    margin: 0 0 0.25rem;
}

.card-team-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.icon-box-light {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.card-contact {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}

.card-contact a {
    color: #475569;
    text-decoration: none;
}
.card-contact a:hover {
    color: #4f46e5;
}

.card-contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.02);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}
.card-contact-info:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}
.card-contact-info a {
    color: #475569;
    text-decoration: none;
}
.card-contact-info a:hover {
    color: #4f46e5;
}

.card-contact-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.card-contact-info p,
.card-contact p {
    margin-bottom: 0;
}

.card-contact-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.25rem;
}

.careers-empty {
    display: grid;
    gap: 2.5rem;
}

.careers-empty-panel {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px -20px rgba(15, 23, 42, 0.35);
}
@media (min-width: 640px) {
    .careers-empty-panel {
        padding: 2.5rem;
    }
}

.careers-empty-badge {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.careers-empty-title {
    margin-bottom: 0.75rem;
}

.careers-empty-copy {
    max-width: 34rem;
    margin: 0 auto 1.5rem;
}

.careers-empty-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
}
@media (min-width: 640px) {
    .careers-empty-actions {
        flex-direction: row;
        align-items: center;
    }
}

.careers-empty-note {
    margin: 1.25rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
}

.careers-empty-note a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}
.careers-empty-note a:hover {
    color: #4338ca;
}

.careers-empty-benefits-title {
    margin: 0 0 1.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.careers-empty-benefits-grid {
    display: grid;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .careers-empty-benefits-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.careers-empty-benefit {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: left;
}

.careers-empty-benefit .icon-box-light {
    margin-bottom: 0.875rem;
}

.careers-empty-benefit-title {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.careers-empty-benefit .body-text {
    margin: 0;
    font-size: 0.875rem;
}

.icon-box-contact {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;
    border-radius: 0.75rem;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}
.icon-box-contact svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-panel {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (min-width: 1024px) {
    .contact-panel {
        padding: 3rem;
    }
}

.contact-layout {
    display: grid;
    align-items: stretch;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.contact-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
}

.contact-card-stack {
    display: grid;
    gap: 1rem;
}

.contact-form-column {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
}
@media (min-width: 1024px) {
    .contact-form-column {
        padding: 2rem;
    }
}

/* ==========================================================================
     FORMS
     ========================================================================== */

.form-stack {
    display: grid;
    gap: 1.25rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.contact-form-column .form-stack {
    gap: 1.25rem;
    max-width: none;
    width: 100%;
    margin: 0;
}

.contact-form-column .form-success {
    max-width: none;
    margin: 0 0 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.375rem;
}

.form-actions {
    padding-top: 0.25rem;
}

.btn-primary-block {
    width: 100%;
}

input.form-input,
textarea.form-input,
textarea.form-textarea {
    width: 100%;
    height: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-family: inherit;
    font-weight: 400;
    color: #0f172a;
    background-color: #ffffff;
    outline: none;
    box-shadow: none;
    transition: all 0.2s ease-in-out;
}

input.form-input:focus,
textarea.form-input:focus,
textarea.form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background-color: #ffffff;
    color: #0f172a;
}

input.form-input::placeholder,
textarea.form-input::placeholder,
textarea.form-textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

textarea.form-textarea {
    min-height: 7.5rem;
    resize: none;
}

.form-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.form-fieldset .form-label {
    margin-bottom: 0.625rem;
}

.form-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.form-chip {
    position: relative;
    cursor: pointer;
}

.form-chip input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.form-chip span {
    display: inline-flex;
    align-items: center;
    padding: 0.5625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.25;
    color: #475569;
    background-color: #ffffff;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-chip:hover span {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.form-chip input:checked + span {
    border-color: #4f46e5;
    background-color: #eef2ff;
    color: #4f46e5;
}

.form-chip input:focus-visible + span {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-success {
    max-width: 48rem;
    margin: 0 auto 1.25rem;
    border-radius: 0.75rem;
    background-color: #ecfdf5;
    color: #047857;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.contact-success-state {
    text-align: center;
    padding: 2rem 1rem;
}

.contact-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.25rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
    font-size: 2rem;
}

.contact-success-message {
    font-size: 1rem;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-success-note {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact-success-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.contact-form-submitting {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: contact-form-spin 0.7s linear infinite;
}

@keyframes contact-form-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn-primary-block[disabled] {
    opacity: 0.85;
    cursor: wait;
}

.form-error-summary {
    margin-bottom: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.875rem;
}

.form-field-error {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: #b91c1c;
}

.contact-recaptcha-note {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.7;
}

.form-input-error {
    border-color: #f87171;
}

#contact-form {
    scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

#contact.section-muted {
    padding-top: 4rem;
}

h1.heading-hero,
h2.heading-section-light,
h3.heading-card-light,
h3.card-team-name,
h3.card-contact-title {
    color: #0f172a;
}

/* ==========================================================================
   PRODUCT DETAIL & CHECKOUT
   ========================================================================== */

.product-features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .product-features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .product-features-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2rem;
    }
}

.product-pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .product-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .product-pricing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.pricing-card.is-popular {
    border-color: #6366f1;
    box-shadow: 0 10px 25px -10px rgba(79, 70, 229, 0.35);
}

.pricing-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border-radius: 9999px;
    background-color: #eef2ff;
    color: #4338ca;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pricing-card-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.pricing-card-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
}

.pricing-card-price-current {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
}

.pricing-card-price-old {
    font-size: 1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.pricing-card-interval,
.pricing-card-note,
.pricing-option-interval {
    font-size: 0.875rem;
    color: #64748b;
}

.pricing-card-features {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.pricing-card-features li {
    position: relative;
    padding-left: 1.25rem;
    color: #475569;
}

.pricing-card-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #6366f1;
}

.product-pricing-picker {
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-pricing-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pricing-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.875rem;
    background-color: #ffffff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.pricing-option:hover,
.pricing-option.is-selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.pricing-option-name {
    font-weight: 600;
    color: #0f172a;
}

.pricing-option-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    font-weight: 700;
    color: #0f172a;
}

.pricing-option-price-old {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.product-pricing-quantity {
    max-width: 12rem;
}

.checkout-layout {
    display: grid;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr);
        align-items: start;
    }
}

.checkout-form-panel,
.checkout-summary {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background-color: #ffffff;
    padding: 1.5rem;
}
@media (min-width: 640px) {
    .checkout-form-panel,
    .checkout-summary {
        padding: 2rem;
    }
}

.checkout-form-panel .form-row + .form-row,
.checkout-form-panel .form-row + .checkout-payment-element {
    margin-top: 1rem;
}

.checkout-payment-element {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-payment-message {
    margin-top: 1rem;
    border-radius: 0.75rem;
    background-color: #fef2f2;
    color: #b91c1c;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.checkout-payment-unavailable {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-payment-unavailable .checkout-payment-message {
    margin-top: 0;
}

.checkout-summary-list {
    margin: 1.5rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-summary-list div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.checkout-summary-list dt {
    margin: 0;
    color: #64748b;
    font-weight: 500;
}

.checkout-summary-list dd {
    margin: 0;
    text-align: right;
    color: #0f172a;
    font-weight: 600;
}

.checkout-summary-total {
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.checkout-summary-total dd {
    font-size: 1.25rem;
}

.checkout-price-old {
    margin-right: 0.5rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 500;
}

.checkout-price-current {
    color: #0f172a;
    font-weight: 700;
}

.checkout-spinner {
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 9999px;
    animation: checkout-spin 0.8s linear infinite;
}

@keyframes checkout-spin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-success-panel {
    max-width: 40rem;
    margin: 0 auto;
    text-align: center;
    padding: 2rem 0 4rem;
}

.checkout-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    border-radius: 9999px;
    background-color: #ecfdf5;
    color: #059669;
    font-size: 1.75rem;
}

.checkout-is-hidden {
    display: none;
}

h2.heading-section-dark,
h3.heading-card-dark {
    color: #ffffff;
}

/* ==========================================================================
     CASE STUDIES
     ========================================================================== */

.section-hero-compact {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
    .section-hero-compact {
        padding-top: 2.5rem;
        padding-bottom: 3rem;
    }
}

.hero-copy-centered .tag-label-light,
.hero-copy-centered .eyebrow-heading {
    display: inline-block;
}

.case-studies-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 1rem;
}

.case-studies-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.case-studies-filter {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.case-studies-filter:hover {
    border-color: #c7d2fe;
    color: #4f46e5;
}

.case-studies-filter-active {
    border-color: #4f46e5;
    background: #4f46e5;
    color: #ffffff;
}

.case-studies-count {
    margin: 0;
    color: #64748b;
}

.case-studies-empty {
    margin: 2rem 0 0;
    text-align: center;
    color: #64748b;
}

.grid-case-studies {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-case-studies {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-case-studies {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.grid-case-studies-compact {
    margin-top: 2rem;
}

.card-case-study-index {
    height: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    background: #ffffff;
    transition:
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.card-case-study-index:hover {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.card-case-study-index-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.card-case-study-index-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.card-case-study-index-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-case-study-index:hover .card-case-study-index-media img {
    transform: scale(1.03);
}

.card-case-study-index-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.5rem 1.5rem;
}

.case-study-industry {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4f46e5;
}

.card-case-study-index-body .heading-card-light {
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.card-case-study-index-body .body-text {
    flex: 1;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.case-study-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
}

.section-case-studies-cta {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: linear-gradient(165deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
}

.case-studies-cta-inner {
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
}

.case-studies-cta-inner .heading-section-dark {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.case-studies-cta-text {
    margin-bottom: 2rem;
    color: rgba(226, 232, 240, 0.9);
}

.case-studies-cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

@media (min-width: 640px) {
    .case-studies-cta-actions {
        flex-direction: row;
    }
}

.case-studies-cta-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    background: transparent;
}

.case-studies-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.case-study-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.875rem;
    color: #64748b;
}

.case-study-breadcrumb a {
    color: #475569;
    text-decoration: none;
}

.case-study-breadcrumb a:hover {
    color: #4f46e5;
}

.case-study-detail-hero {
    padding-top: 2rem;
}

.case-study-detail-header {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .case-study-detail-header {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem;
    }
}

.case-study-detail-excerpt {
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.case-study-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.case-study-detail-media {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.case-study-detail-media img {
    width: 100%;
    height: auto;
    display: block;
}

.case-study-results .stat-number {
    font-size: 1.75rem;
}

.case-study-narrative {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .case-study-narrative {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

.case-study-block .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.case-study-testimonial {
    max-width: 48rem;
    margin: 0 auto;
}

/* ==========================================================================
     SERVICES PAGE
     ========================================================================== */

.services-hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .services-hero-shell {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 3rem;
    }
}

.services-hero-copy .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.services-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.services-hero-stats li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.services-hero-stats strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-heading);
}

.services-hero-visual {
    display: flex;
    justify-content: center;
}

.services-hero-illustration {
    width: 100%;
    max-width: 28rem;
    height: auto;
    animation: services-float 6s ease-in-out infinite;
}

@keyframes services-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.services-page-layout {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 1024px) {
    .services-page-layout {
        grid-template-columns: 15rem minmax(0, 1fr);
        gap: 3rem;
        align-items: start;
    }
}

.services-sticky-nav {
    position: sticky;
    top: 6.5rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .services-sticky-nav {
        display: flex;
    }
}

.services-nav-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.services-nav-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.services-nav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.services-nav-item:hover {
    background: #f8fafc;
    color: #1e293b;
}

.services-nav-item-active {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    color: #4f46e5;
}

.services-nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.5rem;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    flex-shrink: 0;
}

.services-nav-icon svg {
    width: 1rem;
    height: 1rem;
}

.services-nav-cta {
    margin-top: 0.5rem;
    width: 100%;
    justify-content: center;
}

.services-detail-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-row {
    display: grid;
    gap: 2rem;
    align-items: center;
    scroll-margin-top: 7rem;
}

@media (min-width: 768px) {
    .service-detail-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 2.5rem;
    }

    .service-detail-row-reverse .service-detail-content {
        order: 2;
    }

    .service-detail-row-reverse .service-detail-visual {
        order: 1;
    }
}

.service-detail-content {
    position: relative;
}

.service-detail-content .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
}

.service-detail-visual-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 14rem;
    padding: 2rem;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e2e8f0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-detail-row:hover .service-detail-visual-frame {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.08);
}

.service-illustration {
    width: 100%;
    max-width: 18rem;
    height: auto;
}

.grid-engagement {
    display: grid;
    gap: 1.5rem;
}

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

.card-engagement {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.25s ease;
}

.card-engagement:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-3px);
}

.card-engagement-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-engagement-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.card-process-interactive {
    transition: all 0.25s ease;
}

.card-process-interactive:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transform: translateY(-2px);
}

.services-process-grid {
    margin-top: 0;
}

.services-tech-marquee {
    overflow: hidden;
    margin-bottom: 2rem;
    mask-image: linear-gradient(
        to right,
        transparent,
        #000 8%,
        #000 92%,
        transparent
    );
}

.services-tech-track {
    display: flex;
    gap: 0.75rem;
    width: max-content;
    animation: services-marquee 28s linear infinite;
}

.services-tech-track:hover {
    animation-play-state: paused;
}

@keyframes services-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.services-tech-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.services-tech-grid {
    justify-content: center;
}

.chip-tech {
    transition: all 0.2s ease;
    cursor: default;
}

.chip-tech:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.35);
    color: #4f46e5;
    transform: translateY(-1px);
}

.section-cta-panel {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .section-cta-panel {
        grid-template-columns: minmax(0, 1.4fr) auto;
        padding: 3rem;
    }
}

.section-cta-panel-copy .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.section-cta-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.services-page-body {
    scroll-margin-top: 6rem;
}

@media (max-width: 1023px) {
    .services-page-body {
        padding-top: 2rem;
    }

    .services-detail-list {
        gap: 2rem;
    }
}

/* ==========================================================================
     ABOUT PAGE
     ========================================================================== */

.about-hero-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-hero-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
        gap: 3rem;
    }
}

.about-hero-copy .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.about-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.about-hero-stats li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.about-hero-stats strong {
    display: block;
    font-size: 1.125rem;
    color: var(--color-heading);
}

.about-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.about-hero-photo-frame {
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
}

.about-hero-photo-frame img {
    display: block;
    width: 100%;
    max-width: 28rem;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.about-hero-accent {
    position: absolute;
    right: -1rem;
    bottom: -1rem;
    width: 5rem;
    height: 5rem;
    animation: services-float 6s ease-in-out infinite;
}

.about-intro-layout {
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-intro-layout {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        gap: 3rem;
    }
}

.about-intro-copy .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
}

.about-intro-visual {
    display: flex;
    justify-content: center;
}

.about-intro-illustration {
    width: 100%;
    max-width: 22rem;
    height: auto;
}

.about-story-grid {
    display: grid;
    gap: 1.5rem;
}

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

.about-story-card .heading-section-light {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    font-size: clamp(1.375rem, 2vw, 1.625rem);
}

.grid-about-values {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-about-values {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .grid-about-values {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.card-about-value {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    transition: all 0.25s ease;
}

.card-about-value:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.06);
    transform: translateY(-3px);
}

.card-about-value-icon {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.25rem;
    border-radius: 0.875rem;
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-about-value-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* ==========================================================================
     TEAM PAGE
     ========================================================================== */

.team-page-intro {
    margin-bottom: 2.5rem;
}

#team.section-muted {
    padding-top: 4rem;
}

.products-page-intro,
.careers-page-intro {
    margin-bottom: 2.5rem;
}

#careers-openings {
    scroll-margin-top: 6rem;
}

/* ==========================================================================
     BLOG
     ========================================================================== */

.blog-page-intro {
    margin-bottom: 2.5rem;
}

#blog-posts {
    scroll-margin-top: 6rem;
}

.grid-blog-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.grid-blog-posts-compact {
    margin-top: 1.5rem;
}

@media (max-width: 992px) {
    .grid-blog-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.card-blog-post {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.25rem;
    overflow: hidden;
    height: 100%;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.card-blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card-blog-post-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.card-blog-post-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f8fafc;
}

.card-blog-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card-blog-post:hover .card-blog-post-media img {
    transform: scale(1.04);
}

.card-blog-post-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
}

.card-blog-post-body .heading-card-light {
    margin: 0;
}

.card-blog-post-body .body-text {
    margin: 0;
    flex: 1;
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.blog-meta li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-meta-card {
    margin-top: 0;
    font-size: 0.875rem;
}

.blog-detail-hero {
    padding-bottom: 0;
}

.blog-detail-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-top: 1.5rem;
}

@media (max-width: 900px) {
    .blog-detail-header {
        grid-template-columns: 1fr;
    }
}

.blog-detail-media img {
    width: 100%;
    border-radius: 1.25rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.blog-detail-layout {
    max-width: 860px;
}

.blog-detail-card {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.5rem;
    padding: 2rem;
}

.blog-prose {
    margin-bottom: 2rem;
}

.blog-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.blog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.blog-empty,
.blog-section-cta {
    margin-top: 2rem;
    text-align: center;
}

/* ==========================================================================
     BLOG PROSE LISTS (Tailwind/preflight restores)
     ========================================================================== */

.job-prose.blog-prose ul,
.blog-prose ul {
    list-style-type: disc;
    list-style-position: outside;
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.job-prose.blog-prose ol,
.blog-prose ol {
    list-style-type: decimal;
    list-style-position: outside;
    margin: 0 0 1.25rem;
    padding-left: 1.5rem;
}

.job-prose.blog-prose li,
.blog-prose li {
    display: list-item;
    margin: 0.45rem 0;
    padding-left: 0.15rem;
}

.job-prose.blog-prose ul ul,
.blog-prose ul ul {
    list-style-type: circle;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

.job-prose.blog-prose ol ol,
.blog-prose ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
}

/* ==========================================================================
     BLOG PAGINATION
     ========================================================================== */

.blog-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.blog-pagination nav {
    width: 100%;
}

.blog-pagination .blog-pagination-summary {
    display: none;
}

.blog-pagination .blog-pagination-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.blog-pagination .blog-page-link,
.blog-pagination .blog-page-current,
.blog-pagination .blog-page-disabled,
.blog-pagination .blog-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: #334155;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.blog-pagination .blog-page-link:hover {
    background: #eef2ff;
    border-color: rgba(79, 70, 229, 0.35);
    color: #4338ca;
}

.blog-pagination .blog-page-current {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
    cursor: default;
}

.blog-pagination .blog-page-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: #f8fafc;
}

.blog-pagination .blog-page-ellipsis {
    border-color: transparent;
    background: transparent;
    cursor: default;
    min-width: 1.75rem;
    padding: 0 0.25rem;
}

.blog-pagination .blog-page-nav {
    gap: 0.35rem;
    padding: 0 0.9rem;
}

.blog-pagination svg {
    width: 1rem;
    height: 1rem;
}

/* ==========================================================================
     LOOPio-INSPIRED TRUST & MARKETING SECTIONS
     ========================================================================== */

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 34rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-visual {
        margin: 0 0 0 auto;
        max-width: 34rem;
    }

    .section-hero-brand .hero-visual {
        max-width: 32rem;
    }
}

@media (min-width: 1280px) {
    .section-hero-brand .hero-visual {
        max-width: 34rem;
    }
}

.hero-visual-frame {
    position: relative;
    padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
    .hero-visual-frame {
        padding-bottom: 4rem;
    }
}

.hero-visual-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    object-fit: cover;
    object-position: center 15%;
    aspect-ratio: 4 / 5;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 28px 60px rgba(8, 6, 35, 0.45);
}

.hero-feature-card {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    width: min(19rem, 90%);
    min-height: 9.5rem;
    isolation: isolate;
    padding: 1.125rem 1.25rem 1.25rem;
    border-radius: 1.125rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.85);
    transform: translateX(-50%);
}

@media (min-width: 640px) {
    .hero-feature-card {
        width: min(20rem, 88%);
        min-height: 10rem;
        padding: 1.25rem 1.375rem 1.375rem;
    }
}

.hero-feature-card-panel {
    position: absolute;
    inset: 1.125rem 1.25rem 1.25rem;
}

@media (min-width: 640px) {
    .hero-feature-card-panel {
        inset: 1.25rem 1.375rem 1.375rem;
    }
}

.hero-feature-card-title {
    margin: 0 0 0.875rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-heading);
}

.hero-feature-card-list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-feature-card-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--color-text-muted);
}

.hero-feature-card-list i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: var(--brand-primary);
    font-size: 0.875rem;
}

.hero-float-card-value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-heading);
}

.hero-float-card-label {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.trust-metrics {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .trust-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.trust-metric {
    text-align: center;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
}

.trust-metric-value {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 1.25rem + 1.5vw, 2.25rem);
    line-height: 1.1;
    color: var(--color-heading);
}

.trust-metric-label {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.trust-validation-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .trust-validation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .trust-validation-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.trust-validation-card {
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-card);
    background: var(--color-base);
    border: 1px solid var(--color-border);
}

.trust-validation-label {
    margin: 0 0 0.5rem;
    font-family: var(--font-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.25;
    color: var(--color-heading);
}

.trust-validation-detail {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.enterprise-trust-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.5rem;
}

.comparison-section {
    background-color: var(--color-base);
}

.comparison-grid {
    display: grid;
    gap: 1.5rem;
}

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

.comparison-card {
    border-radius: var(--radius-card);
    padding: 2rem;
    height: 100%;
}

.comparison-card-without {
    background: var(--color-surface);
    border: 2px solid var(--color-border);
}

.comparison-card-with {
    background: var(--color-heading);
    color: #ffffff;
}

.comparison-card-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    line-height: 1.3;
}

.comparison-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.comparison-list i {
    flex-shrink: 0;
    margin-top: 0.125rem;
    font-size: 1rem;
}

.comparison-card-without .comparison-list i {
    color: #dc2626;
}

.comparison-card-with .comparison-list i {
    color: var(--brand-primary-light);
}

.cta-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 55%, #1e1b4b 100%);
    color: #ffffff;
    border-radius: var(--radius-card);
    padding: clamp(2rem, 1rem + 3vw, 3.5rem);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.cta-banner-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 1rem + 2vw, 2.625rem);
    line-height: 1.15;
    margin: 0 0 1rem;
    color: #ffffff;
}

.cta-banner-text {
    max-width: 40rem;
    margin: 0 auto 1.75rem;
    font-size: clamp(1rem, 0.9rem + 0.25vw, 1.125rem);
    color: rgba(255, 255, 255, 0.88);
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-button);
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: transparent;
    color: #ffffff;
    font-size: clamp(1rem, 0.95rem + 0.15vw, 1.125rem);
    font-weight: 700;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    background: #ffffff;
    color: var(--color-heading);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.btn-outline-light:active {
    transform: translateY(0);
    box-shadow: none;
}

.logo-strip-heading {
    font-family: var(--font-serif);
    font-weight: 400;
}

.section-panel {
    border-radius: var(--radius-card);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.5rem, 0.5rem + 2vw, 2.5rem);
}

.main-home {
    padding-top: 0;
}

/* ==========================================================================
   SCROLL REVEAL (subtle fade + translate-up)
   ========================================================================== */

/*
 * Hidden state is gated behind html.reveal-animations-enabled so content stays
 * visible if JS never runs. IntersectionObserver flips .is-revealed once.
 */
html.reveal-animations-enabled [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1rem, 0);
    transition:
        opacity 0.55s ease-out,
        transform 0.55s ease-out;
    will-change: opacity, transform;
    overflow-anchor: none;
}

html.reveal-animations-enabled [data-reveal].is-revealed {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

/*
 * Article bodies can be taller than the viewport. If a parent wrapper still
 * received data-reveal, the fractional IntersectionObserver threshold never
 * fires and opacity would stay 0. Keep prose readable regardless.
 */
html.reveal-animations-enabled [data-reveal]:has(.blog-prose),
html.reveal-animations-enabled [data-reveal]:has(.job-prose),
html.reveal-animations-enabled [data-reveal]:has(.prose) {
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
    html.reveal-animations-enabled [data-reveal],
    html.reveal-animations-enabled [data-reveal].is-revealed {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

/* ==========================================================================
   INTERACTIVE TOOLS (/tools)
   ========================================================================== */

.grid-tools {
    display: grid;
    gap: 1.5rem;
}

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

a.card-tool-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

a.card-tool-link .body-text {
    flex: 1;
    margin-bottom: 1rem;
}

.tools-split {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .tools-split {
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
        align-items: start;
        gap: 2rem;
    }

    .tools-result {
        position: sticky;
        top: calc(var(--header-height) + 1.25rem);
    }
}

.tools-panel.form-stack {
    max-width: none;
    margin: 0;
    width: 100%;
    gap: 1.5rem;
}

.tools-panel.card-service-light:hover {
    transform: none;
}

.tools-field-hint {
    margin: 0.625rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.tools-pages-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 5.5rem;
    gap: 0.75rem;
    align-items: center;
}

.tools-pages-input {
    text-align: center;
}

.tools-range {
    appearance: none;
    width: 100%;
    height: 0.375rem;
    border-radius: 9999px;
    background: #e2e8f0;
    outline: none;
}

.tools-range::-webkit-slider-thumb {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #4f46e5;
    border: 0;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.35);
}

.tools-range::-moz-range-thumb {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #4f46e5;
    border: 0;
    cursor: pointer;
}

.tools-range:focus-visible {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tools-result-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}

.tools-result-range,
.tools-score {
    margin-top: 0.35rem;
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
}

.tools-result-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.tools-disclaimer {
    margin: 0 0 1.25rem;
}

.tools-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tools-result-actions .btn-secondary,
.tools-result-actions .btn-primary,
.tools-score-card > .btn-primary {
    font-family: inherit;
    cursor: pointer;
}

.tools-score-card > .btn-primary {
    width: 100%;
}

.tools-checklist-groups {
    display: grid;
    gap: 1.5rem;
}

.tools-optional-toggle {
    justify-self: start;
}

.tools-check-list {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.tools-check {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.875rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #ffffff;
    cursor: pointer;
}

.tools-check:hover {
    border-color: #c7d2fe;
}

.tools-check:has(input:checked) {
    border-color: #4f46e5;
    background-color: #eef2ff;
}

.tools-check input {
    margin-top: 0.2rem;
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #4f46e5;
}

.tools-check-copy {
    display: grid;
    gap: 0.25rem;
}

.tools-check-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.tools-check-help {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #64748b;
}

.tools-fix-list {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.5;
}

.tools-copy-status {
    margin: 0 0 0.75rem;
    color: #047857;
}

[data-optional-group].is-disabled {
    opacity: 0.55;
}

[data-optional-group].is-disabled .tools-check {
    pointer-events: none;
}

.feature-list.tools-range-list {
    grid-template-columns: 1fr;
}

@media (prefers-reduced-motion: reduce) {
    .tools-panel.card-service-light,
    .card-tool-link.card-engagement,
    .tools-check {
        transition: none;
    }

    .tools-panel.card-service-light:hover,
    .card-tool-link.card-engagement:hover {
        transform: none;
    }
}

@media print {
    .site-header,
    .footer-site,
    .back-top,
    .page-glow,
    .section-hero,
    .section-cta-panel,
    .tools-result-actions,
    .tools-optional-toggle,
    noscript {
        display: none !important;
    }

    .tools-result {
        position: static;
        break-inside: avoid;
    }

    .tools-panel,
    .tools-check {
        break-inside: avoid;
        box-shadow: none;
    }

    .main-offset-brand {
        padding-top: 0;
    }
}
