.tereg-case-taxonomy {
    margin: 5rem 0 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(49, 70, 151, 0.3);
    border-bottom: 1px solid rgba(49, 70, 151, 0.3);
    color: #314697;
    font-family: "basis_grotesque_proregular", sans-serif;
    text-transform: none;
}

.tereg-case-taxonomy p,
.tereg-case-taxonomy h5,
.tereg-case-taxonomy span {
    margin: 0;
}

.tereg-case-taxonomy p {
    margin-bottom: 0.65rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.tereg-case-taxonomy h5 {
    font-family: "Roboto Slab", Georgia, serif;
    font-size: clamp(1.4rem, 2vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
}

.tereg-case-taxonomy ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.2rem 0;
    padding: 0;
    list-style: none;
}

.tereg-case-taxonomy li,
.tereg-case-taxonomy span {
    display: inline-flex;
    padding: 0.35rem 0.6rem;
    border: 1px solid rgba(49, 70, 151, 0.34);
    border-radius: 999px;
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tereg-case-taxonomy span {
    border-radius: 0;
    color: #666;
    border-color: transparent;
    padding-left: 0;
}

@media (max-width: 767px) {
    .tereg-case-taxonomy {
        margin-top: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-hero *,
    #main-page-content * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

#showcase-slider .button-border .pending-status {
    color: #fff;
    transform: none !important;
}

#showcase-slider .button-border .pending-status::before {
    content: none;
}

.slide-title-logo {
    display: block;
    width: clamp(15rem, 26vw, 31rem) !important;
    max-width: 100%;
    height: auto;
    margin: 0 0 0.6rem;
}

.showcase-pagination .slide-title-logo {
    opacity: 0;
    pointer-events: none;
    transform: translateY(120px);
    transition: opacity 0.42s ease, transform 0.62s cubic-bezier(0.22, 1, 0.36, 1);
}

.showcase-pagination .swiper-pagination-bullet-active .slide-title-logo {
    opacity: 1;
    transform: translateY(0);
}

.slide-title-logo--ripple-source,
.showcase-pagination .swiper-pagination-bullet-active .slide-title-logo--ripple-source {
    opacity: 0;
    visibility: hidden;
    transform: none;
    transition: none;
}

.showcase-pagination .slide-title:has(.slide-title-logo) {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    margin: 0;
    overflow: visible;
}

.showcase-pagination .showcase-caption-wrapper:has(.slide-title-logo) .slide-subtitle {
    position: absolute;
    top: 50%;
    left: clamp(3.75rem, 8vw, 10rem);
    width: min(28rem, 29vw);
    margin: 0;
    text-align: left;
    transform: translateY(-50%);
}

.showcase-pagination .showcase-caption-wrapper:has(.slide-title-logo) .cover-heading {
    font-family: "Roboto", sans-serif;
    font-size: calc(1rem + 4.15vw);
    font-weight: 500;
    line-height: calc(1rem + 4.15vw);
    letter-spacing: -0.035em;
}

.showcase-pagination .showcase-caption-wrapper:has(.slide-title-logo) .cover-meta {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.showcase-pagination .showcase-caption-wrapper:has(.slide-title-logo) .cover-meta--first {
    margin-top: clamp(1.35rem, 2.5vw, 2.5rem);
}

.slide-title-logo--light {
    filter: brightness(0) invert(1);
}

.slide-title-logo--arpeggia {
    width: clamp(15rem, 25vw, 29rem) !important;
}

.slide-title-logo--pharmapro {
    width: clamp(14rem, 23vw, 27rem) !important;
}

.slide-title-logo--glaucocare {
    width: clamp(8rem, 11vw, 12rem) !important;
    max-height: 9.5rem;
}

.tereg-case-gallery {
    clear: both;
    padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4.6vw, 4.75rem) clamp(5rem, 9vw, 9rem);
    color: #202020;
    background: #eee;
    text-transform: none;
}

.tereg-case-gallery__groups {
    display: grid;
    gap: clamp(2rem, 5vw, 5rem);
}

.tereg-case-gallery__intro {
    margin: 0 auto clamp(3rem, 5vw, 5rem);
}

.tereg-case-gallery__eyebrow {
    margin: 0 0 1rem;
    color: #314697;
    font-family: "basis_grotesque_proregular", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tereg-case-gallery__intro h2 {
    margin: 0;
    color: #1d2c38;
    font-family: "Roboto Slab", Georgia, serif;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.tereg-case-gallery__intro h2 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 5vw, 5.5rem);
    line-height: 0.98;
}

.tereg-case-gallery__description {
    max-width: 46rem;
    margin: clamp(1.5rem, 3vw, 2.5rem) 0 0 auto;
    color: #42515c;
    font-family: "basis_grotesque_proregular", sans-serif;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.55;
}

.tereg-case-gallery__carousel {
    overflow: visible;
}

.tereg-case-gallery__carousel .swiper-slide {
    width: min(70vw, 80rem);
}

.tereg-case-gallery__carousel .slide-img,
.tereg-case-gallery__carousel .slide-img img {
    width: 100%;
}

.tereg-case-gallery__carousel .slide-img img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 14rem);
    margin: 0 auto;
    object-fit: contain;
}

.tereg-case-gallery__group {
    display: grid;
    align-items: start;
    gap: clamp(1rem, 2vw, 2rem);
}

.tereg-case-gallery__group--wide {
    grid-template-columns: 1fr;
}

.tereg-case-gallery__group--split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tereg-case-gallery__group--trio {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tereg-case-gallery__group--phones {
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    align-items: start;
}

.tereg-case-gallery__figure {
    margin: 0;
}

.tereg-case-gallery__figure a,
.tereg-case-gallery__figure img {
    display: block;
    width: 100%;
}

.tereg-case-gallery__figure img {
    height: auto;
    background: #fff;
}

.tereg-case-gallery__figure--phone img {
    max-width: 28rem;
    margin-inline: auto;
}

.tereg-case-gallery__figure figcaption {
    margin-top: 0.8rem;
    color: #666;
    font-family: "basis_grotesque_proregular", sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.tereg-case-gallery--mobile_sequence {
    overflow: hidden;
    background: #eaf3f7;
}

.tereg-case-gallery--mobile_sequence .tereg-case-gallery__carousel {
    margin-inline: calc(clamp(1.25rem, 4.6vw, 4.75rem) * -1);
    padding-block: 0.75rem clamp(4.75rem, 7vw, 7rem);
}

.tereg-case-gallery--mobile_sequence .tereg-case-gallery__carousel .swiper-slide {
    width: clamp(17rem, 22vw, 22rem);
}

.tereg-case-gallery--mobile_sequence .tereg-case-gallery__figure--phone .slide-img {
    overflow: hidden;
    border-radius: clamp(1.75rem, 2.3vw, 2.4rem);
    background: #fff;
    box-shadow: 0 1.8rem 3.8rem rgba(44, 72, 91, 0.18);
}

.tereg-case-gallery--mobile_sequence .tereg-case-gallery__figure--phone img {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    background: #fff;
    object-fit: contain;
}

.tereg-case-gallery--mobile_sequence .tereg-case-gallery__figure figcaption {
    position: static;
    inset: auto;
    width: auto;
    max-width: 22rem;
    margin: 1.15rem auto 0;
    padding: 0;
    color: #4e6472;
    background: transparent;
    text-align: center;
}

@media (max-width: 767px) {
    .tereg-case-gallery {
        padding-inline: 1rem;
    }

    .tereg-case-gallery__carousel .swiper-slide {
        width: 100%;
    }

    .tereg-case-gallery__intro {
        margin-bottom: 2.5rem;
    }

    .tereg-case-gallery__description {
        margin-left: 0;
    }

    .tereg-case-gallery--mobile_sequence .tereg-case-gallery__carousel {
        margin-inline: -1rem;
        padding-bottom: 4.5rem;
    }

    .tereg-case-gallery--mobile_sequence .tereg-case-gallery__carousel .swiper-slide {
        width: min(72vw, 19rem);
    }

    .tereg-case-gallery__group--split,
    .tereg-case-gallery__group--trio {
        grid-template-columns: 1fr;
    }

    .tereg-case-gallery__group--phones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .tereg-case-gallery__figure figcaption {
        font-size: 0.62rem;
    }
}

body.project-page .scrolling-element > h4,
body.project-page .scrolling-element > p,
body.about-page p,
body.contact-page p {
    text-wrap: pretty;
}

body.project-page .scrolling-element > p {
    margin-bottom: 0;
}

body.project-page .scrolling-element > p + p,
body.contact-page .contact-intro-copy > p + p {
    margin-top: clamp(1.25rem, 2vw, 1.75rem);
}

body.contact-page .contact-intro-copy {
    max-width: 720px;
}

body.contact-page .contact-intro-copy p {
    margin-bottom: 0;
    font-size: clamp(1rem, 1.35vw, 1.25rem);
    line-height: 1.6;
    text-transform: none;
}

body.contact-page .contact-intro-copy .button-box {
    margin-top: clamp(2rem, 4vw, 3.5rem);
}

:where(a, button, input, textarea, [role="button"], [tabindex]):focus-visible {
    outline: 2px solid currentColor !important;
    outline-offset: 4px;
}

@media (max-width: 767px) {
    body.contact-page #hero-caption {
        padding-top: 160px;
    }

    body.project-page .hero-title,
    body.contact-page .hero-title {
        max-width: 100%;
        font-size: clamp(2.25rem, 11vw, 2.75rem);
        line-height: 1.02;
        letter-spacing: -0.025em;
    }

    body.contact-page .hero-subtitle {
        max-width: 20rem;
        line-height: 1.35;
    }

    body.contact-page #hero-footer .hero-footer-right {
        max-width: 68%;
        line-height: 1.3;
        text-align: right;
    }

    body.contact-page .contact-intro-copy {
        padding-top: 2rem;
    }
}

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

    *,
    *::before,
    *::after {
        animation-delay: 0ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }

    .parallax-scroll-caption,
    .parallax-scroll-image,
    .parallax-wrap,
    .parallax-element {
        transform: none !important;
    }
}
