/* Lazydogs Custom Styles */

@font-face {
    font-family: "Nix fuer Preissn Hero";
    src: url("../assets/fonts/Custom/NixFuerPreissn_Webfonts_CS/NixfuerPreissn-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Kathrein Sans Condensed Hero";
    src: url("../assets/fonts/Custom/Kathrein_Webfonts_CS/Kathrein-47LightCondensed.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Klett Grundschrift Hero";
    src: url("../assets/fonts/Custom/Klett_Webfont_CS/KlettGrundschrift02-Regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "LD Grotesk Bold Wide Hero";
    src: url("../files/preview_fonts/17/LDGrotesk_SC-BoldWideOblique.woff2") format("woff2"),
         url("../files/preview_fonts/17/LDGrotesk_SC-BoldWideOblique.woff") format("woff");
    font-style: italic;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LD Grotesk Bold Custom";
    src: url("../assets/fonts/ldgrotesk_web/LDGrotesk-BoldWeb.woff2") format("woff2"),
         url("../assets/fonts/ldgrotesk_web/LDGrotesk-BoldWeb.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "LD Grotesk Regular Custom";
    src: url("../assets/fonts/ldgrotesk_web/LDGrotesk-RegularWeb.woff2") format("woff2"),
         url("../assets/fonts/ldgrotesk_web/LDGrotesk-RegularWeb.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

.rotating-logo-type {
    white-space: nowrap;
}

.rotating-logo-type.is-loading {
    opacity: 0;
}

/* Homepage hero */
.home-hero {
    position: relative;
    overflow: hidden;
    background: #1f1f1f;
    color: #ffbd00;
}

.home-hero--custom {
    background-image: none;
}

.home-hero--custom .home-hero__inner {
    box-sizing: border-box;
    min-height: clamp(520px, 62svh, 680px);
    padding-top: clamp(48px, 6vw, 78px);
    padding-bottom: clamp(52px, 6vw, 82px);
}

.home-hero--custom {
    min-height: clamp(520px, 62svh, 680px);
}

/* Custom page trial: match the large type to "The Lazydogs Home". */
.home-hero--custom .home-hero__title {
    height: 1.68em;
    margin-top: clamp(56px, 4vw, 76px);
    margin-bottom: clamp(24px, 3vw, 42px);
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-size: clamp(38px, 6vw, 88px);
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
    font-synthesis: none;
}

.home-hero--custom .home-hero__title > span {
    font-size: calc(clamp(38px, 6vw, 88px) * var(--hero-optical-scale, 1));
    line-height: 0.84;
}

.home-hero--custom .home-hero__prefix {
    top: calc(50% - 0.42em);
}

.home-hero--custom .home-hero__title > [data-kinetic-line] {
    top: calc(50% + 0.42em);
}

.home-hero__custom-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hero__inner {
    position: relative;
    padding: clamp(28px, 4vw, 54px) 0 clamp(32px, 4vw, 58px);
    display: flex;
    flex-direction: column;
}

.home-hero__eyebrow {
    margin: 0;
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero__title {
    position: relative;
    width: 100%;
    height: 1.68em;
    margin: clamp(28px, 4vw, 52px) 0 clamp(24px, 3vw, 42px);
    color: inherit;
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-size: clamp(38px, 6vw, 88px);
    font-style: normal;
    font-weight: 700;
    line-height: 0.84;
    letter-spacing: normal;
    word-spacing: normal;
    text-align: left;
    text-transform: uppercase;
}

.home-hero__title > span {
    position: absolute;
    left: 0;
    display: block;
    width: max-content;
    padding-right: 0.18em;
    font-size: calc(clamp(38px, 6vw, 88px) * var(--hero-optical-scale, 1));
    line-height: 0.84;
    white-space: nowrap;
    opacity: 0;
    transform-origin: left center;
    will-change: transform, opacity;
}

.home-hero__prefix {
    top: calc(50% - 0.42em);
    color: #fff;
}

.home-hero__title > [data-kinetic-line] {
    top: calc(50% + 0.42em);
}

.home-hero--custom .home-hero__title > .home-hero__word--kathrein {
    --hero-optical-scale: 1;
    top: calc(50% + 0.441em + 10px);
    font-family: "Kathrein Sans Condensed Hero", Arial, sans-serif;
    font-weight: 300;
}

.home-hero__title > .home-hero__word--klett {
    --hero-optical-scale: 1.116;
    font-family: "Klett Grundschrift Hero", Arial, sans-serif;
    font-weight: 400;
}

.home-hero--custom .home-hero__title > .home-hero__word--nix {
    --hero-optical-scale: 1.488;
    top: calc(50% + 0.222em - 2px);
    font-family: "Nix fuer Preissn Hero", Arial, sans-serif;
    font-weight: 400;
}

.home-hero__word--nix .home-hero__character--space {
    width: 0.0625em;
}

.home-hero__character {
    display: inline-block;
    transform-origin: center bottom;
    will-change: opacity, transform;
}

.home-hero__title > [data-kinetic-line] {
    perspective: 600px;
}

.home-hero__footer {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 44px);
}

.home-hero__intro {
    grid-column: 1 / 3;
    width: 100%;
    max-width: none;
    margin: 0;
    color: #fff;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

.home-hero__cta {
    display: inline-flex;
    gap: 0.55em;
    margin-top: 14px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    grid-column: 1 / 3;
    justify-self: start;
}

.home-hero__cta:hover,
.home-hero__cta:focus {
    color: #ffbd00;
    text-decoration: none;
}

.home-hero.is-kinetic-ready .home-hero__eyebrow,
.home-hero.is-kinetic-ready .home-hero__title span,
.home-hero.is-kinetic-ready .home-hero__footer {
    opacity: 0;
}

.home-hero.is-kinetic-active .home-hero__eyebrow {
    animation: hero-detail-in 500ms ease-out 80ms both;
}

.home-hero.is-kinetic-active .home-hero__footer {
    animation: hero-detail-in 600ms ease-out 720ms both;
}

@keyframes hero-detail-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Reuse the Hero intro motion for every Custom Type section teaser. */
.custom-starting-point__copy,
.custom-choices__intro,
.custom-contact__copy,
.custom-studio__copy,
.custom-clients__intro,
.custom-brochure__copy {
    opacity: 0;
}

.uk-scrollspy-inview .custom-starting-point__copy,
.uk-scrollspy-inview .custom-choices__intro,
.uk-scrollspy-inview .custom-contact__copy,
.uk-scrollspy-inview .custom-studio__copy,
.uk-scrollspy-inview .custom-clients__intro,
.uk-scrollspy-inview .custom-brochure__copy {
    animation: hero-detail-in 600ms ease-out 720ms both;
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__eyebrow,
    .home-hero__footer,
    .custom-starting-point__copy,
    .custom-choices__intro,
    .custom-contact__copy,
    .custom-studio__copy,
    .custom-clients__intro,
    .custom-brochure__copy {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .home-hero__prefix,
    .home-hero__title > span:last-child {
        opacity: 1 !important;
        transform: translate3d(0, -50%, 0) rotate(0deg) !important;
    }
}

@media (min-width: 640px) and (max-width: 1439px) {
    .home-hero--custom .home-hero__title {
        font-size: clamp(52px, 7vw, 88px);
    }

    .home-hero--custom .home-hero__title > span {
        font-size: calc(clamp(52px, 7vw, 88px) * var(--hero-optical-scale, 1));
    }
}

@media (max-width: 639px) {
    .home-hero__title,
    .home-hero__title > span {
        font-size: clamp(44px, 11.5vw, 76px);
    }

    .home-hero__title > [data-kinetic-line] {
        font-size: calc(clamp(44px, 11.5vw, 76px) * var(--hero-optical-scale, 1));
    }

    .home-hero__footer {
        grid-template-columns: 1fr;
    }

    .home-hero__intro,
    .home-hero__cta {
        grid-column: 1;
    }
}

@media (max-width: 959px) {
    .home-hero--custom .home-hero__inner {
        padding-bottom: clamp(80px, 12vw, 116px);
    }

    .home-hero--custom .home-hero__title {
        margin-top: clamp(48px, 7vw, 68px);
        margin-bottom: clamp(40px, 6vw, 56px);
    }
}

@media (max-width: 639px) {
    .home-hero--custom,
    .home-hero--custom .home-hero__inner {
        min-height: 560px;
    }

    .home-hero--custom .home-hero__inner {
        padding-bottom: clamp(28px, 7vw, 44px);
    }
}

.home-hero--home,
.home-hero--home .home-hero__inner {
    min-height: 0;
}

/* The homepage hero copy stays left-aligned at every viewport width. */
.home-hero--home,
.home-hero--home .home-hero__eyebrow,
.home-hero--home .home-hero__title,
.home-hero--home .home-hero__footer,
.home-hero--home .home-hero__intro,
.home-hero--home .home-hero__cta {
    text-align: left;
}

/* The page is inverted globally in dark mode. Keep the hero visually dark. */
html.dark-mode .home-hero {
    filter: invert(100%);
}

/* Keep the footer contact details aligned like the other navigation column. */
.footer__contact {
    white-space: nowrap;
}

@media (max-width: 639px) {
    .footer__contact {
        white-space: normal;
    }
}

/* Custom Type: introductory content block */
@font-face {
    font-family: "LD Tyrolit Sans Klassik";
    src: url("../assets/fonts/Custom/Tyrolit_WebfontsCS/LDTyrolitSansKlassikVF.ttf") format("truetype");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "LD Tyrolit Sans Grotesque";
    src: url("../assets/fonts/Custom/Tyrolit_WebfontsCS/LDTyrolitSansGrotesqueVF.ttf") format("truetype");
    font-weight: 100 1000;
    font-display: swap;
}

@font-face {
    font-family: "LD Tyrolit Sans Fancy";
    src: url("../assets/fonts/Custom/Tyrolit_WebfontsCS/LDTyrolitSansFancyVF.ttf") format("truetype");
    font-weight: 100 1000;
    font-display: swap;
}

.custom-starting-point {
    background: #ffbd00;
    color: #1f1f1f;
}

#custom-contact {
    scroll-margin-top: 24px;
}

.custom-starting-point__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: clamp(44px, 6vw, 104px);
    align-items: start;
    padding: clamp(48px, 7vw, 96px) 0;
}

.custom-starting-point,
#cases.custom-choices {
    height: auto;
}

.custom-intro-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #1f1f1f;
}

.custom-intro-pair .custom-starting-point,
.custom-intro-pair #cases.custom-choices {
    background: transparent;
}

.custom-intro-pair .uk-container {
    box-sizing: border-box;
    width: 100%;
}

.custom-intro-pair .custom-starting-point__inner,
.custom-intro-pair .custom-choices__inner {
    grid-template-columns: minmax(0, 1fr);
}

.custom-intro-pair .custom-starting-point__content,
.custom-intro-pair .custom-choices__title,
.custom-intro-pair .custom-choices__intro {
    grid-column: 1 !important;
}

.custom-intro-pair .custom-starting-point__title,
.custom-intro-pair .custom-choices__title {
    margin: 0 0 20px;
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-size: clamp(24px, 2.6vw, 42px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    text-transform: uppercase;
    transform: none;
    color: #fff;
}

.custom-intro-pair .custom-starting-point__copy,
.custom-intro-pair .custom-choices__intro {
    font-size: clamp(20px, 2.1vw, 34px);
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
    color: #ffbd00;
}

.custom-starting-point__inner,
#cases.custom-choices .custom-choices__inner {
    box-sizing: border-box;
    height: auto;
    align-content: center;
    padding-top: clamp(36px, 4vw, 56px);
    padding-bottom: clamp(36px, 4vw, 56px);
}

.custom-starting-point__path {
    --starting-glyph-size: clamp(224px, 24vw, 376px);
    --starting-weight: 100;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: clamp(12px, 1.7vw, 28px);
    align-items: start;
}

.custom-starting-point__stage {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.custom-starting-point__stage:first-of-type {
    align-items: flex-start;
}

.custom-starting-point__stage:last-of-type {
    align-items: flex-end;
}

.custom-starting-point__glyph {
    display: block;
    height: 0.82em;
    color: #1f1f1f;
    font-size: var(--starting-glyph-size);
    font-variation-settings: "wght" var(--starting-weight);
    font-weight: var(--starting-weight);
    line-height: 0.72;
    will-change: font-variation-settings;
}

.custom-starting-point__glyph--klassik {
    font-family: "LD Tyrolit Sans Klassik", sans-serif;
}

.custom-starting-point__glyph--grotesque {
    font-family: "LD Tyrolit Sans Grotesque", sans-serif;
}

.custom-starting-point__glyph--fancy {
    font-family: "LD Tyrolit Sans Fancy", sans-serif;
}

.custom-starting-point__arrow {
    display: flex;
    height: calc(var(--starting-glyph-size) * 0.82);
    align-items: center;
    align-self: start;
    margin: 0;
    color: rgba(31, 31, 31, 0.72);
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1;
}

.custom-starting-point__content {
    grid-column: 2;
    min-width: 0;
}

.custom-starting-point__title {
    margin: 0 0 clamp(24px, 3vw, 42px);
    color: #1f1f1f;
    font-family: "LD Grotesk Bold Wide Hero", "Arial Black", sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.84;
    text-transform: uppercase;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.custom-starting-point__copy {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #1f1f1f;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.25;
}

@media (max-width: 959px) {
    .custom-starting-point__inner {
        grid-template-columns: 1fr;
    }

    .custom-starting-point__content {
        grid-column: 1;
    }

    .custom-starting-point__path {
        --starting-glyph-size: clamp(160px, 34vw, 300px);
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 639px) {
    .custom-intro-pair {
        grid-template-columns: minmax(0, 1fr);
        background: #1f1f1f;
    }

    .custom-intro-pair .custom-starting-point__title,
    .custom-intro-pair .custom-choices__title {
        font-size: clamp(30px, 9vw, 42px);
    }

    .custom-starting-point,
    #cases.custom-choices {
        height: auto;
        min-height: 0;
    }

    .custom-starting-point__inner,
    #cases.custom-choices .custom-choices__inner {
        height: auto;
        min-height: 0;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .custom-starting-point__inner {
        grid-template-columns: 1fr;
    }

    .custom-starting-point__content {
        grid-column: 1;
    }

    .custom-starting-point__path {
        --starting-glyph-size: clamp(140px, 42vw, 220px);
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
        gap: clamp(5px, 2vw, 12px);
    }

    .custom-starting-point__arrow {
        font-size: clamp(18px, 5vw, 24px);
    }

}

@media (prefers-reduced-motion: reduce) {
    .custom-starting-point__path {
        --starting-weight: 600 !important;
    }
}

/* Compensate for the page-wide dark-mode inversion. */
html.dark-mode .custom-starting-point {
    filter: invert(100%);
}

html.dark-mode .custom-intro-pair {
    filter: invert(100%);
}

html.dark-mode .custom-intro-pair .custom-starting-point,
html.dark-mode .custom-intro-pair #cases.custom-choices {
    filter: none;
}

/* Custom Type: choices and scope */
.custom-choices {
    background: #1f1f1f;
    color: #ffbd00;
}

.custom-choices__inner {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 44px);
    padding: clamp(48px, 7vw, 96px) 0;
}

.custom-choices__title,
.custom-choices__intro {
    grid-column: span 2;
}

.custom-choices:not(.custom-process) .custom-choices__title {
    grid-column: 1 / 3;
    width: 100%;
}

.custom-choices:not(.custom-process) .custom-choices__intro {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100%;
}

.custom-process .custom-choices__title {
    grid-column: 1 / 3;
}

.custom-process .custom-choices__intro {
    grid-column: 1 / 3;
    grid-row: 2;
}

.custom-choices__title {
    margin: 0 0 clamp(24px, 3vw, 42px);
    color: #fff;
    font-family: "LD Grotesk Bold Wide Hero", "Arial Black", sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.84;
    text-transform: uppercase;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.custom-choices__intro {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #ffbd00;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

.custom-choices__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 44px);
    margin-top: clamp(48px, 7vw, 96px);
    grid-column: 1 / -1;
}

.custom-choice {
    border-top: 1px solid #ffbd00;
    padding-top: 18px;
}

.custom-choice__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.05;
}

.custom-choice__copy,
.custom-choice__example {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
}

.custom-choice__copy {
    color: #ffbd00;
}

.custom-choice__example {
    margin-top: 18px;
    color: #fff;
}

@media (max-width: 959px) {
    .custom-choices__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .custom-choices__inner {
        grid-template-columns: 1fr;
    }

    .custom-choices__title,
    .custom-choices__intro {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    .custom-choices__grid {
        grid-template-columns: 1fr;
    }
}

html.dark-mode .custom-choices {
    filter: invert(100%);
}

/* Custom Type: selected project image sequence */
.custom-cases {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: #1f1f1f;
}

html.dark-mode .custom-cases {
    background: #e0e0e0;
}

.custom-case--dark {
    background: #1f1f1f;
    color: #ffbd00;
}

.custom-case--yellow {
    background: #ffbd00;
    color: #1f1f1f;
}

.custom-case {
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.custom-case__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: clamp(500px, 42vw, 720px);
    padding: 0;
}

.custom-case__inner::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(31, 31, 31, 0.94) 0%, rgba(31, 31, 31, 0.64) 48%, rgba(31, 31, 31, 0.08) 100%);
    content: "";
    pointer-events: none;
}

.custom-case--reverse .custom-case__inner::after {
    background: linear-gradient(0deg, rgba(31, 31, 31, 0.94) 0%, rgba(31, 31, 31, 0.64) 48%, rgba(31, 31, 31, 0.08) 100%);
}

.custom-case__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.custom-case__crossfade {
    position: absolute;
    inset: 0;
}

.custom-case__crossfade img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.custom-case__crossfade--campaign img {
    animation: custom-campaign-crossfade 25s linear infinite;
}

.custom-case__crossfade--campaign img:nth-child(1) { animation-delay: -1s; }
.custom-case__crossfade--campaign img:nth-child(2) { animation-delay: 4s; }
.custom-case__crossfade--campaign img:nth-child(3) { animation-delay: 9s; }
.custom-case__crossfade--campaign img:nth-child(4) { animation-delay: 14s; }
.custom-case__crossfade--campaign img:nth-child(5) { animation-delay: 19s; }

.custom-case__crossfade--tool img {
    animation: custom-tool-crossfade 10s linear infinite;
}

.custom-case__crossfade--tool img:nth-child(1) { animation-delay: -1s; }
.custom-case__crossfade--tool img:nth-child(2) { animation-delay: 4s; }

.custom-case__crossfade--system img {
    animation: custom-system-crossfade 15s linear infinite;
}

.custom-case__crossfade--system img:nth-child(1) { animation-delay: -1s; }
.custom-case__crossfade--system img:nth-child(2) { animation-delay: 4s; }
.custom-case__crossfade--system img:nth-child(3) { animation-delay: 9s; }

@keyframes custom-campaign-crossfade {
    0% { opacity: 0; }
    4%, 18% { opacity: 1; }
    22%, 100% { opacity: 0; }
}

@keyframes custom-tool-crossfade {
    0% { opacity: 0; }
    10%, 45% { opacity: 1; }
    55%, 100% { opacity: 0; }
}

@keyframes custom-system-crossfade {
    0% { opacity: 0; }
    6.667%, 26.667% { opacity: 1; }
    33.333%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .custom-case__crossfade img {
        animation: none;
    }

    .custom-case__crossfade img:first-child {
        opacity: 1;
    }
}

.custom-case__content {
    position: relative;
    z-index: 2;
    grid-column: 1;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: clamp(20px, 2.5vw, 40px);
    padding: clamp(24px, 2.5vw, 44px) 40px;
    padding-bottom: clamp(52px, 5vw, 84px);
}

.custom-case__content > * {
    grid-column: 1;
}

.custom-case--reverse .custom-case__content {
    grid-column: 1;
}

@media (max-width: 959px) {
    .custom-case__content {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-right: 30px;
        padding-left: 30px;
    }
}

.custom-case__title {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(22px, 2vw, 32px);
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.custom-case__copy {
    margin: 0;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.2;
}

.custom-case__client {
    margin: clamp(28px, 4vw, 56px) 0 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.custom-case--yellow .custom-case__copy,
.custom-case--yellow .custom-case__client {
    color: #fff;
}

.custom-case--yellow .custom-case__copy {
    color: #ffbd00;
}

@media (max-width: 639px) {
    .custom-cases {
        grid-template-columns: 1fr;
    }

    .custom-case__inner {
        grid-template-columns: 1fr;
        min-height: clamp(460px, 78svh, 620px);
    }

    .custom-case__inner::after,
    .custom-case--reverse .custom-case__inner::after {
        background: linear-gradient(0deg, rgba(31, 31, 31, 0.94) 0%, rgba(31, 31, 31, 0.58) 42%, rgba(31, 31, 31, 0) 72%);
    }

    .custom-case__content,
    .custom-case--reverse .custom-case__content {
        grid-column: 1;
        padding: 32px 15px;
        padding-bottom: 52px;
    }
}

html.dark-mode .custom-case {
    filter: invert(100%);
}

html.dark-mode .custom-case img {
    filter: none;
}

/* Custom Type: image-led Your Choices sequence. */
.custom-choices-showcase,
.custom-choices-showcase__slides,
.custom-choices-showcase__slide {
    position: relative;
    min-height: clamp(640px, 100svh, 980px);
}

.custom-choices-showcase {
    overflow: hidden;
    background: #1f1f1f;
    color: #fff;
}

.custom-choices-showcase__slides,
.custom-choices-showcase__slide {
    position: absolute;
    inset: 0;
}

.custom-choices-showcase__slide {
    opacity: 0;
    transition: opacity 850ms ease;
    pointer-events: none;
}

.custom-choices-showcase__slide.is-active {
    opacity: 1;
}

.custom-choices-showcase__slide::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.16) 100%);
    content: "";
}

.custom-choices-showcase__slide > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.custom-choices-showcase__shade {
    display: none;
}

.custom-choices-showcase__header,
.custom-choices-showcase__detail-wrap {
    position: absolute;
    inset: 0;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    pointer-events: none;
}

.custom-choices-showcase__header {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: clamp(48px, 7vw, 96px);
}

.custom-choices-showcase__header .custom-choices__title {
    margin-bottom: clamp(24px, 3vw, 42px);
    color: #fff;
}

.custom-choices-showcase__header .custom-choices__intro {
    width: calc(50% - clamp(12px, 1.5vw, 22px));
    color: #ffbd00;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

.custom-choices-showcase__detail-wrap {
    display: flex;
    align-items: flex-start;
    padding-top: clamp(48px, 7vw, 96px);
}

.custom-choices-showcase__detail {
    min-width: 0;
    width: min(calc(50% - clamp(12px, 1.5vw, 22px)), 560px);
    max-width: 100%;
    margin-left: auto;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 500ms ease 180ms, transform 500ms ease 180ms;
}

.custom-choices-showcase__slide.is-active .custom-choices-showcase__detail {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.custom-choices-showcase__detail-title {
    margin: 0 0 16px;
    color: #fff;
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-size: clamp(28px, 3.2vw, 52px);
    font-style: normal;
    font-weight: 700;
    font-synthesis: none;
    line-height: 1;
    text-transform: uppercase;
}

.custom-choices-showcase__detail-copy {
    margin: 0;
    color: #ffbd00;
    font-size: clamp(17px, 1.5vw, 24px);
    line-height: 1.25;
    overflow-wrap: break-word;
}

.custom-choices-showcase__client {
    margin: clamp(24px, 3vw, 42px) 0 0;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

@media (max-width: 639px) {
    .custom-choices-showcase,
    .custom-choices-showcase__slides,
    .custom-choices-showcase__slide {
        min-height: 100svh;
    }

    .custom-choices-showcase__slide::after {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0.28) 100%);
    }

    .custom-choices-showcase__header .custom-choices__intro,
    .custom-choices-showcase__detail {
        width: 100%;
    }

    .custom-choices-showcase__detail-wrap {
        padding-top: 24px;
    }

    .custom-choices-showcase__detail {
        margin-left: 0;
    }

    .custom-choices-showcase__detail-title {
        margin-bottom: 10px;
        font-size: clamp(22px, 6vw, 28px);
    }

    .custom-choices-showcase__detail-copy {
        font-size: clamp(14px, 3.5vw, 17px);
        line-height: 1.18;
    }

    .custom-choices-showcase__client {
        margin-top: 14px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-choices-showcase__slide,
    .custom-choices-showcase__detail {
        transition: none;
    }
}

html.dark-mode .custom-choices-showcase {
    filter: invert(100%);
}

html.dark-mode .custom-choices-showcase img {
    filter: none;
}

/* Custom Type: compact four-step process timeline. */
.custom-process {
    background: #1f1f1f;
    color: #fff;
}

.custom-process .custom-choices__title {
    color: #fff;
}

.custom-process .custom-choices__inner {
    grid-template-columns: minmax(190px, 0.9fr) repeat(4, minmax(0, 1fr));
    padding-top: clamp(80px, 10vw, 140px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

.custom-process .custom-choices__title,
.custom-process .custom-choices__intro {
    grid-column: 1;
}

.custom-process .custom-choices__intro {
    grid-row: 2;
    color: #fff;
    font-size: clamp(17px, 1.45vw, 22px);
    line-height: 1.25;
}

@media (min-width: 960px) {
    .custom-process .custom-choices__title,
    .custom-process .custom-choices__intro,
    .custom-process__timeline {
        grid-row: 1;
    }

    .custom-process .custom-choices__intro {
        margin-top: clamp(100px, 9vw, 123px);
    }
}

.custom-process__timeline {
    --process-progress: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(28px, 3vw, 52px);
    grid-column: 2 / -1;
    grid-row: 1 / 3;
    padding-bottom: clamp(48px, 5vw, 72px);
}

.custom-process__line {
    position: absolute;
    right: calc(25% - (clamp(28px, 3vw, 52px) * 0.75) - 6px);
    bottom: 0;
    left: 6px;
    height: 2px;
    overflow: visible;
    background: rgba(255, 189, 0, 0.2);
}

.custom-process__line span {
    display: block;
    width: 100%;
    height: 100%;
    background: #ffbd00;
    transform: scaleX(var(--process-progress));
    transform-origin: left center;
    will-change: transform;
}

.custom-process__step {
    position: relative;
    min-width: 0;
    opacity: 0.18;
    transition: opacity 120ms linear;
}

.custom-process__step::before {
    position: absolute;
    bottom: calc(clamp(48px, 5vw, 72px) * -1 - 5px);
    left: 0;
    z-index: 2;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffbd00;
    content: "";
}

.custom-process__number {
    display: block;
    color: #ffbd00;
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 700;
    line-height: 1;
}

.custom-process__label {
    min-height: 2.1em;
    margin: 18px 0 12px;
    color: #ffbd00;
    font-size: clamp(16px, 1.45vw, 24px);
    font-weight: 700;
    line-height: 1.03;
    text-transform: uppercase;
}

.custom-process__label--long span {
    display: block;
    white-space: nowrap;
}

.custom-process__copy {
    max-width: 18em;
    margin: 0;
    color: #fff;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.25;
}

@media (max-width: 959px) {
    .custom-process .custom-choices__inner {
        grid-template-columns: 1fr;
    }

    .custom-process .custom-choices__title,
    .custom-process .custom-choices__intro,
    .custom-process__timeline {
        grid-column: 1;
        grid-row: auto;
    }

    .custom-process .custom-choices__intro {
        max-width: 34em;
    }

    .custom-process__timeline {
        margin-top: 56px;
    }
}

@media (max-width: 639px) {
    .custom-process .custom-choices__inner {
        padding-top: clamp(64px, 16vw, 96px);
        padding-bottom: clamp(64px, 16vw, 96px);
    }

    .custom-process__timeline {
        grid-template-columns: 1fr;
        gap: 38px;
        padding: 0 0 0 36px;
    }

    .custom-process__label {
        font-size: clamp(19px, 5vw, 29px);
    }

    .custom-process__line {
        top: 0;
        right: auto;
        bottom: 18px;
        left: 8px;
        width: 2px;
        height: auto;
    }

    .custom-process__line span {
        transform: scaleY(var(--process-progress));
        transform-origin: center top;
    }

    .custom-process__step {
        display: grid;
        grid-template-columns: 58px minmax(0, 1fr);
        align-items: start;
        gap: 16px;
    }

    .custom-process__step::before {
        top: 17px;
        bottom: auto;
        left: -28px;
        transform: translate(-50%, -50%);
    }

    .custom-process__number {
        grid-row: 1 / 3;
        font-size: 32px;
    }

    .custom-process__label {
        min-height: 0;
        margin: 0;
        font-size: clamp(21px, 6vw, 28px);
    }

    .custom-process__copy {
        grid-column: 2;
        margin-top: 7px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .custom-process__timeline {
        --process-progress: 1 !important;
    }

    .custom-process__step {
        opacity: 1 !important;
        transition: none;
    }
}

/* Custom Type: contact call to action */
.custom-contact {
    background: #1f1f1f;
    color: #ffbd00;
}

.custom-contact__inner {
    padding: clamp(48px, 7vw, 96px) 0;
}

.custom-contact__title {
    margin: 0 0 clamp(24px, 3vw, 42px);
    color: #fff;
    font-family: "LD Grotesk Bold Wide Hero", "Arial Black", sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.84;
    text-transform: uppercase;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.custom-contact__content {
    width: calc(50% - clamp(12px, 1.5vw, 22px));
}

.custom-contact__copy {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #ffbd00;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

.custom-contact__cta {
    display: inline-flex;
    gap: 0.55em;
    margin-top: 24px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-contact__cta:hover,
.custom-contact__cta:focus {
    color: #ffbd00;
    text-decoration: none;
}

html.dark-mode .custom-contact {
    filter: invert(100%);
}

/* Custom Type: studio portrait */
.custom-studio,
.custom-studio__slideshow,
.custom-studio__images {
    position: relative;
    min-height: clamp(640px, 100svh, 980px);
}

.custom-studio {
    overflow: hidden;
    background: #1f1f1f;
}

.custom-studio__images {
    margin: 0;
}

.custom-studio__images picture,
.custom-studio__images img {
    display: block;
    width: 100%;
    height: 100%;
}

.custom-studio__images img {
    object-fit: cover;
    object-position: center;
}

.custom-studio__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.44) 46%, rgba(0, 0, 0, 0.08) 100%);
    pointer-events: none;
}

.custom-studio__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: clamp(48px, 7vw, 96px);
    padding-bottom: clamp(48px, 7vw, 96px);
    pointer-events: none;
}

.custom-studio__title {
    margin: 0 0 clamp(24px, 3vw, 42px);
    color: #fff;
    font-family: "LD Grotesk Bold Wide Hero", "Arial Black", sans-serif;
    font-size: clamp(38px, 6vw, 88px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.84;
    text-transform: uppercase;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.custom-studio__copy {
    width: calc(50% - clamp(12px, 1.5vw, 22px));
    max-width: none;
    margin: 0;
    color: #ffbd00;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

@media (max-width: 639px) {
    .custom-studio,
    .custom-studio__slideshow,
    .custom-studio__images {
        min-height: 100svh;
    }

    .custom-studio__shade {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.46) 58%, rgba(0, 0, 0, 0.12) 100%);
    }
}

html.dark-mode .custom-studio {
    filter: invert(100%);
}

html.dark-mode .custom-studio img {
    filter: none;
}

/* Custom Type: selected clients */
.custom-clients {
    background: #f1efe8;
    color: #1f1f1f;
}

.custom-clients__inner {
    display: grid;
    grid-template-columns: minmax(190px, 0.9fr) repeat(4, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 44px);
    row-gap: clamp(28px, 3vw, 44px);
    padding: clamp(80px, 10vw, 140px) 0;
}

.custom-clients__title {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    color: #1f1f1f;
    font-family: "LDGrotesk_Web", Arial, sans-serif;
    font-size: clamp(28px, 2.75vw, 44px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
}

.custom-clients__intro {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    color: #1f1f1f;
    font-size: clamp(17px, 1.5vw, 24px);
    line-height: 1.25;
}

.custom-clients__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(34px, 4vw, 58px) clamp(22px, 3vw, 46px);
    grid-column: 2 / -1;
    grid-row: 1 / 3;
    margin: 0;
    padding: 0;
    list-style: none;
}

.custom-client {
    display: flex;
    min-height: 58px;
    align-items: center;
    padding: 0;
    color: #1f1f1f;
    font-family: "LDGrotesk_Web", Arial, sans-serif;
    font-size: clamp(15px, 1.25vw, 20px);
    font-weight: 300;
    letter-spacing: 0.01em;
    line-height: 1.05;
    text-transform: uppercase;
}

.custom-client small {
    display: block;
    font-size: 0.62em;
    font-weight: 400;
    text-transform: none;
}

.custom-client__name {
    display: none;
}

.custom-client--hacker {
    font-family: "LDGrotesk_Web", Arial, sans-serif;
    font-size: clamp(15px, 1.25vw, 20px);
    font-weight: 300;
    line-height: 0.95;
    text-transform: uppercase;
}

.custom-client--bsh {
    font-size: clamp(25px, 2vw, 34px);
    font-weight: 300;
}

.custom-client--logo {
    justify-content: flex-start;
}

.custom-client__logo {
    display: block;
    width: 100%;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}

.custom-client__logo--kathrein {
    filter: grayscale(1) contrast(8);
    mix-blend-mode: multiply;
}

.custom-client__logo--lhlk {
    width: 58px;
    filter: brightness(0) saturate(100%);
}

.custom-client__logo--tyrolit,
.custom-client__logo--klett {
    max-width: 112px;
}

.custom-client__logo--seattle {
    width: 72px;
    height: 60px;
}

.custom-client__logo--postbrauerei {
    max-width: 112px;
}

.custom-client__logo--dmg {
    max-width: 112px;
}

.custom-client__logo--client-mark {
    width: 58px;
}

.custom-client--bueroecco {
    font-size: clamp(15px, 1.25vw, 20px);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.custom-client--bitavoir {
    font-size: clamp(15px, 1.25vw, 20px);
    font-weight: 300;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

@media (max-width: 959px) {
    .custom-clients__inner {
        grid-template-columns: 1fr;
    }

    .custom-clients__title,
    .custom-clients__intro,
    .custom-clients__list {
        grid-column: 1;
        grid-row: auto;
    }

    .custom-clients__list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 639px) {
    .custom-clients > .uk-container {
        padding-right: 24px;
        padding-left: 24px;
    }

    .custom-clients__inner {
        padding-top: clamp(64px, 16vw, 96px);
        padding-bottom: clamp(64px, 16vw, 96px);
    }

    .custom-clients__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        gap: 30px 18px;
        justify-items: stretch;
    }

    .custom-client {
        width: 100%;
        min-height: 0;
        justify-content: flex-start;
        font-family: "LD Grotesk Regular Custom", Arial, sans-serif;
        font-size: clamp(16px, 4vw, 19px);
        font-weight: 400;
        font-synthesis: none;
        letter-spacing: normal;
        line-height: 1.2;
        text-align: left;
        text-transform: none;
    }

    .custom-client__logo {
        display: none;
    }

    .custom-client__name {
        display: inline;
    }

    .custom-client br {
        display: none;
    }
}

html.dark-mode .custom-clients {
    filter: invert(100%);
}

/* The section already cancels the document inversion; keep its marks untouched. */
html.dark-mode .custom-client__logo {
    filter: none;
}

html.dark-mode .custom-client__logo--kathrein {
    filter: grayscale(1) contrast(8);
}

html.dark-mode .custom-client__logo--lhlk {
    filter: brightness(0) saturate(100%);
}

/* Custom Type: brochure download */
.custom-brochure {
    position: relative;
    overflow: hidden;
    background: #1f1f1f;
    color: #ffbd00;
}

.custom-brochure::before {
    position: absolute;
    inset: 0 auto 0 -15vw;
    width: min(60vw, 1500px);
    background-image: url("../assets/pics/custom/custom-brochure-mockup.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    content: "";
    pointer-events: none;
}

.custom-brochure__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: clamp(24px, 3vw, 44px);
    align-items: center;
    padding: clamp(48px, 7vw, 96px) 0;
}

.custom-brochure__content {
    grid-column: 3 / 5;
    width: 100%;
}

.custom-brochure__title {
    margin: 0 0 clamp(24px, 3vw, 42px);
    color: #fff;
    font-family: "LD Grotesk Bold Wide Hero", "Arial Black", sans-serif;
    font-size: clamp(32px, 5vw, 72px);
    font-style: italic;
    font-weight: 700;
    line-height: 0.84;
    text-transform: uppercase;
    transform: rotate(-4deg);
    transform-origin: left center;
}

.custom-brochure__copy {
    width: 100%;
    max-width: none;
    margin: 0;
    color: #ffbd00;
    font-size: clamp(20px, 2.1vw, 34px);
    line-height: 1.15;
}

.custom-brochure__cta {
    display: inline-flex;
    gap: 0.55em;
    margin-top: 24px;
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-brochure__cta:hover,
.custom-brochure__cta:focus {
    color: #ffbd00;
    text-decoration: none;
}

@media (max-width: 959px) {
    .custom-brochure::before {
        inset: 0 0 auto;
        width: 100%;
        height: min(70vw, 680px);
        background-position: -35vw center;
        background-size: 125% auto;
    }

    .custom-brochure__grid {
        grid-template-columns: 1fr;
        align-items: flex-end;
        padding-top: calc(min(70vw, 680px) + clamp(48px, 7vw, 96px));
    }

    .custom-brochure__content {
        grid-column: 1;
        width: 100%;
        max-width: 620px;
    }
}

@media (max-width: 639px) {
    .home-hero--custom .home-hero__title,
    .custom-starting-point__title,
    .custom-choices__title,
    .custom-contact__title,
    .custom-studio__title,
    .custom-brochure__title {
        font-size: clamp(44px, 11.5vw, 76px);
    }

    .custom-contact__content,
    .custom-studio__copy,
    .custom-clients__intro {
        width: 100%;
    }

    .custom-clients__inner {
        grid-template-columns: 1fr;
    }

    .custom-clients__title,
    .custom-clients__intro,
    .custom-clients__list {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Match the primary section headings to the compact project labels. */
.custom-starting-point__title,
.custom-choices__title,
.custom-contact__title {
    margin: 0 0 20px;
    color: #fff;
    font-family: inherit;
    font-size: clamp(24px, 2.6vw, 42px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    text-transform: uppercase;
    transform: none;
}

.custom-starting-point__title {
    color: #1f1f1f;
}

html.dark-mode .custom-brochure {
    filter: invert(100%);
}

/* Keep every Custom page heading in the true, undistorted LD Grotesk Bold. */
.custom-starting-point__title,
.custom-choices__title,
.custom-choice__title,
.custom-case__title,
.custom-process__label,
.custom-brochure__title,
.custom-contact__title,
.custom-clients__title,
.custom-studio__title {
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
    font-synthesis: none;
}

.custom-starting-point__title,
.custom-choices__title,
.custom-case__title,
.custom-brochure__title,
.custom-contact__title,
.custom-clients__title,
.custom-studio__title {
    transform: none;
}

/* Custom Type: paired brochure and contact panels. */
.custom-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.custom-actions .custom-brochure,
.custom-actions .custom-contact {
    min-height: clamp(480px, 38vw, 620px);
}

.custom-actions .custom-brochure::before {
    inset: 0 auto auto -25%;
    width: 88%;
    height: 100%;
    background-position: center top;
    background-size: contain;
}

.custom-actions .custom-brochure__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    height: 100%;
    padding: clamp(54px, 5vw, 82px) clamp(32px, 4vw, 72px) clamp(42px, 4vw, 68px);
}

.custom-actions .custom-brochure__content {
    grid-column: 2;
}

.custom-actions .custom-contact {
    position: relative;
    overflow: hidden;
    background-image:
        linear-gradient(90deg, rgba(15, 15, 15, 0.68), rgba(15, 15, 15, 0.25)),
        url("../assets/pics/studio/studio-01-desktop.jpg");
    background-position: center;
    background-size: cover;
}

.custom-actions .custom-contact__inner {
    position: relative;
    z-index: 1;
    padding: clamp(54px, 5vw, 82px) 40px clamp(42px, 4vw, 68px);
}

.custom-actions .custom-brochure__title,
.custom-actions .custom-contact__title {
    margin: 0 0 clamp(24px, 2.5vw, 38px);
    font-family: inherit;
    font-size: clamp(28px, 2.75vw, 44px);
    font-style: normal;
    font-weight: 700;
    line-height: 1.08;
    text-transform: uppercase;
    transform: none;
}

.custom-actions .custom-brochure__copy,
.custom-actions .custom-contact__copy {
    width: 100%;
    max-width: 22em;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 24px);
    line-height: 1.25;
}

.custom-actions .custom-contact__content {
    width: 50%;
    max-width: 22em;
}

.custom-actions .custom-brochure__cta,
.custom-actions .custom-contact__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    margin-top: 24px;
    padding: 0;
    background: transparent;
    color: #fff;
    font-family: "LD Grotesk Regular Custom", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    font-synthesis: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.custom-actions .custom-contact__cta {
    padding: 18px 24px;
    background: #ffbd00;
    color: #1f1f1f;
}

.custom-actions .custom-brochure__cta:hover,
.custom-actions .custom-brochure__cta:focus {
    background: transparent;
    color: #ffbd00;
    text-decoration: none;
}

.custom-actions .custom-contact__cta:hover,
.custom-actions .custom-contact__cta:focus {
    background: #fff;
    color: #1f1f1f;
}

@media (max-width: 959px) {
    .custom-actions {
        grid-template-columns: 1fr;
    }

    .custom-actions .custom-brochure,
    .custom-actions .custom-contact {
        min-height: 540px;
    }

    .custom-actions .custom-brochure::before {
        inset: 0 auto auto -22%;
        width: 82%;
        height: 100%;
        background-position: center top;
        background-size: contain;
    }

    .custom-actions .custom-brochure__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-top: 64px;
    }

    .custom-actions .custom-contact__content {
        width: 100%;
    }

    .custom-actions .custom-contact__inner {
        padding-right: 30px;
        padding-left: 30px;
    }
}

@media (max-width: 639px) {
    .custom-actions .custom-brochure,
    .custom-actions .custom-contact {
        min-height: 0;
    }

    .custom-actions .custom-brochure::before {
        inset: 24px auto auto -10%;
        width: 58%;
        height: 250px;
        background-position: center;
        background-size: contain;
    }

    .custom-actions .custom-brochure__grid {
        grid-template-columns: 1fr;
        padding: 300px 24px 48px;
    }

    .custom-actions .custom-brochure__content {
        grid-column: 1;
    }

    .custom-actions .custom-contact__inner {
        padding: 52px 15px;
    }

    .custom-actions .custom-brochure__title,
    .custom-actions .custom-contact__title {
        font-size: clamp(30px, 9vw, 42px);
    }
}

.custom-starting-point__title,
.custom-choices__title,
.custom-choice__title,
.custom-case__title,
.custom-process__label,
.custom-brochure__title,
.custom-contact__title,
.custom-clients__title,
.custom-studio__title {
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-style: normal;
    font-weight: 700;
    font-stretch: normal;
    font-synthesis: none;
}

.custom-starting-point__title,
.custom-choices-showcase .custom-choices__title,
.custom-process .custom-choices__title,
.custom-clients__title,
.custom-actions .custom-brochure__title {
    font-size: clamp(24px, 2.6vw, 42px);
    line-height: 1;
    letter-spacing: normal;
}

@media (max-width: 639px) {
    .custom-starting-point__title,
    .custom-choices-showcase .custom-choices__title,
    .custom-process .custom-choices__title,
    .custom-clients__title,
    .custom-actions .custom-brochure__title {
        font-size: clamp(30px, 9vw, 42px);
    }
}

/* Custom Type: one consistent hierarchy for all primary teaser copy. */
.custom-intro-pair .custom-starting-point__title,
.custom-intro-pair .custom-choices__title,
.custom-process .custom-choices__title,
.custom-clients__title,
.custom-actions .custom-brochure__title,
.custom-actions .custom-contact__title,
.custom-case__title {
    margin: 0 0 20px;
    font-family: "LD Grotesk Bold Custom", Arial, sans-serif;
    font-size: clamp(22px, 2vw, 32px);
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    letter-spacing: normal;
    text-transform: uppercase;
    transform: none;
}

.home-hero__intro,
.custom-choices-showcase__header .custom-choices__intro,
.custom-starting-point__copy,
.custom-process .custom-choices__intro,
.custom-contact__copy,
.custom-studio__copy,
.custom-clients__intro,
.custom-brochure__copy {
    font-size: clamp(20px, 2.1vw, 34px);
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-transform: none;
}

/* Keep site-wide modal typography aligned with the Trial Font modal. */
.site-modal {
    max-width: 620px;
}

.site-modal .uk-modal-title {
    font-size: 18px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Keep photographic and specimen images in their original colors. The page
   itself is inverted in dark mode, so images need one compensating inversion. */
html.dark-mode img {
    filter: invert(100%);
}

/* OpenType feature specimens should follow the dark theme. They inherit the
   document inversion instead of receiving the global image compensation. */
html.dark-mode #toggle_feat .fea_list_tile img {
    filter: none;
    mix-blend-mode: multiply;
}

/* Blend the white raster backgrounds of the OpenType specimens into the
   shared dark-mode surface while preserving their glyph artwork. */
html.dark-mode #toggle_feat .fea_list_tile .uk-inline-clip {
    background-color: #e0e0e0;
}

/* Once the white image backgrounds are blended away, both feature drawings
   must not overlap. Switch the base image off as the hover image appears. */
html.dark-mode #toggle_feat .fea_list_tile .uk-transition-toggle:hover > img:first-child,
html.dark-mode #toggle_feat .fea_list_tile .uk-transition-toggle:focus > img:first-child {
    opacity: 0;
}

html.dark-mode #toggle_feat .fea_list_tile .uk-transition-toggle > img {
    transition-duration: 0s;
}

/* The legacy theme inverts the entire document. #e0e0e0 therefore renders
   as the desired #1f1f1f dark-mode surface. */
html.dark-mode,
html.dark-mode body,
html.dark-mode .header,
html.dark-mode .teaser,
html.dark-mode .custom-section,
html.dark-mode .darko,
html.dark-mode #font-specimen,
html.dark-mode #catalogue,
html.dark-mode #about,
html.dark-mode #contact,
html.dark-mode #imprint,
html.dark-mode #gdpr {
    background-color: #e0e0e0;
}

/* This becomes light text after the document inversion. */
html.dark-mode .darko {
    color: #000;
}

/* Cancel the document inversion for the expanded menu so it keeps exactly
   the same colors, separators and hover states in both themes. */
html.dark-mode #menu {
    filter: invert(100%);
}

/* The miscellaneous material slider deliberately keeps its complete light
   appearance in dark mode. Images need no additional compensation because
   the whole component already cancels the document inversion. */
#announce {
    background-color: #f8f8f8;
}

html.dark-mode #announce {
    filter: invert(100%);
}

html.dark-mode #announce img {
    filter: none;
}

/* Keep the Custom Type presentation identical to the original page in both
   themes. Its slideshow, dark panels, text and images form one fixed design. */
html.dark-mode .custom-theme-static {
    filter: invert(100%);
    background-color: #1f1f1f;
    color: #fff;
}

html.dark-mode .custom-theme-static img {
    filter: none;
}

/* Always fill the complete Custom Type slideshow. UIKit's calculated cover
   dimensions can leave an empty strip at some viewport ratios. */
#cases .uk-slideshow-items > li > img[uk-cover] {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none !important;
}

/* The original layout uses UIKit's 150px small width for these illustrations.
   A dedicated class avoids escaped responsive class names in Blade markup. */
@media (min-width: 640px) {
    .custom-option-image {
        width: 150px;
        max-width: 100%;
    }
}

/* The document inversion turns this into the #1f1f1f theme surface. */
html.dark-mode .uk-dropdown {
    background-color: #e0e0e0;
}

/* These light-theme surfaces would otherwise become almost black through the
   legacy document inversion. #e0e0e0 renders as the shared #1f1f1f surface. */
html.dark-mode #buy_opt,
html.dark-mode .feature-toggle.uk-button-small:not(.uk-active),
html.dark-mode .charset-detail {
    background-color: #e0e0e0;
}

/* Toggle icon for Cart discount/VAT helper links */
a.uk-light[uk-toggle]:not(.uk-button)::before {
    content: "\F88C";
    display: inline-block;
    width: 20px;
    text-align: center;
    vertical-align: middle;
}

a.checkout_button::before {
    content: none !important;
    display: none !important;
}

.uk-close-large {
    transition: transform 150ms ease, color 150ms ease;
}

.uk-close-large:hover {
    transform: rotate(90deg);
    color: #fff !important;
}

.cart-sticky-top {
    position: sticky;
    top: 0;
    z-index: 980;
}

#cart-share-modal.uk-open {
    z-index: 2100 !important;
}

#cart-share-modal.uk-open .uk-modal-dialog {
    position: relative;
    z-index: 2101;
}

#cart-clear-modal.uk-open {
    z-index: 2100 !important;
}

#cart-clear-modal.uk-open .uk-modal-dialog {
    position: relative;
    z-index: 2101;
    background-color: #fff;
    color: #1f1f1f;
}

#cart-empty-modal.uk-open {
    z-index: 2100 !important;
}

#cart-empty-modal.uk-open .uk-modal-dialog {
    position: relative;
    z-index: 2101;
    background-color: #fff;
    color: #1f1f1f;
}

#cart-clear-modal .checkout_button.button_dark,
#cart-empty-modal .checkout_button.button_dark {
    background-color: #1f1f1f;
    color: rgba(255, 255, 255, 0.7);
}

#cart-clear-cancel:hover,
#cart-clear-cancel:focus,
#cart-clear-cancel:active,
#cart-clear-cancel.uk-button-default:hover,
#cart-clear-cancel.uk-button-default:focus,
#cart-clear-confirm:hover,
#cart-clear-confirm:focus,
#cart-clear-confirm:active,
#cart-clear-confirm.uk-button-default:hover,
#cart-clear-confirm.uk-button-default:focus,
#cart-empty-ok:hover,
#cart-empty-ok:focus,
#cart-empty-ok:active,
#cart-empty-ok.uk-button-default:hover,
#cart-empty-ok.uk-button-default:focus {
    background-color: #ebebeb !important;
    color: #333 !important;
    border-color: #ebebeb !important;
}
