:root {
    --mb-red: #a90914;
    --mb-red-bright: #df1d2d;
    --mb-ink: #16181b;
    --mb-paper: #f5f4f1;
    --mb-white: #ffffff;
    --mb-muted: #65686d;
    --mb-line: rgba(22, 24, 27, .12);
    --mb-shadow: 0 24px 65px rgba(18, 20, 24, .14);
    --mb-radius: 18px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body.homepage {
    overflow-x: hidden;
    background: var(--mb-paper);
    color: var(--mb-ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.homepage-skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 12px 18px;
    transform: translateY(-160%);
    background: var(--mb-ink);
    color: var(--mb-white);
    font-weight: 700;
    text-decoration: none;
}

.homepage-skip-link:focus {
    transform: translateY(0);
}

.homepage a:focus-visible,
.homepage button:focus-visible {
    outline: 3px solid var(--mb-red-bright);
    outline-offset: 4px;
}

.homepage-navbar {
    min-height: 82px;
    padding: 0;
    border-bottom: 1px solid rgba(22, 24, 27, .08);
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 10px 40px rgba(19, 21, 24, .07);
    backdrop-filter: blur(18px) saturate(1.35);
    transition: min-height .3s ease, box-shadow .3s ease !important;
}

.homepage-navbar.navbar-compact {
    min-height: 70px;
    box-shadow: 0 14px 42px rgba(19, 21, 24, .12);
}

.homepage-navbar .container {
    max-width: 1240px;
}

.homepage-navbar .navbar-logo {
    width: 205px;
    height: auto;
    object-fit: contain;
    margin: 0;
    transition: width .3s ease;
}

.homepage-navbar.navbar-compact .navbar-logo {
    width: 180px;
}

.homepage-navbar .hamburger-lines {
    display: block;
}

.homepage-navbar-nav {
    align-items: center;
    gap: 6px;
}

.homepage-navbar-nav .nav-link {
    position: relative;
    margin: 0;
    padding: 13px 14px !important;
    border-radius: 999px;
    color: #2e3034 !important;
    font-size: .73rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: color .25s ease, background-color .25s ease, transform .25s ease;
}

.homepage-navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 8px;
    left: 15px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: right;
    border-radius: 2px;
    background: var(--mb-red);
    transition: transform .25s ease;
}

.homepage-navbar-nav .nav-link:hover,
.homepage-navbar-nav .nav-link.active {
    color: var(--mb-red) !important;
    background: rgba(169, 9, 20, .055);
}

.homepage-navbar-nav .nav-link:hover::after,
.homepage-navbar-nav .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.homepage-navbar-nav .nav-item:last-child {
    margin-left: 8px;
}

.homepage-navbar-nav .nav-item:last-child .nav-link {
    padding-inline: 19px !important;
    background: var(--mb-red);
    color: var(--mb-white) !important;
    box-shadow: 0 10px 25px rgba(169, 9, 20, .2);
}

.homepage-navbar-nav .nav-item:last-child .nav-link::after {
    display: none;
}

.homepage-navbar-nav .nav-item:last-child .nav-link:hover {
    transform: translateY(-2px);
    background: var(--mb-red-bright);
}

.homepage-hero-section {
    position: relative;
    min-height: max(720px, 92svh);
    padding: 132px 0 72px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(9, 11, 14, .76) 0%, rgba(9, 11, 14, .62) 40%, rgba(9, 11, 14, .20) 72%, rgba(9, 11, 14, .30) 100%),
        url("../images/image00021.jpeg") center 42% / cover no-repeat;
    isolation: isolate;
}

.homepage-hero-section::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .16) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(to right, #000, transparent 62%);
    pointer-events: none;
}

.homepage-hero-section::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -180px;
    left: -180px;
    width: 470px;
    height: 470px;
    border: 70px solid rgba(169, 9, 20, .16);
    border-radius: 50%;
    pointer-events: none;
}

.homepage-hero-section > .container {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: calc(max(720px, 92svh) - 204px);
    max-width: 1240px;
    align-items: center;
}

.homepage-hero-section .row {
    width: 100%;
}

.homepage-hero-content {
    position: relative;
    max-width: 610px;
    padding: clamp(30px, 3.6vw, 46px);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 20px;
    background: rgba(15, 17, 20, .62);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .27);
    backdrop-filter: blur(9px) saturate(1.04);
    -webkit-backdrop-filter: blur(9px) saturate(1.04);
}

.homepage-hero-content::before {
    content: none;
}

.homepage-hero-content::after {
    content: none;
}

.homepage-hero-content > * {
    position: relative;
    z-index: 1;
}

.homepage-hero-tagline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #ffd9dc;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.homepage-hero-tagline::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--mb-red-bright);
    box-shadow: 0 0 14px rgba(223, 29, 45, .5);
}

.homepage-hero-title {
    max-width: 13ch;
    margin: 0 0 20px;
    color: var(--mb-white);
    font-size: clamp(2.75rem, 4.25vw, 4.15rem);
    font-weight: 850;
    letter-spacing: -.045em;
    line-height: .98;
    text-shadow: 0 15px 40px rgba(0, 0, 0, .32);
    text-wrap: balance;
}

.homepage-hero-title::after {
    content: none;
}

.homepage-hero-title span {
    display: block;
    color: #ff6673;
}

.homepage-hero-subtitle {
    max-width: 50ch;
    margin-bottom: 29px;
    color: rgba(255, 255, 255, .86);
    font-size: clamp(1rem, 1.35vw, 1.18rem);
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.homepage-btn-hero,
.homepage-btn-hero-secondary,
.homepage-btn-learn-more {
    min-height: 54px;
    margin: 0 !important;
    padding: 15px 24px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease !important;
}

.homepage-btn-hero {
    background: var(--mb-red) !important;
    color: var(--mb-white) !important;
    box-shadow: 0 16px 34px rgba(169, 9, 20, .28);
}

.homepage-btn-hero:hover {
    transform: translateY(-3px);
    background: var(--mb-red-bright) !important;
    box-shadow: 0 20px 40px rgba(169, 9, 20, .4) !important;
}

.homepage-btn-hero-secondary {
    border: 1px solid rgba(255, 255, 255, .42) !important;
    background: rgba(255, 255, 255, .08) !important;
    color: var(--mb-white) !important;
    backdrop-filter: blur(8px);
}

.homepage-btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: var(--mb-white) !important;
    background: rgba(255, 255, 255, .16) !important;
    color: var(--mb-white) !important;
}

.homepage-hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 11px 20px;
    margin-top: 30px;
    margin-bottom: 0;
    padding-left: 0;
    padding-top: 22px;
    list-style: none;
    border-top: 1px solid rgba(255, 255, 255, .13);
}

.homepage-hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 650;
}

.homepage-hero-proof i {
    color: #ff6673;
    font-size: .9rem;
}

.homepage-services-section,
.homepage-values-section {
    position: relative;
    padding: clamp(90px, 10vw, 135px) 0;
    overflow: hidden;
    background: var(--mb-paper);
}

.homepage-services-section::before {
    content: "MB";
    position: absolute;
    top: 35px;
    right: -25px;
    color: rgba(22, 24, 27, .028);
    font-size: clamp(7rem, 14vw, 13rem);
    font-weight: 900;
    letter-spacing: -.12em;
    line-height: .7;
    pointer-events: none;
}

.homepage-services-section .container,
.homepage-values-section .container,
.homepage-about-preview .container,
.homepage-industry-section .container,
.homepage-footer .container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
}

.homepage-section-kicker {
    display: block;
    margin-bottom: 13px;
    color: var(--mb-red);
    font-size: .69rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-align: center;
    text-transform: uppercase;
}

.homepage-section-kicker-light {
    color: #ff7b86;
    text-align: left;
}

.homepage-section-title {
    margin-bottom: 18px;
    color: var(--mb-ink);
    font-size: clamp(2rem, 3.3vw, 3.35rem);
    font-weight: 820;
    letter-spacing: -.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.homepage-section-subtitle {
    max-width: 740px;
    margin-bottom: 60px;
    color: var(--mb-muted);
    font-size: 1.04rem;
    line-height: 1.75;
}

.homepage-service-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    display: flex;
    min-height: 390px;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    padding: clamp(31px, 4vw, 48px);
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 15px 45px rgba(21, 23, 27, .07);
    text-align: left;
    transform: perspective(1000px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform .18s ease-out, border-color .3s ease, box-shadow .3s ease;
}

.homepage-service-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    transform: scaleY(.25);
    transform-origin: top;
    background: linear-gradient(var(--mb-red-bright), var(--mb-red));
    transition: transform .35s ease;
}

.homepage-service-card::after {
    position: absolute;
    top: 22px;
    right: 26px;
    color: rgba(22, 24, 27, .055);
    font-size: 3.25rem;
    font-weight: 900;
    line-height: 1;
}

.homepage-services-section .row:last-child > div:nth-child(1) .homepage-service-card::after { content: "01"; }
.homepage-services-section .row:last-child > div:nth-child(2) .homepage-service-card::after { content: "02"; }
.homepage-services-section .row:last-child > div:nth-child(3) .homepage-service-card::after { content: "03"; }
.homepage-services-section .row:last-child > div:nth-child(4) .homepage-service-card::after { content: "04"; }

.homepage-service-card:hover {
    z-index: 4;
    border-color: rgba(169, 9, 20, .28);
    box-shadow: 0 32px 75px rgba(21, 23, 27, .14);
    transform: perspective(1000px) translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.homepage-service-card:hover::before {
    transform: scaleY(1);
}

.homepage-service-card > * {
    position: relative;
    z-index: 2;
    transform: translateZ(22px);
}

.homepage-service-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    margin: 0 0 30px;
    border: 1px solid rgba(169, 9, 20, .2);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(223, 29, 45, .12), rgba(169, 9, 20, .035));
    color: var(--mb-red);
    font-size: 2rem;
}

.homepage-service-title {
    margin-bottom: 16px;
    color: var(--mb-ink);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.homepage-service-description {
    margin: 0;
    color: var(--mb-muted);
    font-size: .94rem;
    line-height: 1.75;
}

.homepage-project-showcase {
    position: relative;
    padding: clamp(92px, 9vw, 132px) 0;
    overflow: hidden;
    background:
        linear-gradient(rgba(22, 24, 27, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 24, 27, .025) 1px, transparent 1px),
        var(--mb-white);
    background-size: 70px 70px;
}

.homepage-project-showcase::before {
    content: "PROJEKTE";
    position: absolute;
    top: 84px;
    right: -22px;
    color: rgba(22, 24, 27, .032);
    font-size: clamp(4.5rem, 9vw, 8rem);
    font-weight: 900;
    letter-spacing: -.09em;
    line-height: .72;
    pointer-events: none;
}

.homepage-project-showcase .container {
    position: relative;
    z-index: 2;
    max-width: 1240px;
}

.homepage-project-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: clamp(42px, 6vw, 66px);
}

.homepage-project-header .homepage-section-kicker,
.homepage-project-header .homepage-section-title {
    text-align: left;
}

.homepage-project-header .homepage-section-title {
    max-width: 760px;
    margin-bottom: 18px;
}

.homepage-project-intro {
    max-width: 660px;
    margin: 0;
    color: var(--mb-muted);
    font-size: 1rem;
    line-height: 1.72;
}

.homepage-projects-all {
    display: inline-flex;
    min-height: 48px;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    padding: 12px 17px;
    border: 1px solid var(--mb-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .82);
    color: var(--mb-ink);
    font-size: .73rem;
    font-weight: 820;
    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.homepage-projects-all:hover {
    transform: translateY(-3px);
    border-color: rgba(169, 9, 20, .32);
    color: var(--mb-red);
    box-shadow: 0 15px 35px rgba(20, 22, 25, .1);
}

.homepage-project-grid {
    display: grid;
    min-height: 650px;
    grid-template-columns: minmax(0, 1.35fr) minmax(310px, .75fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.homepage-project-card {
    --spot-x: 50%;
    --spot-y: 50%;
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: var(--mb-ink);
    box-shadow: 0 20px 55px rgba(18, 20, 24, .14);
    color: var(--mb-white);
    text-decoration: none;
    transition: box-shadow .35s ease;
}

.homepage-project-card-main {
    grid-row: 1 / span 2;
}

.homepage-project-card::before {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0;
    background: radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(223, 29, 45, .28), transparent 36%);
    transition: opacity .35s ease;
    pointer-events: none;
}

.homepage-project-card::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 12, 15, .08) 24%, rgba(10, 12, 15, .9) 100%),
        linear-gradient(90deg, rgba(10, 12, 15, .2), transparent 55%);
    pointer-events: none;
}

.homepage-project-card:hover {
    color: var(--mb-white);
    box-shadow: 0 32px 78px rgba(18, 20, 24, .23);
}

.homepage-project-card:focus-visible {
    outline: 3px solid var(--mb-red-bright);
    outline-offset: 4px;
}

.homepage-project-card:hover::before {
    opacity: 1;
}

.homepage-project-card > img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.homepage-project-card:nth-child(2) > img {
    object-position: center 47%;
}

.homepage-project-card:nth-child(3) > img {
    object-position: center 54%;
}

.homepage-project-card:hover > img {
    transform: scale(1.055);
    filter: saturate(1.08) contrast(1.03);
}

.homepage-project-index {
    position: absolute;
    z-index: 4;
    top: 22px;
    right: 22px;
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    background: rgba(13, 15, 18, .42);
    color: rgba(255, 255, 255, .86);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .09em;
    backdrop-filter: blur(8px);
}

.homepage-project-copy {
    position: absolute;
    z-index: 4;
    right: 0;
    bottom: 0;
    left: 0;
    padding: clamp(25px, 4vw, 46px);
}

.homepage-project-card:not(.homepage-project-card-main) .homepage-project-copy {
    padding: 26px;
}

.homepage-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin: 0 0 11px;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    font-weight: 760;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.homepage-project-meta span:first-child {
    color: #ff8992;
}

.homepage-project-copy h3 {
    max-width: 720px;
    margin: 0;
    color: var(--mb-white);
    font-size: clamp(1.4rem, 2.35vw, 2.35rem);
    font-weight: 830;
    letter-spacing: -.035em;
    line-height: 1.09;
    text-wrap: balance;
}

.homepage-project-card:not(.homepage-project-card-main) .homepage-project-copy h3 {
    max-width: 380px;
    font-size: clamp(1.18rem, 1.6vw, 1.5rem);
}

.homepage-project-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 19px;
    color: rgba(255, 255, 255, .78);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: gap .25s ease, color .25s ease;
}

.homepage-project-card:hover .homepage-project-action {
    gap: 14px;
    color: var(--mb-white);
}

.homepage-project-showcase [data-home-reveal]:nth-of-type(2) {
    transition-delay: .1s;
}

.homepage-project-showcase [data-home-reveal]:nth-of-type(3) {
    transition-delay: .2s;
}

.homepage-about-preview {
    position: relative;
    padding: clamp(92px, 10vw, 140px) 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(16, 18, 21, .98) 0%, rgba(16, 18, 21, .93) 52%, rgba(16, 18, 21, .72) 100%),
        url("../images/fasad4.webp") center / cover no-repeat;
    color: var(--mb-white);
}

.homepage-about-preview::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -100px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(169, 9, 20, .05), 0 0 0 130px rgba(255, 255, 255, .018);
}

.homepage-about-preview .homepage-section-title {
    max-width: 700px;
    margin-bottom: 27px;
    text-align: left;
}

.homepage-about-preview .lead {
    max-width: 760px;
    color: rgba(255, 255, 255, .88);
    font-size: clamp(1.12rem, 1.7vw, 1.42rem);
    font-weight: 500;
    line-height: 1.65;
}

.homepage-about-preview .col-lg-8 > p:last-child {
    max-width: 760px;
    color: rgba(255, 255, 255, .58);
    line-height: 1.8;
}

.homepage-about-stats {
    position: relative;
    margin: 0;
    padding: 36px 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--mb-radius);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 30px 70px rgba(0, 0, 0, .24);
    backdrop-filter: blur(14px);
    transform: perspective(900px) rotateY(-4deg);
}

.homepage-about-stats::before {
    content: "";
    position: absolute;
    inset: 13px -13px -13px 13px;
    z-index: -1;
    border: 1px solid rgba(223, 29, 45, .3);
    border-radius: var(--mb-radius);
    background: rgba(169, 9, 20, .07);
}

.homepage-stat-number {
    color: #ff4252;
    font-size: clamp(2.1rem, 3.3vw, 3rem);
    font-weight: 850;
    letter-spacing: -.04em;
}

.homepage-stat-label {
    margin-top: 8px;
    color: rgba(255, 255, 255, .65);
    font-size: .61rem;
    font-weight: 750;
    letter-spacing: .11em;
    line-height: 1.55;
}

.homepage-values-section {
    background: #fbfaf8;
}

.homepage-values-section .row:last-child {
    margin-top: 10px;
}

.homepage-value-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    height: 100%;
    min-height: 365px;
    padding: 38px 30px;
    overflow: hidden;
    border: 1px solid var(--mb-line);
    border-radius: var(--mb-radius);
    background: var(--mb-white);
    box-shadow: 0 14px 45px rgba(21, 23, 27, .055);
    text-align: left;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease;
}

.homepage-value-card::after {
    content: "";
    position: absolute;
    right: -48px;
    bottom: -58px;
    width: 160px;
    height: 160px;
    border: 28px solid rgba(169, 9, 20, .035);
    border-radius: 50%;
}

.homepage-value-card:hover {
    border-color: rgba(169, 9, 20, .25);
    box-shadow: 0 30px 65px rgba(21, 23, 27, .11);
}

.homepage-value-card > * {
    position: relative;
    z-index: 2;
    transform: translateZ(18px);
}

.homepage-value-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    margin: 0 0 27px;
    border-radius: 16px;
    background: var(--mb-ink);
    color: var(--mb-white);
    font-size: 1.55rem;
    box-shadow: 0 14px 28px rgba(22, 24, 27, .16);
}

.homepage-values-section .row:last-child > div:nth-child(2) .homepage-value-icon {
    background: var(--mb-red);
    box-shadow: 0 14px 28px rgba(169, 9, 20, .22);
}

.homepage-value-title {
    color: var(--mb-ink);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.homepage-value-description {
    color: var(--mb-muted);
    font-size: .91rem;
    line-height: 1.72;
}

.homepage-industry-section {
    position: relative;
    padding: clamp(90px, 10vw, 145px) 0;
    overflow: hidden;
    background:
        linear-gradient(100deg, rgba(7, 9, 12, .88), rgba(7, 9, 12, .58)),
        url("../images/fasad3.webp") center 45% / cover no-repeat;
    color: var(--mb-white);
}

.homepage-industry-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .18;
    background: repeating-linear-gradient(120deg, transparent 0 52px, rgba(255, 255, 255, .14) 53px 54px);
}

.homepage-industry-section::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: var(--mb-red-bright);
}

.homepage-industry-title {
    max-width: 880px;
    margin-inline: auto;
    font-size: clamp(2.15rem, 3.8vw, 3.65rem);
    font-weight: 840;
    letter-spacing: -.04em;
    line-height: 1.08;
    text-wrap: balance;
}

.homepage-industry-subtitle {
    max-width: 680px;
    margin: 25px auto 36px;
    color: rgba(255, 255, 255, .75);
    font-size: 1.04rem;
    line-height: 1.75;
}

.homepage-btn-learn-more {
    border: 1px solid var(--mb-red-bright);
    background: var(--mb-red) !important;
    color: var(--mb-white) !important;
    box-shadow: 0 17px 38px rgba(169, 9, 20, .28);
}

.homepage-btn-learn-more:hover {
    transform: translateY(-3px);
    background: var(--mb-red-bright) !important;
    box-shadow: 0 22px 44px rgba(169, 9, 20, .38) !important;
}

.homepage-footer {
    padding: 76px 0 23px;
    background: #111316;
    color: var(--mb-white);
}

.homepage-footer-logo {
    width: 210px;
    height: auto;
    margin-bottom: 22px;
    filter: brightness(0) invert(1);
}

.homepage-footer .col-lg-4:first-child > p {
    max-width: 330px;
    color: rgba(255, 255, 255, .52);
    font-size: .88rem;
    line-height: 1.75;
}

.homepage-footer h5 {
    margin-bottom: 22px;
    color: #ff5361;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.homepage-footer ul li {
    margin-bottom: 11px;
    color: rgba(255, 255, 255, .58);
    font-size: .84rem;
    line-height: 1.6;
}

.homepage-footer a {
    color: rgba(255, 255, 255, .65);
    transition: color .25s ease;
}

.homepage-footer a:hover {
    color: var(--mb-white);
}

.homepage-footer-bottom {
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .34);
    font-size: .7rem;
    letter-spacing: .035em;
}

.homepage [data-home-reveal].home-reveal-pending {
    opacity: 0;
    translate: 0 34px;
}

.homepage [data-home-reveal].home-reveal-visible {
    opacity: 1;
    translate: 0 0;
    transition: opacity .75s ease, translate .75s cubic-bezier(.2, .75, .25, 1);
}

.homepage-services-section [data-home-reveal]:nth-child(2),
.homepage-values-section [data-home-reveal]:nth-child(2) {
    transition-delay: .1s;
}

.homepage-services-section [data-home-reveal]:nth-child(3),
.homepage-values-section [data-home-reveal]:nth-child(3) {
    transition-delay: .2s;
}

.homepage-services-section [data-home-reveal]:nth-child(4) {
    transition-delay: .3s;
}

@media (max-width: 991.98px) {
    .homepage-navbar {
        min-height: 72px;
    }

    .homepage-navbar .navbar-logo,
    .homepage-navbar.navbar-compact .navbar-logo {
        width: 175px;
    }

    .custom-navbar-toggler {
        border-radius: 12px;
        background: rgba(169, 9, 20, .055);
    }

    .custom-navbar-toggler:focus-visible {
        box-shadow: 0 0 0 3px rgba(223, 29, 45, .25);
    }

    .homepage-navbar .navbar-collapse {
        position: absolute;
        top: calc(100% + 1px);
        right: 14px;
        left: 14px;
        padding: 17px;
        border: 1px solid var(--mb-line);
        border-radius: 0 0 18px 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 24px 60px rgba(20, 22, 25, .14);
        backdrop-filter: blur(18px);
    }

    .homepage-navbar-nav {
        align-items: stretch;
        gap: 3px;
    }

    .homepage-navbar-nav .nav-link {
        padding: 13px 15px !important;
    }

    .homepage-navbar-nav .nav-link::after {
        display: none;
    }

    .homepage-navbar-nav .nav-item:last-child {
        margin: 7px 0 0;
        text-align: center;
    }

    .homepage-hero-section {
        min-height: auto;
        padding: 120px 0 82px;
        background-position: 61% center;
    }

    .homepage-hero-section > .container {
        min-height: auto;
    }

    .homepage-hero-content {
        max-width: 680px;
    }

    .homepage-about-preview .col-lg-8 {
        margin-bottom: 45px;
    }

    .homepage-about-stats {
        max-width: 520px;
        transform: none;
    }

    .homepage-project-grid {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(480px, 58vw) minmax(300px, 36vw);
    }

    .homepage-project-card-main {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

@media (max-width: 575.98px) {
    .homepage-hero-section {
        min-height: 100svh;
        padding: 102px 0 54px;
        background:
            linear-gradient(90deg, rgba(10, 12, 15, .88), rgba(10, 12, 15, .55)),
            url("../images/image00021.jpeg") 61% center / cover no-repeat;
    }

    .homepage-hero-content {
        max-width: none;
        padding: 26px 20px 28px;
        border-radius: 16px;
        background: rgba(15, 17, 20, .72);
        backdrop-filter: blur(6px);
    }

    .homepage-hero-title {
        max-width: none;
        font-size: clamp(2.05rem, 8.5vw, 2.65rem);
        line-height: 1;
    }

    .homepage-hero-tagline {
        font-size: .59rem;
        letter-spacing: .12em;
    }

    .homepage-hero-subtitle {
        font-size: .98rem;
        line-height: 1.55;
    }

    .hero-buttons {
        display: grid;
        gap: 10px;
    }

    .hero-buttons .btn {
        width: 100%;
        min-height: 50px;
    }

    .homepage-hero-proof {
        display: grid;
        gap: 9px;
    }

    .homepage-project-showcase {
        padding: 82px 0;
        background-size: 48px 48px;
    }

    .homepage-services-section::before,
    .homepage-project-showcase::before {
        display: none;
    }

    .homepage-project-header {
        display: block;
        margin-bottom: 38px;
    }

    .homepage-projects-all {
        margin-top: 24px;
    }

    .homepage-project-grid {
        display: grid;
        min-height: 0;
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 14px;
    }

    .homepage-project-card,
    .homepage-project-card-main {
        min-height: 280px;
        grid-column: auto;
        grid-row: auto;
        border-radius: 16px;
    }

    .homepage-project-card-main {
        min-height: 410px;
    }

    .homepage-project-index {
        top: 16px;
        right: 16px;
        width: 43px;
        height: 43px;
    }

    .homepage-project-copy,
    .homepage-project-card:not(.homepage-project-card-main) .homepage-project-copy {
        padding: 22px;
    }

    .homepage-project-copy h3 {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }

    .homepage-project-card:not(.homepage-project-card-main) .homepage-project-copy h3 {
        font-size: clamp(1.15rem, 5vw, 1.35rem);
    }

    .homepage-services-section,
    .homepage-values-section,
    .homepage-about-preview {
        padding: 78px 0;
    }

    .homepage-section-title {
        font-size: clamp(1.85rem, 7vw, 2.25rem);
    }

    .homepage-industry-title {
        font-size: clamp(1.95rem, 7.5vw, 2.45rem);
    }

    .homepage-section-subtitle {
        margin-bottom: 42px;
    }

    .homepage-service-card {
        min-height: 0;
        padding: 30px 25px;
        transform: none !important;
    }

    .homepage-value-card {
        min-height: 0;
        transform: none !important;
    }

    .homepage-about-stats::before {
        inset: 9px -9px -9px 9px;
    }

    .homepage-footer {
        padding-top: 62px;
    }
}

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

    .homepage *,
    .homepage *::before,
    .homepage *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .homepage [data-home-reveal].home-reveal-pending {
        opacity: 1;
        translate: none;
    }

    .homepage-service-card,
    .homepage-value-card {
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
    }
}

