/* ============================================
   v4 PATCHES — append after v3-patch.css
   ============================================ */

/* --- 3D Decoration Containers --- */
.decor-3d {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section-with-decor {
    position: relative;
    overflow: hidden;
}

.section-with-decor > .container {
    position: relative;
    z-index: 1;
}

/* Typical placements */
.decor-right {
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    opacity: 0.6;
}

.decor-left {
    left: -60px;
    top: 30%;
    width: 280px;
    height: 280px;
    opacity: 0.5;
}

.decor-top-right {
    right: 20px;
    top: -20px;
    width: 200px;
    height: 200px;
    opacity: 0.4;
}

.decor-bottom-left {
    left: 0;
    bottom: -40px;
    width: 240px;
    height: 240px;
    opacity: 0.4;
}

@media (max-width: 1024px) {
    .decor-3d {
        display: none;
    }
}

/* --- Hero pages (services, blog, portfolio headers) --- */
.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.page-hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, transparent, var(--black));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

/* --- Results Grid Redesign --- */
.results-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.result-card-v2 {
    padding: 32px 24px;
    border-radius: var(--radius);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.06), rgba(10, 10, 10, 0.4));
    transition: var(--transition);
}

.result-card-v2:hover {
    border-color: var(--teal);
    transform: translateY(-4px);
    box-shadow: var(--glow);
}

.result-card-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0;
    transition: var(--transition);
}

.result-card-v2:hover::before {
    opacity: 1;
}

.result-card-v2 .rc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--teal-light);
}

.result-card-v2 .rc-icon .icon-svg {
    font-size: 22px;
}

.result-card-v2 .rc-number {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 8px;
}

.result-card-v2 .rc-label {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.4;
}

.result-card-v2 .rc-sub {
    font-size: 11px;
    color: rgba(176, 176, 176, 0.5);
    margin-top: 4px;
}

@media (max-width: 1024px) {
    .results-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .results-grid-v2 {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .result-card-v2 .rc-number {
        font-size: 28px;
    }
}

/* --- Timeline fix (result badge) --- */
.timeline-result {
    margin-top: 12px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.1), rgba(0, 113, 121, 0.04));
    border: 1px solid var(--glass-border);
    font-size: 13px;
    color: var(--teal-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.timeline-result .icon-svg {
    font-size: 16px;
}

/* --- Team Grid Redesign --- */
.team-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.team-card-v2 {
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.04), rgba(10, 10, 10, 0.3));
    transition: var(--transition);
}

.team-card-v2:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.team-card-v2 .tc-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--white);
    box-shadow: 0 4px 20px rgba(0, 113, 121, 0.3);
}

.team-card-v2 .tc-avatar .icon-svg {
    font-size: 26px;
}

.team-card-v2 .tc-name {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.team-card-v2 .tc-role {
    font-size: 12px;
    color: var(--teal-light);
    font-weight: 500;
    margin-bottom: 8px;
}

.team-card-v2 .tc-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.5;
}

/* --- Portfolio list container fix --- */
.portfolio-page .portfolio-grid {
    max-width: 100%;
}

.portfolio-page .project-card {
    display: flex;
    flex-direction: column;
}

.portfolio-page .project-image {
    min-height: 200px;
}

/* --- Price cards without exact numbers --- */
.sd-price-card .price-range {
    font-size: 18px;
    font-weight: 600;
    color: var(--teal-light);
    margin-bottom: 4px;
    line-height: 1.4;
}

/* --- Process steps: always 5 columns on desktop --- */
@media (min-width: 1025px) {
    .process-timeline {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* Ensure services detail steps look good at 4 or 5 */
.sd-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    position: relative;
}

.sd-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal), var(--teal), transparent);
    z-index: 0;
}

.sd-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.sd-step-num {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--black);
    border: 2px solid var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    color: var(--teal-light);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.sd-step:hover .sd-step-num {
    background: var(--teal);
    color: var(--white);
    box-shadow: var(--glow-strong);
}

.sd-step h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.sd-step p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.6;
}

/* --- Special Offer Modal --- */
.offer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.offer-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.offer-modal {
    background: var(--dark-gray);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s ease;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--glow);
}

.offer-overlay.active .offer-modal {
    transform: translateY(0) scale(1);
}

.offer-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.offer-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.offer-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    background: var(--teal);
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.offer-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}

.offer-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.offer-perks {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.offer-perks span {
    padding: 6px 14px;
    border-radius: 50px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 12px;
    color: var(--teal-light);
    font-weight: 500;
}

.offer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.offer-form input {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.6);
    color: var(--white);
    font-family: var(--font);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.offer-form input:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 113, 121, 0.15);
}

.offer-note {
    font-size: 12px;
    color: rgba(176, 176, 176, 0.5);
    text-align: center;
    margin-top: 12px;
}

@media (max-width: 480px) {
    .offer-modal {
        padding: 28px 20px;
    }
    .offer-title {
        font-size: 22px;
    }
}

/* --- About page --- */
.about-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}

.about-counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-counter {
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.08), rgba(10, 10, 10, 0.4));
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.about-counter .ac-num {
    font-size: 36px;
    font-weight: 800;
    color: var(--teal-light);
}

.about-counter .ac-label {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.value-card {
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.04), rgba(10, 10, 10, 0.3));
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--glass-border);
    transform: translateY(-4px);
}

.value-card .vc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--teal-light);
    margin-bottom: 16px;
}

.value-card .vc-icon .icon-svg {
    font-size: 22px;
}

.value-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

@media (max-width: 1024px) {
    .about-hero-split {
        grid-template-columns: 1fr;
    }
}
/* --- Automation: broader business-process positioning --- */
.automation-intro {
    max-width: 900px;
    margin: -8px auto 40px;
    text-align: center;
}

.automation-intro p {
    color: var(--gray);
    font-size: 16px;
    line-height: 1.85;
}

.automation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.automation-card {
    min-height: 210px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.automation-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 183, 194, 0.45);
    background: rgba(0, 113, 121, 0.08);
    box-shadow: var(--glow);
}

.automation-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    color: var(--teal-light);
    background: rgba(0, 113, 121, 0.12);
    border: 1px solid rgba(0, 183, 194, 0.18);
}

.automation-card-icon .icon-svg,
.automation-card-icon svg {
    width: 24px;
    height: 24px;
}

.automation-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.automation-card p {
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.automation-system {
    margin-top: 32px;
    padding: 36px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid rgba(0, 183, 194, 0.18);
    position: relative;
    overflow: hidden;
}

.automation-system::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -180px;
    top: -240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 183, 194, 0.12), transparent 68%);
    pointer-events: none;
}

.automation-system-copy {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.automation-system-kicker {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--teal-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 11px;
    font-weight: 700;
}

.automation-system h3 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 14px;
}

.automation-system p {
    color: var(--gray);
    line-height: 1.8;
    font-size: 15px;
}

.automation-chain {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    position: relative;
    z-index: 1;
}

.automation-chain span {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0, 113, 121, 0.1);
    border: 1px solid rgba(0, 183, 194, 0.22);
    color: var(--white);
    font-size: 13px;
    font-weight: 600;
}

.automation-chain i {
    color: var(--teal-light);
    font-style: normal;
    opacity: 0.7;
}

.automation-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.automation-benefit {
    padding: 20px 22px;
    border-radius: var(--radius-sm);
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.automation-benefit strong,
.automation-benefit span {
    display: block;
}

.automation-benefit strong {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 7px;
}

.automation-benefit span {
    color: var(--gray);
    font-size: 13px;
    line-height: 1.55;
}

.automation-cta {
    margin-top: 34px;
    text-align: center;
}

.sd-pricing-note {
    max-width: 850px;
    margin: 28px auto 0;
    color: var(--gray);
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .automation-grid,
    .automation-benefits {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .automation-intro {
        text-align: left;
        margin-bottom: 28px;
    }

    .automation-grid,
    .automation-benefits {
        grid-template-columns: 1fr;
    }

    .automation-card {
        min-height: 0;
        padding: 22px;
    }

    .automation-system {
        padding: 24px;
    }

    .automation-chain {
        gap: 8px;
    }

    .automation-chain i {
        display: none;
    }
}

/* Service formats: special offer + detailed formats */
.service-formats-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 22px;
    align-items: stretch;
}

.service-special {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 38px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 183, 194, 0.38);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 183, 194, 0.18), transparent 42%),
        linear-gradient(145deg, rgba(8, 35, 39, 0.96), rgba(8, 17, 22, 0.98));
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.service-special::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    bottom: -100px;
    border: 1px solid rgba(0, 183, 194, 0.16);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(0, 183, 194, 0.035), 0 0 0 68px rgba(0, 183, 194, 0.02);
    pointer-events: none;
}

.service-special-topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 34px;
}

.service-special-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0, 183, 194, 0.13);
    border: 1px solid rgba(0, 183, 194, 0.3);
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-special-meta {
    max-width: 230px;
    color: var(--gray);
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

.service-special-copy,
.service-special-list,
.service-special-cta {
    position: relative;
    z-index: 1;
}

.service-special-copy h3 {
    max-width: 620px;
    margin: 0 0 16px;
    color: var(--white);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.service-special-copy p {
    max-width: 650px;
    margin: 0;
    color: var(--gray-light);
    font-size: 15px;
    line-height: 1.75;
}

.service-special-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin: 30px 0 34px;
    padding: 0;
    list-style: none;
}

.service-special-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--gray-light);
    font-size: 13px;
    line-height: 1.5;
}

.service-format-check {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--teal-light);
    margin-top: 1px;
}

.service-format-check .icon-svg {
    width: 16px;
    height: 16px;
}

.service-special-cta {
    width: fit-content;
    margin-top: auto;
}

.service-format-list {
    display: grid;
    gap: 14px;
}

.service-format-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 25px 26px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.service-format-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 183, 194, 0.3);
    background: rgba(255, 255, 255, 0.045);
}

.service-format-number {
    color: rgba(0, 183, 194, 0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding-top: 5px;
}

.service-format-body h3 {
    margin: 0 0 9px;
    color: var(--white);
    font-size: 20px;
    line-height: 1.25;
}

.service-format-body > p {
    margin: 0 0 14px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.65;
}

.service-format-fit {
    margin-bottom: 17px;
    color: var(--gray-light);
    font-size: 12px;
    line-height: 1.55;
}

.service-format-fit strong {
    color: var(--white);
    font-weight: 600;
}

.service-format-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--teal-light);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.service-format-link:hover {
    gap: 12px;
    color: var(--white);
}

.service-formats-note {
    max-width: 840px;
    margin: 28px auto 0;
    color: var(--gray);
    text-align: center;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .service-formats-layout {
        grid-template-columns: 1fr;
    }

    .service-special {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .service-special {
        padding: 26px 22px;
        border-radius: var(--radius-md);
    }

    .service-special-topline {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 26px;
    }

    .service-special-meta {
        max-width: none;
        text-align: left;
    }

    .service-special-list {
        grid-template-columns: 1fr;
        margin: 24px 0 28px;
    }

    .service-special-cta {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .service-format-card {
        grid-template-columns: 1fr;
        gap: 9px;
        padding: 22px;
    }

    .service-format-number {
        padding-top: 0;
    }
}

/* About page: stronger values section */
.values-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 44px;
}

.values-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.values-kicker::before {
    content: '';
    width: 26px;
    height: 1px;
    background: currentColor;
    opacity: 0.75;
}

.values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.value-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
    padding: 30px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.075);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 183, 194, 0.08), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(0, 113, 121, 0.025));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 30px;
    right: 30px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 183, 194, 0.65), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-card::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    right: -72px;
    bottom: -72px;
    border: 1px solid rgba(0, 183, 194, 0.09);
    border-radius: 50%;
    box-shadow: 0 0 0 26px rgba(0, 183, 194, 0.018);
    pointer-events: none;
}

.value-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 183, 194, 0.3);
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 183, 194, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(0, 113, 121, 0.04));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.value-card:hover::before {
    opacity: 1;
}

.value-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.value-card .vc-icon {
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 15px;
    background: rgba(0, 183, 194, 0.09);
    border: 1px solid rgba(0, 183, 194, 0.22);
    box-shadow: 0 8px 24px rgba(0, 183, 194, 0.05);
}

.value-card .vc-icon .icon-svg {
    width: 24px;
    height: 24px;
    font-size: 24px;
}

.value-number {
    color: rgba(255, 255, 255, 0.16);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.value-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.25;
}

.value-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 24px;
    color: var(--gray);
    font-size: 13px;
    line-height: 1.75;
}

.value-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(0, 183, 194, 0.14);
    background: rgba(0, 183, 194, 0.055);
    color: var(--teal-light);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

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

@media (max-width: 640px) {
    .values-header {
        margin-bottom: 30px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        min-height: 0;
        padding: 24px 22px;
        border-radius: var(--radius-md);
    }

    .value-card-top {
        margin-bottom: 20px;
    }
}


/* ============================================
   TECHNOLOGY SHOWCASE
   ============================================ */
.tech-showcase {
    position: relative;
    overflow: hidden;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(74, 220, 222, 0.2);
    border-radius: 999px;
    background: rgba(0, 113, 121, 0.08);
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.tech-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tech-stack-card {
    position: relative;
    min-height: 280px;
    padding: 28px;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}

.tech-stack-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-light), transparent);
    opacity: 0;
    transition: opacity .3s ease;
}

.tech-stack-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    top: -70px;
    border-radius: 50%;
    background: rgba(0, 171, 181, 0.08);
    filter: blur(4px);
    transition: transform .35s ease, opacity .35s ease;
}

.tech-stack-card:hover {
    transform: translateY(-6px);
    border-color: rgba(74, 220, 222, 0.32);
    background: linear-gradient(145deg, rgba(0, 113, 121, 0.12), rgba(255, 255, 255, 0.025));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.tech-stack-card:hover::before {
    opacity: .8;
}

.tech-stack-card:hover::after {
    transform: scale(1.2);
}

.tech-stack-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.tech-stack-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(74, 220, 222, 0.2);
    border-radius: 14px;
    background: rgba(0, 113, 121, 0.12);
    color: var(--teal-light);
}

.tech-stack-icon .icon-svg,
.tech-stack-icon svg {
    width: 22px;
    height: 22px;
}

.tech-stack-number {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, 0.3);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
}

.tech-stack-card h3 {
    margin: 0;
    color: var(--white);
    font-size: 20px;
}

.tech-stack-card > p {
    position: relative;
    z-index: 1;
    min-height: 48px;
    margin: 0 0 22px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.65;
}

.tech-chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}

.tech-stack-card:hover .tech-chips span {
    border-color: rgba(74, 220, 222, 0.14);
}

.tech-chips span:hover {
    border-color: rgba(74, 220, 222, 0.38) !important;
    background: rgba(0, 113, 121, 0.12);
    color: var(--white);
}

.tech-showcase-note {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    max-width: 900px;
    margin: 28px auto 0;
    padding: 18px 22px;
    border: 1px solid rgba(74, 220, 222, 0.13);
    border-radius: 16px;
    background: rgba(0, 113, 121, 0.06);
}

.tech-showcase-note > span {
    color: var(--teal-light);
    flex: 0 0 auto;
}

.tech-showcase-note .icon-svg,
.tech-showcase-note svg {
    width: 20px;
    height: 20px;
}

.tech-showcase-note p {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.65;
}

.tech-showcase-note strong {
    color: var(--white);
}

.project-tech-section .section-header {
    margin-bottom: 30px;
}

.project-tech-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.project-tech-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border: 1px solid rgba(74, 220, 222, 0.15);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 113, 121, 0.1), rgba(255, 255, 255, 0.035));
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.project-tech-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal-light);
    box-shadow: 0 0 12px rgba(74, 220, 222, 0.45);
}

.project-tech-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 220, 222, 0.4);
    background: rgba(0, 113, 121, 0.14);
}

@media (max-width: 1024px) {
    .tech-showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tech-showcase-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tech-stack-card {
        min-height: 0;
        padding: 22px;
        border-radius: 20px;
    }

    .tech-stack-card > p {
        min-height: 0;
    }

    .tech-showcase-note {
        padding: 16px;
    }

    .project-tech-cloud {
        justify-content: flex-start;
    }
}

/* ============================================
   Unified dark canvas with local ambient light
   ============================================ */

.section--dark,
.section--dark.section--textured,
.section--gradient,
.section--accent {
    position: relative;
    isolation: isolate;
    background-color: var(--black);
}

.section--dark,
.section--dark.section--textured {
    background-image:
        radial-gradient(ellipse 76% 72% at 24% 50%, rgba(0, 139, 148, 0.07) 0%, rgba(0, 139, 148, 0.025) 32%, transparent 67%),
        radial-gradient(ellipse 62% 64% at 82% 48%, rgba(0, 92, 98, 0.045) 0%, rgba(0, 92, 98, 0.012) 36%, transparent 70%),
        radial-gradient(ellipse 90% 82% at 50% 52%, rgba(255, 255, 255, 0.018) 0%, transparent 67%);
}

.section--gradient {
    background-image:
        radial-gradient(ellipse 82% 76% at 50% 48%, rgba(0, 113, 121, 0.048) 0%, rgba(0, 113, 121, 0.014) 38%, transparent 70%),
        radial-gradient(ellipse 48% 58% at 10% 58%, rgba(255, 255, 255, 0.012) 0%, transparent 72%);
}

.section--accent {
    border-top: 0;
    border-bottom: 0;
    background-image:
        radial-gradient(ellipse 78% 72% at 50% 50%, rgba(0, 139, 148, 0.095) 0%, rgba(0, 113, 121, 0.032) 34%, transparent 68%),
        radial-gradient(ellipse 42% 54% at 88% 38%, rgba(74, 220, 222, 0.024) 0%, transparent 72%);
}

.section--dark::after,
.section--gradient::after,
.section--accent::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 90% 92% at 50% 50%, transparent 46%, rgba(0, 0, 0, 0.2) 100%);
}

.section--dark > .container,
.section--dark.section--textured > .container,
.section--gradient > .container,
.section--accent > .container {
    position: relative;
    z-index: 2;
}

.section--dark.section--textured::before {
    z-index: 1;
    background-image:
        radial-gradient(circle at 20% 42%, rgba(0, 171, 181, 0.025) 0%, transparent 44%),
        radial-gradient(circle at 78% 58%, rgba(0, 113, 121, 0.02) 0%, transparent 46%);
    opacity: .8;
}

/* Adjacent sections share the same black edge, so there is no visible seam. */
.section--dark + .section--dark,
.section--dark + .section--gradient,
.section--gradient + .section--dark,
.section--accent + .section--dark,
.section--dark + .section--accent,
.section--gradient + .section--accent,
.section--accent + .section--gradient {
    margin-top: -1px;
}

@media (max-width: 768px) {
    .section--dark,
    .section--dark.section--textured {
        background-image:
            radial-gradient(ellipse 105% 70% at 18% 50%, rgba(0, 139, 148, 0.055) 0%, rgba(0, 139, 148, 0.018) 34%, transparent 68%),
            radial-gradient(ellipse 90% 66% at 86% 54%, rgba(0, 92, 98, 0.03) 0%, transparent 70%);
    }

    .section--gradient {
        background-image:
            radial-gradient(ellipse 112% 72% at 50% 50%, rgba(0, 113, 121, 0.038) 0%, rgba(0, 113, 121, 0.012) 36%, transparent 70%);
    }

    .section--accent {
        background-image:
            radial-gradient(ellipse 110% 74% at 50% 50%, rgba(0, 139, 148, 0.07) 0%, rgba(0, 113, 121, 0.022) 36%, transparent 70%);
    }
}

/* ============================================================
   CTA / GREEN SECTIONS — unified dark canvas
   ============================================================ */

/*
 * Keep teal as an accent, not as a large background fill.
 * CTA sections now live on the same near-black canvas as the rest
 * of the site and receive depth from soft local glows.
 */
.cta-section,
.section--cta,
.section--green,
.section--teal {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 58% 72% at 22% 52%, rgba(0, 150, 157, 0.075) 0%, rgba(0, 150, 157, 0.025) 42%, transparent 72%),
        radial-gradient(ellipse 46% 62% at 78% 48%, rgba(0, 116, 123, 0.055) 0%, transparent 70%),
        #080b0c !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

.cta-section::before,
.section--cta::before,
.section--green::before,
.section--teal::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 150, 157, 0.025) 50%, transparent 100%);
    opacity: .65;
}

.cta-section > .container,
.section--cta > .container,
.section--green > .container,
.section--teal > .container {
    position: relative;
    z-index: 1;
}

/* Remove old flat green fills from common CTA wrappers. */
.cta-wrapper,
.services-cta,
.service-cta,
.contact-cta {
    background-color: transparent;
}

/* Preserve teal where it works best: controls and small accents. */
.cta-section .btn-primary,
.section--cta .btn-primary,
.section--green .btn-primary,
.section--teal .btn-primary {
    box-shadow:
        0 10px 28px rgba(0, 150, 157, 0.13),
        0 0 0 1px rgba(0, 150, 157, 0.08);
}

/* ============================================================
   CTA COLOR TUNING — cooler, darker, closer to site palette
   ============================================================ */

.cta-section,
.section--cta,
.section--green,
.section--teal {
    background:
        radial-gradient(ellipse 64% 78% at 18% 52%, rgba(0, 128, 138, 0.060) 0%, rgba(0, 128, 138, 0.018) 44%, transparent 74%),
        radial-gradient(ellipse 52% 70% at 82% 46%, rgba(0, 102, 112, 0.040) 0%, rgba(0, 102, 112, 0.012) 46%, transparent 72%),
        #07090a !important;
}

.cta-section::before,
.section--cta::before,
.section--green::before,
.section--teal::before {
    background:
        radial-gradient(circle at 50% 46%, rgba(0, 166, 176, 0.020), transparent 56%);
    opacity: 1;
}

/* Slightly calmer controls so the section does not feel "green". */
.cta-section .btn-primary,
.section--cta .btn-primary,
.section--green .btn-primary,
.section--teal .btn-primary {
    filter: saturate(.88);
    box-shadow:
        0 10px 28px rgba(0, 132, 142, 0.12),
        0 0 0 1px rgba(0, 150, 157, 0.06);
}

/* Contact icons stay branded but less luminous. */
.cta-section .contact-link .icon {
    background: rgba(0, 128, 138, 0.055);
    border-color: rgba(0, 150, 157, 0.14);
}

/* ============================================================
   INNER PAGE HERO BACKGROUNDS — softer left ambient light
   ============================================================ */

/*
 * Keep the center nearly black. The left glow is intentionally
 * oversized and pushed beyond the viewport so it reads as ambient
 * light instead of a visible green oval.
 */
.page-hero,
.inner-hero,
.service-hero,
.portfolio-hero,
.about-hero,
.blog-hero,
.contacts-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 92% 118% at -24% 58%,
            rgba(0, 108, 116, 0.050) 0%,
            rgba(0, 108, 116, 0.020) 34%,
            transparent 68%),
        radial-gradient(ellipse 58% 112% at 104% 42%,
            rgba(0, 145, 154, 0.105) 0%,
            rgba(0, 145, 154, 0.045) 42%,
            transparent 74%),
        #07090a !important;
}

/* If hero implementations use pseudo-elements for decorative glow,
   neutralize the old left-side spot while preserving right-side depth. */
.page-hero::before,
.inner-hero::before,
.service-hero::before,
.portfolio-hero::before,
.about-hero::before,
.blog-hero::before,
.contacts-hero::before {
    background:
        radial-gradient(ellipse 115% 130% at -34% 62%,
            rgba(0, 118, 126, 0.035) 0%,
            rgba(0, 118, 126, 0.012) 42%,
            transparent 72%);
    opacity: 1;
}

.page-hero::after,
.inner-hero::after,
.service-hero::after,
.portfolio-hero::after,
.about-hero::after,
.blog-hero::after,
.contacts-hero::after {
    background:
        radial-gradient(ellipse 62% 120% at 106% 40%,
            rgba(0, 150, 160, 0.070) 0%,
            rgba(0, 150, 160, 0.025) 48%,
            transparent 76%);
    opacity: 1;
}

@media (max-width: 900px) {
    .page-hero,
    .inner-hero,
    .service-hero,
    .portfolio-hero,
    .about-hero,
    .blog-hero,
    .contacts-hero {
        background:
            radial-gradient(ellipse 125% 95% at -42% 66%,
                rgba(0, 108, 116, 0.035) 0%,
                transparent 70%),
            radial-gradient(ellipse 82% 90% at 112% 34%,
                rgba(0, 145, 154, 0.065) 0%,
                transparent 72%),
            #07090a !important;
    }
}

/* ============================================================
   INNER HERO — VARIANT 1
   One continuous ambient background across the whole hero
   ============================================================ */

.page-hero,
.inner-hero,
.service-hero,
.portfolio-hero,
.about-hero,
.blog-hero,
.contacts-hero {
    position: relative;
    overflow: hidden;

    /*
     * One continuous canvas:
     * subtle cyan atmosphere on the left,
     * almost pure black through the center,
     * stronger teal illumination around the 3D visual on the right.
     *
     * Large gradients extend far beyond the viewport, so there are
     * no visible oval edges or abrupt transition lines.
     */
    background:
        radial-gradient(
            ellipse 115% 155% at -28% 58%,
            rgba(0, 116, 124, 0.095) 0%,
            rgba(0, 102, 110, 0.050) 24%,
            rgba(0, 74, 80, 0.020) 44%,
            transparent 66%
        ),
        radial-gradient(
            ellipse 105% 170% at 117% 42%,
            rgba(0, 150, 159, 0.175) 0%,
            rgba(0, 128, 138, 0.105) 28%,
            rgba(0, 88, 96, 0.045) 50%,
            transparent 73%
        ),
        linear-gradient(
            90deg,
            #07090a 0%,
            #07090a 30%,
            #060809 48%,
            #060809 62%,
            #07090a 100%
        ) !important;

    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
}

/*
 * Previous hero glow layers are disabled completely.
 * All lighting now comes from the hero background itself.
 */
.page-hero::before,
.page-hero::after,
.inner-hero::before,
.inner-hero::after,
.service-hero::before,
.service-hero::after,
.portfolio-hero::before,
.portfolio-hero::after,
.about-hero::before,
.about-hero::after,
.blog-hero::before,
.blog-hero::after,
.contacts-hero::before,
.contacts-hero::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* Keep all hero content safely above the background. */
.page-hero > .container,
.inner-hero > .container,
.service-hero > .container,
.portfolio-hero > .container,
.about-hero > .container,
.blog-hero > .container,
.contacts-hero > .container {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .page-hero,
    .inner-hero,
    .service-hero,
    .portfolio-hero,
    .about-hero,
    .blog-hero,
    .contacts-hero {
        background:
            radial-gradient(
                ellipse 155% 120% at -52% 66%,
                rgba(0, 112, 120, 0.070) 0%,
                rgba(0, 84, 91, 0.025) 42%,
                transparent 68%
            ),
            radial-gradient(
                ellipse 140% 135% at 132% 34%,
                rgba(0, 145, 154, 0.110) 0%,
                rgba(0, 105, 114, 0.045) 44%,
                transparent 72%
            ),
            #07090a !important;
    }
}

/* ============================================================
   FOOTER — MODERN
   ============================================================ */

.footer-modern {
    position: relative;
    overflow: hidden;
    padding: 0 0 28px;
    background:
        radial-gradient(ellipse 70% 80% at 8% 28%, rgba(0, 112, 120, 0.045) 0%, transparent 66%),
        radial-gradient(ellipse 64% 88% at 96% 36%, rgba(0, 145, 154, 0.055) 0%, transparent 70%),
        #050708;
    border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.footer-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    padding: 52px 0 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-callout-copy {
    max-width: 760px;
}

.footer-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.footer-eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: .75;
}

.footer-callout h2 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.footer-callout p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--gray);
    font-size: 15px;
    line-height: 1.7;
}

.footer-callout-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    flex: 0 0 auto;
}

.footer-callout-phone {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color .25s ease;
}

.footer-callout-phone:hover {
    color: var(--teal-light);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) .7fr 1fr 1.05fr;
    gap: clamp(36px, 5vw, 76px);
    padding: 52px 0 48px;
}

.footer-modern .footer-brand {
    max-width: 390px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 18px;
    font-size: 25px;
}

.footer-modern .footer-brand p {
    margin: 0 0 24px;
    max-width: 360px;
    color: rgba(255, 255, 255, .48);
    font-size: 14px;
    line-height: 1.75;
}

.footer-modern .social-links {
    display: flex;
    gap: 10px;
}

.footer-modern .social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(0, 150, 157, .13);
    background: rgba(0, 135, 143, .035);
}

.footer-modern .social-link:hover {
    border-color: rgba(0, 174, 184, .32);
    background: rgba(0, 150, 157, .08);
    transform: translateY(-2px);
}

.footer-modern .footer-col h4 {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-modern .footer-links {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-modern .footer-links li {
    margin: 0;
}

.footer-modern .footer-links a {
    color: rgba(255, 255, 255, .48);
    font-size: 14px;
    text-decoration: none;
    transition:
        color .22s ease,
        transform .22s ease;
}

.footer-modern .footer-links a:hover {
    color: var(--teal-light);
    transform: translateX(3px);
}

.footer-contacts-col {
    min-width: 230px;
}

.footer-modern .footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    line-height: 1.35;
    transition:
        color .22s ease,
        transform .22s ease;
}

.footer-modern a.footer-contact-item:hover {
    color: var(--teal-light);
    transform: translateX(3px);
}

.footer-modern .footer-contact-item .fc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(0, 150, 157, .12);
    border-radius: 11px;
    background: rgba(0, 135, 143, .035);
    color: var(--teal-light);
}

.footer-modern .footer-contact-item > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
}

.footer-modern .footer-contact-item small {
    color: rgba(255, 255, 255, .33);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.footer-modern .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .32);
    font-size: 12px;
}

.footer-modern .footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-modern .footer-bottom-links a {
    color: rgba(255, 255, 255, .32);
}

.footer-modern .footer-bottom-links a:hover {
    color: rgba(255, 255, 255, .68);
}

@media (max-width: 1100px) {
    .footer-main {
        grid-template-columns: 1.25fr .75fr 1fr;
    }

    .footer-contacts-col {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .footer-contacts-col h4 {
        grid-column: 1 / -1;
        margin-bottom: 2px;
    }

    .footer-modern .footer-contact-item {
        margin: 0;
    }
}

@media (max-width: 780px) {
    .footer-callout {
        align-items: flex-start;
        flex-direction: column;
        gap: 26px;
        padding: 42px 0 38px;
    }

    .footer-callout-actions {
        align-items: flex-start;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
        padding: 42px 0;
    }

    .footer-modern .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contacts-col {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
    }

    .footer-modern .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-modern .footer-brand,
    .footer-contacts-col,
    .footer-contacts-col h4 {
        grid-column: auto;
    }

    .footer-contacts-col {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .footer-modern .footer-contact-item {
        margin-bottom: 12px;
    }

    .footer-modern .footer-bottom-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================
   SERVICES CARDS — stronger visual system
   ============================================================ */

.services-grid {
    counter-reset: websolux-service;
    gap: 22px;
}

.services-grid > .service-card {
    counter-increment: websolux-service;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 282px;
    padding: 32px 30px 28px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 20px;
    background:
        linear-gradient(90deg, transparent, rgba(0, 164, 174, 0.55), transparent) top / 0 1px no-repeat,
        radial-gradient(circle at 12% 4%, rgba(0, 145, 154, 0.055), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.009)),
        #101314;
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
    transition:
        transform .32s ease,
        border-color .32s ease,
        box-shadow .32s ease,
        background-size .38s ease;
}

.services-grid > .service-card::before {
    content: counter(websolux-service, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: -1;
    color: rgba(0, 165, 174, 0.075);
    font-size: clamp(60px, 5vw, 82px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.08em;
    pointer-events: none;
    transition:
        color .32s ease,
        transform .32s ease;
}

.services-grid > .service-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    z-index: -1;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 150, 160, 0.09) 0%, rgba(0, 150, 160, 0.025) 42%, transparent 72%);
    opacity: .5;
    pointer-events: none;
    transition:
        opacity .32s ease,
        transform .42s ease;
}

.services-grid > .service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 164, 174, 0.23);
    background-size: 72% 1px, auto, auto, auto;
    box-shadow:
        0 28px 70px rgba(0, 0, 0, 0.24),
        0 0 42px rgba(0, 134, 143, 0.035),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.services-grid > .service-card:hover::before {
    color: rgba(0, 174, 184, 0.13);
    transform: translateY(-2px);
}

.services-grid > .service-card:hover::after {
    opacity: .9;
    transform: scale(1.08);
}

.services-grid > .service-card .service-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    border: 1px solid rgba(0, 160, 169, 0.16);
    border-radius: 15px;
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 172, 182, 0.10), transparent 68%),
        rgba(0, 126, 134, 0.035);
    color: var(--teal-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease;
}

.services-grid > .service-card .service-icon svg {
    width: 27px;
    height: 27px;
}

.services-grid > .service-card:hover .service-icon {
    transform: translateY(-2px) rotate(-2deg);
    border-color: rgba(0, 174, 184, 0.31);
    background:
        radial-gradient(circle at 30% 20%, rgba(0, 181, 191, 0.16), transparent 70%),
        rgba(0, 136, 145, 0.055);
}

.services-grid > .service-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 13px;
    max-width: 84%;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.services-grid > .service-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 94%;
    color: rgba(255, 255, 255, 0.52);
    font-size: 14px;
    line-height: 1.72;
}

.services-grid > .service-card .btn-text {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: auto;
    padding-top: 24px;
    color: rgba(0, 185, 195, 0.90);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .01em;
    transition:
        color .25s ease,
        transform .25s ease;
}

.services-grid > .service-card:hover .btn-text {
    color: #20d0d8;
    transform: translateX(4px);
}

/* The services catalogue has seven items.
   Make the final support card a deliberate wide closing card
   instead of leaving a lonely item in the last row. */
.services-grid > a.service-card:nth-child(7):last-child {
    grid-column: 1 / -1;
    min-height: 210px;
    padding-right: 34%;
}

.services-grid > a.service-card:nth-child(7):last-child::before {
    right: 34px;
    top: 22px;
    font-size: 110px;
}

.services-grid > a.service-card:nth-child(7):last-child::after {
    right: 5%;
    bottom: -140px;
    width: 420px;
    height: 420px;
}

.services-grid > a.service-card:nth-child(7):last-child h3 {
    max-width: 560px;
}

.services-grid > a.service-card:nth-child(7):last-child p {
    max-width: 680px;
}

@media (max-width: 980px) {
    .services-grid > .service-card {
        min-height: 260px;
    }

    .services-grid > a.service-card:nth-child(7):last-child {
        grid-column: auto;
        min-height: 260px;
        padding-right: 30px;
    }

    .services-grid > a.service-card:nth-child(7):last-child::before {
        top: 18px;
        right: 22px;
        font-size: clamp(60px, 8vw, 82px);
    }
}

@media (max-width: 640px) {
    .services-grid {
        gap: 14px;
    }

    .services-grid > .service-card {
        min-height: 236px;
        padding: 25px 22px 22px;
        border-radius: 17px;
    }

    .services-grid > .service-card::before {
        top: 16px;
        right: 18px;
        font-size: 58px;
    }

    .services-grid > .service-card .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 23px;
        border-radius: 13px;
    }

    .services-grid > .service-card .service-icon svg {
        width: 24px;
        height: 24px;
    }

    .services-grid > .service-card h3 {
        max-width: 88%;
        font-size: 21px;
    }

    .services-grid > .service-card p {
        max-width: 100%;
        font-size: 13px;
    }
}

/* ============================================================
   SERVICES CARDS — remove decorative numbering
   ============================================================ */

.services-grid {
    counter-reset: none;
}

.services-grid > .service-card {
    counter-increment: none;
}

.services-grid > .service-card::before {
    content: none !important;
    display: none !important;
}

.services-grid > .service-card:hover::before {
    content: none !important;
    display: none !important;
}

.services-grid > a.service-card:nth-child(7):last-child::before {
    content: none !important;
    display: none !important;
}

/* ============================================================
   CONTACTS PAGE — hero + contact hub
   ============================================================ */

.contacts-hero {
    min-height: 560px !important;
    display: flex;
    align-items: center;
}

.contacts-hero .container {
    width: 100%;
}

.contacts-hero-content {
    max-width: 760px;
    padding: 92px 0 72px;
}

.contacts-hero-content h1 {
    max-width: 760px;
    margin: 24px 0 20px;
    font-size: clamp(46px, 5.5vw, 78px);
    line-height: .98;
    letter-spacing: -.045em;
}

.contacts-hero-content .hero-description {
    max-width: 680px;
    margin: 0;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.7;
}

.contacts-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.contacts-hero-actions .btn {
    gap: 10px;
}

.contacts-hero-actions .btn svg {
    width: 17px;
    height: 17px;
}

.contacts-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.contacts-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.contacts-meta-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--teal-light);
    box-shadow: 0 0 18px rgba(0, 190, 200, .28);
}

.contacts-meta-item > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contacts-meta-item strong {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
}

.contacts-meta-item small {
    color: rgba(255, 255, 255, .37);
    font-size: 12px;
}

.contacts-channels-section {
    padding-top: 88px;
}

.contacts-channels-header {
    max-width: 770px;
    margin-bottom: 42px;
}

.contacts-section-kicker {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--teal-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contacts-channels-header h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -.035em;
}

.contacts-channels-header p {
    max-width: 720px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, .48);
    font-size: 15px;
    line-height: 1.75;
}

.contacts-hub {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-areas:
        "featured phone mail"
        "featured schedule schedule";
    gap: 18px;
}

.contact-channel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 250px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 145, 154, .045), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.008)),
        #101314;
    color: inherit;
    text-decoration: none;
    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

a.contact-channel:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 166, 176, .22);
    box-shadow:
        0 26px 64px rgba(0, 0, 0, .22),
        0 0 46px rgba(0, 130, 140, .035);
}

.contact-channel--featured {
    grid-area: featured;
    min-height: 518px;
    padding: 34px;
    background:
        radial-gradient(circle at 18% 8%, rgba(0, 170, 180, .105), transparent 38%),
        radial-gradient(circle at 92% 100%, rgba(0, 120, 130, .09), transparent 44%),
        linear-gradient(145deg, rgba(0, 142, 151, .055), rgba(255,255,255,.008)),
        #0d1112;
    border-color: rgba(0, 160, 170, .16);
}

.contacts-hub > :nth-child(2) {
    grid-area: phone;
}

.contacts-hub > :nth-child(3) {
    grid-area: mail;
}

.contacts-hub > :nth-child(4) {
    grid-area: schedule;
}

.contact-channel--schedule {
    min-height: 220px;
}

.contact-channel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.contact-channel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border: 1px solid rgba(0, 162, 171, .17);
    border-radius: 15px;
    background: rgba(0, 139, 148, .045);
    color: var(--teal-light);
}

.contact-channel-icon svg {
    width: 25px;
    height: 25px;
}

.contact-channel-badge {
    padding: 7px 10px;
    border: 1px solid rgba(0, 170, 180, .14);
    border-radius: 999px;
    background: rgba(0, 150, 159, .045);
    color: rgba(36, 210, 218, .82);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-channel-body {
    margin-top: 28px;
}

.contact-channel--featured .contact-channel-body {
    margin-top: auto;
    padding-top: 64px;
}

.contact-channel-label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .35);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-channel h3 {
    margin: 0 0 12px;
    color: rgba(255,255,255,.95);
    font-size: clamp(21px, 2vw, 28px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.contact-channel--featured h3 {
    color: var(--teal-light);
    font-size: clamp(34px, 4vw, 48px);
}

.contact-channel p {
    max-width: 560px;
    margin: 0;
    color: rgba(255, 255, 255, .48);
    font-size: 13px;
    line-height: 1.7;
}

.contact-channel--featured p {
    font-size: 14px;
}

.contact-channel-action {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding-top: 26px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
    transition: transform .25s ease;
}

a.contact-channel:hover .contact-channel-action {
    transform: translateX(4px);
}

.contact-schedule-line {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 24px;
}

.contact-schedule-line span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, rgba(0, 170, 180, .4), transparent);
}

.contact-schedule-line small {
    color: rgba(255, 255, 255, .36);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
    .contacts-hub {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "featured featured"
            "phone mail"
            "schedule schedule";
    }

    .contact-channel--featured {
        min-height: 360px;
    }

    .contact-channel--featured .contact-channel-body {
        padding-top: 40px;
    }
}

@media (max-width: 700px) {
    .contacts-hero {
        min-height: auto !important;
    }

    .contacts-hero-content {
        padding: 76px 0 54px;
    }

    .contacts-hero-content h1 {
        font-size: clamp(42px, 13vw, 62px);
    }

    .contacts-hero-meta {
        flex-direction: column;
        gap: 17px;
    }

    .contacts-channels-section {
        padding-top: 64px;
    }

    .contacts-hub {
        grid-template-columns: 1fr;
        grid-template-areas:
            "featured"
            "phone"
            "mail"
            "schedule";
    }

    .contact-channel,
    .contact-channel--featured,
    .contact-channel--schedule {
        min-height: 230px;
        padding: 24px;
    }

    .contact-channel--featured .contact-channel-body {
        margin-top: 34px;
        padding-top: 0;
    }
}

/* ============================================================
   NAVIGATION / MODAL / STORY / BACK TO TOP — refinement
   ============================================================ */

/* Desktop active navigation */
.nav-links a.active {
    color: var(--white);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -9px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal-light);
    transform: translateX(-50%);
    box-shadow: 0 0 12px rgba(0, 185, 195, .42);
}

/* Mobile menu: compact, editorial and without duplicate CTA */
.mobile-menu {
    justify-content: flex-start;
    align-items: stretch;
    padding: 0;
    background:
        radial-gradient(ellipse 120% 70% at 80% 5%, rgba(0, 125, 134, .075), transparent 58%),
        rgba(6, 8, 9, .985);
}

.mobile-menu-inner {
    width: min(100% - 44px, 460px);
    margin: 0 auto;
    padding: 118px 0 42px;
}

.mobile-menu-kicker {
    display: block;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .32);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-menu-nav a {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .66);
    font-size: 22px;
    font-weight: 620;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.mobile-menu-nav a:first-child {
    border-top: 1px solid rgba(255, 255, 255, .055);
}

.mobile-menu-nav a > span {
    min-width: 20px;
    color: rgba(0, 181, 191, .42);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .08em;
}

.mobile-menu-nav a::after {
    content: "↗";
    margin-left: auto;
    color: rgba(255, 255, 255, .18);
    font-size: 15px;
    transition: transform .25s ease, color .25s ease;
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    color: var(--white);
}

.mobile-menu-nav a.active > span,
.mobile-menu-nav a.active::after {
    color: var(--teal-light);
}

.mobile-menu-nav a:hover::after {
    transform: translate(2px, -2px);
    color: var(--teal-light);
}

.mobile-menu-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 28px;
}

.mobile-menu-contact a {
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 600;
}

.mobile-menu-contact small {
    color: rgba(255, 255, 255, .32);
    font-size: 11px;
}

/* Cleaner hamburger */
.hamburger {
    width: 38px;
    height: 38px;
    padding: 9px 7px;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
}

.hamburger span {
    width: 23px;
    height: 1.5px;
}

.hamburger span:nth-child(2) {
    width: 17px;
}

.hamburger span:nth-child(3) {
    width: 20px;
}

.hamburger.active {
    align-items: center;
}

.hamburger.active span {
    width: 22px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Offer modal: remove marketing pills and simplify hierarchy */
.offer-modal {
    max-width: 440px;
    padding: 42px 40px 38px;
    border-color: rgba(0, 159, 169, .13);
    background:
        radial-gradient(circle at 14% 0%, rgba(0, 147, 157, .065), transparent 34%),
        #121516;
    box-shadow:
        0 28px 90px rgba(0, 0, 0, .58),
        0 0 60px rgba(0, 120, 130, .045);
}

.offer-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    color: var(--teal-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.offer-kicker::before {
    content: "";
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: .65;
}

.offer-badge,
.offer-perks {
    display: none !important;
}

.offer-title {
    max-width: 330px;
    margin-bottom: 14px;
    font-size: 31px;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.offer-text {
    margin-bottom: 28px;
    color: rgba(255, 255, 255, .5);
    font-size: 14px;
    line-height: 1.75;
}

.offer-form {
    gap: 11px;
}

.offer-form input {
    min-height: 50px;
    padding: 14px 16px;
    border-color: rgba(255, 255, 255, .075);
    background: rgba(5, 7, 8, .62);
}

.offer-form .btn {
    min-height: 50px;
    margin-top: 2px;
}

.offer-note {
    margin-top: 14px;
    color: rgba(255, 255, 255, .32);
    font-size: 11px;
    line-height: 1.5;
}

/* About: give the story visual enough weight */
.company-block {
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    gap: clamp(54px, 7vw, 110px);
    align-items: center;
}

.story-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 520px);
    aspect-ratio: 1;
    margin: 0 auto;
}

.story-visual-glow {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 155, 165, .10), rgba(0, 115, 124, .025) 46%, transparent 70%);
    filter: blur(18px);
}

.story-3d {
    position: relative !important;
    width: 430px !important;
    height: 430px !important;
    max-width: 88%;
    max-height: 88%;
    opacity: .88 !important;
    z-index: 2;
}

.story-orbit {
    position: absolute;
    border: 1px solid rgba(0, 155, 165, .08);
    border-radius: 50%;
    pointer-events: none;
}

.story-orbit--one {
    width: 76%;
    height: 76%;
    transform: rotate(18deg) scaleY(.58);
}

.story-orbit--two {
    width: 62%;
    height: 62%;
    transform: rotate(-32deg) scaleY(.72);
    border-color: rgba(255, 255, 255, .04);
}

.story-progress {
    position: absolute;
    left: 50%;
    bottom: 8%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.story-progress i {
    width: 54px;
    height: 1px;
    background: linear-gradient(90deg, rgba(0, 180, 190, .15), rgba(0, 190, 200, .7), rgba(0, 180, 190, .15));
}

/* Back to top: quiet glass control instead of a solid teal circle */
.back-to-top {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(0, 170, 180, .18);
    border-radius: 14px;
    background: rgba(8, 13, 14, .82);
    color: var(--teal-light);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255, 255, 255, .035);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .25s ease;
}

.back-to-top:hover {
    background: rgba(0, 137, 146, .10);
    border-color: rgba(0, 190, 200, .36);
    color: #27d2d9;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, .34),
        0 0 26px rgba(0, 145, 155, .08);
}

.back-to-top:hover svg {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .company-block {
        grid-template-columns: 1fr;
    }

    .story-visual {
        width: min(100%, 480px);
        margin-top: 4px;
    }
}

@media (max-width: 600px) {
    .mobile-menu-inner {
        width: calc(100% - 36px);
        padding-top: 96px;
    }

    .mobile-menu-nav a {
        padding: 15px 0;
        font-size: 20px;
    }

    .offer-modal {
        padding: 34px 24px 28px;
    }

    .offer-title {
        font-size: 27px;
    }

    .story-3d {
        width: 330px !important;
        height: 330px !important;
    }

    .back-to-top {
        right: 18px;
        bottom: 18px;
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }
}


/* Active desktop navigation — underline only */
.nav-links a.active::before {
    content: none !important;
    display: none !important;
}

/* ============================================================
   PORTFOLIO DETAIL — full case study rework
   ============================================================ */

/* Hero */
.project-category-badge {
    letter-spacing: .035em;
}

.project-hero-subtitle {
    max-width: 760px;
}

/* ABOUT */
.project-about-section .section-header {
    margin-bottom: 42px;
}

.project-about-v2 {
    display: grid;
    grid-template-columns: minmax(360px, .85fr) minmax(0, 1.6fr);
    gap: 24px;
    align-items: stretch;
}

.project-client-panel,
.project-task-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,145,154,.05), transparent 38%),
        linear-gradient(145deg, rgba(255,255,255,.024), rgba(255,255,255,.007)),
        #101314;
}

.project-client-panel {
    display: flex;
    flex-direction: column;
    min-height: 390px;
    padding: 34px;
}

.project-client-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,150,160,.085), transparent 68%);
    pointer-events: none;
}

.project-client-kicker,
.project-task-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--teal-light);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.project-client-panel h3 {
    margin: 0 0 30px;
    max-width: 86%;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.project-client-facts {
    display: flex;
    flex-direction: column;
}

.project-client-fact {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,.055);
}

.project-client-fact span {
    color: rgba(255,255,255,.34);
    font-size: 12px;
}

.project-client-fact strong {
    max-width: 62%;
    color: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.project-client-link {
    display: inline-flex;
    width: fit-content;
    margin-top: auto;
    padding-top: 28px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
}

.project-task-panel {
    padding: clamp(34px, 4vw, 52px);
}

.project-task-panel > p:first-of-type {
    max-width: 760px;
    margin-top: 0;
    color: rgba(255,255,255,.59);
    font-size: clamp(16px, 1.55vw, 19px);
    line-height: 1.78;
}

.project-task-panel h3 {
    margin: 34px 0 18px;
    font-size: 22px;
}

.project-task-panel .task-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 22px;
    margin: 0;
    padding: 0;
}

.project-task-panel .task-requirements li {
    position: relative;
    padding: 13px 14px 13px 34px;
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 12px;
    background: rgba(255,255,255,.012);
    color: rgba(255,255,255,.52);
    font-size: 13px;
    line-height: 1.55;
    list-style: none;
}

.project-task-panel .req-bullet {
    position: absolute;
    left: 13px;
    color: var(--teal-light);
}

/* CHALLENGES */
.project-challenges-content .challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.project-challenges-content .challenge-card {
    counter-increment: challenge-item;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 22px;
    background:
        radial-gradient(circle at 90% 5%, rgba(0,150,160,.055), transparent 35%),
        #101314;
}

.project-challenges-content .challenges-grid {
    counter-reset: challenge-item;
}

.project-challenges-content .challenge-card::before {
    content: "0" counter(challenge-item);
    position: absolute;
    right: 26px;
    top: 20px;
    color: rgba(0,170,180,.08);
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.07em;
}

.project-challenges-content .challenge-header {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0;
    cursor: default;
}

.project-challenges-content .challenge-header h3 {
    max-width: 78%;
    margin: 0;
    font-size: clamp(21px, 2vw, 27px);
    line-height: 1.22;
    letter-spacing: -.025em;
}

.project-challenges-content .ch-icon {
    display: none;
}

.project-challenges-content .challenge-toggle {
    display: none;
}

.project-challenges-content .challenge-body {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 18px;
    max-height: none !important;
    margin-top: 42px;
    opacity: 1 !important;
    visibility: visible !important;
}

.project-challenges-content .cb-section {
    position: relative;
    padding: 18px 18px 18px 20px;
    border-left: 1px solid rgba(0,173,183,.22);
    background: linear-gradient(90deg, rgba(0,145,154,.035), transparent 78%);
}

.project-challenges-content .cb-label {
    margin-bottom: 10px;
    color: var(--teal-light);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.project-challenges-content .cb-text {
    color: rgba(255, 255, 255, .58);
    font-size: 15px;
    line-height: 1.7;
}

/* FEATURES */
.project-features-content .features-grid {
    counter-reset: project-feature;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
}

.project-features-content .feature-item {
    counter-increment: project-feature;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 170px;
    padding: 26px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 18px;
    background:
        radial-gradient(circle at 12% 0%, rgba(0,145,154,.045), transparent 42%),
        linear-gradient(145deg, rgba(255,255,255,.022), rgba(255,255,255,.006)),
        #101314;
    color: rgba(255,255,255,.78);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.45;
    transition:
        transform .28s ease,
        border-color .28s ease;
}

.project-features-content .feature-item::before {
    content: "0" counter(project-feature);
    position: static;
    left: 24px;
    top: 21px;
    color: rgba(0, 183, 193, .48);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .1em;
}

.project-features-content .feature-item::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -55px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,150,160,.075), transparent 68%);
}

.project-features-content .feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0,170,180,.20);
}

.project-features-content .fi-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-bottom: 28px;
    border: 1px solid rgba(0,170,180,.18);
    border-radius: 9px;
    background: rgba(0,145,154,.045);
    color: var(--teal-light);
    font-size: 15px;
}

/* GALLERY — asymmetric collage */
.project-gallery-section {
    overflow: hidden;
}

.project-gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 44px;
}

.project-gallery-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -.04em;
}

.project-gallery-heading > p {
    max-width: 440px;
    margin: 0 0 5px;
    color: rgba(255,255,255,.44);
    font-size: 14px;
    line-height: 1.7;
}

.project-gallery-collage {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-flow: dense;
    grid-auto-rows: 72px;
    gap: 18px;
}

.project-gallery-shot {
    position: relative;
    overflow: hidden;
    grid-column: span 4;
    grid-row: span 5;
    margin: 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 20px;
    background: #101314;
    box-shadow: 0 22px 60px rgba(0,0,0,.22);
}

.project-gallery-shot:nth-child(4n + 1) {
    grid-column: span 7;
    grid-row: span 7;
}

.project-gallery-shot:nth-child(4n + 2) {
    grid-column: span 5;
    grid-row: span 5;
    transform: translateY(26px);
}

.project-gallery-shot:nth-child(4n + 3) {
    grid-column: span 5;
    grid-row: span 6;
}

.project-gallery-shot:nth-child(4n + 4) {
    grid-column: span 7;
    grid-row: span 5;
    transform: translateY(-12px);
}

.project-gallery-shot.is-wide {
    grid-column: span 8;
}

.project-gallery-shot a {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
}

.project-gallery-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform .55s cubic-bezier(.2,.8,.2,1),
        filter .35s ease;
}

.project-gallery-shot:hover img {
    transform: scale(1.025);
    filter: brightness(.82);
}

.project-gallery-open {
    position: absolute;
    right: 16px;
    top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(5,8,9,.66);
    color: rgba(255,255,255,.76);
    font-size: 15px;
    opacity: 0;
    transform: translateY(5px);
    backdrop-filter: blur(10px);
    transition:
        opacity .25s ease,
        transform .25s ease;
}

.project-gallery-shot:hover .project-gallery-open {
    opacity: 1;
    transform: translateY(0);
}

.project-gallery-shot figcaption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    background: rgba(5,8,9,.72);
    color: rgba(255,255,255,.66);
    font-size: 11px;
    backdrop-filter: blur(10px);
    pointer-events: none;
}

/* Keep current data-entry model but make the new case page responsive */
@media (max-width: 1050px) {
    .project-about-v2 {
        grid-template-columns: 1fr;
    }

    .project-client-panel {
        min-height: auto;
    }

    .project-challenges-content .challenges-grid {
        grid-template-columns: 1fr;
    }

    .project-features-content .features-grid {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .project-gallery-collage {
        grid-auto-rows: 60px;
    }
}

@media (max-width: 700px) {
    .project-task-panel .task-requirements {
        grid-template-columns: 1fr;
    }

    .project-challenges-content .challenge-card {
        min-height: auto;
        padding: 24px;
    }

    .project-features-content .features-grid {
        grid-template-columns: 1fr;
    }

    .project-features-content .feature-item {
        min-height: 140px;
    }

    .project-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .project-gallery-collage {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .project-gallery-shot,
    .project-gallery-shot:nth-child(n),
    .project-gallery-shot.is-wide {
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 3;
        transform: none;
    }

    .project-gallery-shot a {
        position: absolute;
    }
}

/* ============================================================
   PORTFOLIO FEATURES — clean editorial list variant
   ============================================================ */

.project-features-section {
    position: relative;
    overflow: hidden;
}

.project-features-content .features-grid {
    counter-reset: project-feature;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(48px, 7vw, 110px);
    row-gap: 0;
    max-width: 1180px;
    margin: 0 auto;
}

.project-features-content .feature-item {
    counter-increment: project-feature;
    position: relative;
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 18px;
    min-height: 94px;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, .82);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    transition:
        color .25s ease,
        transform .25s ease,
        border-color .25s ease;
}

.project-features-content .feature-item::before {
    content: "0" counter(project-feature);
    position: static;
    color: rgba(0, 183, 193, .48);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .1em;
}

.project-features-content .feature-item::after {
    content: "";
    position: static;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(0, 178, 188, .42);
    box-shadow: 0 0 18px rgba(0, 160, 170, .10);
    transition:
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.project-features-content .feature-item:hover {
    transform: translateX(5px);
    border-color: rgba(0, 168, 178, .16);
    color: #fff;
}

.project-features-content .feature-item:hover::after {
    background: var(--teal-light);
    box-shadow: 0 0 18px rgba(0, 190, 200, .24);
    transform: scale(1.15);
}

/* Existing check icon is no longer needed in the editorial layout */
.project-features-content .fi-check {
    display: none !important;
}

/* Give the block one subtle ambient surface instead of eight cards */
.project-features-content {
    position: relative;
    padding: 22px 30px 26px;
}

.project-features-content::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 70% at 8% 50%, rgba(0, 135, 145, .032), transparent 72%),
        radial-gradient(ellipse 45% 70% at 92% 50%, rgba(0, 135, 145, .025), transparent 72%);
}

.project-features-content .features-grid {
    position: relative;
    z-index: 1;
}

@media (max-width: 820px) {
    .project-features-content {
        padding: 10px 0 0;
    }

    .project-features-content .features-grid {
        grid-template-columns: 1fr;
    }

    .project-features-content .feature-item {
        grid-template-columns: 46px 1fr auto;
        min-height: 82px;
        padding: 17px 0;
        font-size: 14px;
    }
}

/* ============================================================
   PORTFOLIO GALLERY — desktop software screenshots
   Preserve the full interface; never crop screenshots.
   ============================================================ */

.project-gallery-collage {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: auto;
    gap: clamp(18px, 2vw, 30px);
    align-items: start;
}

.project-gallery-shot,
.project-gallery-shot:nth-child(n),
.project-gallery-shot.is-wide {
    position: relative;
    overflow: visible;
    grid-row: auto;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    transform: none;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

/* Default desktop screenshot */
.project-gallery-shot {
    grid-column: span 6;
}

/* Marked wide screenshots get the full content width */
.project-gallery-shot.is-wide {
    grid-column: 1 / -1;
}

/*
 * For non-wide screenshots we keep a loose editorial composition.
 * The screenshots themselves stay intact — only the surrounding
 * block width/offset changes.
 */
.project-gallery-shot:not(.is-wide):nth-child(4n + 1) {
    grid-column: 1 / span 7;
}

.project-gallery-shot:not(.is-wide):nth-child(4n + 2) {
    grid-column: 6 / span 7;
    margin-top: 42px;
}

.project-gallery-shot:not(.is-wide):nth-child(4n + 3) {
    grid-column: 2 / span 8;
}

.project-gallery-shot:not(.is-wide):nth-child(4n + 4) {
    grid-column: 5 / span 8;
    margin-top: 24px;
}

.project-gallery-shot a {
    position: relative;
    inset: auto;
    display: block;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    background: #0d1011;
    box-shadow:
        0 24px 70px rgba(0, 0, 0, .28),
        0 0 0 1px rgba(0, 150, 160, .018);
    transition:
        transform .32s ease,
        border-color .32s ease,
        box-shadow .32s ease;
}

.project-gallery-shot a::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.project-gallery-shot img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center top;
    background: #fff;
    transition:
        transform .45s cubic-bezier(.2, .8, .2, 1),
        filter .3s ease;
}

.project-gallery-shot:hover a {
    transform: translateY(-5px);
    border-color: rgba(0, 172, 182, .20);
    box-shadow:
        0 32px 86px rgba(0, 0, 0, .34),
        0 0 46px rgba(0, 135, 145, .035);
}

.project-gallery-shot:hover img {
    transform: scale(1.006);
    filter: none;
}

.project-gallery-open {
    right: 14px;
    top: 14px;
    z-index: 4;
    opacity: .72;
    transform: none;
}

.project-gallery-shot:hover .project-gallery-open {
    opacity: 1;
    transform: translateY(-1px);
}

.project-gallery-shot figcaption {
    position: static;
    display: block;
    max-width: none;
    margin-top: 11px;
    padding: 0 3px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
    line-height: 1.45;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* A full-width software screenshot should not become absurdly tall
   on very large screens. Give the screenshot a comfortable reading width. */
.project-gallery-shot.is-wide a {
    width: min(100%, 1380px);
    margin: 0 auto;
}

/* Alternate wide screenshots slightly so the gallery still feels editorial,
   rather than a vertical list of identical images. */
.project-gallery-shot.is-wide:nth-child(2n) a {
    width: min(92%, 1260px);
    margin-left: 0;
    margin-right: auto;
}

.project-gallery-shot.is-wide:nth-child(2n + 1) a {
    margin-left: auto;
    margin-right: 0;
}

@media (max-width: 1000px) {
    .project-gallery-shot,
    .project-gallery-shot:nth-child(n),
    .project-gallery-shot.is-wide,
    .project-gallery-shot:not(.is-wide):nth-child(n) {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .project-gallery-shot.is-wide a,
    .project-gallery-shot.is-wide:nth-child(n) a {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 700px) {
    .project-gallery-collage {
        display: flex;
        flex-direction: column;
        gap: 22px;
    }

    .project-gallery-shot,
    .project-gallery-shot:nth-child(n),
    .project-gallery-shot.is-wide {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        margin: 0;
        transform: none;
    }

    .project-gallery-shot a {
        position: relative;
        width: 100%;
        border-radius: 14px;
    }

    .project-gallery-shot img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* ============================================================
   PORTFOLIO GALLERY — carousel
   ============================================================ */

.project-gallery-section {
    overflow: hidden;
}

.project-carousel {
    position: relative;
}

.project-carousel-stage {
    position: relative;
}

.project-carousel-track {
    position: relative;
    min-height: 200px;
}

.project-carousel-slide {
    display: none;
    margin: 0;
}

.project-carousel-slide.is-active {
    display: block;
    animation: projectCarouselIn .38s ease both;
}

@keyframes projectCarouselIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-carousel-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 420px;
    max-height: 760px;
    padding: clamp(12px, 2vw, 24px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 10%, rgba(0, 144, 154, .045), transparent 42%),
        #0b0e0f;
    box-shadow:
        0 30px 90px rgba(0, 0, 0, .26),
        inset 0 1px 0 rgba(255, 255, 255, .025);
}

.project-carousel-image img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 710px;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .20);
}

.project-carousel-open {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 13px;
    background: rgba(5, 8, 9, .72);
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease;
}

.project-carousel-image:hover .project-carousel-open {
    color: var(--teal-light);
    border-color: rgba(0, 175, 185, .26);
    background: rgba(5, 12, 13, .88);
}

.project-carousel-slide figcaption {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    padding: 0 5px;
    color: rgba(255, 255, 255, .43);
    font-size: 12px;
}

.project-carousel-number {
    color: rgba(0, 184, 194, .70);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .08em;
}

.project-carousel-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 15px;
    background: rgba(6, 9, 10, .80);
    color: rgba(255, 255, 255, .72);
    transform: translateY(-50%);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition:
        color .25s ease,
        border-color .25s ease,
        background .25s ease,
        transform .25s ease;
}

.project-carousel-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.project-carousel-prev {
    left: 18px;
}

.project-carousel-next {
    right: 18px;
}

.project-carousel-arrow:hover {
    color: var(--teal-light);
    border-color: rgba(0, 177, 187, .28);
    background: rgba(5, 15, 16, .92);
}

.project-carousel-prev:hover {
    transform: translate(-2px, -50%);
}

.project-carousel-next:hover {
    transform: translate(2px, -50%);
}

.project-carousel-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    margin-top: 24px;
}

.project-carousel-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 74px;
    color: rgba(255, 255, 255, .32);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
}

.project-carousel-current {
    color: var(--teal-light);
}

.project-carousel-divider {
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, .14);
}

.project-carousel-thumbs {
    display: flex;
    gap: 10px;
    min-width: 0;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 150, 160, .22) transparent;
}

.project-carousel-thumb {
    position: relative;
    flex: 0 0 108px;
    height: 64px;
    padding: 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 11px;
    background: #0d1011;
    opacity: .46;
    cursor: pointer;
    transition:
        opacity .25s ease,
        border-color .25s ease,
        transform .25s ease;
}

.project-carousel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
    background: #fff;
}

.project-carousel-thumb.is-active {
    opacity: 1;
    border-color: rgba(0, 183, 193, .48);
}

.project-carousel-thumb:hover {
    opacity: .86;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .project-carousel-image {
        min-height: 320px;
        max-height: none;
        padding: 12px;
        border-radius: 18px;
    }

    .project-carousel-image img {
        width: 100%;
        max-height: none;
    }

    .project-carousel-arrow {
        width: 44px;
        height: 44px;
        border-radius: 13px;
    }

    .project-carousel-prev {
        left: 10px;
    }

    .project-carousel-next {
        right: 10px;
    }
}

@media (max-width: 640px) {
    .project-carousel-image {
        min-height: 0;
        padding: 6px;
        border-radius: 14px;
    }

    .project-carousel-image img {
        border-radius: 9px;
    }

    .project-carousel-arrow {
        top: auto;
        bottom: 12px;
        width: 40px;
        height: 40px;
    }

    .project-carousel-prev {
        left: 12px;
    }

    .project-carousel-next {
        right: 12px;
    }

    .project-carousel-open {
        right: 12px;
        top: 12px;
        width: 36px;
        height: 36px;
        border-radius: 11px;
    }

    .project-carousel-footer {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .project-carousel-thumb {
        flex-basis: 88px;
        height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-carousel-slide.is-active {
        animation: none;
    }

    .project-carousel-thumb,
    .project-carousel-arrow {
        transition: none;
    }
}



/* ============================================================
   Portfolio polish — project details, cards and about services
   ============================================================ */

/* Project "About" section: client context above the task, not side-by-side */
.project-about-v2 {
    display: flex !important;
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
}

.project-client-panel {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(160px, 0.7fr) minmax(0, 2.3fr);
    column-gap: 36px;
    row-gap: 16px;
    align-items: start;
}

.project-client-panel > .project-client-kicker,
.project-client-panel > h3 {
    grid-column: 1;
}

.project-client-panel > h3 {
    margin-bottom: 0;
}

.project-client-facts {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    width: 100%;
}

.project-task-panel {
    width: 100%;
}

.project-task-panel > p {
    max-width: 980px;
}

.project-task-panel > p + p {
    margin-top: 18px;
    padding: 18px 20px;
    border-left: 2px solid rgba(0, 183, 194, 0.55);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(0, 113, 121, 0.08), rgba(0, 113, 121, 0.015));
    color: rgba(228, 232, 234, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

/* Results: adapts naturally to 1, 2, 3, 4, 5+ cards */
.results-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px;
    align-items: stretch;
}

.result-card-v2 {
    min-width: 0;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 24px;
}

.result-card-v2 .rc-number {
    font-size: clamp(28px, 3vw, 40px);
}

/* Portfolio list: text-first cards while projects do not have covers */
.portfolio-page .portfolio-grid,
.home-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 100%;
}

.portfolio-page .project-card.portfolio-text-card,
.home-portfolio-grid .project-card.portfolio-text-card {
    min-height: 330px;
    display: flex;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(circle at 90% 8%, rgba(0, 183, 194, 0.12), transparent 34%),
        linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.portfolio-text-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--teal), transparent);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-text-card:hover::before {
    opacity: 1;
}

.portfolio-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 30px;
}

.portfolio-card-top .project-tag {
    margin: 0;
}

.portfolio-card-arrow {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
    font-size: 18px;
    transition: var(--transition);
}

.portfolio-text-card:hover .portfolio-card-arrow {
    color: var(--white);
    border-color: rgba(0, 183, 194, 0.5);
    background: rgba(0, 113, 121, 0.14);
    transform: translate(2px, -2px);
}

.portfolio-text-card .project-body {
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.portfolio-text-card .project-body h3 {
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.22;
    margin-bottom: 14px;
}

.portfolio-text-card .project-body > p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 22px;
}

.portfolio-text-card .project-tech {
    margin-top: auto;
}

.portfolio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    transition: var(--transition);
}

.portfolio-text-card:hover .portfolio-card-footer {
    color: var(--teal-light);
}

/* About page service cards are now proper links */
.about-service-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: flex !important;
    flex-direction: column;
}

.about-service-link .about-service-more {
    margin-top: auto;
    padding-top: 18px;
    color: var(--teal-light);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.82;
    transition: var(--transition);
}

.about-service-link:hover .about-service-more {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 1100px) {
    .portfolio-page .portfolio-grid,
    .home-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .project-client-panel {
        display: block;
    }

    .project-client-panel > h3 {
        margin-bottom: 18px;
    }

    .project-client-facts {
        grid-template-columns: 1fr;
    }

    .project-task-panel > p + p {
        font-size: 14px;
        padding-top: 16px;
        margin-top: 16px;
    }

    .results-grid-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .result-card-v2 {
        min-height: 128px;
        padding: 22px 16px;
    }

    .portfolio-page .portfolio-grid,
    .home-portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-page .project-card.portfolio-text-card,
    .home-portfolio-grid .project-card.portfolio-text-card {
        min-height: 0;
        padding: 22px;
    }
}

@media (max-width: 440px) {
    .results-grid-v2 {
        grid-template-columns: 1fr !important;
    }
}


/* ============================================================
   Portfolio polish round 2
   ============================================================ */

/* ABOUT PROJECT — compact context strip + full-width task */
.project-about-v2 {
    display: flex !important;
    flex-direction: column;
    gap: 18px;
}

.project-context-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 2.2fr);
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 18px;
    background:
        linear-gradient(110deg, rgba(0, 113, 121, .08), transparent 38%),
        rgba(255, 255, 255, .018);
}

.project-context-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--teal-light), transparent);
    opacity: .8;
}

.project-context-primary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    padding: 24px 28px;
    border-right: 1px solid rgba(255, 255, 255, .055);
}

.project-context-primary span,
.project-context-fact span {
    color: rgba(255, 255, 255, .38);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.project-context-primary strong {
    color: var(--white);
    font-size: clamp(21px, 2.1vw, 29px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.project-context-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    align-items: stretch;
}

.project-context-fact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    min-height: 88px;
    padding: 20px 24px;
}

.project-context-fact + .project-context-fact {
    border-left: 1px solid rgba(255, 255, 255, .05);
}

.project-context-fact strong {
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.project-task-panel {
    min-height: 0 !important;
    padding: clamp(28px, 4vw, 44px) !important;
    border-radius: 18px !important;
}

.project-task-kicker {
    margin-bottom: 16px;
}

.project-task-panel > p {
    max-width: 1080px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.8;
}

.project-task-panel > p + p {
    max-width: 1080px;
    margin-top: 20px;
    padding: 17px 20px;
    border: 0;
    border-left: 2px solid rgba(74, 220, 222, .42);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(0, 113, 121, .075), rgba(0, 113, 121, .008));
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.75;
}

/* RESULTS — one shared presentation surface instead of separate floating boxes */
.project-results-layout {
    display: grid;
    grid-template-columns: minmax(220px, .7fr) minmax(0, 2.3fr);
    gap: clamp(36px, 6vw, 86px);
    align-items: start;
}

.project-results-intro {
    position: sticky;
    top: 120px;
    padding-top: 8px;
}

.project-results-intro h2 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 4vw, 52px);
}

.project-results-intro p {
    max-width: 310px;
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.7;
}

.project-results-panel {
    position: relative;
    overflow: hidden;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 183, 194, .09), transparent 34%),
        rgba(10, 13, 14, .62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.project-results-panel::before {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74,220,222,.6), transparent);
}

.project-results-panel .results-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
    gap: 0 !important;
    align-items: stretch;
}

.project-results-panel .result-card-v2 {
    position: relative;
    min-width: 0;
    min-height: 185px;
    padding: 34px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.project-results-panel .result-card-v2::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 30px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal-light);
    box-shadow: 0 0 18px rgba(74, 220, 222, .45);
}

.project-results-panel .result-card-v2::after {
    content: '';
    position: absolute;
    inset: 20px 0;
    width: 1px;
    background: rgba(255,255,255,.06);
}

.project-results-panel .result-card-v2:first-child::after {
    display: none;
}

.project-results-panel .result-card-v2 .rc-number {
    margin: 0 0 10px;
    color: var(--white);
    font-size: clamp(30px, 3.2vw, 46px) !important;
    line-height: 1;
    letter-spacing: -.04em;
}

.project-results-panel .result-card-v2 .rc-label {
    max-width: 240px;
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.project-results-panel .result-card-v2:hover .rc-number {
    color: var(--teal-light);
}

/* ABOUT — restore spacing in values cards */
.value-card-top {
    margin-bottom: 30px !important;
}

.value-card > h3 {
    margin: 0 0 14px !important;
    line-height: 1.3;
}

/* Keep the restored rich story and technologies visibly separated */
.story-progress {
    margin-top: 18px;
}

.tech-showcase .section-header {
    margin-bottom: 42px;
}

/* Clickable service cards on About */
.about-service-link {
    color: inherit;
    text-decoration: none;
    position: relative;
    display: flex !important;
    flex-direction: column;
}

.about-service-link .about-service-more {
    margin-top: auto;
    padding-top: 18px;
    color: var(--teal-light);
    font-size: 13px;
    font-weight: 600;
    opacity: .82;
    transition: var(--transition);
}

.about-service-link:hover .about-service-more {
    opacity: 1;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .project-context-card,
    .project-results-layout {
        grid-template-columns: 1fr;
    }

    .project-context-primary {
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.055);
    }

    .project-results-intro {
        position: static;
    }

    .project-results-intro p {
        max-width: 620px;
    }
}

@media (max-width: 640px) {
    .project-context-facts {
        grid-template-columns: 1fr;
    }

    .project-context-fact + .project-context-fact {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.05);
    }

    .project-task-panel {
        padding: 24px !important;
    }

    .project-results-panel .results-grid-v2 {
        grid-template-columns: 1fr !important;
    }

    .project-results-panel .result-card-v2 {
        min-height: 135px;
        padding: 30px 24px 24px !important;
    }

    .project-results-panel .result-card-v2::after {
        inset: 0 24px auto;
        width: auto;
        height: 1px;
    }

    .project-results-panel .result-card-v2:first-child::after {
        display: none;
    }

    .project-results-panel .result-card-v2::before {
        left: 24px;
        top: 22px;
    }
}


/* ============================================================
   Results panel — 2x2 KPI layout
   ============================================================ */

.project-results-panel {
    padding: 0;
}

.project-results-panel .results-grid-v2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0 !important;
}

.project-results-panel .result-card-v2 {
    min-height: 190px;
    padding: 34px 36px 30px !important;
    justify-content: flex-end;
    border: 0 !important;
    background: transparent !important;
}

.project-results-panel .result-card-v2::before {
    left: 36px;
    top: 32px;
}

.project-results-panel .result-card-v2::after {
    display: none !important;
}

/* vertical split between columns */
.project-results-panel .result-card-v2:nth-child(odd):not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
}

/* horizontal split between rows */
.project-results-panel .result-card-v2:nth-child(n+3) {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.project-results-panel .result-card-v2 .rc-number {
    white-space: nowrap;
    font-size: clamp(34px, 3vw, 44px) !important;
    line-height: 1.04;
    max-width: 100%;
}

.project-results-panel .result-card-v2 .rc-label {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.55;
}

/* If there is an odd final KPI, let it span the whole width */
.project-results-panel .result-card-v2:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: 0 !important;
}

@media (max-width: 760px) {
    .project-results-panel .results-grid-v2 {
        grid-template-columns: 1fr !important;
    }

    .project-results-panel .result-card-v2,
    .project-results-panel .result-card-v2:last-child:nth-child(odd) {
        grid-column: auto;
        min-height: 130px;
        padding: 28px 24px 24px !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    }

    .project-results-panel .result-card-v2:first-child {
        border-top: 0 !important;
    }

    .project-results-panel .result-card-v2::before {
        left: 24px;
        top: 22px;
    }

    .project-results-panel .result-card-v2 .rc-number {
        font-size: clamp(30px, 9vw, 40px) !important;
    }
}


/* ============================================================
   Results section — stacked layout
   ============================================================ */

.project-results-layout {
    display: flex !important;
    flex-direction: column;
    gap: 34px;
    align-items: stretch;
}

.project-results-intro {
    position: static !important;
    width: 100%;
    max-width: 760px;
    padding-top: 0;
}

.project-results-intro h2 {
    margin-bottom: 12px;
}

.project-results-intro p {
    max-width: 620px;
}

.project-results-panel {
    width: 100%;
}


/* Results intro — centered */
.project-results-intro {
    margin-inline: auto;
    text-align: center;
}

.project-results-intro p {
    margin-inline: auto;
}

.project-results-intro .section-kicker,
.project-results-intro h2 {
    text-align: center;
}


/* ============================================================
   Portfolio hero v2
   ============================================================ */

.portfolio-hero-v2 {
    min-height: 620px !important;
    display: flex;
    align-items: center;
    padding: 118px 0 82px;
    isolation: isolate;
}

.portfolio-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 96px 96px;
    mask-image: linear-gradient(to right, transparent, rgba(0,0,0,.52) 38%, rgba(0,0,0,.18) 75%, transparent);
    opacity: .28;
    z-index: 0;
}

.portfolio-hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(330px, .72fr);
    gap: clamp(56px, 8vw, 130px);
    align-items: center;
}

.portfolio-hero-copy {
    max-width: 780px;
}

.portfolio-hero-copy h1 {
    margin: 28px 0 24px;
    font-size: clamp(58px, 6.5vw, 104px);
    line-height: .92;
    letter-spacing: -.055em;
}

.portfolio-hero-line {
    display: block;
}

.portfolio-hero-copy .hero-description {
    max-width: 680px;
    margin: 0;
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.65;
}

.portfolio-hero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 32px;
}

.portfolio-hero-chips span {
    padding: 9px 13px;
    border: 1px solid rgba(74, 220, 222, .13);
    border-radius: 999px;
    color: rgba(255,255,255,.58);
    background: rgba(0, 113, 121, .045);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.portfolio-hero-meta {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(74, 220, 222, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 183, 194, .11), transparent 40%),
        rgba(8, 12, 13, .56);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 24px 80px rgba(0,0,0,.18);
}

.portfolio-hero-meta::after {
    content: '';
    position: absolute;
    right: -44px;
    top: -44px;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(74,220,222,.08);
    border-radius: 50%;
}

.portfolio-hero-meta-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 5px 20px;
    align-items: end;
    padding-bottom: 26px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.portfolio-meta-label {
    align-self: center;
    color: var(--teal-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.portfolio-hero-meta-top > strong {
    grid-row: 1 / span 2;
    grid-column: 2;
    color: var(--white);
    font-size: clamp(58px, 5vw, 82px);
    line-height: .82;
    letter-spacing: -.07em;
}

.portfolio-meta-caption {
    color: rgba(255,255,255,.42);
    font-size: 12px;
}

.portfolio-hero-meta-grid {
    display: grid;
    gap: 0;
    margin-top: 6px;
}

.portfolio-hero-meta-grid > div {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 14px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.portfolio-hero-meta-grid > div:last-child {
    border-bottom: 0;
    padding-bottom: 4px;
}

.portfolio-hero-meta-grid span {
    color: rgba(74, 220, 222, .5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
}

.portfolio-hero-meta-grid strong {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
}

.portfolio-hero-shape {
    pointer-events: none;
}

.portfolio-hero-shape--main {
    right: 5% !important;
    top: 16% !important;
    opacity: .48;
    z-index: 1;
}

.portfolio-hero-shape--small {
    right: 31% !important;
    bottom: 7% !important;
    opacity: .24;
    z-index: 1;
}

/* ============================================================
   Portfolio list — eager rendering, no reveal/lazy dependency
   ============================================================ */

.portfolio-page .portfolio-filters,
.portfolio-page .portfolio-grid--eager,
.portfolio-page .portfolio-grid--eager .project-card {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition-delay: 0s !important;
}

.portfolio-page .portfolio-grid--eager .project-card {
    animation: none !important;
}

/* Keep only normal hover transitions on cards */
.portfolio-page .portfolio-grid--eager .portfolio-text-card {
    transition:
        border-color .25s ease,
        background .25s ease,
        box-shadow .25s ease,
        transform .25s ease !important;
}

.portfolio-page .portfolio-grid--eager .portfolio-text-card:hover {
    transform: translateY(-4px) !important;
}

@media (max-width: 1050px) {
    .portfolio-hero-v2 {
        min-height: auto !important;
        padding: 126px 0 78px;
    }

    .portfolio-hero-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .portfolio-hero-meta {
        max-width: 680px;
    }

    .portfolio-hero-shape--small {
        display: none;
    }
}

@media (max-width: 640px) {
    .portfolio-hero-v2 {
        padding: 108px 0 62px;
    }

    .portfolio-hero-copy h1 {
        margin-top: 22px;
        font-size: clamp(48px, 15vw, 68px);
        line-height: .96;
    }

    .portfolio-hero-copy .hero-description {
        font-size: 16px;
    }

    .portfolio-hero-meta {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .portfolio-hero-meta-top > strong {
        font-size: 58px;
    }

    .portfolio-hero-shape--main {
        right: -22% !important;
        top: 10% !important;
        opacity: .23;
    }
}


/* ============================================================
   Services hero v2
   ============================================================ */

.services-hero-v2 {
    min-height: 690px !important;
    display: flex;
    align-items: center;
    padding: 124px 0 76px;
    overflow: hidden;
    isolation: isolate;
}

.services-hero-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: radial-gradient(circle at 63% 50%, #000 0, rgba(0,0,0,.65) 40%, transparent 78%);
    opacity: .28;
}

.services-hero-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    align-items: center;
    gap: clamp(52px, 7vw, 112px);
}

.services-hero-copy {
    max-width: 820px;
}

.services-hero-copy h1 {
    margin: 28px 0 26px;
    font-size: clamp(54px, 5.5vw, 88px);
    line-height: .96;
    letter-spacing: -.05em;
}

.services-hero-copy h1 > span {
    display: block;
}

.services-hero-copy .hero-description {
    max-width: 720px;
    margin: 0;
    font-size: clamp(17px, 1.25vw, 20px);
    line-height: 1.68;
}

.services-hero-map {
    position: relative;
    width: min(100%, 500px);
    aspect-ratio: 1;
    justify-self: end;
}

.services-orbit,
.services-core,
.services-node {
    position: absolute;
    border-radius: 50%;
}

.services-orbit {
    inset: 50%;
    border: 1px solid rgba(64, 214, 220, .12);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.services-orbit--outer {
    width: 94%;
    height: 94%;
}

.services-orbit--inner {
    width: 58%;
    height: 58%;
    border-style: dashed;
    opacity: .75;
}

.services-core {
    left: 50%;
    top: 50%;
    width: 152px;
    height: 152px;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(64, 214, 220, .22);
    background:
        radial-gradient(circle at 50% 25%, rgba(0, 204, 214, .16), transparent 55%),
        rgba(8, 13, 14, .78);
    box-shadow:
        0 0 0 16px rgba(0, 172, 180, .025),
        0 0 60px rgba(0, 173, 182, .08),
        inset 0 1px 0 rgba(255,255,255,.035);
    backdrop-filter: blur(12px);
}

.services-core span {
    color: rgba(255,255,255,.38);
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.services-core strong {
    margin-top: 5px;
    color: var(--white);
    font-size: 25px;
    letter-spacing: -.04em;
}

.services-node {
    width: 104px;
    height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(64, 214, 220, .12);
    background: rgba(11, 16, 17, .82);
    backdrop-filter: blur(8px);
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    transition:
        transform .28s ease,
        border-color .28s ease,
        background .28s ease,
        box-shadow .28s ease;
}

.services-node:hover {
    transform: translateY(-6px) scale(1.035);
    border-color: rgba(64, 214, 220, .34);
    background: rgba(8, 24, 25, .92);
    box-shadow: 0 24px 70px rgba(0, 186, 196, .08);
}

.services-node span {
    margin-bottom: 4px;
    color: rgba(52, 207, 215, .48);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .1em;
}

.services-node strong {
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 650;
}

.services-node--1 {
    left: 7%;
    top: 16%;
}

.services-node--2 {
    right: 3%;
    top: 21%;
}

.services-node--3 {
    right: 8%;
    bottom: 12%;
}

.services-node--4 {
    left: 9%;
    bottom: 8%;
}

.services-node--5 {
    left: 50%;
    top: -1%;
    transform: translateX(-50%);
}

.services-node--5:hover {
    transform: translateX(-50%) translateY(-6px) scale(1.035);
}

.services-hero-bottom {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 54px;
    color: rgba(255,255,255,.38);
    font-size: 12px;
    letter-spacing: .04em;
}

.services-hero-bottom i {
    flex: 1;
    max-width: 110px;
    height: 1px;
    background: linear-gradient(90deg, rgba(52,207,215,.22), rgba(255,255,255,.055));
}

.services-hero-shape {
    pointer-events: none;
}

.services-hero-shape--main {
    right: 16% !important;
    top: 15% !important;
    opacity: .17;
    z-index: 1;
}

.services-hero-shape--small {
    left: 4% !important;
    bottom: 7% !important;
    opacity: .18;
    z-index: 1;
}

@media (max-width: 1080px) {
    .services-hero-v2 {
        min-height: auto !important;
        padding: 122px 0 76px;
    }

    .services-hero-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .services-hero-map {
        width: min(100%, 520px);
        justify-self: center;
    }

    .services-hero-copy {
        max-width: 900px;
    }

    .services-hero-shape--main {
        right: -5% !important;
        opacity: .12;
    }
}

@media (max-width: 640px) {
    .services-hero-v2 {
        padding: 108px 0 58px;
    }

    .services-hero-copy h1 {
        margin-top: 22px;
        font-size: clamp(44px, 13vw, 62px);
        line-height: .98;
    }

    .services-hero-copy .hero-description {
        font-size: 16px;
    }

    .services-hero-map {
        width: min(100%, 390px);
    }

    .services-core {
        width: 118px;
        height: 118px;
    }

    .services-core strong {
        font-size: 21px;
    }

    .services-node {
        width: 82px;
        height: 82px;
    }

    .services-node strong {
        font-size: 11px;
    }

    .services-hero-bottom {
        flex-wrap: wrap;
        gap: 9px 12px;
        margin-top: 38px;
    }

    .services-hero-bottom i {
        max-width: 42px;
    }

    .services-hero-shape--small {
        display: none;
    }
}


/* ============================================================
   Contacts hero v2 — split composition
   ============================================================ */

.contacts-hero-v2 {
    min-height: 650px !important;
    padding: 116px 0 74px;
    overflow: hidden;
}

.contacts-hero-v2 .container {
    position: relative;
    z-index: 3;
}

.contacts-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
    align-items: center;
    gap: clamp(64px, 8vw, 132px);
}

.contacts-hero-v2 .contacts-hero-content {
    max-width: 760px;
    padding: 0;
}

.contacts-hero-shape {
    right: 6% !important;
    top: 17% !important;
    opacity: .24;
    z-index: 1;
    pointer-events: none;
}

.contacts-brief-card {
    position: relative;
    overflow: hidden;
    padding: 30px 30px 26px;
    border: 1px solid rgba(0, 189, 199, .15);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 180, 190, .12), transparent 38%),
        rgba(8, 13, 14, .64);
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025),
        0 26px 80px rgba(0,0,0,.18);
}

.contacts-brief-card::before {
    content: '';
    position: absolute;
    width: 170px;
    height: 170px;
    right: -70px;
    bottom: -80px;
    border: 1px solid rgba(0, 190, 200, .08);
    border-radius: 50%;
    box-shadow:
        0 0 0 30px rgba(0, 190, 200, .018),
        0 0 0 60px rgba(0, 190, 200, .01);
    pointer-events: none;
}

.contacts-brief-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.contacts-brief-kicker,
.contacts-brief-index {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contacts-brief-kicker {
    color: var(--teal-light);
}

.contacts-brief-index {
    color: rgba(255,255,255,.22);
}

.contacts-brief-card h2 {
    max-width: 390px;
    margin: 0 0 26px;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.12;
    letter-spacing: -.03em;
}

.contacts-brief-list {
    border-top: 1px solid rgba(255,255,255,.055);
}

.contacts-brief-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 15px;
    padding: 19px 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
}

.contacts-brief-item > span {
    padding-top: 2px;
    color: rgba(0, 196, 207, .5);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
}

.contacts-brief-item strong {
    display: block;
    margin-bottom: 6px;
    color: rgba(255,255,255,.84);
    font-size: 14px;
}

.contacts-brief-item p {
    margin: 0;
    color: rgba(255,255,255,.4);
    font-size: 12px;
    line-height: 1.55;
}

.contacts-brief-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    color: rgba(255,255,255,.38);
    font-size: 11px;
}

@media (max-width: 980px) {
    .contacts-hero-v2 {
        min-height: auto !important;
        padding: 122px 0 74px;
    }

    .contacts-hero-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contacts-brief-card {
        max-width: 720px;
    }

    .contacts-hero-shape {
        right: -7% !important;
        top: 12% !important;
        opacity: .17;
    }
}

@media (max-width: 700px) {
    .contacts-hero-v2 {
        padding: 106px 0 58px;
    }

    .contacts-brief-card {
        padding: 24px 20px 21px;
        border-radius: 18px;
    }

    .contacts-brief-card h2 {
        font-size: 26px;
    }
}

/* =========================================================
   Arrow rendering fix — prevent emoji-style arrows on iOS
   ========================================================= */

.portfolio-card-arrow,
.portfolio-card-footer > span:last-child {
    font-size: 0 !important;
}

.portfolio-card-arrow::before,
.portfolio-card-footer > span:last-child::before {
    content: '';
    display: block;
    width: 15px;
    height: 15px;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.portfolio-card-arrow::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
}

.portfolio-card-footer > span:last-child::before {
    width: 16px;
    height: 16px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M14 7l5 5-5 5'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M14 7l5 5-5 5'/%3E%3C/svg%3E");
}

.mobile-menu-nav a::after {
    content: '' !important;
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-left: auto;
    background-color: rgba(255, 255, 255, .18);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M8 7h9v9'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform .25s ease, background-color .25s ease;
}

.mobile-menu-nav a.active::after,
.mobile-menu-nav a:hover::after {
    background-color: var(--teal-light);
}

.mobile-menu-nav a:hover::after {
    transform: translate(2px, -2px);
}

/* =========================================================
   MOBILE HERO SPACING + ABOUT STORY 3D FIX
   ========================================================= */

@media (max-width: 768px) {
    /* Home: give the hero a clean ending before the next section */
    #hero.hero {
        padding-bottom: 76px !important;
    }

    /* About: counters should not sit directly on the next section */
    .hero:has(.about-hero-split) {
        padding-bottom: 76px !important;
    }

    /* The generic mobile rule hides all .decor-3d elements.
       The story model is meaningful content, so keep this one visible. */
    .story-visual .story-3d {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .story-visual {
        min-height: 360px;
        margin-top: 28px;
    }
}

@media (max-width: 480px) {
    #hero.hero,
    .hero:has(.about-hero-split) {
        padding-bottom: 68px !important;
    }

    .story-visual {
        min-height: 330px;
        margin-top: 22px;
    }

    .story-visual .story-3d {
        width: 310px !important;
        height: 310px !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
    }
}

/* =========================================================
   LEGAL / COOKIES / REQUISITES / FORM CONSENT
   ========================================================= */

.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 9999;
    width: min(1120px, calc(100% - 40px));
    transform: translate(-50%, 18px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.cookie-banner.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    padding: 22px 24px; border: 1px solid rgba(0, 196, 204, .2); border-radius: 22px;
    background: radial-gradient(circle at 90% 0, rgba(0, 196, 204, .12), transparent 34%), rgba(8, 11, 12, .96);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .42); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.cookie-banner-copy { max-width: 720px; }
.cookie-banner-kicker { display: block; margin-bottom: 7px; color: var(--teal-light); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cookie-banner-copy strong { display: block; margin-bottom: 6px; color: var(--white); font-size: 18px; line-height: 1.25; }
.cookie-banner-copy p { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.6; }
.cookie-banner-copy a { color: var(--teal-light); text-decoration: none; border-bottom: 1px solid rgba(0, 196, 204, .35); }
.cookie-banner-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.cookie-banner-actions .btn { min-height: 44px; padding: 10px 22px; font-size: 13px; white-space: nowrap; }

.form-consent { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 11px; margin: 4px 0 16px; cursor: pointer; }
.form-consent input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.form-consent-box { position: relative; width: 20px; height: 20px; margin-top: 1px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; background: rgba(255, 255, 255, .035); transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.form-consent input:checked + .form-consent-box { border-color: var(--teal-light); background: var(--teal); box-shadow: 0 0 0 3px rgba(0, 196, 204, .08); }
.form-consent input:checked + .form-consent-box::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.form-consent input:focus-visible + .form-consent-box { outline: 2px solid var(--teal-light); outline-offset: 3px; }
.form-consent-text { color: rgba(176, 176, 176, .78); font-size: 11px; line-height: 1.55; }
.form-consent-text a { color: var(--teal-light); text-decoration: none; border-bottom: 1px solid rgba(0, 196, 204, .25); }

.contacts-requisites-section { position: relative; overflow: hidden; }
.contacts-requisites-layout { display: grid; grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr); gap: clamp(50px, 8vw, 120px); align-items: start; }
.contacts-requisites-intro { max-width: 480px; }
.contacts-requisites-intro h2 { margin: 14px 0 18px; font-size: clamp(34px, 4.5vw, 58px); line-height: .98; }
.contacts-requisites-intro p { max-width: 420px; color: var(--gray); font-size: 15px; line-height: 1.7; }
.contacts-requisites-card { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255, 255, 255, .08); border-radius: 22px; overflow: hidden; background: radial-gradient(circle at 100% 0, rgba(0, 196, 204, .08), transparent 35%), rgba(255, 255, 255, .018); }
.requisite-row { min-height: 116px; padding: 26px 28px; border-right: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.requisite-row:nth-child(odd):not(.requisite-row--wide) { border-right: none; }
.requisite-row:nth-last-child(-n + 2) { border-bottom: none; }
.requisite-row--wide { grid-column: 1 / -1; min-height: 104px; border-right: none; }
.requisite-row span { display: block; margin-bottom: 12px; color: rgba(176, 176, 176, .64); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.requisite-row strong { display: block; color: var(--white); font-size: 17px; font-weight: 600; line-height: 1.45; }

.legal-hero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; padding: 150px 0 72px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.legal-hero .container { position: relative; z-index: 1; }
.legal-hero-inner { max-width: 900px; }
.legal-eyebrow { display: inline-flex; align-items: center; padding: 8px 14px; margin-bottom: 22px; border: 1px solid rgba(0, 196, 204, .2); border-radius: 999px; color: var(--teal-light); background: rgba(0, 196, 204, .035); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.legal-hero h1 { max-width: 900px; margin: 0 0 22px; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; }
.legal-hero p { max-width: 720px; margin: 0; color: var(--gray); font-size: 17px; line-height: 1.7; }
.legal-section { background: var(--black); }
.legal-document { max-width: 1040px; margin: 0 auto; }
.legal-document-status { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 42px; color: rgba(176, 176, 176, .68); font-size: 12px; }
.legal-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-light); box-shadow: 0 0 16px rgba(0, 196, 204, .5); }
.legal-document > h2 { max-width: 760px; margin-bottom: 18px; font-size: clamp(30px, 4vw, 48px); }
.legal-document > p { max-width: 820px; color: var(--gray); line-height: 1.8; }
.legal-placeholder-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.legal-placeholder-card { min-height: 220px; padding: 26px; border: 1px solid rgba(255, 255, 255, .07); border-radius: 18px; background: linear-gradient(145deg, rgba(0, 196, 204, .035), rgba(255, 255, 255, .012)); }
.legal-placeholder-card > span { color: var(--teal-light); font-size: 11px; font-weight: 700; }
.legal-placeholder-card h3 { margin: 44px 0 10px; font-size: 18px; }
.legal-placeholder-card p { margin: 0; color: rgba(176, 176, 176, .72); font-size: 13px; line-height: 1.65; }
.legal-document-note { display: grid; grid-template-columns: 140px 1fr; gap: 26px; margin-top: 18px; padding: 22px 26px; border: 1px solid rgba(0, 196, 204, .12); border-radius: 16px; background: rgba(0, 196, 204, .025); }
.legal-document-note strong { color: var(--teal-light); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.legal-document-note p { margin: 0; color: var(--gray); font-size: 13px; line-height: 1.65; }
.footer-bottom-links { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }

@media (max-width: 900px) {
    .contacts-requisites-layout { grid-template-columns: 1fr; gap: 34px; }
    .legal-placeholder-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .cookie-banner { bottom: 12px; width: calc(100% - 24px); }
    .cookie-banner-inner { align-items: stretch; flex-direction: column; gap: 18px; padding: 20px; border-radius: 18px; }
    .cookie-banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-banner-actions .btn { width: 100%; justify-content: center; }
    .contacts-requisites-card { grid-template-columns: 1fr; }
    .requisite-row, .requisite-row--wide { grid-column: auto; min-height: auto; padding: 22px; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .requisite-row:nth-last-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .07); }
    .requisite-row:last-child { border-bottom: none; }
    .legal-hero { min-height: auto; padding: 132px 0 56px; }
    .legal-hero h1 { font-size: clamp(38px, 11vw, 58px); }
    .legal-hero p { font-size: 15px; }
    .legal-document-status { margin-bottom: 32px; }
    .legal-document-note { grid-template-columns: 1fr; gap: 8px; }
    .footer-bottom-links { justify-content: flex-start; }
}
@media (max-width: 480px) {
    .cookie-banner-actions { grid-template-columns: 1fr; }
    .cookie-banner-copy strong { font-size: 17px; }
    .form-consent { margin-bottom: 14px; }
    .legal-placeholder-card { min-height: 190px; }
}

/* ============================================================
   BLOG / ARTICLE — visual refresh v1
   ============================================================ */

.blog-hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
    padding: 132px 0 78px;
    background:
        radial-gradient(ellipse 105% 145% at -24% 60%, rgba(0, 112, 120, .085) 0%, rgba(0, 92, 100, .035) 34%, transparent 68%),
        radial-gradient(ellipse 96% 150% at 116% 38%, rgba(0, 150, 159, .16) 0%, rgba(0, 112, 121, .07) 34%, transparent 70%),
        linear-gradient(90deg, #07090a 0%, #07090a 48%, #060809 65%, #07090a 100%) !important;
}

.blog-hero-grid,
.article-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .34;
    background-image:
        linear-gradient(rgba(0, 170, 180, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 170, 180, .03) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 46%, #000 100%);
}

.blog-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
    gap: clamp(44px, 6vw, 92px);
    align-items: center;
}

.blog-hero-copy {
    max-width: 660px;
}

.blog-hero-copy h1 {
    margin: 0 0 22px;
    font-size: clamp(48px, 5.3vw, 76px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.blog-hero-copy h1 .accent {
    background: linear-gradient(135deg, #24cbd2, var(--teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-copy .hero-description {
    max-width: 650px;
    margin-bottom: 30px;
}

.blog-hero-points {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(255,255,255,.36);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-hero-points i {
    width: 18px;
    height: 1px;
    background: rgba(0, 185, 195, .30);
}

.blog-featured {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-rows: 300px 1fr;
    min-height: 500px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 24px;
    background:
        radial-gradient(circle at 90% 0%, rgba(0, 145, 154, .06), transparent 38%),
        #101314;
    box-shadow: 0 34px 90px rgba(0,0,0,.32);
    transition:
        transform .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.blog-featured:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 177, 187, .24);
    box-shadow:
        0 42px 110px rgba(0,0,0,.38),
        0 0 44px rgba(0, 135, 145, .04);
}

.blog-featured-media {
    position: relative;
    overflow: hidden;
    background: #0b0f10;
}

.blog-featured-media img,
.article-card--media .article-image img,
.article-hero-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-featured-media img {
    transition: transform .6s cubic-bezier(.2,.8,.2,1);
}

.blog-featured:hover .blog-featured-media img {
    transform: scale(1.025);
}

.blog-featured-media::after,
.article-card--media .article-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 54%, rgba(5,8,9,.38));
}

.blog-featured-label {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 2;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(7,10,11,.64);
    color: rgba(255,255,255,.60);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.blog-featured-body {
    padding: 26px 28px 28px;
}

.blog-featured-body h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.18;
    letter-spacing: -.03em;
}

.blog-featured-body p {
    margin: 0;
    color: rgba(255,255,255,.46);
    font-size: 13px;
    line-height: 1.7;
}

.blog-featured-link,
.article-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--teal-light);
    font-size: 12px;
    font-weight: 700;
}

.blog-featured-link b,
.article-card-link b {
    transition: transform .25s ease;
}

.blog-featured:hover .blog-featured-link b,
.article-card:hover .article-card-link b {
    transform: translateX(4px);
}

.blog-cover-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 30px;
    background:
        radial-gradient(circle at 72% 30%, rgba(0, 177, 187, .16), transparent 34%),
        radial-gradient(circle at 24% 80%, rgba(0, 116, 125, .12), transparent 38%),
        linear-gradient(145deg, #101718, #0a0e0f);
}

.blog-cover-placeholder::before,
.blog-cover-placeholder::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(0, 175, 185, .12);
    transform: rotate(22deg);
}

.blog-cover-placeholder::before {
    width: 170px;
    height: 170px;
    right: 14%;
    top: 16%;
}

.blog-cover-placeholder::after {
    width: 100px;
    height: 100px;
    right: 22%;
    top: 28%;
    transform: rotate(-18deg);
}

.blog-cover-mark {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.72);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.04em;
}

.blog-cover-line {
    position: relative;
    z-index: 2;
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal-light));
}

.blog-cover-placeholder--card {
    padding: 20px;
}

.blog-cover-placeholder--card .blog-cover-mark {
    font-size: 20px;
}

.blog-cover-placeholder--hero {
    align-items: flex-end;
    padding: 34px;
}

.blog-cover-placeholder--hero small {
    position: relative;
    z-index: 2;
    color: rgba(255,255,255,.34);
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.blog-catalog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.blog-catalog-head h2 {
    margin: 6px 0 0;
}

.blog-catalog-head > p {
    max-width: 490px;
    margin: 0 0 4px;
    color: rgba(255,255,255,.44);
    font-size: 14px;
    line-height: 1.7;
}

.blog-category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
}

.blog-category-link {
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 999px;
    color: rgba(255,255,255,.46);
    font-size: 12px;
    font-weight: 600;
}

.blog-category-link:hover,
.blog-category-link.active {
    border-color: rgba(0, 178, 188, .30);
    background: rgba(0, 132, 141, .10);
    color: var(--teal-light);
}

.blog-grid--enhanced {
    gap: 22px;
}

.article-card--media {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background:
        radial-gradient(circle at 95% 0%, rgba(0,145,154,.04), transparent 36%),
        #101314;
}

.article-card--media .article-image {
    height: 230px;
    overflow: hidden;
}

.article-card--media .article-image img {
    transition: transform .5s cubic-bezier(.2,.8,.2,1);
}

.article-card--media:hover .article-image img {
    transform: scale(1.035);
}

.article-card--media .article-body {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 24px;
}

.article-card--media .article-body h3 {
    font-size: 18px;
    line-height: 1.4;
}

.article-card--media .article-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin: 4px 0 0;
}

.article-card--media .article-card-link {
    margin-top: auto;
    padding-top: 18px;
}

.blog-subscribe {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    margin-top: 64px;
    padding: 34px 38px;
    border: 1px solid rgba(0, 168, 178, .14);
    border-radius: 22px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0, 150, 160, .07), transparent 36%),
        rgba(255,255,255,.018);
}

.blog-subscribe-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.blog-subscribe h3 {
    max-width: 760px;
    margin: 0 0 8px;
    font-size: 24px;
}

.blog-subscribe p {
    max-width: 760px;
    margin: 0;
    color: rgba(255,255,255,.44);
    font-size: 13px;
    line-height: 1.65;
}

/* ARTICLE HERO */

.article-hero--visual {
    min-height: 690px;
    padding: 122px 0 72px;
    align-items: center;
    background:
        radial-gradient(ellipse 100% 140% at -24% 58%, rgba(0, 108, 116, .07) 0%, rgba(0, 82, 90, .025) 38%, transparent 68%),
        radial-gradient(ellipse 92% 145% at 116% 40%, rgba(0, 150, 160, .145) 0%, rgba(0, 108, 116, .06) 36%, transparent 70%),
        #07090a;
}

.article-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
    gap: clamp(46px, 6vw, 92px);
    align-items: center;
}

.article-hero-copy h1 {
    max-width: 790px;
    margin-bottom: 20px;
    font-size: clamp(44px, 5.2vw, 74px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.article-hero-excerpt {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.48);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.72;
}

.article-hero-cover {
    position: relative;
}

.article-hero-cover-frame {
    position: relative;
    z-index: 2;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 24px;
    background: #0d1112;
    box-shadow:
        0 36px 100px rgba(0,0,0,.42),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.article-cover-glow {
    position: absolute;
    z-index: 0;
    inset: 12% -8% -10% 12%;
    border-radius: 50%;
    background: rgba(0, 160, 170, .13);
    filter: blur(70px);
    opacity: .6;
}

.article-main-section {
    padding-top: 78px;
}

.article-layout {
    grid-template-columns: 255px minmax(0, 780px);
    gap: clamp(42px, 6vw, 76px);
    justify-content: center;
}

.article-content {
    max-width: 780px;
}

.article-content > p:first-of-type {
    font-size: 18px;
    line-height: 1.85;
    color: rgba(255,255,255,.72);
}

.article-content a {
    color: var(--teal-light);
    text-decoration: underline;
    text-decoration-color: rgba(0, 180, 190, .28);
    text-underline-offset: 3px;
}

.article-content a:hover {
    color: #31d4dc;
    text-decoration-color: currentColor;
}

.article-content table {
    width: 100%;
    margin: 28px 0;
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
}

.article-content th,
.article-content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,.065);
    border-right: 1px solid rgba(255,255,255,.045);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.55;
}

.article-content th {
    background: rgba(0, 130, 140, .075);
    color: rgba(255,255,255,.85);
    font-weight: 650;
}

.article-content td {
    color: rgba(255,255,255,.52);
}

.article-toc-panel,
.article-author-card,
.article-side-cta {
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,145,154,.04), transparent 38%),
        #101314;
}

.article-toc-panel {
    padding: 20px;
}

.article-author-card {
    margin-top: 16px;
    padding: 18px;
}

.article-author-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.article-author-card .aha-avatar {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    font-size: 13px;
    font-weight: 700;
}

.article-author-card .aha-name {
    font-size: 12px;
    font-weight: 650;
}

.article-author-card .aha-role {
    color: rgba(255,255,255,.35);
    font-size: 10px;
}

.article-author-card p {
    margin: 13px 0 0;
    color: rgba(255,255,255,.40);
    font-size: 11px;
    line-height: 1.6;
}

.article-side-cta {
    margin-top: 16px;
    padding: 20px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,165,175,.085), transparent 42%),
        #0d1213;
    border-color: rgba(0, 166, 176, .16);
}

.article-side-cta > span,
.article-share-side > span {
    display: block;
    margin-bottom: 8px;
    color: var(--teal-light);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.article-side-cta h4 {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.45;
}

.article-side-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
    font-size: 11px;
}

.article-share-side {
    margin-top: 18px;
}

.share-btn.copied {
    color: var(--teal-light);
    border-color: rgba(0, 188, 198, .35);
    background: rgba(0, 140, 150, .10);
}

button.share-btn {
    padding: 0;
    color: inherit;
    font-family: inherit;
}

.related-section {
    padding-top: 92px;
}

.related-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.related-head h2 {
    margin-top: 4px;
}

.related-all-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: rgba(255,255,255,.48);
    font-size: 13px;
    font-weight: 600;
}

.related-all-link span {
    color: var(--teal-light);
    transition: transform .25s ease;
}

.related-all-link:hover {
    color: var(--white);
}

.related-all-link:hover span {
    transform: translateX(4px);
}

.related-articles--enhanced {
    gap: 22px;
}

.related-articles--enhanced .article-card {
    min-width: 0;
}

.article-bottom-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
}

.article-bottom-cta-inner > div {
    max-width: 820px;
}

.article-bottom-cta-inner h2 {
    margin: 6px 0 12px;
}

.article-bottom-cta-inner p {
    margin: 0;
    color: rgba(255,255,255,.46);
    font-size: 14px;
    line-height: 1.7;
}

.blog-empty {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    color: rgba(255,255,255,.42);
    text-align: center;
}

/* Blog / article responsive */
@media (max-width: 1100px) {
    .blog-hero-layout,
    .article-hero-layout {
        grid-template-columns: 1fr;
    }

    .blog-featured {
        grid-template-columns: minmax(0, 1.1fr) minmax(330px, .9fr);
        grid-template-rows: 1fr;
        min-height: 390px;
    }

    .blog-featured-media {
        min-height: 390px;
    }

    .article-hero-cover {
        max-width: 760px;
    }

    .article-layout {
        grid-template-columns: 1fr;
        max-width: 820px;
        margin: 0 auto;
    }

    .article-toc {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
        padding: 0;
        border: 0;
        background: transparent;
    }

    .article-toc-panel {
        grid-row: span 2;
    }

    .article-author-card,
    .article-side-cta {
        margin-top: 0;
    }

    .article-share-side {
        display: none;
    }
}

@media (max-width: 760px) {
    .blog-hero {
        min-height: auto;
        padding: 110px 0 58px;
    }

    .blog-hero-copy h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .blog-featured {
        display: block;
        min-height: 0;
        border-radius: 18px;
    }

    .blog-featured-media {
        min-height: 0;
        height: 250px;
    }

    .blog-featured-body {
        padding: 22px;
    }

    .blog-catalog-head,
    .blog-subscribe,
    .related-head,
    .article-bottom-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-catalog-head {
        margin-bottom: 26px;
    }

    .blog-catalog-head > p {
        max-width: none;
    }

    .blog-subscribe {
        margin-top: 42px;
        padding: 26px 22px;
    }

    .article-hero--visual {
        min-height: auto;
        padding: 108px 0 54px;
    }

    .article-hero-copy h1 {
        font-size: clamp(40px, 11vw, 60px);
    }

    .article-hero-cover-frame {
        border-radius: 18px;
    }

    .article-main-section {
        padding-top: 56px;
    }

    .article-toc {
        grid-template-columns: 1fr;
    }

    .article-toc-panel {
        grid-row: auto;
    }

    .article-author-card {
        display: none;
    }

    .article-content > p:first-of-type {
        font-size: 16px;
    }

    .article-content table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .related-section {
        padding-top: 64px;
    }
}

@media (max-width: 480px) {
    .article-card--media .article-image {
        height: 210px;
    }

    .blog-featured-media {
        height: 220px;
    }

    .article-hero-cover-frame {
        aspect-ratio: 16 / 11;
    }
}

/* ============================================================
   BLOG / ARTICLE — hero refinement v2
   Cleaner hierarchy, calmer typography, stronger image balance
   ============================================================ */

/* BLOG HERO */
.blog-hero {
    min-height: 590px;
    padding: 128px 0 70px;
}

.blog-hero-layout {
    grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
    gap: clamp(54px, 7vw, 104px);
    align-items: center;
}

.blog-hero-copy {
    max-width: 560px;
}

.blog-hero-copy .hero-badge {
    margin-bottom: 22px;
}

.blog-hero-copy h1 {
    max-width: 560px;
    margin: 0 0 20px;
    font-size: clamp(48px, 4.5vw, 66px);
    line-height: .98;
    letter-spacing: -.045em;
}

.blog-hero-copy .hero-description {
    max-width: 560px;
    margin: 0 0 28px;
    color: rgba(255,255,255,.56);
    font-size: clamp(16px, 1.3vw, 18px);
    line-height: 1.75;
}

.blog-hero-points {
    gap: 9px;
    font-size: 10px;
}

.blog-featured {
    grid-template-rows: 255px auto;
    min-height: 455px;
    border-radius: 22px;
    box-shadow: 0 28px 76px rgba(0,0,0,.28);
}

.blog-featured-media {
    min-height: 255px;
}

.blog-featured-body {
    padding: 24px 26px 26px;
}

.blog-featured-body .article-meta {
    margin-bottom: 10px;
}

.blog-featured-body h2 {
    max-width: 95%;
    margin-bottom: 10px;
    font-size: clamp(22px, 1.75vw, 29px);
    line-height: 1.2;
}

.blog-featured-body p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 94%;
    font-size: 12.5px;
}

.blog-featured-link {
    margin-top: 16px;
}

/* ARTICLE HERO */
.article-hero--visual {
    min-height: 620px;
    padding: 118px 0 66px;
}

.article-hero--visual .breadcrumbs {
    margin-bottom: 26px;
}

.article-hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(500px, .98fr);
    gap: clamp(54px, 6.5vw, 94px);
    align-items: center;
}

.article-hero-copy {
    max-width: 680px;
}

.article-hero-meta {
    margin-bottom: 18px;
}

.article-hero-copy h1 {
    max-width: 680px;
    margin: 0 0 18px;
    font-size: clamp(42px, 4.15vw, 60px);
    line-height: 1.04;
    letter-spacing: -.042em;
    text-wrap: balance;
}

.article-hero-excerpt {
    max-width: 620px;
    margin-bottom: 24px;
    color: rgba(255,255,255,.52);
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.7;
}

.article-hero-author {
    margin-top: 0 !important;
}

.article-hero-cover {
    width: 100%;
    max-width: 610px;
    justify-self: end;
}

.article-hero-cover-frame {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    border-color: rgba(255,255,255,.085);
    box-shadow:
        0 28px 78px rgba(0,0,0,.34),
        inset 0 1px 0 rgba(255,255,255,.025);
}

.article-cover-glow {
    inset: 14% -5% -6% 10%;
    opacity: .42;
    filter: blur(58px);
}

/* Placeholder should look deliberate until every article has a cover */
.blog-cover-placeholder--hero {
    align-items: flex-end;
    padding: 28px;
    background:
        radial-gradient(circle at 75% 28%, rgba(0, 177, 187, .13), transparent 30%),
        radial-gradient(circle at 18% 82%, rgba(0, 116, 125, .09), transparent 34%),
        linear-gradient(145deg, #0d1415, #090c0d);
}

.blog-cover-placeholder--hero .blog-cover-mark {
    font-size: 22px;
}

.blog-cover-placeholder--hero::before {
    width: 150px;
    height: 150px;
    right: 18%;
    top: 18%;
    opacity: .7;
}

.blog-cover-placeholder--hero::after {
    width: 86px;
    height: 86px;
    right: 26%;
    top: 31%;
    opacity: .75;
}

/* Keep generated covers readable instead of visually crushing them */
.article-hero-cover-frame img,
.blog-featured-media img {
    object-position: center center;
}

@media (max-width: 1180px) {
    .blog-hero-layout,
    .article-hero-layout {
        grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr);
        gap: 44px;
    }

    .blog-hero-copy h1 {
        font-size: clamp(44px, 5vw, 60px);
    }

    .article-hero-copy h1 {
        font-size: clamp(40px, 4.8vw, 54px);
    }
}

@media (max-width: 980px) {
    .blog-hero,
    .article-hero--visual {
        min-height: auto;
    }

    .blog-hero-layout,
    .article-hero-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .blog-hero-copy,
    .article-hero-copy {
        max-width: 760px;
    }

    .blog-featured {
        grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
        grid-template-rows: 1fr;
        min-height: 330px;
    }

    .blog-featured-media {
        min-height: 330px;
    }

    .article-hero-cover {
        max-width: 760px;
        justify-self: start;
    }
}

@media (max-width: 760px) {
    .blog-hero {
        padding: 108px 0 54px;
    }

    .blog-hero-copy h1 {
        font-size: clamp(40px, 12vw, 56px);
    }

    .blog-featured {
        display: block;
        min-height: 0;
    }

    .blog-featured-media {
        height: 225px;
        min-height: 0;
    }

    .article-hero--visual {
        padding: 104px 0 50px;
    }

    .article-hero--visual .breadcrumbs {
        margin-bottom: 22px;
    }

    .article-hero-copy h1 {
        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.03;
    }

    .article-hero-cover {
        max-width: none;
    }

    .article-hero-cover-frame {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .blog-hero-points {
        gap: 7px;
    }

    .blog-hero-points i:nth-of-type(3),
    .blog-hero-points span:nth-of-type(4) {
        display: none;
    }

    .article-hero-copy h1 {
        font-size: clamp(36px, 10.7vw, 46px);
    }
}
\n\n/* === BLOG ARTICLE HERO V3: editorial full-width heading === */
.article-hero--visual {
    min-height: auto;
    padding: 118px 0 72px;
}

.article-hero-layout--stacked {
    display: block;
}

.article-hero-layout--stacked .article-hero-copy {
    max-width: 1180px;
}

.article-hero-layout--stacked .article-hero-copy h1 {
    max-width: 1180px;
    margin: 0 0 20px;
    font-size: clamp(48px, 5.2vw, 76px);
    line-height: .99;
    letter-spacing: -.048em;
    text-wrap: balance;
}

.article-hero-layout--stacked .article-hero-excerpt {
    max-width: 820px;
    margin-bottom: 24px;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.65;
}

.article-hero-layout--stacked .article-hero-author {
    margin-bottom: 34px !important;
}

.article-hero-layout--stacked .article-hero-cover {
    width: 100%;
    max-width: none;
    margin-top: 38px;
}

.article-hero-layout--stacked .article-hero-cover-frame {
    width: 100%;
    aspect-ratio: 2.15 / 1;
    max-height: 610px;
    border-radius: 24px;
    overflow: hidden;
}

.article-hero-layout--stacked .article-hero-cover-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero-layout--stacked .article-cover-glow {
    inset: 24% 6% -7%;
    opacity: .35;
}

@media (max-width: 980px) {
    .article-hero-layout--stacked .article-hero-copy h1 {
        max-width: 900px;
        font-size: clamp(46px, 7.4vw, 66px);
    }

    .article-hero-layout--stacked .article-hero-cover-frame {
        aspect-ratio: 16 / 8.5;
    }
}

@media (max-width: 760px) {
    .article-hero--visual {
        padding: 104px 0 48px;
    }

    .article-hero-layout--stacked .article-hero-copy h1 {
        font-size: clamp(38px, 11vw, 54px);
        line-height: 1.02;
    }

    .article-hero-layout--stacked .article-hero-excerpt {
        font-size: 16px;
    }

    .article-hero-layout--stacked .article-hero-author {
        margin-bottom: 26px !important;
    }

    .article-hero-layout--stacked .article-hero-cover {
        margin-top: 28px;
    }

    .article-hero-layout--stacked .article-hero-cover-frame {
        aspect-ratio: 16 / 10;
        border-radius: 17px;
    }
}
