/* ============================================
   MERENDELS.COM - Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
    --bg: #fafbff;
    --bg-alt: #f0f2f8;
    --primary-start: #4f46e5;
    --primary-end: #7c3aed;
    --secondary-start: #06b6d4;
    --secondary-end: #3b82f6;
    --accent-start: #10b981;
    --accent-end: #06b6d4;
    --text: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --footer-bg: #0f1729;
    --border: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 24px rgba(79, 70, 229, 0.08);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --font-body: "Fira Code", "Courier New", monospace;
    --font-heading: "JetBrains Mono", "Fira Code", monospace;

    --nav-h: 72px;

    --footer-safe-offset: 0px;
    --cookie-fab-bottom-base: 18px;
    --bot-bottom-base: 20px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #818cf8, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-2 {
    background: linear-gradient(135deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Syntax Highlighting (hero - light on dark) --- */
.syn-keyword {
    color: #c084fc;
    font-weight: 600;
}

.syn-type {
    color: #22d3ee;
}

.syn-func {
    color: #60a5fa;
}

.syn-string {
    color: #4ade80;
}

.syn-comment {
    color: rgba(255, 255, 255, 0.45);
    font-style: italic;
}

.syn-comment-light {
    color: rgba(255, 255, 255, 0.55);
    font-style: italic;
}

.syn-bracket {
    color: rgba(255, 255, 255, 0.5);
}

.syn-punct {
    color: rgba(255, 255, 255, 0.6);
}

.syn-indent {
    display: inline-block;
    width: 2em;
}

/* --- Syntax Highlighting (sections - dark on light) --- */
.syn-keyword-dark {
    color: #7c3aed;
    font-weight: 600;
}

.syn-type-dark {
    color: #0891b2;
}

.syn-func-dark {
    color: #4f46e5;
}

.syn-string-dark {
    color: #059669;
}

.syn-comment-dark {
    color: #94a3b8;
    font-style: italic;
}

.syn-bracket-dark {
    color: #94a3b8;
    font-weight: 400;
}

.syn-punct-dark {
    color: #94a3b8;
}

.syn-comment-footer {
    color: rgba(255, 255, 255, 0.4);
    font-style: italic;
}

/* --- Code Block (hero) --- */
.code-block--hero {
    background: rgba(15, 23, 41, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    margin: 0 auto 32px;
    max-width: 520px;
    text-align: left;
    overflow: hidden;
}

.code-block__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-block__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-block__dot--red {
    background: #ef4444;
}

.code-block__dot--yellow {
    background: #f59e0b;
}

.code-block__dot--green {
    background: #10b981;
}

.code-block__filename {
    margin-left: 8px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-family: var(--font-body);
}

.code-block__body {
    padding: 20px;
    font-size: 0.875rem;
    line-height: 1.8;
    font-family: var(--font-body);
    color: rgba(255, 255, 255, 0.85);
}

/* --- Shared elements --- */
.section {
    padding: 30px 0 100px 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section__badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.813rem;
    font-style: italic;
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.08);
    padding: 6px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.section__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text);
}

.section__desc {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.section__closing {
    text-align: center;
    font-size: 2rem;
    margin-top: 48px;
    font-family: var(--font-heading);
}

.stat-card__var {
    font-size: 0.8rem;
    font-family: var(--font-body);
    margin-bottom: 4px;
    color: var(--text-muted);
}

/* --- Tags --- */
.tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 50px;
    background: var(--bg-alt);
    color: var(--text-muted);
}

.tag--light {
    color: #4ade80;
    background: rgba(255, 255, 255, 0.12);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.938rem;
    padding: 12px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn--primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.btn--outline {
    border: 2px solid var(--border);
    color: var(--text);
    background: var(--white);
}

.btn--outline:hover {
    border-color: var(--primary-start);
    color: var(--primary-start);
    transform: translateY(-2px);
}

.btn--lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: var(--nav-h);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    z-index: 1001;
    transition: color 0.3s ease;
}

.navbar.scrolled .navbar__logo {
    color: var(--text);
}

.navbar__logo img,
.footer__logo img {
    border-radius: 6px;
    object-fit: contain;
}

.navbar__logo img {
    margin-right: -20px;
}

.footer__logo img {
    margin-right: 0;
}

.navbar__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar__link {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-family: var(--font-heading);
}

.navbar__link .tag-bracket {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    transition: color 0.2s ease;
}

.navbar__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.navbar__link:hover .tag-bracket {
    color: #818cf8;
}

.navbar__link.active {
    color: var(--white);
    background: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.25);
}

.navbar__link.active .tag-bracket {
    color: #818cf8;
}

.navbar.scrolled .navbar__link {
    color: var(--text-muted);
}

.navbar.scrolled .navbar__link .tag-bracket {
    color: rgba(79, 70, 229, 0.4);
}

.navbar.scrolled .navbar__link:hover {
    color: var(--text);
    background: rgba(79, 70, 229, 0.06);
    border-color: rgba(79, 70, 229, 0.12);
}

.navbar.scrolled .navbar__link:hover .tag-bracket {
    color: var(--primary-start);
}

.navbar.scrolled .navbar__link.active {
    color: var(--primary-start);
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.18);
}

.navbar.scrolled .navbar__link.active .tag-bracket {
    color: var(--primary-start);
}

.navbar__link::after {
    display: none;
}

.navbar__cta {
    padding: 8px 20px;
    font-size: 0.825rem;
}

.navbar__cta .tag-bracket {
    color: rgba(255, 255, 255, 0.5);
}

.navbar__cta.active {
    box-shadow: 0 10px 28px rgba(79, 70, 229, 0.45);
    transform: translateY(-1px);
}

.navbar__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    z-index: 1001;
}

.navbar__hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar__hamburger span {
    background: var(--text);
}

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

.navbar__hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

.navbar__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 41, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 998;
}

.navbar__mobile-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: italic;
    pointer-events: none;
    display: none;
}

.navbar__mobile-cta-item {
    display: none;
}

.navbar__mobile-cta {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

@media (max-width: 1150px) {
    .navbar__cta {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
        position: relative;
        z-index: 1001;
    }

    .navbar__hamburger span {
        background: var(--text);
    }

    .navbar__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 320px);
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        flex-direction: column;
        align-items: flex-start;
        padding: 96px 24px 24px;
        gap: 10px;
        box-shadow: -12px 0 30px rgba(15, 23, 41, 0.18);
        transition: right 0.28s ease;
        z-index: 999;
        overflow-y: auto;
        color: var(--text);
        white-space: normal;
    }

    .navbar__links.open {
        right: 0;
    }

    .navbar__backdrop.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar__mobile-title {
        display: block;
    }

    .navbar__link {
        width: 100%;
        display: block;
        padding: 12px 14px;
        border-radius: 10px;
        color: var(--text-muted);
        border: 1px solid transparent;
        white-space: nowrap;
    }

    .navbar__link .tag-bracket {
        color: rgba(79, 70, 229, 0.4);
    }

    .navbar__link:hover,
    .navbar__link.active {
        color: var(--text);
        background: rgba(79, 70, 229, 0.06);
        border-color: rgba(79, 70, 229, 0.12);
    }

    .navbar__link:hover .tag-bracket,
    .navbar__link.active .tag-bracket {
        color: var(--primary-start);
    }

    .navbar__logo {
        position: relative;
        z-index: 1001;
    }

    body.menu-open .navbar__logo {
        opacity: 0.18;
    }

    .navbar__mobile-cta-item {
        display: block;
        width: 100%;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--nav-h) 0 60px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 41, 0.82) 0%,
        rgba(79, 70, 229, 0.55) 50%,
        rgba(15, 23, 41, 0.78) 100%
    );
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    z-index: 2;
}

.hero__orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.35), transparent 70%);
    top: -10%;
    right: -5%;
}

.hero__orb--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    bottom: -5%;
    left: -5%;
}

.hero__orb--3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    color: var(--white);
}

.hero__title {
    font-size: 3.75rem;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--white);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
}

.hero__cta .btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.code-block--hero {
    width: 100%;
    max-width: 520px;
}

.code-block__body {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
    .code-block--hero {
        margin: 0 auto 24px;
        border-radius: 16px;
    }

    .code-block__header {
        padding: 10px 12px;
    }

    .code-block__filename {
        font-size: 0.7rem;
    }

    .code-block__body {
        padding: 14px 14px 16px;
        font-size: 0.74rem;
        line-height: 1.65;
    }

    .syn-indent {
        width: 1.4em;
    }
}

@media (max-width: 480px) {
    .code-block__body {
        font-size: 0.68rem;
        line-height: 1.55;
    }
}

/* ============================================
   ABOUT
   ============================================ */
.about__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(79, 70, 229, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-card__number,
.stat-card__suffix {
    font-family: var(--font-heading);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-card__number {
    font-size: 3rem;
    line-height: 1;
}

.stat-card__suffix {
    font-size: 2rem;
}

.stat-card__label {
    margin-top: 8px;
    font-size: 0.938rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SERVICES
   ============================================ */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-card__icon--indigo {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    color: var(--primary-start);
}

.service-card__icon--violet {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(168, 85, 247, 0.1));
    color: #7c3aed;
}

.service-card__icon--cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.1));
    color: #06b6d4;
}

.service-card__icon--blue {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(79, 70, 229, 0.1));
    color: #3b82f6;
}

.service-card__icon--emerald {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.1));
    color: #10b981;
}

.service-card__icon--orange {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.1));
    color: #f59e0b;
}

.service-card__icon--seo {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(249, 115, 22, 0.12));
    color: #f59e0b;
}

.service-card__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card__desc {
    font-size: 0.938rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.service-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-start);
    transition: gap 0.2s ease;
}

.service-card__link:hover {
    gap: 10px;
}

/* ============================================
   PORTFOLIO
   ============================================ */
.portfolio__grid--uniform {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    height: 100%;
    box-shadow: var(--shadow-card);
}

.portfolio-card__image {
    width: 100%;
    height: 100%;
    min-height: 360px;
    position: relative;
    transition: transform 0.35s ease;
}

.portfolio-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 23, 41, 0.28) 0%,
        rgba(15, 23, 41, 0.42) 35%,
        rgba(15, 23, 41, 0.82) 100%
    );
    padding: 24px;
    display: flex;
    flex-direction: column;
    color: var(--white);
    min-height: 0;
}

.portfolio-card__cat {
    flex-shrink: 0;
}

.portfolio-card__title {
    flex-shrink: 0;
}

.portfolio-card__desc {
    font-size: 0.84rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 16px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.22) transparent;
    /* Firefox */
    scrollbar-width: none;
    /* IE/Edge legacy */
    -ms-overflow-style: none;
}

/* Chrome, Safari, Edge */
.portfolio-card__desc::-webkit-scrollbar {
    display: none;
}

.portfolio-card__desc::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.22);
    border-radius: 999px;
}

.portfolio-card__desc::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 10px;
    flex-shrink: 0;
}

.portfolio-card__tags .tag--light {
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.68rem;
    padding: 5px 10px;
    border-radius: 999px;
}

.portfolio-card:nth-child(odd) .portfolio-card__image {
    background:
        radial-gradient(circle at 80% 18%, rgba(255,255,255,.08), transparent 26%),
        linear-gradient(135deg, #312e81 0%, #6d28d9 55%, #0f172a 100%);
}

.portfolio-card:nth-child(even) .portfolio-card__image {
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.08), transparent 24%),
        linear-gradient(135deg, #2f6b3b 0%, #2d7fb0 52%, #1e3a8a 100%);
}

/* ============================================
   BLOG
   ============================================ */
.blog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.blog-card__image {
    height: 200px;
    width: 100%;
}

.blog-card__image--1 {
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #3b82f6);
}

.blog-card__image--2 {
    background: linear-gradient(135deg, #06b6d4, #3b82f6);
}

.blog-card__image--3 {
    background: linear-gradient(135deg, #10b981, #06b6d4, #3b82f6);
}

.blog-card__body {
    padding: 24px;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.813rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-card__dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-muted);
}

.blog-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-start);
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(124, 58, 237, 0.08));
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.blog-card__title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-start);
    transition: gap 0.2s ease;
}

.blog-card__link:hover {
    gap: 10px;
}

.blog__cta {
    text-align: center;
    margin-top: 48px;
}

/* ============================================
   GENDER EQUALITY
   ============================================ */
.gender__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.gender-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.gender-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    background: rgba(79, 70, 229, 0.03);
}

.gender-card__filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.gender-card__body {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.gender-card__eyebrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: italic;
}

.gender-card__title {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: var(--text);
}

.gender-card__text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.gender-card__text--sm {
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.gender-docs {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.gender-doc {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid rgba(79,70,229,.10);
    border-radius: 14px;
    background: var(--white);
    transition: all 0.25s ease;
    box-shadow: none;
}

.gender-doc:hover {
    transform: translateY(-2px);
    border-color: rgba(79,70,229,.18);
    background: var(--white);
    box-shadow: 0 8px 20px rgba(79,70,229,.08);
}

.gender-doc__icon {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--primary-start);
    background: linear-gradient(135deg, rgba(79,70,229,.10), rgba(6,182,212,.10));
    border: 1px solid rgba(79,70,229,.12);
}

.gender-doc__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.gender-doc__title {
    font-size: 0.92rem;
    line-height: 1.35;
    color: var(--text);
    font-family: var(--font-body);
    word-break: break-word;
}

.gender-doc__meta {
    font-size: 0.76rem;
    line-height: 1.3;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.gender-doc--placeholder {
    opacity: 0.55;
    cursor: not-allowed;
    background: var(--white);
    border-color: rgba(148,163,184,.16);
}

.gender-doc--placeholder:hover {
    transform: none;
    background: var(--white);
    border-color: rgba(148,163,184,.16);
    box-shadow: none;
}

.gender-card__closing {
    margin-top: 18px;
    font-size: 0.8rem;
    text-align: center;
}

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

@media (max-width: 768px) {
    .gender-card__body {
        padding: 22px;
    }

    .gender-card__title {
        font-size: 1.2rem;
    }

    .gender-doc {
        min-height: auto;
        padding: 14px 16px;
    }
}

/* ============================================
   CERTIFICAZIONI — Gender + Footer
   ============================================ */
.gender-certifications {
    margin-top: 22px;
    padding: 14px;
    border: 1px solid rgba(79, 70, 229, 0.10);
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.03);
}

.gender-certifications__img {
    display: block;
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    border-radius: 12px;
}

/* .footer-certifications {
    margin-top: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.footer-certifications__img {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 10px;
} */

@media (max-width: 768px) {
    .gender-certifications {
        margin-top: 18px;
        padding: 12px;
    }

    .gender-certifications__img {
        max-width: 360px;
    }

    /* .footer-certifications {
        margin-top: 16px;
        padding: 8px 10px;
    }

    .footer-certifications__img {
        max-width: 210px;
    } */
}

@media (max-width: 480px) {
    .gender-certifications {
        padding: 10px;
        border-radius: 14px;
    }

    .gender-certifications__img {
        max-width: 100%;
        border-radius: 10px;
    }

    /* .footer-certifications {
        width: 100%;
        max-width: 220px;
        padding: 8px;
    }

    .footer-certifications__img {
        max-width: 100%;
    } */
}

/* ============================================
   CONTACT
   ============================================ */
.contact-mail__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: start;
}

.contact-mail__card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.contact-mail__title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-mail__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.contact-mail__points {
    margin-top: 18px;
    display: grid;
    gap: 14px;
}

.contact-mail__point {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
}

.contact-mail__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    margin-top: 6px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    box-shadow: 0 0 0 8px rgba(79,70,229,.10);
}

.contact-mail__muted {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-top: 2px;
}

.contact-mail__actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.contact-mail__hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.contact-mail__info {
    display: grid;
    gap: 12px;
    margin-top: 6px;
}

.contact-mail__row {
    padding: 12px;
    border-radius: 14px;
    border: 1px solid rgba(79,70,229,.10);
    background: rgba(79,70,229,.03);
}

.contact-mail__k {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.contact-mail__v {
    margin-top: 6px;
    font-weight: 600;
    color: var(--text);
}

.contact-mail__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    background: rgba(79, 70, 229, 0.03);
    position: relative;
    z-index: 1;
}

.contact-mail__filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.contact-mail__inner {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.contact-mail__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    margin-bottom: 16px;
}

.contact-mail__badge--wide {
    min-width: 112px;
}

/* ============================================
   CAREERS
   ============================================ */
.careers__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.careers-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.careers-card--single::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(720px 260px at 8% 0%, rgba(79,70,229,.14), transparent 60%),
        radial-gradient(620px 240px at 92% 8%, rgba(6,182,212,.10), transparent 60%);
    pointer-events: none;
}

.careers-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    background: rgba(79, 70, 229, 0.03);
    position: relative;
    z-index: 1;
}

.careers-card__filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.careers-card__body {
    padding: 28px;
    position: relative;
    z-index: 1;
}

.careers-card__eyebrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: italic;
}

.careers-card__title {
    font-size: 1.45rem;
    margin-bottom: 14px;
    color: var(--text);
}

.careers-card__text {
    max-width: 820px;
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.careers-card__actions {
    margin-top: 24px;
    display: grid;
    gap: 10px;
    max-width: 420px;
}

.careers-card__closing {
    margin-top: 16px;
    font-size: 0.8rem;
    text-align: center;
}

.careers-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.careers-block {
    margin-top: 0;
    padding: 18px 18px 16px;
    border: 1px solid rgba(79, 70, 229, 0.10);
    border-radius: 16px;
    background: rgba(79, 70, 229, 0.025);
}

.careers-block__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-style: normal;
}

.careers-block__closing {
    margin-top: 10px;
    text-align: center;
    font-size: 0.8rem;
}

.careers-list {
    display: grid;
    gap: 10px;
    padding-left: 18px;
    list-style: disc;
    color: var(--text-muted);
    font-size: 0.91rem;
    line-height: 1.7;
}

.careers-list li strong {
    color: var(--text);
    font-weight: 700;
}

.careers-list--offer,
.careers-list--offer li {
    color: var(--text-muted);
}

.careers-skills {
    position: relative;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid rgba(79, 70, 229, 0.10);
    border-radius: 18px;
    background:
        radial-gradient(480px 180px at 0% 0%, rgba(79,70,229,.05), transparent 60%),
        radial-gradient(420px 180px at 100% 0%, rgba(6,182,212,.05), transparent 60%),
        rgba(79, 70, 229, 0.02);
}

.careers-skills__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.careers-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.careers-tab {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(79, 70, 229, 0.10);
    background: var(--white);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.careers-tab:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 70, 229, 0.16);
    background: rgba(79, 70, 229, 0.04);
}

.careers-tab__text {
    white-space: nowrap;
}

.careers-tab__count {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.07);
    border: 1px solid rgba(79, 70, 229, 0.10);
    color: var(--primary-start);
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.careers-tab.is-active {
    color: var(--primary-start);
    background: rgba(79, 70, 229, 0.10);
    border-color: rgba(79, 70, 229, 0.18);
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.08);
}

.careers-tab.is-active .careers-tab__count {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--white);
    border-color: transparent;
}

.careers-panels {
    position: relative;
    overflow: hidden;
    transition: height 0.28s ease;
}

.careers-panel {
    border: 1px solid rgba(79, 70, 229, 0.10);
    background: rgba(79, 70, 229, 0.03);
    border-radius: 16px;
    padding: 18px 18px 16px;
    opacity: 0;
    transform: translateX(18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    pointer-events: none;
}

.careers-panel[hidden] {
    display: none;
}

.careers-panel.is-active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.careers-panel__header {
    margin-bottom: 14px;
}

.careers-panel__path {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    word-break: break-word;
}

.careers-panel__count {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.12);
    color: var(--primary-start);
    font-size: 0.74rem;
    font-weight: 700;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.careers-skill-list {
    columns: 2;
    column-gap: 34px;
    list-style: none;
}

.careers-skill-list li {
    position: relative;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    padding-left: 16px;
    margin: 0 0 12px 0;
    font-size: 0.89rem;
    line-height: 1.65;
    color: var(--text-muted);
    word-break: break-word;
}

.careers-skill-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-start);
    font-weight: 700;
}

@media (max-width: 980px) {
    .careers-overview {
        grid-template-columns: 1fr;
    }

    .careers-skill-list {
        columns: 1;
    }
}

@media (max-width: 768px) {
    .careers-card__body {
        padding: 22px;
    }

    .careers-card__title {
        font-size: 1.2rem;
    }

    .careers-card__text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .careers-block {
        padding: 16px 14px 14px;
    }

    .careers-list {
        font-size: 0.86rem;
        line-height: 1.6;
    }

    .careers-skills {
        padding: 16px 14px;
    }

    .careers-tabs__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .careers-tab {
        width: 100%;
        min-width: 0;
        padding: 10px 12px;
    }

    .careers-tab__text {
        white-space: normal;
        line-height: 1.25;
    }

    .careers-panel {
        padding: 16px 14px 14px;
    }

    .careers-panel__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .careers-skill-list li {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .careers-card__actions {
        max-width: 100%;
    }

    .careers-card__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .careers-tabs__nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 370px) {
    .careers .section__title {
        line-height: 1.35;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .careers .section__desc {
        font-size: 0.92rem;
        line-height: 1.65;
    }

    .careers-skills__label,
    .careers-card__eyebrow,
    .careers-block__label,
    .careers-panel__path {
        font-size: 0.74rem;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer .container {
    max-width: 1560px;
    padding-left: 40px;
    padding-right: 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.35fr 1.5fr 0.95fr;
    gap: 44px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: start;
}

.footer__brand,
.footer__col {
    min-width: 0;
}

.footer__col--company-offices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 16px;
    white-space: nowrap;
}

.footer__desc {
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 420px;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.footer__socials a:hover {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--white);
}

.footer__col h4 {
    color: var(--white);
    font-size: 0.938rem;
    margin-bottom: 20px;
    white-space: nowrap;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col a,
.footer__col li {
    font-size: 0.84rem;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 0.813rem;
    gap: 24px;
}

.footer__bottom p {
    white-space: nowrap;
}

.footer__legal {
    display: flex;
    gap: 24px;
    flex-wrap: nowrap;
    justify-content: flex-end;
}

.footer__legal-btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer__legal-btn:hover {
    color: var(--white);
}

/* ============================================
   COOKIE
   ============================================ */
.cookie-fab {
    position: fixed;
    left: 18px;
    bottom: calc(var(--cookie-fab-bottom-base) + var(--footer-safe-offset));
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border: 1px solid rgba(255,255,255,.35);
    color: var(--white);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(79,70,229,.28);
    transition:
        bottom 0.22s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cookie-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(79,70,229,.35);
}

.cookie-fab svg {
    width: 26px;
    height: 26px;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
}

.cookie-modal.open {
    display: block;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 41, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cookie-modal__dialog {
    position: relative;
    width: min(920px, calc(100% - 32px));
    max-height: calc(100vh - 40px);
    margin: 20px auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(79, 70, 229, 0.10);
    box-shadow: 0 30px 80px rgba(15, 23, 41, 0.18);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.cookie-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(79, 70, 229, 0.08);
    background:
        radial-gradient(500px 180px at 0% 0%, rgba(79,70,229,.08), transparent 60%),
        radial-gradient(380px 180px at 100% 0%, rgba(6,182,212,.08), transparent 60%),
        rgba(255,255,255,.92);
}

.cookie-modal__window {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cookie-modal__filename {
    margin-left: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cookie-modal__title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.cookie-modal__close {
    flex: 0 0 auto;
    border: 1px solid rgba(79,70,229,.12);
    background: rgba(79,70,229,.04);
    color: var(--text-muted);
    border-radius: 10px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    line-height: 1;
    transition: all 0.2s ease;
}

.cookie-modal__close:hover {
    background: rgba(79,70,229,.08);
    color: var(--primary-start);
}

.cookie-view {
    display: none;
    min-height: 0;
    flex: 1;
}

.cookie-view.active {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1;
}

.cookie-modal__body {
    padding: 24px 20px;
    overflow-y: auto;
    min-height: 0;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.cookie-modal__body--scroll {
    max-height: none;
}

.cookie-modal__top,
.cookie-modal__bottom {
    flex-shrink: 0;
}

.cookie-modal__eyebrow {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.cookie-modal__heading {
    font-size: 1.6rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    color: var(--text);
}

.cookie-modal__text {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    font-size: 0.95rem;
}

.cookie-modal__list {
    padding-left: 18px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 18px;
}

.cookie-modal__list li {
    margin-bottom: 10px;
}

.cookie-inline-link {
    border: 0;
    background: transparent;
    color: var(--primary-start);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.cookie-inline-link:hover {
    color: var(--primary-end);
}

.cookie-modal__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cookie-setting {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(79,70,229,.08);
    background: rgba(79,70,229,.025);
    margin-bottom: 12px;
}

.cookie-setting strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
}

.cookie-setting p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

.cookie-setting__badge {
    white-space: nowrap;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(79,70,229,.08);
    border: 1px solid rgba(79,70,229,.10);
    font-size: 0.75rem;
    color: var(--primary-start);
}

.cookie-switch {
    position: relative;
    width: 46px;
    height: 28px;
    flex-shrink: 0;
}

.cookie-switch input {
    display: none;
}

.cookie-switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(148,163,184,.25);
    border: 1px solid rgba(148,163,184,.28);
    transition: .2s ease;
}

.cookie-switch span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(15,23,41,.15);
    transition: .2s ease;
}

.cookie-switch input:checked + span {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    border-color: rgba(79,70,229,.45);
}

.cookie-switch input:checked + span::after {
    transform: translateX(18px);
}

.cookie-docs {
    display: grid;
    gap: 14px;
}

.cookie-doc {
    width: 100%;
    border-radius: var(--radius-md);
    border: 1px solid rgba(79,70,229,.10);
    display: block;
    box-shadow: var(--shadow-sm);
}

.cookie-modal__bottom {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid rgba(79,70,229,.08);
    background: rgba(79,70,229,.025);
}

.cookie-mini-link {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(79,70,229,.10);
    background: #fff;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.cookie-mini-link:hover {
    background: rgba(79,70,229,.06);
    color: var(--primary-start);
}

.cookie-modal__body--scroll::-webkit-scrollbar {
    width: 10px;
}

.cookie-modal__body--scroll::-webkit-scrollbar-thumb {
    background: rgba(79,70,229,.22);
    border-radius: 999px;
}

.cookie-modal__body--scroll::-webkit-scrollbar-track {
    background: transparent;
}

/* ============================================
   LEFT CARDS — shared style
   ============================================ */

.gender-card--statement::before,
.contact-mail__card--left::before,
.careers-card--left::before {
    content: "";
    position: absolute;
    inset: -2px;
    background:
        radial-gradient(700px 280px at 10% 0%, rgba(79,70,229,.14), transparent 60%),
        radial-gradient(600px 260px at 90% 10%, rgba(6,182,212,.10), transparent 60%);
    pointer-events: none;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

    .about__stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio__grid--uniform {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-card__image {
        min-height: 0;
        height: 380px;
    }

    .blog__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 980px) {
    .contact-mail__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section__title {
        font-size: 2rem;
    }

    .section__header {
        margin-bottom: 48px;
    }

    .navbar__cta {
        display: none;
    }

    .navbar__hamburger {
        display: flex;
    }

    .hero__title {
        font-size: 2.25rem;
    }

    .hero__subtitle {
        font-size: 1.063rem;
    }

    .hero__cta {
        flex-direction: column;
    }

    .hero__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .services__grid,
    .portfolio__grid--uniform,
    .blog__grid,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .portfolio-card__image {
        min-height: 0;
        height: 330px;
    }

    .portfolio-card__overlay {
        padding: 20px;
    }

    .portfolio-card__cat {
        font-size: 0.68rem;
        margin-bottom: 10px;
    }

    .portfolio-card__title {
        font-size: 1rem;
        line-height: 1.35;
        margin-bottom: 10px;
    }

    .portfolio-card__desc {
        font-size: 0.79rem;
        line-height: 1.58;
        margin-bottom: 12px;
    }

    .portfolio-card__tags {
        gap: 6px;
        margin-top: auto;
        padding-top: 8px;
    }

    .cookie-modal__dialog {
        width: calc(100% - 12px);
        max-height: calc(100vh - 12px);
        margin: 6px auto;
        border-radius: 24px;
    }

    .cookie-modal__top {
        padding: 12px 14px;
    }

    .cookie-modal__body {
        padding: 18px 14px 20px;
    }

    .cookie-modal__heading {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .cookie-modal__text,
    .cookie-setting p {
        font-size: 0.9rem;
    }

    .cookie-setting {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-modal__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-modal__bottom {
        padding: 10px 14px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .cookie-mini-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --cookie-fab-bottom-base: 14px;
        --bot-bottom-base: 14px;
    }

    .hero__title {
        font-size: 1.875rem;
    }

    .about__stats {
        grid-template-columns: 1fr;
    }

    .stat-card__number {
        font-size: 2.5rem;
    }

    .portfolio-card__image {
        min-height: 0;
        height: 300px;
    }

    .portfolio-card__overlay {
        padding: 18px;
    }

    .portfolio-card__cat {
        font-size: 0.64rem;
        margin-bottom: 8px;
    }

    .portfolio-card__title {
        font-size: 0.96rem;
        margin-bottom: 8px;
    }

    .portfolio-card__desc {
        font-size: 0.75rem;
        line-height: 1.52;
        margin-bottom: 10px;
    }

    .portfolio-card__tags .tag--light {
        font-size: 0.64rem;
        padding: 4px 8px;
    }
    
    .bot-assistant {
        right: 14px;
    }
}

@media (max-width: 340px) {
    .portfolio-card__image {
        min-height: 0;
        height: 285px;
    }

    .portfolio-card__overlay {
        padding: 16px;
    }

    .portfolio-card__title {
        font-size: 0.9rem;
        line-height: 1.3;
    }

    .portfolio-card__desc {
        font-size: 0.7rem;
        line-height: 1.48;
        margin-bottom: 8px;
    }

    .portfolio-card__tags {
        gap: 5px;
        padding-top: 6px;
    }

    .portfolio-card__tags .tag--light {
        font-size: 0.6rem;
        padding: 4px 7px;
    }
}







/* ============================================
   FOOTER — RESPONSIVE
   Target principali:
   1440 / 1024 / 768 / 425 / 375 / 320
   ============================================ */

.footer__env--inline {
    display: none;
}

.footer__env--desktop {
    display: block;
}

.footer {
    background: var(--footer-bg);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0;
}

.footer .container {
    max-width: 1560px;
    margin: 0 auto;
    padding-left: 36px;
    padding-right: 36px;
}

.footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.45fr) minmax(0, 0.9fr);
    gap: 40px;
    padding-bottom: 42px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: start;
}

.footer__brand,
.footer__col,
.footer__col--company-offices,
.footer__col--company-offices > div,
.footer__bottom,
.footer__legal {
    min-width: 0;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.24rem;
    color: var(--white);
    white-space: nowrap;
    flex-wrap: nowrap;
    max-width: 100%;
}

.footer__logo img {
    flex: 0 0 auto;
    width: 56px;
    height: 40px;
    object-fit: contain;
    margin-right: 0;
}

.footer__logo span {
    white-space: nowrap;
    flex: 0 0 auto;
}

.footer__desc {
    margin-bottom: 24px;
    max-width: none;
    font-size: 0.86rem;
    line-height: 1.65;
    overflow: visible;
}

.footer__desc .syn-comment-footer {
    display: block;
    white-space: nowrap;
}

.footer__socials {
    display: flex;
    gap: 12px;
}

.footer__socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.2s ease;
}

.footer__socials a:hover {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-end));
    color: var(--white);
}

.footer__col--company-offices {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.footer__col h4 {
    color: var(--white);
    font-size: 0.93rem;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer__col li,
.footer__col a {
    font-size: 0.84rem;
    line-height: 1.35;
    letter-spacing: -0.025em;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: var(--white);
}

.footer__col h4,
.footer__col li,
.footer__col a,
.footer__legal-btn,
.footer__bottom p,
.footer__logo span,
.footer__desc .syn-comment-footer {
    white-space: nowrap;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
}

.footer__bottom p {
    flex: 0 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.footer__legal {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
}

.footer__legal-btn {
    border: none;
    background: transparent;
    color: inherit;
    font: inherit;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s ease;
    font-size: 0.82rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.footer__legal-btn:hover {
    color: var(--white);
}

/* ============================================
   <= 1199px  → target 1024
   ============================================ */
@media (max-width: 1199px) {
    .footer .container {
        padding-left: 26px;
        padding-right: 26px;
    }

    .footer__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 0.82fr);
        gap: 28px;
    }

    .footer__logo {
        font-size: 1.16rem;
    }

    .footer__desc {
        font-size: 0.76rem;
    }

    .footer__col h4 {
        font-size: 0.80rem;
    }

    .footer__col li,
    .footer__col a,
    .footer__bottom p,
    .footer__legal-btn {
        font-size: 0.68rem;
        line-height: 1.16;
        letter-spacing: -0.035em;
    }

    .footer__legal {
        gap: 12px;
    }
}

/* ============================================
   <= 860px  → target 768
   ============================================ */
@media (max-width: 860px) {
    .footer .container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer__env--desktop {
        display: none;
    }

    .footer__env--inline {
        display: block;
    }

    .footer__col--company-offices {
        display: grid;
        grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
        grid-template-areas:
            "company env"
            "offices env";
        gap: 18px 24px;
        align-items: start;
    }

    .footer__col--company-offices > div:nth-child(1) {
        grid-area: company;
    }

    .footer__col--company-offices > div:nth-child(2) {
        grid-area: offices;
    }

    .footer__env--inline {
        grid-area: env;
    }

    .footer__logo {
        font-size: 1.08rem;
    }

    .footer__logo img {
        width: 52px;
        height: 38px;
    }

    .footer__desc {
        font-size: 0.72rem;
    }

    .footer__col h4 {
        font-size: 0.74rem;
        margin-bottom: 14px;
    }

    .footer__col li,
    .footer__col a,
    .footer__bottom p,
    .footer__legal-btn {
        font-size: 0.60rem;
        line-height: 1.12;
        letter-spacing: -0.045em;
    }

    .footer__bottom {
        gap: 12px;
    }

    .footer__legal {
        gap: 10px;
    }
}

/* ============================================
   <= 480px  → target 425
   ============================================ */
@media (max-width: 480px) {
    .footer .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-bottom: 28px;
    }

    .footer__env--desktop {
        display: none;
    }

    .footer__env--inline {
        display: block;
    }

    .footer__col--company-offices {
        grid-template-columns: 1fr;
        grid-template-areas: none;
        gap: 14px;
    }

    .footer__col--company-offices > div:nth-child(1),
    .footer__col--company-offices > div:nth-child(2),
    .footer__env--inline {
        grid-area: auto;
    }

    .footer__logo {
        font-size: 1rem;
        gap: 8px;
        margin-bottom: 14px;
    }

    .footer__logo img {
        width: 48px;
        height: 34px;
    }

    .footer__desc {
        font-size: 0.68rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .footer__col h4 {
        font-size: 0.68rem;
        margin-bottom: 12px;
    }

    .footer__col ul {
        gap: 8px;
    }

    .footer__col li,
    .footer__col a,
    .footer__bottom p,
    .footer__legal-btn {
        font-size: 0.56rem;
        line-height: 1.08;
        letter-spacing: -0.05em;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 18px 0;
    }

    .footer__legal {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }
}

/* ============================================
   <= 390px  → target 375
   ============================================ */
@media (max-width: 390px) {
    .footer .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer__logo {
        font-size: 0.96rem;
    }

    .footer__logo img {
        width: 46px;
        height: 32px;
    }

    .footer__desc {
        font-size: 0.64rem;
    }

    .footer__col h4 {
        font-size: 0.64rem;
    }

    .footer__col li,
    .footer__col a,
    .footer__bottom p,
    .footer__legal-btn {
        font-size: 0.51rem;
        line-height: 1.06;
        letter-spacing: -0.055em;
    }

    .footer__legal {
        gap: 10px;
    }
}

/* ============================================
   <= 340px  → target 320
   ============================================ */
@media (max-width: 340px) {
    .footer .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .footer__logo {
        font-size: 0.92rem;
    }

    .footer__logo img {
        width: 42px;
        height: 30px;
    }

    .footer__desc {
        font-size: 0.60rem;
        line-height: 1.42;
    }

    .footer__col h4 {
        font-size: 0.60rem;
        margin-bottom: 10px;
    }

    .footer__col li,
    .footer__col a,
    .footer__bottom p,
    .footer__legal-btn {
        font-size: 0.46rem;
        line-height: 1.04;
        letter-spacing: -0.06em;
    }

    .footer__legal {
        gap: 8px;
    }
}

/* ============================================
   BOT ASSISTANT
   ============================================ */
.bot-assistant {
    position: fixed;
    right: 20px;
    bottom: calc(var(--bot-bottom-base) + var(--footer-safe-offset));
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    transition: bottom 0.22s ease;
}

.bot-avatar {
    width: 90px;
    height: 130px;
    padding: 0;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.25s ease, filter 0.25s ease;
    filter: drop-shadow(0 6px 18px rgba(232, 64, 144, 0.28));
}

.bot-avatar:hover {
    transform: translateY(-2px) scale(1.04);
    filter: drop-shadow(0 10px 26px rgba(232, 64, 144, 0.38));
}

.bot-avatar__img {
    display: block;
    width: 90px;
    height: 130px;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.bot-avatar[data-state="active"] .bot-avatar__img {
    transform: scale(1.03);
}

.bot-bubble {
    position: relative;
    max-width: 260px;
    padding: 14px 38px 14px 16px;
    border-radius: 16px 16px 4px 16px;
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.15);
    box-shadow: 0 8px 30px rgba(15, 23, 41, 0.12);
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.bot-bubble.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.bot-bubble.hidden {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    pointer-events: none;
}

.bot-bubble::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: -8px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-right: 1px solid rgba(124, 58, 237, 0.15);
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
    transform: rotate(45deg);
}

.bot-bubble__text {
    margin: 0;
    font-family: var(--font-body);
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text);
}

.bot-bubble__text strong {
    color: #7c3aed;
}

.bot-bubble__close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(124, 58, 237, 0.06);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.bot-bubble__close:hover {
    background: rgba(124, 58, 237, 0.12);
    color: #7c3aed;
}

/* ready */
.bot-avatar {
    position: relative;
    overflow: visible;
}

.bot-avatar__idle-svg,
.bot-avatar__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bot-avatar__idle-svg {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.bot-avatar__idle-svg svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.bot-avatar__img {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.bot-avatar[data-state="idle"].bot-avatar--svg-ready .bot-avatar__idle-svg {
    opacity: 1;
}

.bot-avatar[data-state="idle"].bot-avatar--svg-ready .bot-avatar__img {
    opacity: 0;
}

#botArm {
    transform-box: fill-box;
    transform-origin: 75% 20%;
    transition: transform 0.28s ease;
}

.bot-avatar[data-state="idle"].bot-avatar--svg-ready:hover #botArm {
    transform: rotate(-50deg) translateY(-14px);
}

@media (max-width: 480px) {
    .bot-assistant {
        right: 14px;
        bottom: 14px;
    }

    .bot-avatar {
        width: 72px;
        height: 104px;
    }

    .bot-avatar__img {
        width: 72px;
        height: 104px;
    }

    .bot-bubble {
        max-width: 220px;
        padding: 12px 34px 12px 14px;
    }

    .bot-bubble__text {
        font-size: 0.82rem;
    }
}