/**
 * GenstarX Modern Inner Pages — E-commerce, Portfolio, CV
 */

/* ===== Shared: Stats & Charts ===== */
.gx-page-hero {
    margin-bottom: 36px;
}

.gx-page-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
    text-align: left;
}

.gx-stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 20px 18px;
    backdrop-filter: blur(10px);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.gx-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 168, 56, 0.4);
}

.gx-stat-card .gx-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
    background: rgba(232, 168, 56, 0.15);
    color: #e8a838;
}

.gx-stat-card .gx-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
}

.gx-stat-card .gx-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.65;
    margin-top: 4px;
}

.gx-sidebar-modern {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    position: sticky;
    top: 100px;
}

.gx-sidebar-modern h6 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.65;
    margin-bottom: 16px;
}

.gx-filter-chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gx-filter-chips a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 14px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.gx-filter-chips a:hover,
.gx-filter-chips a.active {
    background: rgba(232, 168, 56, 0.12);
    border-color: rgba(232, 168, 56, 0.35);
    color: #e8a838;
}

.gx-filter-chips .chip-count {
    font-size: 11px;
    opacity: 0.55;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 20px;
}

.gx-section-label {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #e8a838;
    margin-bottom: 6px;
}

/* ===== E-COMMERCE PRODUCT CARDS ===== */
.gx-eco-grid .col-md-6,
.gx-eco-grid .col-xl-4,
.gx-eco-grid .col-lg-4 {
    display: flex;
    margin-bottom: 28px;
}

.gx-eco-card {
    width: 100%;
    display: flex;
    flex-direction: row;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.gx-eco-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35), 0 0 24px rgba(232, 168, 56, 0.12);
    border-color: rgba(232, 168, 56, 0.4);
}

.gx-eco-card-link {
    display: flex;
    flex-direction: row;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.gx-eco-card-media {
    position: relative;
    width: 44%;
    min-height: 220px;
    overflow: hidden;
}

.gx-eco-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.gx-eco-card:hover .gx-eco-card-media img {
    transform: scale(1.08);
}

.gx-eco-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e8a838;
    color: #1e1e1e;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.gx-eco-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 26, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.gx-eco-card:hover .gx-eco-card-overlay {
    opacity: 1;
}

.gx-eco-quick {
    background: #fff;
    color: #1e1e1e;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 22px;
    border-radius: 30px;
    transform: translateY(12px);
    transition: transform 0.35s ease;
}

.gx-eco-card:hover .gx-eco-quick {
    transform: translateY(0);
}

.gx-eco-card-body {
    width: 56%;
    padding: 20px 20px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.gx-eco-card-body h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
    transition: color 0.3s;
}

.gx-eco-card:hover .gx-eco-card-body h3 {
    color: #e8a838;
}

.gx-eco-rating {
    color: #e8a838;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.gx-eco-price {
    font-size: 20px;
    font-weight: 700;
    color: #e8a838;
    margin-bottom: 10px;
}

.gx-eco-desc {
    font-size: 13px;
    line-height: 1.6;
    opacity: 0.8;
    flex: 1;
    margin-bottom: 14px;
}

.gx-eco-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.gx-eco-footer .btn-xs {
    flex-shrink: 0;
}

/* ===== E-COMMERCE PRODUCT DETAIL ===== */
.gx-product-detail {
    text-align: left;
}

.gx-product-gallery {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px;
    overflow: hidden;
    position: relative;
}

.gx-product-gallery img {
    width: 100%;
    border-radius: 12px;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.gx-product-gallery .gx-image-carousel {
    aspect-ratio: 1 / 1;
}

.gx-service-detail .gx-product-gallery {
    padding: 0;
}

.gx-service-detail .gx-product-gallery img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

.gx-service-detail .gx-product-gallery .gx-image-carousel {
    aspect-ratio: 16 / 9;
}

.gx-service-detail .gx-product-info {
    height: auto;
    margin-top: 28px;
}

.gx-full-image-detail .gx-product-gallery {
    padding: 0;
}

.gx-full-image-detail .gx-product-gallery .gx-image-carousel {
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

.gx-full-image-detail .gx-product-gallery .gx-image-carousel .gx-image-slide {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
}

.gx-full-image-detail .gx-product-gallery img {
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    display: block;
}

.gx-full-image-detail .gx-product-info {
    height: auto;
    margin-top: 28px;
}

.gx-product-gallery-badge {
    position: absolute;
    top: 28px;
    left: 28px;
    background: rgba(232, 168, 56, 0.9);
    color: #1e1e1e;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.gx-product-info {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px;
    height: 100%;
}

.gx-product-info h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}

.gx-product-detail-heading h2,
.gx-product-info h1 {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.gx-product-rating {
    color: #e8a838;
    font-size: 14px;
    margin-bottom: 16px;
}

.gx-product-rating span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-left: 8px;
}

.gx-product-price-box {
    background: rgba(232, 168, 56, 0.1);
    border: 1px solid rgba(232, 168, 56, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.gx-product-price-box .price-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.65;
    margin-bottom: 4px;
}

.gx-product-price-box .price-value {
    font-size: 32px;
    font-weight: 700;
    color: #e8a838;
}

.gx-product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.gx-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.06);
    padding: 8px 12px;
    border-radius: 8px;
}

.gx-trust-item i {
    color: #e8a838;
}

.gx-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.gx-detail-tabs {
    margin-top: 36px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.gx-detail-tabs .inner-tab-nav {
    background: rgba(0, 0, 0, 0.15);
}

.gx-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 28px;
}

.gx-metric-mini {
    text-align: center;
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gx-metric-mini strong {
    display: block;
    font-size: 22px;
    color: #e8a838;
    margin-bottom: 4px;
}

.gx-metric-mini span {
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* ===== PORTFOLIO PROJECT CARDS ===== */
.gx-portfolio-grid .col-md-6,
.gx-portfolio-grid .col-xl-4 {
    display: flex;
    margin-bottom: 28px;
}

.gx-portfolio-card {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/2;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gx-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.4);
}

.gx-portfolio-card-link {
    display: block;
    height: 100%;
    text-decoration: none !important;
}

.gx-portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.gx-portfolio-card:hover img {
    transform: scale(1.06);
}

.gx-portfolio-card .gx-image-slide,
.gx-portfolio-card img {
    object-fit: contain;
    background: rgba(10, 10, 26, 0.45);
}

.gx-portfolio-card:hover .gx-image-slide,
.gx-portfolio-card:hover img {
    transform: none;
}

.gx-portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.95) 0%, rgba(10, 10, 26, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    text-align: left;
    transition: background 0.4s ease;
}

.gx-portfolio-card:hover .gx-portfolio-overlay {
    background: linear-gradient(to top, rgba(10, 10, 26, 0.98) 0%, rgba(232, 168, 56, 0.15) 60%, transparent 100%);
}

.gx-portfolio-cat {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #e8a838;
    background: rgba(232, 168, 56, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}

.gx-portfolio-overlay h3 {
    min-height: 52px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #fff;
    display: -webkit-box;
    font-family: "Space Grotesk", sans-serif;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gx-portfolio-client {
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    opacity: 0.75;
    margin-bottom: 12px;
}

.gx-portfolio-cta,
.gx-portfolio-cat {
    font-family: "Space Grotesk", sans-serif;
}

.gx-portfolio-client {
    font-variant-numeric: tabular-nums;
}

.gx-portfolio-client i {
    color: #e8a838;
    margin-right: 6px;
}

.gx-portfolio-cta {
    font-size: 13px;
    font-weight: 700;
    color: #e8a838;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s, transform 0.35s;
}

.gx-portfolio-card:hover .gx-portfolio-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PROJECT DETAIL (Case Study) ===== */
.gx-case-hero {
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.gx-case-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.gx-project-detail .gx-case-hero {
    margin-bottom: 28px;
}

.gx-project-detail .gx-case-hero .gx-image-carousel {
    aspect-ratio: 16 / 9;
    min-height: 280px;
}

.gx-project-detail .gx-case-hero .gx-image-carousel .gx-image-slide {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: cover;
}

/* Detail galleries show neighboring images as a visual card peek. */
.gx-detail-image-carousel {
    overflow: hidden;
    touch-action: pan-y;
}

.gx-detail-image-carousel .gx-image-slide {
    left: 50%;
    width: 86%;
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    filter: brightness(0.48) saturate(0.75);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
}

.gx-detail-image-carousel .gx-image-slide.is-active {
    z-index: 3;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    filter: none;
}

.gx-detail-image-carousel .gx-image-slide.is-prev,
.gx-detail-image-carousel .gx-image-slide.is-next {
    z-index: 1;
    opacity: 0.42;
}

.gx-detail-image-carousel .gx-image-slide.is-prev {
    transform: translateX(calc(-50% - 88%)) scale(0.9);
}

.gx-detail-image-carousel .gx-image-slide.is-next {
    transform: translateX(calc(-50% + 88%)) scale(0.9);
}

.gx-detail-image-carousel .gx-image-prev,
.gx-detail-image-carousel .gx-image-next {
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 12px;
    background: rgba(7, 14, 28, 0.32);
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.gx-detail-image-carousel .gx-image-prev:hover,
.gx-detail-image-carousel .gx-image-next:hover,
.gx-detail-image-carousel .gx-image-prev:focus-visible,
.gx-detail-image-carousel .gx-image-next:focus-visible {
    border-color: rgba(121, 222, 210, 0.7);
    background: rgba(40, 184, 177, 0.28);
    outline: 0;
}

@media (max-width: 767px) {
    .gx-page-hero {
        margin-bottom: 22px;
    }

    .gx-page-hero > .gx-section-label {
        font-size: 11px;
        letter-spacing: 1.6px;
    }

    .gx-page-hero h2 {
        margin-bottom: 0;
        font-family: "Space Grotesk", sans-serif;
        font-size: 30px;
        font-weight: 600;
        line-height: 1.15;
    }

    .inner-shop-wrap .gx-service-item {
        max-width: none;
        flex: 0 0 50%;
        padding-right: 7px;
        padding-left: 7px;
    }

    .gx-service-card--grid {
        border-radius: 12px;
    }

    .gx-service-card--grid .gx-service-card-media {
        height: 145px;
    }

    .gx-service-card--grid .gx-service-card-body {
        padding: 12px;
    }

    .gx-service-card--grid .gx-service-card-body h3 {
        min-height: 36px;
        margin-bottom: 6px;
        font-family: "Space Grotesk", sans-serif;
        font-size: 14px;
        line-height: 1.3;
    }

    .gx-service-card--grid .gx-service-card-cta {
        font-size: 10px;
    }

    .gx-service-detail-heading h2 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 20px;
        font-weight: 600;
        line-height: 1.25;
    }

    .gx-service-detail .gx-product-gallery .gx-image-carousel {
        min-height: 190px;
    }

    .gx-detail-image-carousel .gx-image-prev,
    .gx-detail-image-carousel .gx-image-next {
        display: none;
    }

    .gx-detail-image-carousel .gx-image-slide {
        width: 92%;
    }

    .gx-detail-image-carousel .gx-image-slide.is-prev {
        transform: translateX(calc(-50% - 90%)) scale(0.9);
    }

    .gx-detail-image-carousel .gx-image-slide.is-next {
        transform: translateX(calc(-50% + 90%)) scale(0.9);
    }
}

.gx-product-detail.gx-full-image-detail .gx-detail-image-carousel .gx-image-slide,
.gx-project-detail .gx-detail-image-carousel .gx-image-slide {
    width: 86%;
}

@media (max-width: 767px) {
    .gx-product-detail.gx-full-image-detail .gx-detail-image-carousel .gx-image-slide,
    .gx-project-detail .gx-detail-image-carousel .gx-image-slide {
        width: 92%;
    }
}

.gx-case-info {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 32px;
    margin-bottom: 28px;
    text-align: left;
}

.gx-case-info h1 {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.25;
}

.gx-case-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 26, 0.92) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    text-align: left;
}

.gx-case-hero-overlay h1 {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 8px;
}

.gx-case-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 12px;
}

.gx-case-meta-item {
    font-size: 13px;
    opacity: 0.85;
}

.gx-case-meta-item i {
    color: #e8a838;
    margin-right: 6px;
}

.gx-case-content {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: left;
    line-height: 1.85;
}

@media (max-width: 767px) {
    .gx-case-info,
    .gx-case-content,
    .gx-product-info {
        padding: 14px;
        border-radius: 12px;
    }

    .gx-case-info {
        margin-bottom: 14px;
    }

    .gx-case-info h1,
    .gx-product-info h1 {
        margin-bottom: 6px;
        font-size: 20px;
        line-height: 1.25;
    }

    .gx-case-meta-row {
        gap: 7px 12px;
        margin-top: 8px;
    }

    .gx-case-meta-item,
    .gx-product-rating,
    .gx-product-rating span {
        font-size: 11px;
    }

    .gx-case-content {
        font-size: 12px;
        line-height: 1.6;
    }

    .gx-case-content h3 {
        margin-bottom: 8px !important;
        font-size: 15px !important;
    }

    .gx-case-content p,
    .inner-detail-text {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.6;
    }

    .gx-product-info {
        margin-top: 14px;
    }

    .gx-product-trust {
        gap: 6px;
        margin-bottom: 14px;
    }

    .gx-trust-item {
        gap: 5px;
        font-size: 10px;
    }

    .gx-product-actions,
    .inner-detail-actions {
        gap: 7px;
        margin-top: 14px !important;
    }

    .gx-product-actions .btn,
    .inner-detail-actions .btn {
        min-height: 38px;
        padding: 8px 12px;
        font-size: 11px;
        line-height: 1.3;
    }
}

.gx-case-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

/* ===== CV / TEAM CARDS ===== */
.gx-cv-grid .col-md-6,
.gx-cv-grid .col-lg-4 {
    display: flex;
    margin-bottom: 28px;
}

.gx-cv-card-pro {
    width: 100%;
    display: flex;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    text-align: left;
}

.gx-cv-card-pro:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    border-color: rgba(232, 168, 56, 0.4);
}

.gx-cv-card-photo {
    flex: 0 0 130px;
    position: relative;
    overflow: hidden;
}

.gx-cv-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gx-cv-card-pro:hover .gx-cv-card-photo img {
    transform: scale(1.05);
}

.gx-cv-card-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(10, 10, 26, 0.4) 100%);
}

.gx-cv-card-body {
    flex: 1;
    padding: 22px 20px 22px 16px;
    display: flex;
    flex-direction: column;
}

.gx-cv-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}

.gx-cv-card-role {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #e8a838;
    margin-bottom: 10px;
}

.gx-cv-card-bio {
    font-size: 13px;
    line-height: 1.55;
    opacity: 0.8;
    margin-bottom: 12px;
    flex: 1;
}

.gx-cv-card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.gx-skill-pill {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 20px;
    background: rgba(232, 168, 56, 0.12);
    color: #e8a838;
    border: 1px solid rgba(232, 168, 56, 0.25);
}

.gx-cv-card-meta {
    display: flex;
    gap: 16px;
    font-size: 11px;
    opacity: 0.6;
    margin-bottom: 12px;
}

.gx-cv-card-meta strong {
    color: #e8a838;
    font-size: 14px;
    display: block;
}

/* ===== CV DETAIL ===== */
.gx-cv-detail {
    text-align: left;
}

.gx-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    min-height: 430px;
    margin-bottom: 28px;
    overflow: hidden;
    background: #4935d5;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28);
}

.gx-profile-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 58px 48px;
    color: #fff;
}

.gx-profile-eyebrow {
    margin-bottom: 28px;
    color: #cafa72;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.gx-profile-eyebrow i {
    margin-right: 6px;
}

.gx-profile-hero-copy h1 {
    max-width: 560px;
    margin: 0;
    color: #cafa72;
    font-size: 68px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 0.98;
}

.gx-profile-role {
    margin: 18px 0 0;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.gx-profile-intro {
    max-width: 390px;
    margin: 16px 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 1.65;
}

.gx-profile-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 17px;
    border: 1px solid rgba(202, 250, 114, 0.55);
    border-radius: 3px;
    color: #cafa72;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.gx-profile-contact:hover,
.gx-profile-contact:focus {
    background: #cafa72;
    color: #4935d5;
    text-decoration: none;
}

.gx-profile-contact-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 26px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
}

.gx-profile-contact-lines span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.gx-profile-contact-lines i {
    color: #cafa72;
}

.gx-profile-hero-art {
    position: relative;
    overflow: hidden;
    background: #cafa72;
}

.gx-profile-photo-frame {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(68%, 290px);
    aspect-ratio: 0.82;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 1px solid rgba(73, 53, 213, 0.35);
    box-shadow: 20px 20px 0 rgba(73, 53, 213, 0.16), 0 20px 36px rgba(24, 18, 90, 0.25);
}

.gx-profile-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-profile-dot-grid {
    position: absolute;
    top: 16%;
    right: 10%;
    width: 78px;
    height: 78px;
    opacity: 0.5;
    background-image: radial-gradient(#4935d5 1px, transparent 1px);
    background-size: 9px 9px;
}

.gx-profile-line {
    position: absolute;
    border: 1px solid rgba(73, 53, 213, 0.55);
}

.gx-profile-line--one {
    top: 22%;
    left: 16%;
    width: 120px;
    height: 155px;
    border-right: 0;
    border-bottom: 0;
}

.gx-profile-line--two {
    right: 12%;
    bottom: 18%;
    width: 108px;
    height: 82px;
    border-left: 0;
    border-top: 0;
}

.gx-profile-diamond {
    position: absolute;
    right: 9%;
    width: 6px;
    height: 6px;
    background: #4935d5;
    transform: rotate(45deg);
}

.gx-profile-diamond--one { bottom: 28%; }
.gx-profile-diamond--two { bottom: 21%; }
.gx-profile-diamond--three { bottom: 14%; }

.gx-profile-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 28px;
}

.gx-profile-content .gx-cv-main-section:first-child,
.gx-profile-content .gx-cv-main-section:last-child {
    grid-column: 1 / -1;
}

.gx-cv-layout--reference {
    display: block;
}

.gx-cv-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 28px;
    align-items: start;
}

.gx-cv-sidebar {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px 24px;
    position: sticky;
    top: 100px;
    text-align: center;
}

.gx-cv-sidebar-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid rgba(232, 168, 56, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.gx-cv-sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-cv-sidebar h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.gx-cv-sidebar .role {
    color: #e8a838;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.gx-cv-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.gx-cv-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.85;
}

.gx-cv-contact-list i {
    color: #e8a838;
    width: 18px;
    text-align: center;
}

.gx-cv-main-section {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
}

.gx-cv-main-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gx-cv-main-section h2 .num {
    color: #e8a838;
    font-size: 14px;
    opacity: 0.8;
}

.gx-skill-bar-pro {
    margin-bottom: 16px;
}

.gx-skill-bar-pro .label-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.gx-skill-bar-pro .bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.gx-skill-bar-pro .bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #e8a838, #39ced6);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.gx-skill-bar-pro.in-view .bar-fill {
    width: var(--level, 80%);
}

.gx-related-modern {
    margin-top: 48px;
}

.gx-related-modern .title-block {
    margin-bottom: 28px;
}

.gx-inner-main .gx-page-stats,
.gx-inner-main .gx-sidebar-modern {
    text-align: left;
}

.inner-shop-wrap.gx-eco-grid,
.inner-shop-wrap .gx-eco-grid {
    text-align: left;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .gx-page-stats {
        grid-template-columns: 1fr;
    }

    .gx-cv-layout {
        grid-template-columns: 1fr;
    }

    .gx-cv-sidebar {
        position: static;
    }

    .gx-sidebar-modern {
        position: static;
        margin-bottom: 24px;
    }

    .gx-detail-metrics,
    .gx-case-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .inner-shop-wrap .row,
    .gx-portfolio-grid {
        justify-content: flex-start;
    }

    .gx-portfolio-grid .gx-portfolio-item {
        width: 100%;
        max-width: none;
        flex: 0 0 50%;
        padding-right: 7px;
        padding-left: 7px;
    }

    .gx-portfolio-card,
    .gx-service-card--grid {
        width: 100%;
        max-width: 430px;
        margin-right: auto;
        margin-left: auto;
    }

    .gx-portfolio-card {
        aspect-ratio: 4 / 3;
        border-radius: 12px;
    }

    .gx-portfolio-overlay {
        padding: 12px;
    }

    .gx-portfolio-overlay h3 {
        min-height: 38px;
        font-size: 14px;
        line-height: 1.25;
    }

    .gx-portfolio-cat {
        margin-bottom: 5px;
        padding: 3px 7px;
        font-size: 8px;
    }

    .gx-portfolio-client,
    .gx-portfolio-cta {
        font-size: 10px;
    }

    .gx-service-card--grid .gx-service-card-media {
        height: 230px;
    }

    .gx-portfolio-card .gx-image-carousel,
    .gx-service-card--grid .gx-image-carousel {
        width: 100%;
        height: 100%;
    }

    .gx-profile-hero {
        grid-template-columns: 1fr;
    }

    .gx-profile-hero-copy {
        min-height: 390px;
        padding: 42px 28px 48px;
    }

    .gx-profile-hero-copy h1 {
        font-size: 48px;
    }

    .gx-profile-hero-art {
        min-height: 330px;
    }

    .gx-profile-photo-frame {
        width: 210px;
    }

    .gx-profile-content {
        display: block;
    }

    .gx-eco-card-link {
        flex-direction: column;
    }

    .gx-eco-card-media {
        width: 100%;
        min-height: 0;
        aspect-ratio: 16/9;
    }

    .gx-eco-card-body {
        width: 100%;
    }

    .gx-cv-card-pro {
        flex-direction: column;
    }

    .gx-cv-card-photo {
        flex: 0 0 180px;
    }

    .gx-case-hero-overlay h1 {
        font-size: 24px;
    }

    .gx-product-info h1 {
        font-size: 24px;
    }
}

.gx-profile-hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    width: min(1080px, 100%);
    min-height: 590px;
    margin-bottom: 46px;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    background: rgba(10, 10, 26, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gx-profile-hero-copy {
    justify-content: center;
    padding: 76px 70px;
}

.gx-profile-eyebrow {
    margin-bottom: 24px;
    color: #e8a838;
}

.gx-profile-hero-copy h1 {
    color: #fff;
    font-size: 76px;
    letter-spacing: -1.5px;
    line-height: 1.02;
}

.gx-profile-role {
    color: #e8a838;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.gx-profile-intro {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.8;
}

.gx-profile-contact {
    border-color: rgba(232, 168, 56, 0.65);
    border-radius: 22px;
    color: #e8a838;
}

.gx-profile-contact:hover,
.gx-profile-contact:focus {
    background: #e8a838;
    color: #1e1e1e;
}

.gx-profile-contact-lines i {
    color: #e8a838;
}

.gx-profile-hero-art {
    min-height: 590px;
    overflow: visible;
    background: transparent;
}

.gx-profile-photo-frame {
    top: 50%;
    left: 50%;
    width: min(82%, 430px);
    aspect-ratio: 0.78;
    border: 8px solid rgba(255, 255, 255, 0.86);
    border-radius: 20px;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.35), 18px 18px 0 rgba(232, 168, 56, 0.55);
    animation: gxProfileFloat 5.5s ease-in-out infinite;
}

.gx-profile-photo-frame img {
    display: block;
}

.gx-profile-dot-grid {
    top: 16%;
    right: 4%;
    opacity: 0.35;
    background-image: radial-gradient(#e8a838 1px, transparent 1px);
}

.gx-profile-line {
    border-color: rgba(232, 168, 56, 0.55);
}

.gx-profile-line--one {
    top: 18%;
    left: 8%;
}

.gx-profile-line--two {
    right: 1%;
    bottom: 16%;
}

.gx-profile-diamond {
    right: 3%;
    background: #e8a838;
}

.gx-profile-content .gx-cv-main-section {
    background: rgba(10, 10, 26, 0.25);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@keyframes gxProfileFloat {
    0%, 100% {
        transform: translate(-50%, calc(-50% - 7px)) rotate(1deg);
    }
    50% {
        transform: translate(-50%, calc(-50% + 9px)) rotate(-1deg);
    }
}

@media (max-width: 767px) {
    .gx-profile-hero {
        display: block;
        overflow: hidden;
        min-height: 0;
    }

    .gx-profile-hero-copy {
        min-height: 0;
        padding: 48px 28px 36px;
    }

    .gx-profile-hero-copy h1 {
        font-size: 46px;
    }

    .gx-profile-hero-art {
        min-height: 360px;
    }

    .gx-profile-photo-frame {
        width: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gx-profile-photo-frame {
        animation: none;
    }
}

.gx-profile-layout {
    display: block;
}

.gx-profile-content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 24px;
}

.gx-profile-section {
    min-width: 0;
    padding: 28px 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(10, 10, 26, 0.24);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gx-profile-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
}

.gx-profile-section h2 .num {
    color: #e8a838;
    font-size: 13px;
}

.gx-profile-content .gx-profile-section:first-child {
    grid-column: 1;
}

.gx-profile-content .gx-profile-section:last-child {
    grid-column: 2;
    grid-row: 1;
}

@media (max-width: 767px) {
    .gx-profile-content {
        display: block;
    }

    .gx-profile-section {
        margin-bottom: 20px;
        padding: 24px 20px;
    }
}

.gx-team-tree {
    position: relative;
    max-width: 1120px;
    margin: 18px auto 0;
    padding: 12px 0 40px;
    text-align: center;
}

.gx-team-canvas {
    width: max-content;
    min-width: 100%;
}

.gx-team-root {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 12px 22px;
    border: 1px solid rgba(232, 168, 56, 0.55);
    border-radius: 28px;
    background: rgba(10, 10, 26, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 25px rgba(232, 168, 56, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.gx-team-root-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8a838;
    color: #1e1e1e;
    font-size: 13px;
}

.gx-team-levels {
    position: relative;
    margin-top: 34px;
}

.gx-team-levels::before {
    content: '';
    position: absolute;
    top: -34px;
    left: 50%;
    width: 1px;
    height: 76px;
    background: rgba(232, 168, 56, 0.55);
}

.gx-team-branch {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.gx-team-levels > .gx-team-branch {
    margin-top: 42px;
}

.gx-team-member {
    position: relative;
    display: flex;
    flex: 0 1 150px;
    flex-direction: column;
    align-items: center;
}

.gx-team-children {
    position: relative;
    width: 100%;
    margin-top: 42px;
    padding-top: 42px;
}

.gx-team-children::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 42px;
    background: rgba(232, 168, 56, 0.42);
}

.gx-team-children > .gx-team-branch {
    position: relative;
    padding-top: 0;
}

.gx-team-node {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 1 150px;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    padding: 0 8px 14px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.35s ease, color 0.35s ease;
}

.gx-team-node::before {
    content: '';
    position: absolute;
    top: -42px;
    left: 50%;
    width: 1px;
    height: 42px;
    background: rgba(232, 168, 56, 0.42);
}

.gx-team-node:hover,
.gx-team-node:focus {
    color: #e8a838;
    text-decoration: none;
    transform: translateY(-8px);
    outline: 0;
}

.gx-team-node-photo {
    display: block;
    width: 122px;
    height: 122px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(10, 10, 26, 0.7);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
    transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.gx-team-node-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.gx-team-node strong {
    max-width: 150px;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.gx-team-node small {
    max-width: 150px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 10px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.gx-team-node:hover small,
.gx-team-node:focus small {
    color: rgba(232, 168, 56, 0.8);
}

.gx-team-node:hover .gx-team-node-photo,
.gx-team-node:focus .gx-team-node-photo {
    border-color: #e8a838;
    box-shadow: 0 15px 32px rgba(232, 168, 56, 0.25);
}

@media (max-width: 767px) {
    .gx-team-tree {
        padding-bottom: 24px;
    }

    .gx-team-node {
        flex-basis: 125px;
    }

    .gx-team-node::before {
        top: -34px;
        height: 34px;
    }

    .gx-team-node-photo {
        width: 96px;
        height: 96px;
    }

    .gx-team-member {
        flex-basis: 125px;
    }

    .gx-team-children {
        margin-top: 34px;
        padding-top: 34px;
    }

    .gx-team-children::before {
        height: 34px;
    }
}

/* Org-chart geometry: each parent reserves the width of its complete subtree. */
.gx-team-tree {
    overflow-x: auto;
    padding-right: 24px;
    padding-left: 24px;
}

.gx-team-levels {
    width: max-content;
    min-width: 100%;
}

.gx-team-levels > .gx-team-branch {
    width: max-content;
    min-width: 100%;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 42px;
}

.gx-team-member {
    flex: 0 0 auto;
    width: max-content;
    min-width: 150px;
}

.gx-team-node {
    flex: 0 0 150px;
    width: 150px;
}

.gx-team-children {
    width: max-content;
    margin-top: 42px;
    padding-top: 42px;
}

.gx-team-children > .gx-team-branch {
    width: max-content;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 42px;
}

@media (max-width: 767px) {
    .gx-team-tree {
        padding-right: 18px;
        padding-left: 18px;
    }

    .gx-team-levels > .gx-team-branch,
    .gx-team-children > .gx-team-branch {
        gap: 28px;
    }

    .gx-team-member {
        min-width: 125px;
    }

    .gx-team-node {
        flex-basis: 125px;
        width: 125px;
    }

}

/* Connector direction: horizontal rails sit above the child nodes. */
.gx-team-levels > .gx-team-branch,
.gx-team-children > .gx-team-branch {
    position: relative;
    padding-top: 42px;
}

.gx-team-levels > .gx-team-branch--multiple::before,
.gx-team-children > .gx-team-branch--multiple::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--team-rail-left, 75px);
    right: var(--team-rail-right, 75px);
    height: 1px;
    background: rgba(232, 168, 56, 0.42);
}

.gx-team-levels > .gx-team-branch--multiple::before {
    left: var(--team-rail-left, 75px);
    right: var(--team-rail-right, 75px);
}

.gx-team-levels > .gx-team-branch--single::before,
.gx-team-children > .gx-team-branch--single::before {
    content: none;
}

.gx-team-node::before {
    top: -42px;
    height: 42px;
}

.gx-team-children {
    margin-top: 42px;
    padding-top: 0;
}

.gx-team-children::before {
    top: -42px;
    height: 42px;
}

@media (max-width: 767px) {
    .gx-team-levels > .gx-team-branch,
    .gx-team-children > .gx-team-branch {
        padding-top: 34px;
    }

    .gx-team-levels > .gx-team-branch--multiple::before,
    .gx-team-children > .gx-team-branch--multiple::before {
        left: var(--team-rail-left, 62px);
        right: var(--team-rail-right, 62px);
    }

    .gx-team-levels > .gx-team-branch--multiple::before {
        left: var(--team-rail-left, 62px);
        right: var(--team-rail-right, 62px);
    }

    .gx-team-node::before {
        top: -34px;
        height: 34px;
    }

    .gx-team-children {
        margin-top: 34px;
    }

    .gx-team-children::before {
        top: -34px;
        height: 34px;
    }
}

/* Keep the hierarchy readable on narrow touch screens without widening the page. */
@media (max-width: 991px) {
    .gx-team-tree {
        max-width: 100%;
        overflow-x: hidden;
    }

    .gx-team-canvas {
        zoom: 0.75;
    }

    .gx-profile-hero {
        display: block;
        min-height: 0;
    }

    .gx-profile-hero-copy {
        min-height: 0;
        padding: 46px 34px 38px;
    }

    .gx-profile-hero-art {
        min-height: 340px;
    }

    .gx-profile-photo-frame {
        width: min(58%, 270px);
    }
}

@media (max-width: 575px) {
    .gx-team-tree {
        margin-top: 12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .gx-team-canvas {
        zoom: 0.47;
    }

    .gx-team-levels > .gx-team-branch,
    .gx-team-children > .gx-team-branch {
        gap: 22px;
    }

    .gx-team-member {
        min-width: 112px;
    }

    .gx-team-node,
    .gx-team-node strong,
    .gx-team-node small {
        width: 112px;
        max-width: 112px;
    }

    .gx-team-node {
        flex-basis: 112px;
        gap: 8px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .gx-team-node-photo {
        width: 86px;
        height: 86px;
    }

    .gx-profile-hero-copy {
        padding: 34px 20px 30px;
    }

    .gx-profile-eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 1.2px;
    }

    .gx-profile-hero-copy h1 {
        font-size: 44px;
    }

    .gx-profile-role {
        margin-top: 12px;
        font-size: 14px;
    }

    .gx-profile-intro {
        margin: 12px 0 20px;
        font-size: 13px;
    }

    .gx-profile-contact-lines {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        margin-top: 20px;
        font-size: 10px;
    }

    .gx-profile-hero-art {
        min-height: 280px;
    }

    .gx-profile-photo-frame {
        width: min(58%, 205px);
    }

    .gx-profile-line--one {
        left: 8%;
        width: 78px;
        height: 105px;
    }

    .gx-profile-line--two {
        right: 8%;
        width: 72px;
        height: 58px;
    }

    .gx-related-modern {
        margin-top: 32px;
    }
}

@media (max-width: 767px) {
    .gx-team-tree {
        margin-top: 10px;
        padding: 6px 10px 18px;
    }

    .gx-team-root {
        min-height: 38px;
        padding: 8px 14px;
        gap: 7px;
        border-radius: 20px;
        font-size: 11px;
    }

    .gx-team-root-mark {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .gx-team-levels {
        margin-top: 24px;
    }

    .gx-team-levels > .gx-team-branch,
    .gx-team-children > .gx-team-branch {
        gap: 16px;
    }

    .gx-team-member,
    .gx-team-node,
    .gx-team-node strong,
    .gx-team-node small {
        width: 96px;
        max-width: 96px;
        min-width: 96px;
    }

    .gx-team-node {
        flex-basis: 96px;
        gap: 6px;
        padding: 0 2px 9px;
    }

    .gx-team-node-photo {
        width: 68px;
        height: 68px;
        padding: 3px;
    }

    .gx-team-node strong {
        font-family: "Space Grotesk", sans-serif;
        font-size: 11px;
        line-height: 1.2;
    }

    .gx-team-node small {
        font-size: 8px;
        letter-spacing: .4px;
        line-height: 1.2;
    }

    .gx-portfolio-overlay h3 {
        font-size: 13px;
    }

    .gx-portfolio-overlay {
        padding: 10px;
    }

    .gx-cv-detail {
        font-family: "Space Grotesk", sans-serif;
    }

    .gx-profile-hero {
        border-radius: 14px;
        margin-bottom: 24px;
    }

    .gx-profile-hero-copy {
        padding: 24px 16px 20px;
    }

    .gx-profile-eyebrow {
        margin-bottom: 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .gx-profile-hero-copy h1 {
        margin-bottom: 8px;
        font-size: 28px;
        line-height: 1.15;
        letter-spacing: 0;
    }

    .gx-profile-role {
        margin-bottom: 8px;
        font-size: 11px;
    }

    .gx-profile-intro {
        font-size: 12px;
        line-height: 1.55;
    }

    .gx-profile-contact {
        padding: 8px 13px;
        border-radius: 10px;
        font-size: 11px;
    }

    .gx-profile-contact-lines {
        gap: 6px;
        margin-top: 12px;
        font-size: 10px;
    }

    .gx-profile-hero-art {
        min-height: 230px;
    }

    .gx-profile-photo-frame {
        width: 145px;
        border-width: 5px;
        border-radius: 14px;
        box-shadow: 0 18px 32px rgba(0, 0, 0, 0.3), 10px 10px 0 rgba(232, 168, 56, 0.5);
    }

    .gx-cv-grid > [class*="col-"] {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
        padding-right: 7px;
        padding-left: 7px;
    }

    .gx-cv-card-pro {
        min-height: 104px;
        flex-direction: row !important;
        border-radius: 12px;
    }

    .gx-cv-card-photo {
        flex: 0 0 62px;
        width: 62px;
    }

    .gx-cv-card-body {
        min-width: 0;
        padding: 9px 7px;
    }

    .gx-cv-card-body h3 {
        font-family: "Space Grotesk", sans-serif;
        font-size: 11px;
        line-height: 1.2;
    }

    .gx-cv-card-role {
        margin-bottom: 6px;
        font-size: 7px;
        letter-spacing: .7px;
    }

    .gx-cv-card-skills {
        gap: 4px;
    }

    .gx-skill-pill {
        padding: 2px 4px;
        font-size: 7px;
    }

    .gx-cv-card-body .btn-xs {
        align-self: flex-start;
        margin-top: 6px;
        min-height: 0;
        padding: 4px 6px;
        font-size: 8px;
        line-height: 1.2;
    }
}

