:root {
    --red: #d12023;
    --ink: #2b2a29;
    --navy: #0e182c;
    --paper: #f4f7f6;
    --white: #ffffff;
    --line: #e1e6ea;
    --header-h: 4.75rem;
    --rail: 4.75rem;
    --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    overflow-x: clip;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--navy);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 50;
    background: var(--white);
    color: var(--navy);
    padding: 0.6rem 1rem;
}

.skip:focus {
    top: 0.75rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
}

.header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 0.4rem 1.25rem;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 58px;
    width: auto;
    display: block;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-left: auto;
}

.site-nav a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a.is-current {
    color: var(--red);
    box-shadow: inset 0 -2px 0 var(--red);
}

.lang-switch {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 2px;
    flex: 0 0 auto;
}

.lang-switch a {
    display: grid;
    place-items: center;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    min-width: 2.6rem;
    min-height: 2rem;
    border-radius: 999px;
}

.lang-switch a:hover {
    color: var(--red);
}

.lang-switch a[aria-current="true"] {
    background: var(--navy);
    color: var(--white);
}

.nav-toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    padding: 0;
    cursor: pointer;
}

.nav-toggle .bars,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: var(--navy);
    position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle .bars::before {
    top: -6px;
}

.nav-toggle .bars::after {
    top: 6px;
}

.chapter-rail {
    position: fixed;
    z-index: 25;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: var(--navy);
    padding: 0.45rem;
    border-radius: 999px;
}

.chapter-rail a {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.chapter-rail a:focus-visible {
    outline-color: var(--white);
}

.chapter-rail a.is-current {
    background: var(--red);
}

.chapter-rail {
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.chapter-rail.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.hero {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: grid;
    align-items: center;
    color: var(--white);
    background: var(--navy);
    overflow: hidden;
}

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

.hero-media,
.hero-scrim {
    position: absolute;
    inset: 0;
}

.hero-media {
    overflow: hidden;
}

.hero-media img,
.frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-scrim {
    background: linear-gradient(90deg, rgba(14, 24, 44, 0.5) 0%, rgba(14, 24, 44, 0.12) 46%, rgba(14, 24, 44, 0) 70%);
}

.hero-copy,
.hero-caption {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 40rem;
    margin-left: var(--rail);
    padding: 1.5rem 1.45rem 1.35rem;
    background: rgba(14, 24, 44, 0.92);
    border-radius: 1.15rem;
}

.hero h1 {
    margin: 0;
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.hero h1 {
    font-size: clamp(2.3rem, 6vw, 5.2rem);
    max-width: none;
}

.lead,
.service-card p,
.about-text p,
.clients-intro,
.contact p {
    font-size: 1.0625rem;
    line-height: 1.65;
}

.hero .lead {
    max-width: 38rem;
    color: #f4f7f6;
    font-size: 1.125rem;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.button-solid {
    background: var(--white);
    color: var(--navy);
}

.button-solid:hover {
    background: var(--paper);
}
.button-primary {
    margin-top: 0.5rem;
    background: var(--red);
    color: var(--white);
}

.button-primary:hover {
    background: #a8191c;
}

.contact .button-solid {
    margin: 0.25rem 0 2rem;
    color: var(--navy);
    text-decoration: none;
}

.contact-intro {
    max-width: 38rem;
    font-size: 1.15rem;
}

.hero-copy .text-link,
.contact a,
.footer-links a {
    color: var(--white);
}

.hero-copy .text-link {
    display: inline-block;
    margin-top: 1.15rem;
    text-underline-offset: 0.18em;
}

.hero-caption,
.frame figcaption {
    margin: 0;
    background: var(--navy);
    color: #f4f7f6;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
}

.hero-caption {
    position: absolute;
    z-index: 1;
    left: var(--rail);
    bottom: 1rem;
}

.story {
    position: relative;
    min-height: calc(100svh - var(--header-h));
    display: grid;
    align-items: center;
    color: #ffffff;
    background: var(--navy);
    overflow: hidden;
}

.story-media,
.story-scrim {
    position: absolute;
    inset: 0;
}

.story-media {
    overflow: hidden;
}

.story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.story-scrim {
    background: linear-gradient(90deg, rgba(14, 24, 44, 0.42) 0%, rgba(14, 24, 44, 0.08) 46%, rgba(14, 24, 44, 0) 70%);
}

.story-copy,
.story-caption {
    position: relative;
    z-index: 1;
}

.story-copy {
    max-width: 38rem;
    margin-left: var(--rail);
    padding: 1.5rem 1.45rem 1.3rem;
    background: rgba(14, 24, 44, 0.92);
    border-radius: 1.15rem;
}

.story-copy h2 {
    margin: 0 0 1rem;
    max-width: 16ch;
    color: #ffffff;
    font-size: clamp(2.1rem, 4.6vw, 4.2rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.story-copy p,
.story-copy .beat {
    max-width: 38rem;
    color: #f4f7f6;
}

.story-caption {
    position: absolute;
    left: var(--rail);
    bottom: 1rem;
    margin: 0;
    background: var(--navy);
    color: #f4f7f6;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.7rem;
}

html.is-film .film {
    height: calc(var(--film-steps) * (100svh - var(--header-h)));
}

html.is-film .film-pin {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    overflow: hidden;
}

html.is-film .film-frame {
    position: absolute;
    inset: 0;
    height: 100%;
    min-height: 0;
    opacity: 0;
}

html.is-film .film-frame:first-child {
    opacity: 1;
}

html.is-film .hero,
html.is-film .story {
    background: transparent;
}

html.is-film .hero-media img,
html.is-film .story-media img,
html.is-film .hero-line {
    animation: none;
    transform: none;
}

.film-facts {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 1.1fr);
    gap: 2rem;
    align-items: center;
    min-height: calc(100svh - var(--header-h));
    padding: 2rem 1.5rem 2rem var(--rail);
    background: var(--navy);
    color: #f4f7f6;
}

.film-facts .stat-list {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1.2rem;
}

.film-facts .region-map {
    width: 100%;
    max-height: 68vh;
    object-fit: contain;
    background: var(--white);
}

.film-service .story-copy h2 {
    max-width: 22ch;
}

.kicker {
    margin: 0 0 0.9rem;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    display: inline-block;
    width: 1.4rem;
    height: 2px;
    margin-right: 0.7rem;
    background: var(--red);
    vertical-align: middle;
}
.beat {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 650;
    line-height: 1.3;
}

.frame {
    position: relative;
    margin: 0;
    min-height: 52vh;
    overflow: hidden;
    background: var(--navy);
}

.frame figcaption {
    position: absolute;
    left: 0;
    bottom: 0;
}
.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin-inline: auto;
}
.service-card {
    margin: 0;
    padding: 1.25rem 1.2rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
}

.service-card::before {
    counter-increment: service;
    content: counter(service, decimal-leading-zero);
    display: block;
    margin-bottom: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--red);
}

.service-card h3 {
    margin: 0 0 0.55rem;
    font-size: 1.15rem;
    line-height: 1.3;
}

.service-card p {
    margin: 0;
}
.stat-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stat-value {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--white);
}

.stat-list p {
    margin: 0.4rem 0 0;
}
.region-map {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 12px;
    background: var(--white);
}

.about,
.clients {
    padding: 4.5rem 0;
}

.about {
    background: var(--white);
}

.about h2,
.clients h2,
.contact h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.film-break {
    display: grid;
    place-items: center;
    min-height: calc(100svh - var(--header-h));
    padding: 2rem 1.5rem;
    background: #f4f7f6;
    color: #0e182c;
    text-align: center;
}

.film-break-inner {
    width: min(36rem, 100%);
}

.film-break h2 {
    margin: 0 auto;
    max-width: 9ch;
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 0.95;
    color: #0e182c;
}

.film-break p {
    margin: 1rem auto 0;
    max-width: 28rem;
    font-size: 1.2rem;
    color: #2b2a29;
}

.about {
    padding: 6.5rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 2rem 3rem;
    align-items: center;
}
.portrait {
    width: min(420px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.portrait-name {
    margin: 1rem 0 0;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.clients {
    background: var(--paper);
}

.clients-intro {
    max-width: 42rem;
    margin-top: 0;
}

.client-logos-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.client-logos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.client-logos a,
.client-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    padding: 0.8rem 1rem;
    background: var(--white);
    border: 1px solid var(--line);
    text-decoration: none;
}

.client-logos a:hover,
.client-tile:hover {
    border-color: var(--navy);
}

.client-logos img {
    max-width: 100%;
    max-height: 48px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Square marks carry their lettering inside a block, so they need more height to read at the same size. */
.client-logos img.logo-square {
    max-height: 68px;
}

.contact {
    background: var(--navy);
    color: #f4f7f6;
    padding: 4.5rem 0;
}

.contact a {
    text-underline-offset: 0.15em;
}

.contact a:hover {
    text-decoration-thickness: 2px;
}

.contact :focus-visible,
.hero :focus-visible,
.story :focus-visible {
    outline-color: var(--white);
}

.site-footer {
    display: flow-root;
    background: var(--navy);
    color: #d5dbe6;
    padding: 0 0 2.5rem;
    text-align: center;
}

.footer-note {
    margin: 0 auto 1rem;
    max-width: 40rem;
    padding: 0 1rem;
    font-size: 0.85rem;
    color: #d5dbe6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

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

[id] {
    scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

#gebaeude {
    scroll-margin-top: 0;
}

.marquee {
    overflow: hidden;
    background: var(--navy);
    color: #f4f7f6;
    padding: 0.9rem 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 32s linear infinite;
}

.marquee-group {
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding-right: 2.4rem;
}

.marquee-group p {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-group p::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.7rem;
    border-radius: 50%;
    background: var(--red);
    vertical-align: 0.05em;
}
@supports (animation-timeline: scroll()) {
    @media (prefers-reduced-motion: no-preference) {
        .site-header::after {
            animation: reading-progress linear both;
            animation-timeline: scroll(root);
        }
    }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .hero {
            view-timeline-name: --hero;
            view-timeline-axis: block;
        }
        .hero-media img,
        .story-media img {
            animation: hero-zoom linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }

        .reveal {
            animation: rise both;
            animation-timeline: view();
            animation-range: entry 0% cover 32%;
        }

        .beat {
            animation: beat-in both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
        .frame {
            animation: frame-open linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 42%;
        }

        .frame img {
            animation: drift linear both;
            animation-timeline: view();
            animation-range: cover 0% cover 100%;
        }

        .service-card {
            animation: from-left both;
            animation-timeline: view();
            animation-range: entry 0% cover 34%;
        }

        .service-card:nth-child(even) {
            animation-name: from-right;
        }

        .stat-value {
            animation: stat-pop both;
            animation-timeline: view();
            animation-range: entry 0% cover 28%;
        }
    }
}

@keyframes reading-progress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes drift {
    from { transform: scale(1.16) translate3d(0, -4%, 0); }
    to { transform: scale(1.02) translate3d(0, 3%, 0); }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes line-rise {
    to { transform: translate3d(-3vw, -12vh, 0); }
}

@keyframes line-drift {
    to { transform: translate3d(7vw, -6vh, 0); }
}

@keyframes hero-zoom {
    to { transform: scale(1.18); }
}

@keyframes beat-in {
    from {
        opacity: 0;
        transform: translate3d(2rem, 0.6rem, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes frame-open {
    from { clip-path: inset(10% 8% 10% 8% round 1.25rem); }
    to { clip-path: inset(0 round 0); }
}

@keyframes from-left {
    from {
        opacity: 0;
        transform: translate3d(-2.5rem, 1rem, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes from-right {
    from {
        opacity: 0;
        transform: translate3d(2.5rem, 1rem, 0);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes stat-pop {
    from {
        opacity: 0;
        transform: translateY(1.4rem) scale(0.92);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes apart-left {
    to { transform: translate3d(-16vw, 0, 0); }
}

@keyframes apart-right {
    to { transform: translate3d(14vw, 0, 0); }
}

@keyframes fade-down {
    to {
        opacity: 0.2;
        transform: translateY(1.25rem);
    }
}

@media (min-width: 1001px) {
    .header-bar {
        padding-left: var(--rail);
    }

    .wrap {
        width: min(1120px, calc(100% - 7rem));
        margin-left: var(--rail);
        margin-right: auto;
    }
    .service-card {
        display: grid;
        grid-template-columns: 4.5rem minmax(0, 1fr);
        column-gap: 1.25rem;
        align-items: start;
        border-left: 0;
        border-bottom: 1px solid var(--line);
        background: transparent;
        padding: 1.5rem 0.25rem;
    }

    .service-card::before {
        grid-column: 1;
        grid-row: 1 / span 2;
        margin: 0.35rem 0 0;
        font-size: 1.15rem;
    }

    .service-card h3,
    .service-card p {
        grid-column: 2;
    }

    .service-card h3 {
        font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    }
}

@media (max-width: 1000px) {
    .service-card,
    .service-card:nth-child(even) {
        animation-name: rise;
    }

    .lang-switch {
        margin-left: auto;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0.5rem;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 0.4rem 0 0.8rem;
    }

    .site-nav.is-open {
        display: flex;
        max-height: calc(100svh - var(--header-h));
        overflow: auto;
    }

    .site-nav a {
        padding: 0.85rem 1.25rem;
        min-height: 44px;
    }

    .chapter-rail {
        display: none;
    }

    .hero-copy,
    .story-copy {
        margin-left: 1rem;
        margin-right: 1rem;
        margin-bottom: 3.25rem;
        padding: 1.2rem 1.1rem 1.05rem;
    }

    .hero-caption,
    .story-caption {
        left: 1rem;
    }
    .about-grid,
    .stat-list,
    .client-logos {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 800px) {
    .film-facts {
        grid-template-columns: 1fr;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 700px) {
    .logo img {
        height: 46px;
    }

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

    .client-logos {
        gap: 0.75rem;
    }

    .client-logos a,
    .client-tile {
        min-height: 76px;
        padding: 0.6rem 0.75rem;
    }

    .client-logos img {
        max-height: 40px;
    }

    .client-logos img.logo-square {
        max-height: 56px;
    }

    .hero h1 {
        max-width: none;
    }

    .hero,
    .story {
        align-items: end;
    }
}

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

    .reveal,
    .beat,
    .hero-line,
    .hero-media img,
    .story-media img,
    .frame,
    .frame img,
    .service-card,
    .stat-value,
    html.js-motion .reveal,
    html.js-motion .beat,
    html.js-motion .service-card {
        animation: none;
        opacity: 1;
        transform: none;
        clip-path: none;
        transition: none;
    }

    .site-header::after {
        animation: none;
        transform: scaleX(0);
    }

    .marquee-track {
        animation: none;
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .marquee-group + .marquee-group {
        display: none;
    }
}

html.js-motion .reveal,
html.js-motion .beat,
html.js-motion .service-card {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

html.js-motion .is-in {
    opacity: 1;
    transform: none;
}
