@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&family=Tektur:wght@400..900&display=swap');

:root {
    --color-primary: hsl(180, 60%, 70%);
    --color-accent: hsl(5, 70%, 60%);
    --color-dark: #161616;
    --color-grey: #356066;
    --offset: max(14px, 1vw);
    --transition-speed: 0.32s;
    --ease-smooth: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-heading: "Tektur", sans-serif;
    --font-body: "Jost", sans-serif;
}

::-webkit-scrollbar { display: none; }

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-image: url(../assets/images/backgrounds/pattern.jpg);
    background-size: 50px;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-weight: 500;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ========================================
   MAIN
   ======================================== */

.main {
    width: 100vw;
    height: 99vh;
    overflow: hidden;
    transform: scale(0.7) translateX(-20%);
    transition: 1s ease;
    background-color: var(--color-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    transition: 0.6s ease-in;
    width: calc(100vw - 3 * var(--offset));
    flex-direction: column;
    margin: calc(var(--offset) * 1.5);
    position: relative;
    height: calc(100vh - 3 * var(--offset));
    border-radius: calc(var(--offset) * 2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: var(--offset) dashed var(--color-dark);
    border-width: 0;
    padding: 0 0 3vh 0;
    overflow: hidden;
    max-height: 60vw;
}

.hero__spacer { height: 10vh; }

.hero__logo {
    position: relative;
    flex-shrink: 0;
    perspective: 1000px;
}

.hero__logo-text {
    position: absolute;
    margin-top: 100px;
    left: -1;
    right: 0;
    font-size: calc(var(--offset) * 12);
    line-height: 200px;
    font-family: var(--font-heading);
    font-weight: 800;
    transition: transform 0.1s ease-out;
}

.hero__logo-text:not(.hero__logo-text--dark) { opacity: 0; }
.hero__logo-text:nth-child(1) { z-index: 4; }
.hero__logo-text:nth-child(2) { z-index: 3; }
.hero__logo-text:nth-child(3) { z-index: 2; }
.hero__logo-text:nth-child(4) { z-index: 1; }

.hero__logo-text--primary { color: var(--color-primary); }
.hero__logo-text--dark { color: var(--color-dark); }
.hero__logo-text--light { color: #fff; }
.hero__logo-text--accent { color: var(--color-accent); }

.hero__image {
    margin-left: 51vw;
    width: 935px;
    height: 1388px;
    transform: none;
    z-index: 2;
}

.hero__content {
    margin-top: -78vh;
    width: 89%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 0 0 calc(var(--offset) * 2);
}

.hero__info {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 15px;
    z-index: 2;
    transform: skewX(-10deg);
    padding: calc(1 * var(--offset)) calc(3 * var(--offset));
    transition: .6s ease;
}

.hero__info--animated {
    box-shadow: calc(var(--offset) * -.45) calc(var(--offset) * -.45) 0px 0px rgb(0, 0, 0);
}

.hero__info:hover { transform: skewX(0deg) !important; }

.hero__title {
    font-size: calc(var(--offset) * 1.4);
    line-height: calc(var(--offset) * 2);
    text-align: justify;
    z-index: 3;
    font-family: var(--font-heading);
    font-weight: 800;
}

.hero__subtitle {
    text-align: justify;
    font-size: calc(var(--offset) * 1);
    line-height: calc(var(--offset) * 1.8);
    color: var(--color-dark);
}

.hero__cta {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--color-dark);
    transform: skewX(-10deg);
    font-size: calc(var(--offset) * 2);
    padding: 20px 30px;
    text-decoration: none;
    transition: .6s ease;
    z-index: 3;
    font-family: var(--font-heading);
    font-weight: 800;
}

.hero__cta--animated {
    box-shadow: calc(var(--offset) * -.3) calc(var(--offset) * -.3) 0px 0px rgb(0, 0, 0);
}

.hero__cta:hover {
    transform: skewX(0deg) !important;
    color: var(--color-dark);
    background-color: #fff;
}

/* ========================================
   BACKGROUND PATTERN
   ======================================== */

.bg-pattern {
    width: 200%;
    height: 200%;
    background: url("../assets/images/backgrounds/pattern.jpg");
    z-index: 0;
    background-size: 2%;
    background-position: center center;
    position: absolute;
    top: -50%;
    left: -50%;
    opacity: 0;
}

body > .bg-pattern {
    filter: brightness(0.8);
    background-size: 10.5%;
    background-position: 0% -50%;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
}

/* ========================================
   MARQUEE
   ======================================== */

.marquee {
    overflow: hidden;
    white-space: nowrap;
    width: 110%;
    font-size: calc(var(--offset) * 3);
    color: var(--color-dark);
    padding: calc(var(--offset) * .5) 0;
    background-color: #fff;
    position: absolute;
    z-index: 1;
    top: 7vh;
    left: -5%;
    font-family: var(--font-heading);
    font-weight: 800;
}

.marquee__track {
    display: inline-flex;
    will-change: transform;
    animation: marquee 60s linear infinite;
}

.marquee__item {
    padding-right: 2rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ========================================
   HEADER
   ======================================== */

.header {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 100;
    color: var(--color-primary);
    top: 0;
    left: 0;
}

.header::before {
    content: "";
    width: 100vw;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.9;
    background-color: #000108;
    transition: 1s ease;
}

.header__sidebar {
    display: flex;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    padding: calc(var(--offset) * 1.5) calc(var(--offset) * 2.5);
    padding-bottom: calc(var(--offset) * 3);
    align-items: start;
    justify-content: space-between;
    z-index: 100;
}

.header__logo {
    font-size: calc(var(--offset) * 7.5);
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: .5s ease;
    font-family: var(--font-heading);
    font-weight: 800;
}

.header__slogan {
    font-size: calc(var(--offset) * 2);
    font-family: var(--font-heading);
    font-weight: 800;
}

.header__copyright {
    font-size: calc(var(--offset) * 1.5);
    position: relative;
    transition: .5s ease;
    font-family: var(--font-heading);
    font-weight: 800;
}

.header__nav {
    width: 40vw;
    background-color: var(--color-primary);
    height: 100vh;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 101;
    border-radius: 60px 0 0 60px;
    border-left: calc(var(--offset) * 2) dashed var(--color-dark);
}

.header__nav-list {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: end;
    align-items: end;
    flex-direction: column;
    padding: calc(var(--offset) * 2);
    list-style-type: none;
    text-align: right;
    gap: calc(var(--offset) * 1.5);
    position: relative;
    transition: .5s ease;
}

.header__nav-item {
    transition: .5s ease;
    width: 60%;
}

.header__nav-item:hover { width: 100%; }

.header__nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-size: calc(var(--offset) * 2);
    border-radius: 8px;
    overflow: hidden;
    padding: calc(var(--offset) * 1) calc(var(--offset) * 1.5);
    border: 5px dashed var(--color-dark);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: .5s ease;
    height: calc(var(--offset) * 5);
    font-family: var(--font-heading);
    font-weight: 800;
}

.header__nav-link > span:nth-child(1) { margin-bottom: 20vw; }

.header__nav-link > span {
    transition: .6s ease;
    width: 100%;
    height: calc(var(--offset) * 5);
    font-family: var(--font-heading);
    font-weight: 800;
}

.header__nav-link:hover > span:nth-child(1) {
    margin-top: calc(var(--offset) * -2.6 - 20vw);
}

.header__nav-link::before {
    position: absolute;
    content: "";
    width: 0;
    height: 100%;
    background-color: var(--color-dark);
    right: 0;
    top: 0;
    transition: .5s ease;
    z-index: -1;
}

.header__nav-link:hover { color: #fff; }
.header__nav-link:hover::before { width: 100%; }

/* ========================================
   MENU TOGGLE
   ======================================== */

.menu-toggle {
    position: fixed;
    top: calc(var(--offset) * 2);
    right: calc(var(--offset) * 2);
    z-index: 10000;
    background-color: var(--color-primary);
    border-radius: 8px;
    border: none;
    overflow: hidden;
    padding: calc(var(--offset) * 1) calc(var(--offset) * 1.5);
    font-size: calc(var(--offset) * 3);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--offset);
    transition: .5s ease;
    font-family: var(--font-heading);
    font-weight: 800;
    cursor: pointer;
}

.menu-toggle:hover {
    transform: scale(1.5) translateX(-1vw);
    color: var(--color-accent);
    text-shadow: -6px 3px 0px rgba(22, 22, 22, 1);
}

/* ========================================
   BODY STATE: MENU CLOSED
   ======================================== */

.body--menu-closed .header::before { opacity: 0; }

.body--menu-closed .header__logo { transform: translateY(-100vh) !important; }

.body--menu-closed .header__copyright { transform: translateY(20vh) !important; }

.body--menu-closed .header__nav { transform: translateX(50vw); }

.body--menu-closed > .bg-pattern { display: none; }

.body--menu-closed { background-color: var(--color-dark); }

.body--menu-closed .menu-toggle {
    font-size: calc(var(--offset) * 1.5);
    transform: translateX(300%);
    background-color: var(--color-primary);
    color: var(--color-dark);
    right: calc(var(--offset) * 1.5);
    top: calc(var(--offset) * 1.5);
    border-radius: calc(var(--offset) * 1);
    box-shadow: calc(var(--offset) * -.3) calc(var(--offset) * .3) 0px 0px rgb(0, 0, 0);
}

.body--menu-closed .menu-toggle:hover {
    transform: scale(1);
    color: var(--color-dark);
    text-shadow: -6px 3px 0px #fff;
}

.body--menu-closed .main {
    overflow: auto;
    overflow-x: hidden;
    transform: scale(1);
}

.body--menu-closed .header { pointer-events: none; }

/* ========================================
   ABOUT SECTION
   ======================================== */

.about {
    width: 98vw;
    height: 97vh;
    background-color: #fff;
    border-radius: 60px;
    margin: 1.5vh 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about__container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 5vw;
}

.about__inner { width: 100%; }

.about__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
}

.about__col {
    padding: 10px;
    width: 100%;
}

@media (min-width: 992px) {
    .about__col { width: 50%; }
}

.about__col--animated { margin-left: 150px; }

.about__section-title {
    display: inline-block;
    position: relative;
    font-size: 4rem;
    text-transform: uppercase;
    padding-right: 1.5rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 850;
}

.about__section-title::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    height: 9px;
    width: 2rem;
    background-color: #000;
}

.about__heading {
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.about__text {
    text-align: justify;
    font-size: calc(var(--offset) * 1);
    line-height: calc(var(--offset) * 1.8);
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.about__columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 0.5rem;
    margin-bottom: 2rem;
}

.about__column {
    width: 50%;
    min-width: 200px;
    flex: 1;
    padding: 10px;
}

.about__column-title {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
}

.about__service { margin-bottom: 10px; }

.about__service-title {
    font-family: var(--font-heading);
    font-weight: 800;
}

.about__service-text { display: block; }

/* ========================================
   PROFILE CARD
   ======================================== */

.profile-card {
    position: relative;
    width: 460px;
    height: 600px;
    margin-left: 110px;
}

.profile-card__main {
    width: 460px;
    height: 600px;
    overflow: hidden;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 80px, 100% calc(100% - 80px), calc(100% - 80px) 100%, 80px 100%, 0 calc(100% - 80px));
    box-shadow: rgba(255, 0, 0, 1) 0px 14px 58px 0px;
    transition: all 0.3s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.profile-card__top {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    z-index: 2;
    border-top: 230px solid #000;
    border-left: 230px solid transparent;
    border-right: 230px solid transparent;
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.profile-card__side {
    position: absolute;
    width: 100%;
    top: 0;
    transform: translateX(-50%);
    height: 101%;
    background: #000;
    clip-path: polygon(0% 0%, 50% 0, 95% 45%, 100% 100%, 0% 100%);
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) 1s;
}

.profile-card__side--left { left: 0; }

.profile-card__side--right {
    right: 0;
    transform: translateX(50%) scale(-1, 1);
}

.profile-card__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 140px;
    font-weight: bold;
    font-size: 50px;
    opacity: 0;
    z-index: 10;
    transition: all 0.2s ease-out 0s;
    font-family: var(--font-heading);
    white-space: nowrap;
}

.profile-card__button-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.profile-card__button {
    position: absolute;
    transform: translateX(-50%);
    padding: 10px 20px;
    clip-path: polygon(0 0, 100% 0, 81% 100%, 21% 100%);
    background: #000;
    border: none;
    color: #fff;
    display: grid;
    place-content: center;
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
    cursor: pointer;
}

.profile-card__svg {
    width: 30px;
    height: 30px;
    transition: all 0.2s cubic-bezier(0.785, 0.135, 0.15, 0.86);
}

.profile-card__button:nth-child(1) { bottom: 600px; transition-delay: 0.4s; }
.profile-card__button:nth-child(2) { bottom: 600px; transition-delay: 0.6s; }
.profile-card__button:nth-child(3) { bottom: 600px; transition-delay: 0.8s; }

.profile-card__button:hover .profile-card__svg { transform: scale(1.2); }
.profile-card__button:active .profile-card__svg { transform: scale(0.7); }

.profile-card:hover .profile-card__main { transform: scale(1.05); }
.profile-card:hover .profile-card__top { top: -100px; }

.profile-card:hover .profile-card__side--left {
    left: -100px;
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.1s;
}

.profile-card:hover .profile-card__side--right {
    right: -100px;
    transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86) 0.1s;
}

.profile-card:hover .profile-card__title {
    opacity: 1;
    transition: all 0.2s ease-out 1.3s;
}

.profile-card:hover .profile-card__button:nth-child(1) { bottom: 160px; transition-delay: 0.8s; }
.profile-card:hover .profile-card__button:nth-child(2) { bottom: 80px; transition-delay: 0.6s; }
.profile-card:hover .profile-card__button:nth-child(3) { bottom: 0; transition-delay: 0.4s; }

/* ========================================
   SCROLL SECTION (horizontal slogans)
   ======================================== */

.scroll-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: block;
    color: #fff;
    perspective: 1200px;
}

.scroll-section__wrapper {
    display: flex;
    height: 100%;
    align-items: center;
    will-change: transform;
    transform-style: preserve-3d;
}

.scroll-section__panel {
    font-family: var(--font-heading);
    min-width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(22px, 6vw, 48px);
    padding: 2rem;
    text-align: center;
    flex-shrink: 0;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
    border-radius: 8px;
}

/* ========================================
   SERVICES SECTION (showcase cards)
   ======================================== */

.services {
    width: 98vw;
    height: 93vh;
    border-radius: 60px;
    margin: 20vh 1vw !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services__wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 80%;
    padding: 0 6vw;
    will-change: transform;
}

.services__card {
    min-width: 420px;
    flex: 0 0 420px;
    padding-right: 0;
    height: 90%;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    color: #fff;
}

/* ========================================
   SERVICE CARD (individual showcase)
   ======================================== */

.service-card {
    position: relative;
    width: 100%;
    height: 95%;
    perspective: 1000px;
    overflow: hidden;
    border-radius: 55px;
    background: rgba(0, 0, 0, 0.71);
}

.service-card--light {
    color: #000;
    background-color: #fff;
}

.service-card__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 3vh 2rem;
    color: #fff;
    height: 100%;
}

.service-card__content--dark { color: #000; }

.service-card__tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 1.22rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card__tag--dark { background: rgba(0, 0, 0, 0.37); }

.service-card__title {
    font-size: clamp(2rem, 3.5vw, 4rem);
    font-weight: 700;
    margin: 4px 0 8px;
    text-transform: uppercase;
    color: #fff;
    width: 100%;
    font-family: var(--font-heading);
    margin-top: 2vh;
    white-space: nowrap;
}

.service-card__title--dark { color: #000; }

.service-card__description {
    font-size: clamp(0.85rem, 1vw, 1.1rem);
    line-height: 1.5;
    max-width: 300px;
    opacity: 0.95;
}

.service-card__image {
    max-width: 152%;
    margin-top: auto;
    object-fit: cover;
}

/* Card 1: CODE */
.services__card:nth-child(1) .service-card__image {
    max-width: 170%;
    margin-top: 0em;
}

/* Card 2: 3D-DESIGN */
.services__card:nth-child(2) .service-card__image {
    max-width: 210%;
    margin-top: -3em;
}

/* Card 3: WEBFLOW */
.services__card:nth-child(3) .service-card__image {
    width: 155%;
    margin-top: -3vh;
}

/* ========================================
   PARALLAX LAYER (shared)
   ======================================== */

.parallax-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    transform-origin: center center;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.parallax-layer img {
    display: block;
    pointer-events: none;
}

.parallax-layer[data-depth="0.1"] img {
    width: 600px;
    transform: translate(-50%, -50%);
}

.parallax-layer[data-depth="0.4"] img {
    width: 480px;
    transform: translate(-50%, -58%) translateZ(50px);
    margin-top: 40px;
}

/* ========================================
   SPECIALIZATIONS SECTION
   ======================================== */

.specializations { margin-top: 50vh; }

.specializations__title {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 5vh;
}

.specializations__subtitle {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 7vh;
}

.specializations__more {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-top: 15vh;
    margin-bottom: 15vh;
}

/* ========================================
   TICKER (vertical scroll text)
   ======================================== */

.ticker {
    overflow: hidden;
    width: 100%;
    height: 8rem;
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin-top: 11vh;
    margin-bottom: 5vh;
    transform: scale(1, 1.7);
    background-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticker__track {
    display: flex;
    flex-direction: column;
    will-change: transform;
}

.ticker__item {
    padding-bottom: 7.4rem;
    display: block;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
}

/* ========================================
   PROTOCOLS SECTION (detail cards)
   ======================================== */

.protocols {
    width: 98vw;
    height: 93vh;
    border-radius: 60px;
    margin: 1.5vh 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.protocols__wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 97%;
    padding: 0 6vw;
    will-change: transform;
    width: 98vw;
    background-color: rgba(255, 255, 255, 0);
    border-radius: 60px;
    justify-content: center;
    overflow: hidden;
}

.protocols__card {
    height: 80%;
    min-width: 22vw;
    flex: 0 0 22vw;
    padding-right: 0;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    transform-origin: center;
    backface-visibility: hidden;
    will-change: transform, opacity;
    color: #fff;
}

/* ========================================
   PROTOCOL CARD (individual)
   ======================================== */

.protocol-card {
    position: relative;
    width: 100%;
    height: 100%;
    perspective: 1000px;
    overflow: hidden;
    border-radius: 65px;
    background: rgba(0, 0, 0, 0.71);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* BG frame: decorative overlay, no layout impact */
.protocol-card > .parallax-layer--bg {
    top: 36vh;
    left: 11vw;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.protocol-card__image-wrapper { z-index: 2; top: 33vh;
    left: 10vw; }

/* Text content layer: above frame */
.protocol-card > .parallax-layer[data-depth="0.7"] {
    position: relative;
    top: auto;
    left: auto;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.protocol-card__product-image {
    margin-top: 3vh;
    width: 103%;
    height: 96%;
}

.protocol-card__bg-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.protocol-card__label {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-top: 4vh;
    margin-left: 7vw;
}

.protocol-card__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 3.2rem);
    font-weight: 800;
    color: #C2FCF7;
    margin-top: 10vh;
    margin-left: 1vw;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.protocol-card__slogan {
    color: #fff;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
    margin-top: 0.5vh;
    margin-left: 1vw;
}

.protocol-card__meta {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-left: 2vw;
}

.protocol-card__meta:first-of-type { font-size: 0.95rem; }

.protocol-card__cta {
    display: block;
    margin-top: auto;
    background-color: #C2FCF7;
    width: 45%;
    text-align: center;
    transform: skewX(-34deg);
    text-decoration: none;
    padding: 4px 0;
    margin-top: 4.8vh;
    margin-left: 2.5vw;
}

.protocol-card__cta--yellow { background-color: hsl(64.21deg 100% 50%); }
.protocol-card__cta--red { background-color: hsl(0, 100%, 50%); }
/* .protocol-card__cta--blue { background-color: hsl(180.48deg 78.81% 55.99% / 82%); } */

.protocol-card__cta-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 650;
    color: #000;
    text-align: center;
    transform: skewX(34deg);
    display: block;
}

.protocol-card--yellow .protocol-card__label,
.protocol-card--yellow .protocol-card__title,
.protocol-card--yellow .protocol-card__slogan,
.protocol-card--yellow .protocol-card__meta { color: hsl(64.21deg 100% 50%); }

.protocol-card--red .protocol-card__label,
.protocol-card--red .protocol-card__title,
.protocol-card--red .protocol-card__slogan,
.protocol-card--red .protocol-card__meta { color: hsl(0, 100%, 50%); }

.protocol-card--cyan .protocol-card__label,
.protocol-card--cyan .protocol-card__title,
.protocol-card--cyan .protocol-card__slogan,
.protocol-card--cyan .protocol-card__meta { color: hsl(0, 0%, 100%); }

/* ========================================
   COOPERATION SECTION
   ======================================== */

.cooperation {
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.85) 75%, rgba(255,255,255,1) 100%);
    height: 100vh;
}

.cooperation__title {
    margin-top: 5vh;
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 5vh;
}

.cooperation__subtitle {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 7vh;
}

.cooperation__cards {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4vh 4vw;
    gap: 2vw;
}

/* ========================================
   PARTNER CARD
   ======================================== */

.partner-card {
    flex: 1;
    height: 40vh;
    background-color: rgba(0, 0, 0, 0.2);
    border: 2px dashed #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: flex 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.partner-card:hover {
    flex: 1.2;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

.partner-card__logo {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 3.3rem);
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.4s ease;
    z-index: 2;
}

.partner-card:hover .partner-card__logo { transform: scale(0.8); }

.partner-card__content {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 90%;
}

.partner-card__text {
    font-size: 1.2rem;
    color: #fff;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

.partner-card:hover .partner-card__content {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ========================================
   ANIMATION WRAPPER
   ======================================== */

.animation-wrapper { position: relative; }

/* ========================================
   UTILITY: VISIBILITY
   ======================================== */

.is-mobile-only { display: none; }
.is-desktop-only { display: block; }
.is-android-only { display: none; }

/* ========================================
   MEDIA QUERIES (consolidated, desktop-first)
   ======================================== */

@media screen and (max-width: 1360px) {
    .ticker {
        font-size: calc(var(--offset) * 10.8);
        height: calc(var(--offset) * 10.8);
    }

    .hero__logo-text {
        font-size: calc(var(--offset) * 10.8);
        z-index: 3;
        line-height: 105px;
    }

    .hero__logo {
        font-size: calc(var(--offset) * 10.8);
        z-index: 3;
        inline-size: 10px;
        margin-left: 305px;
    }

    .hero__title {
        font-size: calc(var(--offset) * 1.4);
        line-height: calc(var(--offset) * 2.1);
    }

    .hero__subtitle {
        font-size: calc(var(--offset) * 1.1);
        line-height: calc(var(--offset) * 1.9);
    }

    .header__nav-item { width: 70%; }

    .header__sidebar {
        justify-content: end;
        gap: 10px;
    }

    .header__logo {
        font-size: calc(var(--offset) * 6);
        flex-direction: column-reverse;
    }

    .hero__image {
        margin-top: -19vh;
        width: 702px;
        height: 995px;
        margin-left: 8vw;
        z-index: 2;
    }
}

@media screen and (max-width: 1100px) {
    .ticker {
        font-size: calc(var(--offset) * 7.8);
        height: calc(var(--offset) * 7.8);
    }

    .hero__logo-text {
        font-size: calc(var(--offset) * 7.8);
        margin: calc(var(--offset) * -.2) 0 0 calc(var(--offset) * .2);
    }

    .header__logo {
        transform: rotateZ(-90deg) translateX(25%) translateY(-100%) !important;
    }

    .header__copyright {
        transform: rotateZ(-90deg) translateX(42%) translateY(0%) !important;
    }

    .body--menu-closed .header__logo {
        transform: rotateZ(-90deg) translateX(25%) translateY(-100vh) !important;
    }

    .body--menu-closed .header__copyright {
        transform: rotateZ(-90deg) translateX(42%) translateY(-100vh) !important;
    }

    .body--menu-closed .header__nav { transform: translateX(-100vw); }

    .header__nav { width: 60vw; }

    .marquee { font-size: calc(var(--offset) * 3); }

    .hero__title {
        font-size: calc(var(--offset) * 1.5);
        line-height: calc(var(--offset) * 2.2);
    }

    .hero__subtitle {
        font-size: calc(var(--offset) * 1.1);
        line-height: calc(var(--offset) * 1.9);
    }

    .hero__cta {
        font-size: calc(var(--offset) * 1.4);
        padding: 10px 20px;
    }

    .hero__info {
        padding: calc(0.7 * var(--offset)) calc(2.1 * var(--offset));
        width: 70%;
    }

    .body--menu-closed .menu-toggle:hover {
        transform: unset;
        color: var(--color-dark);
        text-shadow: unset;
    }

    .services {
        margin-top: 5vh !important;
        margin-left: 0 !important;
        overflow: visible !important;
        height: auto !important;
        width: 100vw !important;
    }

    .services__wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        overflow: visible !important;
        padding: 2vh 0 !important;
    }

    .services__card {
        min-width: unset !important;
        width: 85% !important;
        height: 60vh !important;
        margin: 0 auto !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .service-card {
        width: 100%;
        height: 100%;
    }

    .service-card__title {
        font-size: 10vw;
        white-space: nowrap;
    }

    .service-card__description { font-size: 4vw; }

    .service-card__image { max-width: 160%; }

    .services__card:nth-child(3) .service-card__image {
        width: 155%;
        margin-top: 0vh;
    }

    .cooperation {
        height: auto !important;
        padding-bottom: 5vh;
    }

    .cooperation__cards {
        flex-direction: column;
        align-items: center;
        gap: 2vh;
        padding: 3vh 5vw;
    }

    .partner-card {
        width: 90%;
        height: 10vh;
        flex: none;
        border-radius: 16px;
        overflow: hidden;
        transition: height 0.4s ease, box-shadow 0.4s ease;
    }

    /* Disable all hover effects on mobile */
    .partner-card:hover {
        flex: none;
        box-shadow: none;
    }

    .partner-card:hover .partner-card__logo {
        transform: none;
    }

    .partner-card:hover .partner-card__content {
        opacity: 0 !important;
        visibility: hidden !important;
        transform: translateX(-50%) scale(0.8) !important;
    }

    .partner-card__content {
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none;
        bottom: 1rem;
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    }

    .partner-card__logo {
        font-size: 2rem;
    }

    /* Only .is-open triggers reveal (via JS click) */
    .partner-card.is-open {
        height: 24vh;
        box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
    }

    .partner-card.is-open .partner-card__logo {
        transform: scale(0.85);
    }

    .partner-card.is-open .partner-card__content {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto;
        transform: translateX(-50%) scale(1) !important;
    }

    .partner-card__text { font-size: 0.9rem; }

    .specializations { margin-top: 10vh; }

    .protocols {
        height: auto !important;
        width: 100vw !important;
        overflow: visible !important;
    }

    .protocols__wrapper {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory;
        scroll-padding-left: 6vw;
        -webkit-overflow-scrolling: touch;
        gap: 1rem !important;
        padding: 2vh 7vw !important;
        width: 92% !important;
        border-radius: 50px !important;
    }

    .protocols__card {
        min-width: 80vw !important;
        flex: 0 0 80vw !important;
        height: 70vh !important;
        scroll-snap-align: start;
        opacity: 1 !important;
        transform: none !important;
    }

    .protocol-card {
        border-radius: 30px;
        padding: 1.5rem 1.2rem;
    }

    .protocol-card > .parallax-layer--bg {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .protocol-card__image-wrapper {
        top: 0;
        left: 0;
    }

    .protocol-card__label {
        margin-top: 1vh;
        margin-left: 3vw;
        font-size: 1rem;
    }

    .protocol-card__title {
        margin-top: 2vh;
        margin-left: 3vw;
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 0.8rem;
    }

    .protocol-card__slogan {
        margin-top: 0;
        margin-left: 3vw;
        margin-bottom: 1rem;
        font-size: 0.85rem;
    }

    .protocol-card__meta {
        margin-left: 3vw;
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .protocol-card__cta {
        margin-top: 2vh;
        margin-left: 3vw;
        width: 40%;
        padding: 3px 0;
    }

    .protocol-card__cta-text {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 1100px) and (max-height: 700px) {
    .header__nav-link {
        font-size: calc(var(--offset) * 1.2);
        height: calc(var(--offset) * 4.2);
    }

    .header__nav-link > span {
        transition: .6s ease;
        width: 100%;
        height: calc(var(--offset) * 4.2);
    }

    .header__nav-link:hover > span:nth-child(1) {
        margin-top: calc(var(--offset) * -2.6 - 20vw);
    }
}

@media screen and (max-width: 800px) {
    .hero { max-height: unset; }

    .hero__logo-text {
        font-size: calc(var(--offset) * 6.8);
        margin: calc(var(--offset) * -.2) 0 0 calc(var(--offset) * .2);
    }

    .menu-toggle {
        font-size: calc(var(--offset) * 2);
        top: var(--offset);
        right: var(--offset);
    }

    .bg-pattern { background-size: 7%; }
}

@media screen and (max-width: 700px) {
    .header__logo {
        transform: rotateZ(-90deg) translateX(25%) translateY(-140%) !important;
        gap: 0;
        font-size: calc(var(--offset) * 4);
    }

    .header__slogan { font-size: calc(var(--offset) * 1.5); }

    .header__copyright {
        transform: rotateZ(-90deg) translateX(44%) translateY(-300%) !important;
        font-size: calc(var(--offset) * 1.1);
    }

    .header__nav {
        width: 70vw;
        border-width: calc(var(--offset) * 0.5);
    }

    .hero__logo-text {
        text-align: center;
        margin-top: 10vh;
        margin-left: 20px !important;
    }

    .hero__content {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 0;
    }

    .marquee { font-size: calc(var(--offset) * 2); }

    .hero__info { width: 81%; }

    .hero__cta {
        width: 80%;
        justify-content: center;
        align-items: center;
        text-align: center;
        border-color: var(--color-primary);
    }

    .profile-card { display: none; }

    .about__col--animated { margin-left: 2vw !important; }

    .about { height: 133vh; }

    .is-desktop-only { display: none; }

    .cooperation__title { font-size: 3rem; }
    .partner-card { height: 25vh; }
}

@media screen and (max-width: 540px) {
    .hero__logo-text { font-size: calc(var(--offset) * 6.8) !important; }

    .header__logo {
        transform: rotateZ(-90deg) translateX(25%) translateY(-250%) !important;
    }

    .header__copyright {
        transform: rotateZ(-90deg) translateX(40%) translateY(-550%) !important; margin-bottom: 12vh;

    }

    .header__sidebar { width: 300vw; }

    .header__nav-link { 
        margin-bottom: 12vh;
        padding-right: 2vw;
        margin-top: -11vh;
    }
    .header__nav-item { width: 80%; }

    .header__nav-list { padding: var(--offset) calc(var(--offset) * .3); }

    .header__nav { border-radius: 24px 0 0 24px; }

    .marquee { font-size: calc(var(--offset) * 2); }

    .hero__title { font-size: calc(var(--offset) * 1.1); }
    .hero__subtitle { font-size: calc(var(--offset) * 0.9); }

    .hero__cta {
        padding: 10px 20px;
        font-size: calc(var(--offset) * 1);
    }

    .header__nav { width: 70vw; }
    .header__slogan { display: none; }

    .menu-toggle {
        top: var(--offset);
        right: calc(var(--offset) * -.1);
    }

    .body--menu-closed .menu-toggle {
        top: calc(var(--offset) * .5);
        right: calc(var(--offset) * .5);
    }

    .profile-card { display: none; }
    .about__col--animated { margin-left: 2vw !important; }
    .about { height: 133vh; }
    .is-desktop-only { display: none; }

    .specializations__title {
        font-size: 2.4rem;
        padding: 0 1rem;
    }

    .ticker {
        font-size: 3.2rem;
        height: 2rem;
        transform: scale(1, 1.4);
    }

    .ticker__item {
        padding-bottom: 1.8rem;
    }
}

@media screen and (max-width: 420px) {
    .hero {
        margin: calc(var(--offset) * 0.7);
        width: calc(100vw - 1.4 * var(--offset));
        height: calc(95vh - 1.7 * var(--offset));
    }

    .hero__logo-text {
        font-size: calc(var(--offset) * 6.3) !important;
        margin-top: 22vh;
        line-height: 74px;
    }

    .header__nav-link { 
        margin-bottom: 12vh;
        padding-right: 2vw;
        margin-top: -11vh; }

    .header__copyright {
        margin-bottom: 12vh;
    }

    .hero__logo { margin-left: 79vw; }
    .hero__info { width: 98%; margin-top: -4vh; }
    
    .about__container{
        padding: 3rem 4vw;
    }

    .partner-card.is-open .partner-card__logo {
        margin-bottom: 7vh;
    }


    .hero__image {
        margin-top: -3vh;
        width: 684px;
        height: 954px;
        margin-left: 8vw;
        z-index: 2;
    }

    .profile-card { display: none; }
    .about__col--animated { margin-left: 2vw !important; }
    .about { height: 154vh; }
    .is-desktop-only { display: none; }

    .about__section-title { font-size: 3rem !important; margin-top: 3vh; }
    .about__column-title { font-size: 1.5rem !important; }

    .services {
        margin-top: 5vh !important;
        margin-left: 0 !important;
        overflow: visible !important;
        height: auto !important;
        width: 100vw !important;
    }

    .services__wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
        overflow: visible !important;
        padding: 2vh 0 !important;
    }

    .services__card {
        min-width: unset !important;
        width: 85% !important;
        height: 60vh !important;
        margin: 0 auto !important;
    }

    .service-card {
        width: 100%;
        height: 100%;
    }

    .service-card__content {
        position: relative;
        height: 100%;
    }

    .service-card__title {
        font-size: 12vw;
        margin-top: 0;
        white-space: nowrap;
    }

    .service-card__description { font-size: 4vw; }

    .specializations {
        margin-top: 5vh;
        padding: 0 2vw;
    }

    .specializations__title {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .specializations__subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .ticker {
        font-size: 2.5rem;
        height: 2.5rem;
        margin-top: 4vh;
        margin-bottom: 2vh;
        transform: scale(1, 1.4);
    }

    .ticker__item {
        padding-bottom: 2.3rem;
    }

    .cooperation__title {
        font-size: 2.6rem;
        margin-bottom: 1vh;
    }

    .specializations__subtitle { font-size: 1.3rem; }

    .cooperation { height: 155vh; }

    .partner-card {
        height: 25vh;
        width: 90vw;
        align-items: center;
    }

    .cooperation__cards {
        flex-direction: column;
        align-items: center;
        gap: 3vh;
        padding: 0 8vw !important;
    }

    .partner-card:active .partner-card__logo { font-size: 2rem; }

    .partner-card__logo:active {
        margin-bottom: 7vh;
        font-size: 2rem;
    }
    
    .parallax-layer[data-depth="0.4"] img {
    width: 340px;
    }

    .parallax-layer[data-depth="0.1"] img {
        margin-top: 35vh;
        margin-left: 36vw;
    }
    .protocol-card__label {
        margin-top: 8vh;
        margin-left: 22vw;
    }
    .protocol-card__title {
        margin-top: 2vh;
        margin-left: 3vw;
        font-size: clamp(2.8rem, 7vw, 2.5rem);
        margin-bottom: 5.5rem;
    }

    .protocol-card__meta {
        margin-left: 7vw;
    }

    .protocol-card__slogan {
        margin-top: 0.4vh;
        margin-left: 7vw;
        margin-bottom: 0.7vh;
        font-size: 0.85rem;
    }
    .protocol-card__cta {
        margin-top: 2.4vh;
        margin-left: 10vw;
    }

    .protocol-card > .parallax-layer[data-depth="0.7"] {
        margin-top: -2vh;
    }
    .protocol-card {
        border-radius: 50px;
    }
    .parallax-layer {
    top: 48%;
}

}

@media screen and (max-width: 325px) {
    .hero {
        margin: calc(var(--offset) * 0.7);
        width: calc(100vw - 1.4 * var(--offset));
        height: calc(100vh - 1.4 * var(--offset));
    }

    .hero__logo-text { font-size: calc(var(--offset) * 6.6) !important; }

    .profile-card { display: none; }
    .about__col--animated { margin-left: 2vw !important; }
    .about { height: 133vh; }
    .is-desktop-only { display: none; }
}
