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

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

.inner-page .container {
    max-width: 1240px;
}

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

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

.inner-page a:focus-visible,
.inner-page button:focus-visible,
.inner-page input:focus-visible,
.inner-page textarea:focus-visible,
.inner-page select:focus-visible {
    outline: 3px solid var(--inner-red-bright);
    outline-offset: 4px;
}

.hero-section-about,
.hero-section-projects,
.contact-hero-section {
    position: relative;
    display: flex;
    min-height: 590px;
    align-items: center;
    overflow: hidden;
    padding: 150px 0 88px;
    background-attachment: scroll !important;
    isolation: isolate;
}

.hero-section-about {
    background:
        linear-gradient(105deg, rgba(10, 12, 15, .88), rgba(10, 12, 15, .48)),
        url("../images/optimized/image00037.jpg") center 52% / cover no-repeat;
}

.hero-section-projects {
    background:
        linear-gradient(105deg, rgba(10, 12, 15, .87), rgba(10, 12, 15, .4)),
        url("../images/optimized/image00001.jpg") center 48% / cover no-repeat;
}

.contact-hero-section {
    background:
        linear-gradient(105deg, rgba(10, 12, 15, .88), rgba(10, 12, 15, .44)),
        url("../images/fasad.webp") center / cover no-repeat;
}

.hero-section-about::before,
.hero-section-projects::before,
.contact-hero-section::before,
.project-detail-hero::before,
.legal-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: .2;
    background-image:
        linear-gradient(rgba(255, 255, 255, .17) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .17) 1px, transparent 1px);
    background-size: 74px 74px;
    mask-image: linear-gradient(to right, #000, transparent 75%);
}

.hero-section-about::after,
.hero-section-projects::after,
.contact-hero-section::after,
.project-detail-hero::after,
.legal-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 5px;
    background: linear-gradient(90deg, var(--inner-red-bright) 0 18%, transparent 18%);
}

.inner-hero-panel {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    width: min(880px, calc(100% - 24px));
    margin-inline: auto;
    padding: clamp(34px, 5vw, 58px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: var(--inner-radius);
    background: linear-gradient(135deg, rgba(18, 20, 24, .78), rgba(18, 20, 24, .54));
    box-shadow: 0 35px 90px rgba(0, 0, 0, .28);
    backdrop-filter: blur(13px) saturate(1.12);
    transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform .18s ease-out;
}

.inner-hero-panel > * {
    position: relative;
    z-index: 2;
    transform: translateZ(18px);
}

.inner-page-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 18px;
    color: #ff8992;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.inner-page-kicker::before {
    content: "";
    width: 32px;
    height: 2px;
    background: var(--inner-red-bright);
}

.hero-title-about,
.hero-title-projects,
.contact-hero-title {
    margin: 0 0 24px;
    padding: 0;
    color: var(--inner-white);
    font-size: clamp(3.3rem, 6.3vw, 6rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .94;
    text-shadow: 0 16px 42px rgba(0, 0, 0, .28);
}

.hero-title-about::before,
.hero-title-projects::before,
.contact-hero-title::before {
    display: none;
}

.hero-title-about::after,
.hero-title-projects::after,
.contact-hero-title::after {
    content: ".";
    color: var(--inner-red-bright);
}

.hero-subtitle-about,
.hero-subtitle-projects,
.contact-hero-subtitle {
    max-width: 690px;
    margin: 0 auto;
    color: rgba(255, 255, 255, .76);
    font-size: clamp(1rem, 1.45vw, 1.16rem);
    line-height: 1.75;
}

.btn-view-work,
.btn-get-in-touch {
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: var(--inner-red);
    color: var(--inner-white);
    box-shadow: 0 16px 34px rgba(169, 9, 20, .25);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.btn-view-work:hover,
.btn-get-in-touch:hover {
    transform: translateY(-3px);
    background: var(--inner-red-bright);
    color: var(--inner-white);
    box-shadow: 0 21px 42px rgba(169, 9, 20, .38);
}

.inner-section-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--inner-red);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .19em;
    text-align: center;
    text-transform: uppercase;
}

.inner-page .section-title,
.description-title,
.section-title-projects,
.contact-section-title {
    color: var(--inner-ink);
    font-size: clamp(2.35rem, 4.5vw, 4rem);
    font-weight: 830;
    letter-spacing: -.045em;
    line-height: 1.04;
}

.page-about .services-section {
    position: relative;
    padding: clamp(90px, 9vw, 130px) 0;
    overflow: hidden;
    background: var(--inner-paper);
}

.page-about .services-section::before {
    content: "MB";
    position: absolute;
    top: 55px;
    right: -20px;
    color: rgba(22, 24, 27, .028);
    font-size: clamp(12rem, 26vw, 24rem);
    font-weight: 900;
    letter-spacing: -.12em;
    line-height: .7;
}

.page-about .services-section .row:last-child {
    position: relative;
    z-index: 2;
}

.page-about .service-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    min-height: 100%;
    padding: 38px 30px;
    overflow: hidden;
    border: 1px solid var(--inner-line);
    border-radius: var(--inner-radius);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 15px 48px rgba(20, 22, 25, .065);
    text-align: left;
    transform: perspective(950px) 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;
}

.page-about .service-card:hover {
    z-index: 3;
    border-color: rgba(169, 9, 20, .26);
    box-shadow: 0 30px 70px rgba(20, 22, 25, .13);
    transform: perspective(950px) translateY(-6px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

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

.page-about .service-icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    margin: 0 0 27px;
    border: 1px solid rgba(169, 9, 20, .18);
    border-radius: 16px;
    background: rgba(169, 9, 20, .07);
}

.page-about .service-icon i {
    color: var(--inner-red);
    font-size: 1.85rem;
}

.page-about .service-title {
    color: var(--inner-ink);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.page-about .service-description {
    color: var(--inner-muted);
    font-size: .9rem;
    line-height: 1.72;
}

/* About story */
.page-about .about-content-section {
    position: relative;
    padding: clamp(90px, 9vw, 125px) 0;
    background: var(--inner-white);
}

.page-about .about-content-section .col-lg-10 {
    position: relative;
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid var(--inner-line);
    border-radius: calc(var(--inner-radius) + 4px);
    background:
        linear-gradient(120deg, rgba(169, 9, 20, .035), transparent 45%),
        var(--inner-white);
    box-shadow: var(--inner-shadow);
}

.page-about .about-content-section .col-lg-10::before {
    content: "";
    position: absolute;
    top: 0;
    left: clamp(30px, 5vw, 64px);
    width: 96px;
    height: 4px;
    background: var(--inner-red);
}

.page-about .border-bottom-custom {
    margin-bottom: 42px;
    padding-bottom: 0;
    border: 0 !important;
}

.page-about .about-text {
    max-width: 850px;
    margin: 0 auto 18px;
    color: var(--inner-muted);
    font-size: clamp(1rem, 1.3vw, 1.1rem);
    line-height: 1.82;
    white-space: normal;
}

.page-about .counters-section {
    position: relative;
    padding: 95px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 20%, rgba(169, 9, 20, .3), transparent 34%),
        #17191c;
}

.page-about .counter-item {
    min-height: 230px;
    padding: 38px 24px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--inner-radius);
    background: rgba(255, 255, 255, .045);
    box-shadow: 0 24px 55px rgba(0, 0, 0, .18);
    backdrop-filter: blur(9px);
}

.page-about .counter-number {
    color: var(--inner-white);
    font-size: clamp(3.8rem, 7vw, 6.2rem);
    font-weight: 860;
    letter-spacing: -.07em;
    line-height: 1;
}

.page-about .counter-number::after {
    content: none;
}

.page-about .counter-text {
    margin-top: 16px;
    color: rgba(255, 255, 255, .7);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

/* Projects overview */
.page-projects .description-section {
    position: relative;
    padding: clamp(85px, 9vw, 120px) 0;
    background: var(--inner-white);
}

.page-projects .description-section .col-12 {
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
    gap: clamp(45px, 8vw, 110px);
    align-items: start;
}

.page-projects .description-title {
    margin: 0;
}

.page-projects .description-title::before {
    content: "Portfolio";
    display: block;
    margin-bottom: 16px;
    color: var(--inner-red);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.page-projects .description-text {
    margin: 6px 0 0;
    color: var(--inner-muted);
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    line-height: 1.82;
}

.page-projects .projects-section {
    position: relative;
    padding: clamp(85px, 9vw, 125px) 0;
    overflow: hidden;
    background: var(--inner-paper);
}

.page-projects .section-title-projects {
    margin-bottom: 55px;
    text-align: center;
}

.page-projects .section-title-projects::before {
    content: "Ausgewählte Arbeiten";
    display: block;
    margin-bottom: 13px;
    color: var(--inner-red);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .19em;
    text-transform: uppercase;
}

.page-projects .project-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--inner-line);
    border-radius: calc(var(--inner-radius) + 2px);
    background: var(--inner-white);
    box-shadow: 0 18px 55px rgba(18, 20, 24, .08);
    transform: perspective(1000px) 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;
}

.page-projects .project-card::after {
    content: "";
    position: absolute;
    z-index: 3;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(var(--inner-red-bright), var(--inner-red));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .32s ease;
}

.page-projects .project-card:hover {
    border-color: rgba(169, 9, 20, .26);
    box-shadow: 0 30px 75px rgba(18, 20, 24, .15);
    transform: perspective(1000px) translateY(-7px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.page-projects .project-card:hover::after {
    transform: scaleY(1);
}

.page-projects .project-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.2, .7, .2, 1), filter .5s ease;
}

.page-projects .project-card:hover .project-image {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.page-projects .project-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 28px 30px;
}

.page-projects .project-title {
    margin-bottom: 14px;
    color: var(--inner-ink);
    font-size: 1.35rem;
    font-weight: 820;
    letter-spacing: -.025em;
    line-height: 1.18;
}

.page-projects .project-description {
    display: -webkit-box;
    margin-bottom: 25px;
    overflow: hidden;
    color: var(--inner-muted);
    font-size: .92rem;
    line-height: 1.68;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.page-projects .project-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    padding: 11px 17px;
    border-radius: 10px;
    background: var(--inner-red);
    color: var(--inner-white);
    font-size: .71rem;
    font-weight: 820;
    letter-spacing: .055em;
    text-decoration: none;
    text-transform: uppercase;
}

.page-projects .project-btn:hover {
    background: var(--inner-red-bright);
    color: var(--inner-white);
}

.page-projects .loading-spinner {
    min-height: 250px;
    color: var(--inner-red);
}

.page-projects .project-cta {
    position: relative;
    margin-top: 60px;
    padding: clamp(30px, 5vw, 52px);
    overflow: hidden;
    border-radius: calc(var(--inner-radius) + 4px);
    background: var(--inner-ink);
    color: var(--inner-white);
    box-shadow: var(--inner-shadow);
}

.page-projects .project-cta h2 {
    max-width: 650px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 830;
    letter-spacing: -.045em;
}

/* Project detail */
.page-project-detail .project-detail-hero {
    position: relative;
    display: flex;
    min-height: 540px;
    align-items: end;
    overflow: hidden;
    padding: 150px 0 78px;
    background:
        linear-gradient(105deg, rgba(10, 12, 15, .82), rgba(10, 12, 15, .4)),
        var(--project-hero-image, url("../images/image00021.jpeg")) center / cover no-repeat;
    isolation: isolate;
}

.page-project-detail .inner-project-hero-panel {
    max-width: 880px;
}

.page-project-detail .back-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.page-project-detail .back-button:hover {
    color: #ff7380;
}

.page-project-detail .project-category {
    margin-bottom: 12px;
    color: #ff7b86;
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.page-project-detail .project-detail-title {
    max-width: 920px;
    margin: 0 0 20px;
    color: var(--inner-white);
    font-size: clamp(3.1rem, 6.5vw, 6.3rem);
    font-weight: 850;
    letter-spacing: -.06em;
    line-height: .93;
}

.page-project-detail .project-description-short {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, .75);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
    line-height: 1.7;
}

.page-project-detail .project-content-section {
    padding: clamp(85px, 9vw, 125px) 0;
    background: var(--inner-paper);
}

.page-project-detail .project-info-card,
.page-project-detail .project-specs {
    border: 1px solid var(--inner-line);
    border-radius: calc(var(--inner-radius) + 2px);
    background: var(--inner-white);
    box-shadow: 0 22px 65px rgba(18, 20, 24, .09);
}

.page-project-detail .project-info-card {
    padding: 18px 18px clamp(28px, 4vw, 48px);
}

.page-project-detail .main-project-image {
    width: 100%;
    min-height: 380px;
    border-radius: 13px;
    object-fit: cover;
    cursor: zoom-in;
}

.page-project-detail .image-viewer-button,
.page-project-detail .gallery-button {
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--inner-radius);
    background: transparent;
}

.page-project-detail .image-viewer-button {
    border-radius: 13px;
}

.page-project-detail .close-modal {
    width: 54px;
    height: 54px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    line-height: 1;
}

.page-project-detail .project-detail-description {
    padding: 20px clamp(12px, 3vw, 32px) 0;
    color: var(--inner-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.page-project-detail .project-detail-description p:last-child {
    margin-bottom: 0;
}

.page-project-detail .project-specs {
    position: sticky;
    top: 118px;
    padding: 30px;
}

.page-project-detail .project-specs h4 {
    color: var(--inner-ink);
    font-weight: 820;
}

.page-project-detail .project-specs h4 i {
    color: var(--inner-red);
}

.page-project-detail .spec-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--inner-line);
}

.page-project-detail .spec-item:last-child {
    border: 0;
}

.page-project-detail .spec-label {
    color: var(--inner-muted);
    font-size: .82rem;
}

.page-project-detail .spec-value {
    color: var(--inner-ink);
    font-size: .86rem;
    font-weight: 780;
    text-align: right;
}

.page-project-detail .gallery-section {
    padding: clamp(85px, 9vw, 125px) 0;
    background: var(--inner-white);
}

.page-project-detail .gallery-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--inner-radius);
    object-fit: cover;
    box-shadow: 0 18px 45px rgba(18, 20, 24, .12);
    cursor: zoom-in;
    transition: transform .35s ease, box-shadow .35s ease;
}

.page-project-detail .gallery-image:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 60px rgba(18, 20, 24, .2);
}

.page-project-detail .image-modal {
    z-index: 10050;
    padding: 40px;
    background: rgba(8, 9, 11, .94);
    backdrop-filter: blur(10px);
}

.page-project-detail .modal-content-img {
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    border-radius: 12px;
    object-fit: contain;
}

.page-project-detail .close-modal {
    position: fixed;
    z-index: 2;
    top: 24px;
    right: 30px;
    color: var(--inner-white);
    font-size: 2.8rem;
    cursor: pointer;
}

.page-project-detail #loading-overlay {
    color: var(--inner-red);
}

/* Contact */
.page-contact .contact-form-section {
    position: relative;
    padding: clamp(90px, 9vw, 125px) 0;
    background: var(--inner-paper);
}

.page-contact .contact-section-title {
    margin-bottom: 16px;
    text-align: center;
}

.page-contact .contact-section-subtitle {
    max-width: 700px;
    margin: 0 auto 48px;
    color: var(--inner-muted);
    line-height: 1.75;
    text-align: center;
}

.page-contact .contact-form-card {
    position: relative;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--inner-line);
    border-radius: calc(var(--inner-radius) + 4px);
    background: var(--inner-white);
    box-shadow: var(--inner-shadow);
}

.page-contact .contact-form-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 18px -18px -18px 18px;
    border-radius: inherit;
    background: rgba(169, 9, 20, .09);
}

.page-contact .contact-form-group {
    margin-bottom: 22px;
}

.page-contact .contact-form-label {
    display: block;
    margin-bottom: 9px;
    color: var(--inner-ink);
    font-size: .78rem;
    font-weight: 780;
}

.page-contact .contact-form-input {
    width: 100%;
    min-height: 54px;
    padding: 13px 15px;
    border: 1px solid rgba(22, 24, 27, .17);
    border-radius: 10px;
    background: #fafafa;
    color: var(--inner-ink);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.page-contact .contact-form-input:focus {
    border-color: var(--inner-red) !important;
    background: var(--inner-white);
    box-shadow: 0 0 0 4px rgba(169, 9, 20, .1);
}

.page-contact .contact-form-textarea {
    min-height: 170px;
    resize: vertical;
}

.page-contact .contact-antispam {
    display: grid;
    gap: 9px;
    margin: 2px 0 22px;
}

.page-contact .contact-antispam[hidden] {
    display: none;
}

.page-contact .contact-turnstile {
    min-height: 65px;
}

.page-contact .contact-antispam-status,
.page-contact .contact-noscript {
    margin: 0;
    color: var(--inner-muted);
    font-size: .8rem;
    line-height: 1.55;
}

.page-contact .contact-noscript {
    margin-top: 16px;
}

.page-contact .contact-btn-submit {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border: 0;
    border-radius: 10px;
    background: var(--inner-red);
    color: var(--inner-white);
    box-shadow: 0 16px 34px rgba(169, 9, 20, .24);
    font-size: .76rem;
    font-weight: 820;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: transform .25s ease, background .25s ease;
}

.page-contact .contact-btn-submit:hover {
    transform: translateY(-3px);
    background: var(--inner-red-bright);
}

.page-contact .contact-btn-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
}

.page-contact .form-message {
    display: none;
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: .9rem;
}

.page-contact .form-message.is-visible {
    display: block;
}

.page-contact .form-message.is-success {
    background: #e9f7ee;
    color: #176533;
}

.page-contact .form-message.is-error {
    background: #fff0f1;
    color: #8c101b;
}

.page-contact .contact-info-section {
    padding: clamp(85px, 9vw, 120px) 0;
    background: var(--inner-white);
}

.page-contact .contact-info-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    min-height: 100%;
    padding: 34px 24px;
    border: 1px solid var(--inner-line);
    border-radius: var(--inner-radius);
    background: var(--inner-white);
    box-shadow: 0 16px 45px rgba(18, 20, 24, .07);
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform .18s ease-out, box-shadow .3s ease, border-color .3s ease;
}

.page-contact .contact-info-card:hover {
    border-color: rgba(169, 9, 20, .25);
    box-shadow: 0 27px 62px rgba(18, 20, 24, .13);
    transform: perspective(900px) translateY(-6px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
}

.page-contact .contact-info-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 24px;
    border-radius: 16px;
    background: rgba(169, 9, 20, .08);
    color: var(--inner-red);
    font-size: 1.55rem;
}

.page-contact .contact-info-title {
    color: var(--inner-ink);
    font-size: 1.18rem;
    font-weight: 820;
}

.page-contact .contact-info-text,
.page-contact .contact-info-link {
    color: var(--inner-muted);
    line-height: 1.65;
}

.page-contact .contact-info-link:hover {
    color: var(--inner-red);
}

.page-contact .contact-map-section {
    padding: clamp(85px, 9vw, 120px) 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(169, 9, 20, .32), transparent 30%),
        var(--inner-ink);
}

.page-contact .contact-map-section .contact-section-title {
    color: var(--inner-white);
}

.page-contact .contact-map-section .contact-section-subtitle {
    color: rgba(255, 255, 255, .66);
}

.page-contact .contact-map-container {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: calc(var(--inner-radius) + 4px);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);
}

.page-contact .contact-map {
    display: block;
    width: 100%;
    min-height: 470px;
    border: 0;
    border-radius: 13px;
}

.page-contact .contact-map-consent {
    display: grid;
    min-height: 470px;
    place-items: center;
    align-content: center;
    gap: 13px;
    padding: 35px;
    border-radius: 13px;
    background:
        linear-gradient(rgba(14, 16, 19, .8), rgba(14, 16, 19, .88)),
        url("../images/optimized/image00001.jpg") center / cover no-repeat;
    color: var(--inner-white);
    text-align: center;
}

.page-contact .contact-map-consent > i {
    color: #ff6d79;
    font-size: 2.4rem;
}

.page-contact .contact-map-consent h3 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 820;
}

.page-contact .contact-map-consent p {
    max-width: 540px;
    margin: 0 0 9px;
    color: rgba(255, 255, 255, .72);
}

/* Legal */
.page-legal .legal-hero {
    position: relative;
    display: flex;
    min-height: 400px;
    align-items: end;
    overflow: hidden;
    padding: 145px 0 70px;
    background:
        linear-gradient(105deg, rgba(10, 12, 15, .93), rgba(10, 12, 15, .62)),
        url("../images/image00021.jpeg") center 50% / cover no-repeat;
    isolation: isolate;
}

.page-legal .legal-hero h1 {
    max-width: 900px;
    margin: 0;
    color: var(--inner-white);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 850;
    letter-spacing: -.055em;
    line-height: .95;
}

.page-legal .about-section {
    padding: clamp(75px, 8vw, 110px) 0 !important;
    padding-right: 0 !important;
    background: var(--inner-paper);
}

.page-legal .legal-content {
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--inner-line);
    border-radius: calc(var(--inner-radius) + 4px);
    background: var(--inner-white);
    box-shadow: var(--inner-shadow);
}

.page-legal .about-text {
    margin: 0;
    color: var(--inner-muted);
    font-size: 1rem;
    line-height: 1.78;
    white-space: pre-line;
}

.page-legal .about-text b {
    color: var(--inner-ink);
    font-size: 1.12rem;
}

.page-legal .legal-content > p,
.page-legal .legal-content li {
    color: var(--inner-muted);
    line-height: 1.78;
}

.page-legal .legal-content h2 {
    margin: 42px 0 16px;
    color: var(--inner-ink);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 820;
    letter-spacing: -.025em;
}

.page-legal .legal-content h3 {
    margin: 28px 0 12px;
    color: var(--inner-ink);
    font-size: 1.08rem;
    font-weight: 800;
}

.page-legal .legal-content a {
    color: var(--inner-red);
}

/* Shared inner-page motion and footer */
.inner-page [data-inner-reveal].inner-reveal-pending {
    opacity: 0;
    translate: 0 28px;
}

.inner-page [data-inner-reveal] {
    transition: opacity .72s ease, translate .72s cubic-bezier(.2, .72, .2, 1);
}

.inner-page [data-inner-reveal].inner-reveal-visible {
    opacity: 1;
    translate: 0 0;
}

.inner-page .homepage-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.inner-page .homepage-footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

@media (max-width: 991.98px) {
    .hero-section-about,
    .hero-section-projects,
    .contact-hero-section {
        min-height: 530px;
        padding: 130px 0 70px;
    }

    .inner-hero-panel {
        width: 100%;
        transform: none !important;
    }

    .page-projects .description-section .col-12 {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-project-detail .project-specs {
        position: static;
        margin-top: 28px;
    }

    .page-project-detail .main-project-image {
        min-height: 300px;
    }
}

@media (max-width: 575.98px) {
    .hero-section-about,
    .hero-section-projects,
    .contact-hero-section {
        min-height: auto;
        padding: 112px 0 55px;
        background-position: 62% center;
    }

    .inner-hero-panel {
        padding: 28px 20px;
        border-radius: 16px;
        background: rgba(16, 18, 21, .76);
        backdrop-filter: blur(7px);
    }

    .inner-hero-panel > * {
        transform: none;
    }

    .inner-page-kicker {
        font-size: .58rem;
        letter-spacing: .14em;
    }

    .hero-title-about,
    .hero-title-projects,
    .contact-hero-title {
        font-size: clamp(2.75rem, 14vw, 4rem);
    }

    .hero-subtitle-about,
    .hero-subtitle-projects,
    .contact-hero-subtitle {
        font-size: .96rem;
        line-height: 1.58;
    }

    .page-about .service-card,
    .page-contact .contact-info-card,
    .page-projects .project-card {
        transform: none !important;
    }

    .page-about .about-content-section .col-lg-10 {
        border-radius: 16px;
    }

    .page-about .counter-item {
        min-height: 190px;
    }

    .page-projects .project-content {
        padding: 24px 22px 26px;
    }

    .page-project-detail .project-detail-hero {
        min-height: 470px;
        padding: 125px 0 58px;
    }

    .page-project-detail .project-detail-title {
        font-size: clamp(2.7rem, 14vw, 4.2rem);
    }

    .page-project-detail .project-info-card {
        padding: 10px 10px 28px;
    }

    .page-project-detail .main-project-image {
        min-height: 220px;
    }

    .page-project-detail .image-modal {
        padding: 18px;
    }

    .page-contact .contact-form-card::before {
        inset: 10px -8px -10px 8px;
    }

    .page-contact .contact-btn-submit {
        width: 100%;
    }

    .page-contact .contact-map {
        min-height: 390px;
    }

    .page-legal .legal-hero {
        min-height: 330px;
        padding: 120px 0 52px;
    }
}

/* --- Dynamic Interactive Enhancements --- */
.page-about .counter-number.is-counted {
    text-shadow: 0 0 28px rgba(223, 29, 45, 0.45);
    transition: text-shadow 0.8s ease-out;
}

/* Magnetic Button Base */
[data-magnetic] {
    will-change: transform;
    transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Before / After Comparison Slider */
.mb-before-after-section {
    position: relative;
    padding: clamp(80px, 8vw, 120px) 0;
    background: #111316;
    color: #fff;
    overflow: hidden;
}

.mb-before-after-section::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.mb-before-after-section .section-title {
    color: #fff;
}

.mb-ba-container {
    --ba-pos: 50%;
    position: relative;
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    aspect-ratio: 16 / 10;
    min-height: 380px;
    border-radius: var(--inner-radius);
    overflow: hidden;
    box-shadow: 0 35px 85px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
    user-select: none;
    touch-action: pan-y;
    cursor: ew-resize;
}

.mb-ba-after,
.mb-ba-before {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.mb-ba-after img,
.mb-ba-before img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.mb-ba-before {
    width: var(--ba-pos);
    z-index: 2;
    border-right: 2px solid #fff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.mb-ba-badge {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 30px;
    backdrop-filter: blur(12px);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.mb-ba-badge-after {
    right: 20px;
    background: rgba(18, 20, 24, 0.82);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.mb-ba-badge-before {
    left: 20px;
    background: rgba(18, 20, 24, 0.82);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.mb-ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--ba-pos);
    transform: translateX(-50%);
    width: 44px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    outline: none;
}

.mb-ba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.mb-ba-handle-button {
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    color: var(--inner-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    font-size: 0.9rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(223, 29, 45, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.mb-ba-container:hover .mb-ba-handle-button,
.mb-ba-handle:focus-visible .mb-ba-handle-button {
    transform: scale(1.14);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(223, 29, 45, 0.6);
}

/* Architectural Partner / Material Marquee */
.mb-marquee-section {
    position: relative;
    padding: 38px 0;
    background: #0d0f12;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.mb-marquee-container {
    display: flex;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.mb-marquee-track {
    display: flex;
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
    white-space: nowrap;
    animation: mbMarqueeScroll 28s linear infinite;
    will-change: transform;
}

.mb-marquee-container:hover .mb-marquee-track {
    animation-play-state: paused;
}

.mb-marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.65);
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.mb-marquee-item:hover {
    color: #ff606e;
}

.mb-marquee-item .marquee-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--inner-red-bright);
    box-shadow: 0 0 10px var(--inner-red-bright);
}

@keyframes mbMarqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .mb-ba-container {
        min-height: 280px;
        aspect-ratio: 4 / 3;
    }
    .mb-ba-badge {
        top: 12px;
        padding: 5px 11px;
        font-size: 0.65rem;
    }
    .mb-ba-badge-before {
        left: 12px;
    }
    .mb-ba-badge-after {
        right: 12px;
    }
    .mb-ba-handle-button {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inner-page *,
    .inner-page *::before,
    .inner-page *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .inner-page [data-inner-reveal].inner-reveal-pending {
        opacity: 1;
        translate: none;
    }

    .inner-hero-panel,
    .page-about .service-card,
    .page-projects .project-card,
    .page-contact .contact-info-card {
        --tilt-x: 0deg !important;
        --tilt-y: 0deg !important;
    }

    .mb-marquee-track {
        animation: none !important;
    }
}

