html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #070707;
    color: var(--primary-yellow, #FFC425);
}

#webGLApp {
    position: fixed !important;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 0 !important;
    pointer-events: none;
}

main {
    position: relative;
    z-index: 2;
}

.web-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 36px;
}

.web-lang {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.web-lang__link {
    color: var(--primary-yellow, #FFC425);
    text-decoration: none;
    letter-spacing: 0.06em;
    font-size: 16px;
}

.web-lang__link {
    position: relative;
    font-size: 15px;
}

.web-lang__link::after,
.web-nav a span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3.2px;
    height: 2px;
    width: 100%;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 180ms ease;
}

.web-nav a span::after {
    height: 1.5px;
    bottom: -2px;
    width: calc(100% - 0.04em);
}

.web-lang__link:hover::after,
.web-lang__link:focus-visible::after,
.web-lang__link.active::after,
.web-lang__link.is-active::after,
.web-nav a:hover span::after,
.web-nav a:focus-visible span::after {
    transform: scaleX(1);
}

.web-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 88px 24px 28px;
    box-sizing: border-box;
}

.web-hero .page-title {
    align-self: center;
    width: fit-content;
    max-width: 100%;
    text-align: center;
}

.web-hero .page-title::after {
    animation-name: web-page-line;
}

@keyframes web-page-line {
    to {
        width: calc(100% - 0.04em);
    }
}

.web-lead {
    margin: 14px 0 0;
    max-width: 640px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
}

.web-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    width: min(720px, 100%);
    margin: 22px auto 0;
    padding: 0;
    list-style: none;
    text-align: center;
    color: var(--primary-yellow, #FFC425);
}

.web-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1.5px solid var(--primary-yellow, #FFC425);
    border-radius: 999px;
    color: var(--primary-yellow, #FFC425);
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
    transition: background 180ms ease, color 180ms ease;
}

.web-nav a:hover,
.web-nav a:focus-visible {
    background: var(--primary-yellow, #FFC425);
    color: #111;
}

.web-nav a span::after {
    display: none;
}

.web-nav a span {
    position: relative;
    display: inline-block;
}

.web-cta {
    margin-top: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 2px solid var(--primary-yellow, #FFC425);
    border-radius: 8px;
    background: var(--primary-yellow, #FFC425);
    color: #000;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0.04em;
    text-decoration: none;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.web-cta:hover,
.web-cta:focus-visible {
    background: #000;
    color: var(--primary-yellow, #FFC425);
}

.web-cta--line {
    background: transparent;
    color: var(--primary-yellow, #FFC425);
}

.web-cta--line:hover,
.web-cta--line:focus-visible {
    background: var(--primary-yellow, #FFC425);
    color: #000;
}

.web-offers {
    max-width: 1080px;
    margin: 0 auto;
    padding: 12px 24px 8px;
    display: grid;
    gap: 36px;
}

.web-offers .web-section {
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-content: start;
}

.web-offers .web-section .web-cta {
    margin-top: auto;
    padding-top: 12px;
}

.web-projects {
    min-height: 0;
    align-content: start;
    padding-top: 48px;
}

.web-projects__grid {
    display: grid;
    gap: 48px;
    width: 100%;
    margin-top: 28px;
}

.web-projects__grid:empty {
    display: none;
}

.web-project {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.7fr);
    gap: 28px 40px;
    align-items: start;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(242, 242, 242, 0.72);
    border-radius: 18px;
    background: rgba(7, 7, 7, 0.28);
}

.web-project:is([data-media-side="right"], :not([data-media-side]):nth-child(even)) {
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.45fr);
}

.web-project:is([data-media-side="right"], :not([data-media-side]):nth-child(even)) .web-project__stage {
    order: 2;
}

.web-project.will-reveal {
    opacity: 0;
    transform: translateX(clamp(-200px, -14vw, -110px));
    transition: none;
}

.web-project.will-reveal:is([data-media-side="right"], :not([data-media-side]):nth-child(even)) {
    transform: translateX(clamp(110px, 14vw, 200px));
}

.web-project.will-reveal.is-in,
.web-project.will-reveal:is([data-media-side="right"], :not([data-media-side]):nth-child(even)).is-in {
    opacity: 1;
    transform: none;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

body.shell .web-project .web-project__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #101010;
}

.web-project img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 62vh;
    border-radius: 0;
    object-fit: contain;
}

body.shell .web-project:is([data-project-id="chiasso-blog"], [data-project-id="chiasso-newsletter"]) .web-project__stage {
    overflow: visible;
    background: transparent;
}

.web-project[data-project-id="chiasso-blog"] .web-project__stage img {
    width: 100%;
    max-height: none;
}

.web-project[data-project-id="chiasso-newsletter"] .web-project__stage img {
    width: 100%;
    max-width: 360px;
    max-height: none;
}

.web-project__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    min-width: 0;
    text-align: left;
}

.web-project__actions {
    display: flex;
    justify-content: flex-end;
    align-self: stretch;
    margin-top: auto;
    padding-top: 22px;
}

.web-project h3 {
    margin: 0 0 14px;
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(40px, 4.2vw, 64px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 0.9;
}

.web-project p {
    margin: 0;
    color: #f2f2f2;
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.web-project__visit {
    display: inline-flex;
    margin-top: 0;
    align-items: center;
    gap: 6px;
    color: rgba(242, 242, 242, 0.72);
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: none;
}

.web-project__visit svg {
    width: 20px;
    height: 20px;
    flex: none;
}

.web-project__visit span {
    position: relative;
}

.web-project__visit span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background: var(--primary-yellow, #FFC425);
    transition: width 0.32s ease;
}

.web-project__visit:hover,
.web-project__visit:focus-visible {
    color: var(--primary-yellow, #FFC425);
}

.web-project__visit:hover span::after,
.web-project__visit:focus-visible span::after {
    width: 100%;
}

.web-form {
    box-sizing: border-box;
    max-width: 560px;
    margin: 0 auto;
    padding: 72px 24px 96px;
    scroll-margin-top: 88px;
}

.web-form__intro {
    margin: 0 0 22px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

.web-form h2 {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.web-form__note,
.web-form__status {
    margin: 0 0 22px;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0.03em;
}

.web-form__fields {
    display: grid;
    gap: 14px;
}

.web-form label {
    display: grid;
    gap: 6px;
    color: var(--primary-yellow, #FFC425);
    font-size: 16px;
    letter-spacing: 0.03em;
}

.web-form input,
.web-form select,
.web-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid rgba(255, 196, 37, 0.75);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    color-scheme: dark;
    font-family: Arial, sans-serif;
    font-size: 16px;
    letter-spacing: 0;
}

.web-form textarea {
    resize: vertical;
    min-height: 120px;
}

.web-form__trap {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.web-form label.web-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    line-height: 1.35;
    letter-spacing: 0;
}

.web-form__check input {
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    padding: 0;
    border-radius: 4px;
    flex: 0 0 auto;
    accent-color: var(--primary-yellow, #FFC425);
}

.web-form__check a {
    color: var(--primary-yellow, #FFC425);
}

.web-form .web-cta {
    justify-self: start;
    margin-top: 8px;
}

.web-section {
    box-sizing: border-box;
    display: grid;
    align-content: start;
    max-width: 1080px;
    margin: 0 auto;
    padding: 56px 24px;
    scroll-margin-top: 88px;
}

#webBeispiele {
    min-height: 0;
    align-content: start;
}

#webBeispiele[hidden] {
    display: none !important;
}

#webBeispiele .offer-card {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

#webBeispiele .offer-card h2 {
    font-size: clamp(22px, 2vw, 26px);
}

#webBeispiele .offer-card__lead,
#webBeispiele .offer-card__text {
    margin: 0;
    max-width: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}

#webBeispiele .offer-card__lead {
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 22px;
    letter-spacing: 0.04em;
}

#webBeispiele .offer-card img {
    width: 100%;
    border-radius: 16px;
}

#webBeispiele .offer-card__text {
    white-space: pre-wrap;
}

#webBeispiele .offer-card a {
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 24px;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.web-section h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 2.6vw, 32px);
    font-weight: 400;
    letter-spacing: 0.04em;
}

.web-project h3 {
    font-size: clamp(40px, 4.2vw, 64px);
}

.web-section p,
.web-copy {
    margin: 0;
    max-width: none;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: 0;
}

.web-section .web-examples {
    margin: 36px 0 8px;
    max-width: none;
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.04em;
}

.web-section h3 {
    margin: 0 0 10px;
    color: var(--primary-yellow, #FFC425);
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.04em;
}

.web-project h3 {
    margin: 0 0 14px;
    color: #f2f2f2;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(40px, 4.2vw, 64px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 0.9;
}

.web-copy a {
    color: var(--primary-yellow, #FFC425);
}

.web-shot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 22px;
    border-radius: 16px;
}

.web-section .web-cta {
    margin-top: 28px;
}

.logo-band {
    --logo-gap: 36px;
    --logo-pad: 48px;
    --logo-fade: max(24px, calc((100vw - 0.6 * (100% + var(--logo-pad, 0px))) / 2));
    min-width: 0;
    max-width: 100%;
}

.logo-band__view {
    overflow: hidden;
    width: 100vw;
    min-width: 0;
    margin-top: 28px;
    margin-left: calc(50% - 50vw);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--logo-fade), #000 calc(100% - var(--logo-fade)), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 var(--logo-fade), #000 calc(100% - var(--logo-fade)), transparent 100%);
}

.logo-band__more {
    justify-self: center;
}

.logo-band__track {
    display: flex;
    width: max-content;
    gap: var(--logo-gap);
    animation: logo-run 96s linear infinite;
}

.logo-band__view:hover .logo-band__track,
.logo-band__view:focus-within .logo-band__track {
    animation-play-state: paused;
}

.web-logos {
    display: flex;
    width: max-content;
    gap: var(--logo-gap);
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.logo-band.is-open .logo-band__view {
    overflow: visible;
    width: 100%;
    margin-left: 0;
    -webkit-mask-image: none;
    mask-image: none;
}

.logo-band.is-open .logo-band__track {
    display: block;
    width: 100%;
    animation: none;
    transform: none;
}

.logo-band.is-open .web-logos[aria-hidden="true"] {
    display: none;
}

.logo-band.is-open .web-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    gap: 40px 32px;
}

.logo-band.is-open .web-logos li {
    width: 100%;
}

@keyframes logo-run {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - var(--logo-gap) / 2));
    }
}

.web-logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    min-height: 96px;
}

.web-logos img {
    display: block;
    width: auto;
    height: auto;
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
    transform: scale(0.85);
    filter: grayscale(1);
}

@media (min-width: 900px) {
    .web-offers {
        gap: 64px;
    }

}

@media (max-width: 800px) {
    .web-project,
    .web-project:is([data-media-side="right"], :not([data-media-side]):nth-child(even)) {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .web-project:is([data-media-side="right"], :not([data-media-side]):nth-child(even)) .web-project__stage {
        order: 0;
    }

    .web-project h3 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .web-project.will-reveal,
    .web-project.will-reveal:is([data-media-side="right"], :not([data-media-side]):nth-child(even)),
    .web-project.will-reveal.is-in {
        opacity: 1;
        transform: none;
    }

    .logo-band.is-open .web-logos,
    .web-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .web-logos img {
        max-width: 100%;
        max-height: 84px;
    }
}

@keyframes web-underline {
    to {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .web-top {
        padding: 20px 16px;
    }

    .web-hero {
        padding: 72px 30px 16px;
    }

    .web-tile--castello {
        top: 10%;
        left: -8%;
        width: 48vw;
    }

    .web-tile--demo {
        top: 8%;
        right: -10%;
        width: 44vw;
    }

    .web-tile--chiasso {
        left: 6%;
        bottom: 3%;
        width: 24vw;
    }

    .web-tile--shop {
        right: -8%;
        bottom: 4%;
        width: 46vw;
    }

    .web-nav {
        gap: 8px;
    }

    .web-offers {
        padding: 8px 30px;
        gap: 32px;
    }

    .web-project__actions {
        display: flex;
        justify-content: flex-end;
    }
}

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

    .logo-band__view {
        overflow: visible;
        width: 100%;
        margin-left: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .logo-band__track {
        display: block;
        width: 100%;
        animation: none;
        transform: none;
    }

    .web-logos {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
    }

    .web-logos[aria-hidden="true"] {
        display: none;
    }

    .web-logos li {
        width: 100%;
    }

    .logo-band__more {
        display: none;
    }

    .web-hero .page-title::after {
        width: calc(100% - 0.04em);
        animation: none;
    }
}

body.shell:has(.web-hero) .home-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

body.shell main .web-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 108px var(--page-gutter) 72px;
    overflow: hidden;
    background: transparent;
    box-sizing: border-box;
    text-align: center;
}

.web-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    perspective: 1400px;
    pointer-events: none;
}

.web-tile {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(242, 242, 242, 0.35);
    border-radius: 16px;
    background: #111;
    opacity: 0.4;
    box-shadow: 0 28px 48px rgba(0, 0, 0, 0.5), 0 10px 0 rgba(0, 0, 0, 0.28);
    transform: rotateX(calc(var(--rx) + var(--lean-x, 0deg))) rotateY(calc(var(--ry) + var(--lean-y, 0deg))) translateZ(var(--z));
    transition: transform 0.22s ease-out;
}

.web-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.web-tile--castello {
    --rx: 8deg;
    --ry: -16deg;
    --z: -30px;
    top: 18%;
    left: 5%;
    width: min(34vw, 460px);
    aspect-ratio: 16 / 10;
}

.web-tile--demo {
    --rx: 6deg;
    --ry: 18deg;
    --z: 24px;
    top: 14%;
    right: 5%;
    width: min(30vw, 400px);
    aspect-ratio: 16 / 10;
}

.web-tile--chiasso {
    --rx: 14deg;
    --ry: -8deg;
    --z: -70px;
    left: 24%;
    bottom: 7%;
    width: min(15vw, 190px);
    aspect-ratio: 9 / 16;
}

.web-tile--shop {
    --rx: 10deg;
    --ry: 14deg;
    --z: -20px;
    right: 8%;
    bottom: 8%;
    width: min(32vw, 420px);
    aspect-ratio: 16 / 10;
}

.web-hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(46em, 100%);
    text-align: center;
}

body.shell .web-hero .page-title {
    margin: 0;
    max-width: none;
    color: #f2f2f2;
    font-family: "Bebas Neue", Arial, sans-serif;
    font-size: clamp(calc(72px - 3pt), calc(10vw - 3pt), calc(132px - 3pt));
    font-weight: 400;
    letter-spacing: 0.04em;
    line-height: 0.9;
    text-align: center;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}

.web-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    margin-top: 32px;
}

.web-hero .home-hero__quiet {
    color: #f2f2f2;
}

body.shell .web-offers .web-section,
body.shell #kunden {
    align-items: flex-start;
}

body.shell .web-offers .web-section > h2,
body.shell #kunden > h2,
body.shell .web-offers .web-section > p,
body.shell #kunden > p {
    text-align: left;
}

body.shell .web-offers .web-section > p,
body.shell #kunden > p {
    margin-left: 0;
    margin-right: 0;
}

body.shell .web-offers {
    padding-top: 49px;
    padding-bottom: 49px;
    gap: 97px;
}

@media (max-width: 700px) {
    body.shell .web-offers {
        padding-top: 33px;
        padding-bottom: 33px;
        gap: 65px;
    }

    .web-tile--castello {
        top: 6%;
        right: auto;
        bottom: auto;
        left: calc(-28% * 0.8);
        width: calc(min(34vw, 460px) * 2);
    }

    .web-tile--demo {
        top: 8%;
        right: calc(-32% * 0.8);
        bottom: auto;
        left: auto;
        width: calc(min(30vw, 400px) * 2);
    }

    .web-tile--chiasso {
        top: auto;
        right: auto;
        left: calc(-8% * 0.8);
        bottom: 4%;
        width: calc(min(15vw, 190px) * 2);
    }

    .web-tile--shop {
        top: auto;
        left: auto;
        right: calc(-24% * 0.8);
        bottom: 5%;
        width: calc(min(32vw, 420px) * 2);
    }
}
