:root {
    --tapioka-purple: #5B2C6F;
    --tapioka-purple-dark: #3D1A4C;
    --tapioka-light: #F5F5F7;
    --tapioka-violet: #722180;
    --tapioka-light-violet: #941C80;
    --tapioka-deep-violet: #512680;
}

body {
    font-family: 'Outfit', sans-serif;
    color: #333;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand {
    font-weight: 900;
    font-size: 1.5rem;
    line-height: 1;
    margin-right: 0;
    color: #512680 !important;
    background: linear-gradient(90deg, #512680 0%, #722180 35%, #8A1D80 68%, #941C80 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

}

.navbar-socials {
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(1px);
}

.navbar-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transition: opacity 0.25s ease;
}

.navbar-social-link:hover {
    opacity: 0.75;
}

.navbar-social-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.nav-link {
    color: var(--tapioka-purple) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    padding-bottom: 0.35rem;
    transition: color 0.3s;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link.is-active::after,
.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: var(--tapioka-purple-dark) !important;
}

@media (max-width: 991.98px) {
    .navbar .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        column-gap: 12px;
    }

    .navbar-brand-group {
        display: contents;
    }

    .navbar-toggler {
        grid-column: 1;
        grid-row: 1;
        margin: 0;
        padding: 0.25rem 0;
        justify-self: start;
        border-color: white;
    }

    .navbar-brand {
        grid-column: 2;
        grid-row: 1;
        justify-self: start;
    }

    .navbar-socials {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        margin-right: 8px;
    }

    .navbar-collapse {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* Hero Section */
.hero-section { 
    color: white;
    width: 100%;
    min-height: calc(100vh - 76px);
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
    background-color: var(--tapioka-violet);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(114, 33, 128, 0.82) 0%, rgba(81, 38, 128, 0.7) 100%);
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
    padding: 0 5vw;
}

.hero-logo {
    width: 192px;
    max-width: 100%;
    height: 295px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: 30px;
}

.hero-section p {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.btn-primary {
    background: white;
    color: var(--tapioka-purple);
    border: none;
    padding: 12px 35px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--tapioka-purple-dark);
    color: white;
}

/* Savoir-faire Section */
.savoir-faire-section {
    padding: 0;
    margin-top: -44px;
    position: relative;
    z-index: 4;
}

.savoir-faire-shell {
    padding-left: 0;
    padding-right: 0;
}

.expertise-keywords-section {
    padding: 0;
    margin-top: -36px;
    position: relative;
    z-index: 5;
}

.expertise-keywords-shell {
    padding-left: 0;
    padding-right: 0;
}

.expertise-keywords-panel {
    background: #EEEAF3;
    border-radius: 36px 36px 0 0;
    padding: 80px 0 130px 0;
    overflow: hidden;
}

.expertise-keywords-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    overflow: hidden;
}

.expertise-keywords-row {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    will-change: transform;
}

.expertise-keywords-group {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 0 0 auto;
    padding-right: 22px;
    will-change: transform;
}

.expertise-keywords-track {
    display: none;
}

.expertise-keyword {
    color: var(--tapioka-purple);
    font-size: clamp(1.85rem, 2.55vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.expertise-keyword-separator {
    width: 34px;
    height: 18px;
    object-fit: contain;
    flex: 0 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    color: var(--tapioka-purple);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title i {
    font-size: 2.5rem;
    color: var(--tapioka-purple);
}

.section-title-left {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.section-title-left img {
    width: 18px;
    height: 18px;
}

/* Tapioka Section */
.tapioka-section {
    padding: 86px 0 92px;
    background: #EEEAF3;
    border-radius: 36px 36px 0 0;
    margin-top: -36px;
    position: relative;
    z-index: 3;
    overflow-x: hidden;
}

.tapioka-grid {
    row-gap: 32px;
}

.tapioka-title {
    max-width: 340px;
    margin: 0;
    background: linear-gradient(90deg, #512680 0%, #722180 60%, #8A1D80 80%, #941C80 100%);
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2.15rem, 3.55vw, 3rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: none;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    will-change: transform, opacity;
}

.tapioka-content {
    max-width: 680px;
    margin-left: 88px;
    padding-top: 6px;
    font-size: 1.18rem;
    color: #512680;
    font-weight: 300;;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    will-change: transform, opacity;
}

.tapioka-section.is-visible .tapioka-title,
.tapioka-section.is-visible .tapioka-content {
    opacity: 1;
    transform: none;
}

.tapioka-content p {
    margin-bottom: 28px;
    line-height: 1.65;
}

.tapioka-strong {
    margin-bottom: 0;
    color: var(--tapioka-purple);
}

.tapioka-strong strong {
    font-weight: 700;
}

.skill-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.skill-card p {
    font-size: 0.9rem;
    color: #666;
}

/* Corporate Section */
.corporate-section {
    background: var(--tapioka-purple);
    color: white;
    padding: 80px 0;
}

.corporate-card {
    background: #722180;
    padding: 58px 64px 108px;
    border-radius: 36px 36px 0 0;
    color: white;
    overflow: hidden;
}

.corporate-tabs {
    display: block;
    gap: 20px;
    margin-bottom: 56px;
    margin-left: 64px;
    margin-top: 22px;
    overflow: hidden;
}

.corporate-tabs .swiper-wrapper {
    align-items: center;
    text-transform: uppercase;
}

.corporate-tab-label {
    text-transform: uppercase;
}

.corporate-tabs .swiper-slide {
    width: auto;
    position: relative;
}

.corporate-tab {
    position: relative;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0 18px 10px;
    line-height: 1;
}

.corporate-tab[aria-selected="true"] {
    color: white;
}

.corporate-tabs .swiper-slide:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

.corporate-tab.active::before {
    content: "";
    position: absolute;
    left: 18px;
    bottom: 0;
    right: 18px;
    height: 3px;
    border-radius: 999px;
    background: white;
}

.corporate-layout {
    display: flex;
    align-items: center;
    gap: 28px;
}

.corporate-layout > .corporate-nav {
    flex: 0 0 36px;
    width: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.corporate-layout > .corporate-nav-next {
    margin-left: 40px;
}

.corporate-copy {
    flex: 1.2 1 0;
    max-width: 620px;
}

.corporate-copy h3 {
    text-transform: uppercase;
}

.corporate-swiper {
    flex: 1 1 auto;
    min-width: 0;
}

.corporate-slide {
    display: flex;
    align-items: center;
    gap: 28px;
}

.corporate-slide .corporate-copy {
    flex: 1.2 1 0;
    max-width: 620px;
}

.corporate-media {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    justify-content: center;
    margin-left: auto;
}

.corporate-card h3 {
    margin: 0 0 26px;
    font-size: clamp(1.85rem, 1.7vw, 3.4rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: white;
}

.corporate-card h3 .highlight {
    display: block;
    font-size: clamp(3rem, 6vw, 7.2rem);
    margin-top: 20px;
    font-weight: 800;
}

.corporate-card h3 .more-margin-desktop {
    margin-top: 22px;
}

.corporate-description {
    max-width: 580px;
    margin: 0 0 34px;
    font-size: 1.4rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.96);
}

.corporate-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 14px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.corporate-tags li {
    position: relative;
    padding-left: 26px;
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 200;
}

.corporate-tags li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 18px;
    height: 12px;
    background: url("../images/half-oval-white.png") center / contain no-repeat;
    transform: translateY(-50%);
}

.corporate-visual {
    width: clamp(100px, 18vw, 350px);
    aspect-ratio: 1 / 1.62;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: none;
    position: relative;
}

.corporate-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(114, 33, 128, 0.82) 0%, rgba(81, 38, 128, 0.7) 100%);
    opacity: 1;
    transition: opacity 0.6s ease;
}

.corporate-visual:hover::after {
    opacity: 0;
}

.corporate-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.corporate-nav {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    padding: 0;
}

.corporate-swiper .swiper-slide {
    height: auto;
}

/* Portfolio Section */
.portfolio-section {
    padding: 96px 0 88px;
    background: white;
    border-radius: 36px 36px 0 0;
    margin-top: -36px;
    position: relative;
    z-index: 6;
    overflow: hidden;
}

.portfolio-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    margin-bottom: 52px;
}

.portfolio-title-wrap {
    display: inline-block;
    position: relative;
    margin-top: 2px;
}

.portfolio-header h2 {
    position: relative;
    margin: 0;
    color: var(--tapioka-violet);
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.portfolio-header h2::before,
.portfolio-header h2::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.portfolio-header h2::before {
    width: 54px;
    height: 64px;
    left: -30px;
    top: -22px;
    background-image: url("../images/start-text-style.png");
}

.portfolio-header h2::after {
    width: 58px;
    height: 70px;
    right: -26px;
    top: 8px;
    background-image: url("../images/end-text-style.png");
}

.portfolio-header p {
    margin: 0;
    color: #443A4F;
    font-size: 0.92rem;
    font-weight: 400;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
    gap: 40px 24px;
    position: relative;
    overflow: hidden;
    padding-top: 90px;
    margin-top: -30px;
    height: 70vh;
    contain: layout paint;
    transform: translateZ(0);
}

@media (min-width: 769px) {
    .portfolio-section[data-portfolio-desktop-animation="disabled"] .portfolio-grid {
        height: auto;
        overflow: visible;
    }
}

.portfolio-card {
    display: block;
    width: min(100%, 272px);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    outline: none;
    will-change: transform;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
}

.portfolio-card:hover,
.portfolio-card:focus {
    color: inherit;
    text-decoration: none;
}

.portfolio-card[hidden] {
    display: none;
}

.portfolio-card:focus-visible .portfolio-media {
    box-shadow: 0 0 0 3px rgba(114, 33, 128, 0.28);
}

.portfolio-card:nth-child(3n + 2) {
    margin-top: 96px;
}

.portfolio-media {
    width: 100%;
    aspect-ratio: 317 / 417;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #f3eef7;
    contain: paint;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
    backface-visibility: hidden;
    will-change: transform;
}

.portfolio-hover-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
    background: rgba(91, 44, 111, 0.58);
    opacity: 0;
    transition: opacity 0.35s ease;
    will-change: opacity;
}

.portfolio-hover-row {
    display: flex;
    width: max-content;
    gap: 20px;
    color: white;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 0.95;
    text-transform: uppercase;
    white-space: nowrap;
    transition: transform 0.75s ease-out;
    backface-visibility: hidden;
    will-change: transform;
}

.portfolio-hover-row span {
    display: inline-block;
}

.portfolio-hover-row-top {
    transform: translateX(0);
}

.portfolio-hover-row-bottom {
    transform: translateX(-8%);
}

.portfolio-card:hover .portfolio-media img {
    transform: scale(1.04);
}

.portfolio-card:hover .portfolio-hover-layer {
    opacity: 1;
}

.portfolio-card:hover .portfolio-hover-row-top {
    transform: translateX(-8%);
}

.portfolio-card:hover .portfolio-hover-row-bottom {
    transform: translateX(0);
}

.portfolio-caption {
    padding: 12px 4px 0;
    text-align: center;
}

.portfolio-caption h3 {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #512680;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.portfolio-caption p {
    font-size: 0.92rem;
    color: #722180;
    margin: 0;
}

.portfolio-actions {
    display: none;
    justify-content: center;
    margin-top: 44px;
}

.portfolio-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.portfolio-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(114, 33, 128, 0.76);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-modal-dialog {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    width: min(1120px, 100%);
    max-height: min(92vh, 920px);
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(52, 17, 72, 0.24);
    transform: translate3d(0, 220dvh, 0);
    opacity: 0;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.portfolio-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.portfolio-modal.is-open .portfolio-modal-backdrop {
    opacity: 1;
}

.portfolio-modal.is-open .portfolio-modal-dialog {
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: portfolio-modal-bounce-in 0.36s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portfolio-modal.is-closing .portfolio-modal-dialog {
    backface-visibility: hidden;
    transform: translateZ(0);
    animation: portfolio-modal-bounce-out 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.portfolio-modal:not(.is-open):not([hidden]) .portfolio-modal-backdrop {
    opacity: 0;
}

@keyframes portfolio-modal-bounce-in {
    0% { transform: translate3d(0, 220vh, 0) scale(0.92); opacity: 0; }
    8% { transform: translate3d(0, 190vh, 0) scale(0.94); opacity: 0.04; }
    16% { transform: translate3d(0, 160vh, 0) scale(0.96); opacity: 0.16; }
    24% { transform: translate3d(0, 120vh, 0) scale(0.975); opacity: 0.32; }
    32% { transform: translate3d(0, 84vh, 0) scale(0.99); opacity: 0.52; }
    40% { transform: translate3d(0, 52vh, 0) scale(1.0); opacity: 0.74; }
    48% { transform: translate3d(0, 26vh, 0) scale(1.008); opacity: 0.9; }
    56% { transform: translate3d(0, 10vh, 0) scale(1.014); }
    66% { transform: translate3d(0, -18px, 0) scale(1.02); }
    78% { transform: translate3d(0, 6px, 0) scale(0.998); }
    90% { transform: translate3d(0, -3px, 0) scale(1.003); }
    100% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes portfolio-modal-bounce-out {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
    12% { transform: translate3d(0, -10px, 0) scale(1.01); }
    28% { transform: translate3d(0, 18vh, 0) scale(0.99); opacity: 0.8; }
    48% { transform: translate3d(0, 64vh, 0) scale(0.975); opacity: 0.5; }
    72% { transform: translate3d(0, 140vh, 0) scale(0.94); opacity: 0.18; }
    100% { transform: translate3d(0, 220vh, 0) scale(0.92); opacity: 0; }
}

.portfolio-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    border: 0;
    background: transparent;
    color: #5d4a73;
    font-size: 1.15rem;
    line-height: 1;
    padding: 6px;
}

.portfolio-modal-media {
    position: relative;
    flex: 1 1 0;
    min-width: 320px;
    min-height: 100%;
    background: #e8dff1;
    overflow: hidden;
}

.portfolio-modal-media .swiper-wrapper {
    height: 100%;
}

.portfolio-modal-media .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8dff1;
}

.portfolio-modal-media-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.88);
    color: var(--tapioka-violet);
    transform: translateY(-50%);
    box-shadow: 0 10px 28px rgba(61, 26, 76, 0.14);
}

.portfolio-modal-media-nav:hover {
    background: white;
}

.portfolio-modal-media-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.portfolio-modal-media-nav[hidden],
.portfolio-modal-dots[hidden] {
    display: none !important;
}

.portfolio-modal-media-nav-prev {
    left: 18px;
}

.portfolio-modal-media-nav-next {
    right: 18px;
}

.portfolio-modal-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.portfolio-modal-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}

.portfolio-modal-dots {
    position: absolute;
    left: 16px;
    right: auto;
    width: calc(100% - 32px);
    bottom: 34px;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    transition: left var(--portfolio-dots-transition-duration, 280ms) cubic-bezier(0.22, 1, 0.36, 1), width var(--portfolio-dots-transition-duration, 280ms) cubic-bezier(0.22, 1, 0.36, 1), bottom var(--portfolio-dots-transition-duration, 280ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-modal-dots.swiper-pagination-horizontal {
    width: calc(100% - 32px);
}

.portfolio-modal-dots button {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
}

.portfolio-modal-dots .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    opacity: 1;
    background: rgba(255, 255, 255, 0.6);
}

.portfolio-modal-dots button.active {
    background: #b51b92;
}

.portfolio-modal-dots .swiper-pagination-bullet-active {
    background: #b51b92;
}

.portfolio-modal-content {
    display: flex;
    flex-direction: column;
    flex: 1.05 1 0;
    min-width: 0;
    padding: 44px 48px 40px;
    min-height: 0;
}

.portfolio-modal-scroll-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 10px;
    margin-top: 14px;
    scrollbar-gutter: stable;
}

.portfolio-modal-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.portfolio-modal-meta {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 42px;
    min-width: 0;
    flex: 1 1 auto;
}

.portfolio-modal-row {
    display: flex;
    align-items: center;
    gap: 18px;
}

.portfolio-modal-row-top-spacing {
    /* Padding added only on desktop via media query */
}

.portfolio-modal-label {
    flex: 0 0 96px;
    color: #262130;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.portfolio-modal-row strong {
    flex: 1 1 auto;
    color: var(--tapioka-violet);
    font-size: 1.1rem;
    font-weight: 700;
}

#portfolio-modal-client {
    text-transform: uppercase;
}

.portfolio-modal-operation {
    flex: 1 1 auto;
    margin: 0;
    color: #2d2437;
    font-size: 1rem;
    line-height: 1.45;
}

.portfolio-modal-operation strong {
    margin-right: 8px;
    color: #2d2437;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.portfolio-modal-year {
    color: #4f425f;
}

.portfolio-modal-logo {
    flex: 0 0 auto;
    min-width: 112px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    text-align: center;
}

.portfolio-modal-logo[data-client="leetchi"] {
}

.portfolio-modal-logo[data-client="glady"] {
}

.portfolio-modal-logo img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.portfolio-modal-description,
.portfolio-modal-mission {
    margin: 0;
    color: #655774;
    font-size: 1rem;
    line-height: 1.5;
}

.portfolio-modal-description {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.portfolio-modal-mission {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.portfolio-modal-rich-block {
    flex: 1 1 auto;
    max-width: 470px;
}

.portfolio-modal-rich-block--offset {
    margin-left: 114px;
}

.portfolio-modal-rich-row {
    align-items: start;
}

.portfolio-modal-rich-text {
    color: #655774;
    font-size: 1rem;
    line-height: 1.5;
}

.portfolio-modal-rich-block--offset .portfolio-modal-rich-text p {
    color: #443A4F;
    font-weight: 300;
    font-size: 1.125rem;
}

.portfolio-modal-rich-block:not(.portfolio-modal-rich-block--offset) .portfolio-modal-rich-text p {
    color: #756A80;
    font-weight: 300;
    font-size: 1rem;
}

.portfolio-modal-description p,
.portfolio-modal-mission p {
    margin: 0 0 14px;
}

.portfolio-modal-description p:last-child,
.portfolio-modal-mission p:last-child {
    margin-bottom: 0;
}

.portfolio-modal-description ul,
.portfolio-modal-mission ul,
.portfolio-modal-description ol,
.portfolio-modal-mission ol {
    margin: 0;
    padding-left: 22px;
}

.portfolio-modal-description li + li,
.portfolio-modal-mission li + li {
    margin-top: 8px;
}

.portfolio-modal-mission-block {
    margin-bottom: 0;
}

.portfolio-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-left: 114px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.portfolio-modal-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 18px;
    border: 1.5px solid #b51b92;
    border-radius: 999px;
    color: var(--tapioka-violet);
    font-size: 0.95rem;
    font-weight: 600;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-meta > .portfolio-modal-row:first-child {
    display: none;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) .portfolio-modal-label {
    flex: 0 0 auto;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) .portfolio-modal-operation {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding-top: 10px;
    padding-bottom: 25px;
    margin-left: 0;
    margin-right: -6px;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-tags::-webkit-scrollbar {
    display: none;
}

.portfolio-modal[data-compact="true"] .portfolio-modal-scroll-content {
    max-height: 34vh;
    padding-right: 6px;
    width: 85vw;;
}

.portfolio-modal-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.portfolio-modal-nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    color: var(--tapioka-violet);
    padding: 0;
    flex: 1 1 0;
    text-align: left;
}

.portfolio-modal-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.portfolio-modal-nav span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.portfolio-modal-nav strong {
    font-size: 1rem;
    font-weight: 700;
}

.portfolio-modal-nav span strong {
    text-transform: uppercase;
}

.portfolio-modal-nav small {
    color: #7d6b90;
    font-size: 0.9rem;
    white-space: normal;
}

.portfolio-modal-nav:disabled {
    opacity: 0.28;
    pointer-events: none;
}

body.portfolio-modal-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .portfolio-grid {
        height: auto;
        overflow: visible;
    }

    .portfolio-card,
    .portfolio-media img,
    .portfolio-hover-layer,
    .portfolio-hover-row {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--tapioka-purple);
    color: var(--tapioka-purple);
    background: white;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.8rem;
    transition: all 0.3s;
}

.btn-load-more i {
    font-size: 0.78rem;
}

.btn-load-more:hover {
    background: var(--tapioka-purple);
    color: white;
}

/* Client Section */
.client-section {
    padding: 0;
    margin-top: -36px;
    background: #ffffff;
    border-radius: 36px 36px 0 0;
    position: relative;
    z-index: 8;
}

.client-testimonial-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 82px 56px 110px;
    border-radius: 30px;
    background: linear-gradient(180deg, #fffefe 0%, #fcf9ff 100%);
    box-shadow: 0 20px 60px rgba(86, 44, 111, 0.08);
    overflow: hidden;
}

.client-testimonial-track {
    width: 100%;
    min-height: 210px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
}

.client-testimonial-track .swiper-wrapper {
    align-items: stretch;
}

.client-testimonial {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-inline: 42px;
    padding-top: 8px;
    text-align: center;
    box-sizing: border-box;
}

.client-testimonial-track .swiper-slide {
    height: auto;
}

.client-testimonial::before,
.client-testimonial::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.client-testimonial::before {
    top: 2px;
    left: 10px;
    background-image: url("../images/guillemet-ouvert.png");
}

.client-testimonial::after {
    right: 10px;
    bottom: 62px;
    background-image: url("../images/guillemet-ferme.png");
}

.client-testimonial-text {
    margin: 0;
    max-width: 60vw;
    color: #312a3d;
    font-size: clamp(1.25rem, 1.45vw, 1.85rem);
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.client-testimonial-author {
    margin-top: 26px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.client-testimonial-logo {
    width: 42px;
    height: 42px;
    border: 1.5px solid rgba(91, 44, 111, 0.3);
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tapioka-light-violet);
    font-size: 1.05rem;
    line-height: 1;
}

.client-testimonial-logo-image {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.client-testimonial-meta {
    text-align: left;
}

.client-testimonial-meta strong,
.client-testimonial-meta span {
    display: block;
}

.client-testimonial-meta strong {
    color: #352b41;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-testimonial-meta span {
    color: #6f6480;
    font-size: 0.96rem;
}

.client-testimonial-dots {
    margin-top: 22px;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px;
    max-width: 200px;
    height: 3px;
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    border-radius: 999px;
    background: rgba(148, 28, 128, 0.18);
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    overflow: hidden;
}

.client-testimonial-dots .swiper-pagination-bullet {
    display: block;
    flex: 1 1 0;
    height: 100%;
    border: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease;
    opacity: 1;
    width: auto !important;
    margin: 0 !important;
    appearance: none;
    -webkit-appearance: none;
}

.client-testimonial-dots .swiper-pagination-bullet:hover {
    background: rgba(148, 28, 128, 0.12);
}

.client-testimonial-dots .swiper-pagination-bullet-active {
    background: var(--tapioka-light-violet);
    transform: none;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--tapioka-light);
}

.team-section h2 {
    color: var(--tapioka-purple);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.team-section .subtitle {
    color: #666;
    margin-bottom: 50px;
}

.team-member img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

.references-section {
    padding: 0;
    margin-top: -36px;
    background: transparent;
    position: relative;
    z-index: 7;
}

.references-panel {
    background: #EEEAF3;
    border-radius: 28px 28px 0 0;
    padding: 72px 0 120px;
    overflow: hidden;
}

.references-header {
    max-width: 420px;
    margin: 0 auto 72px;
    text-align: center;
}

.references-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--tapioka-violet);
}

.references-header h2::before,
.references-header h2::after {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

.references-header h2::before {
    width: 54px;
    height: 64px;
    left: -40px;
    top: -30px;
    background-image: url("../images/start-text-style.png");
}

.references-header h2::after {
    width: 58px;
    height: 70px;
    right: -35px;
    top: 55px;
    background-image: url("../images/end-text-style.png");
}

.references-header p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #443A4F;
}

.references-logos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    overflow: hidden;
}

.references-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4px, 1.2vw, 12px);
    min-width: max-content;
    padding: 0 clamp(4px, 1.2vw, 12px);
    margin: 0 auto;
    will-change: transform;
}

.references-row-offset {
    padding-left: clamp(4px, 1.2vw, 12px);
}

.reference-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 clamp(96px, 10vw, 128px);
    width: clamp(96px, 10vw, 128px);
    min-width: 0;
    opacity: 0.95;
}

.reference-logo img {
    max-width: 100%;
    width: auto;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(32%) sepia(40%) saturate(1300%) hue-rotate(240deg);
    -webkit-filter: brightness(0) saturate(100%) invert(32%) sepia(40%) saturate(1300%) hue-rotate(240deg);
}

/* Ensure the inner duplicated group is a horizontal flex row */
.references-row-group {
    display: flex;
    align-items: center;
    gap: clamp(4px, 1.2vw, 12px);
    flex-wrap: nowrap;
}

.bg-violet {
    background-color: var(--tapioka-violet);
}
.bg-light-violet {
    background-color: var(--tapioka-light-violet);
}
.bg-deep-violet {
    background-color: var(--tapioka-deep-violet);
}
.bg-degrade-violet {
    background: linear-gradient(135deg, var(--tapioka-light-violet) 0%, var(--tapioka-deep-violet) 100%);
    color: white;
}
/* Contact Section */
.contact-section { 
    --contact-bottom-crop: clamp(24px, 3.2vw, 46px);
    color: white;
    padding: 0;
    border-radius: 32px 32px 0 0;
    overflow: hidden;
    margin-top: -36px;
    position: relative;
    z-index: 9;
}

.contact-card {
    padding: 75px 38px 18px;
    /* margin-bottom: calc(var(--contact-bottom-crop) * -1); */
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
    gap: 38px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info h2 {
    display: inline-block;
    margin: 0;
    color: white;
    font-size: clamp(2.8rem, 3.8vw, 4.1rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.025em;
}

.contact-brand-row {
    margin-bottom: 20px;
}

.contact-brand-top,
.contact-brand-bottom {
    display: block;
}

.contact-brand-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.contact-addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
    max-width: 640px;
    margin-bottom: 10px;
}

.contact-mobile-person {
    display: none;
}

.contact-person {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.contact-address h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    font-weight: 700;
}

.contact-address p {
    margin: 0;
    opacity: 0.95;
    font-size: 1.1rem;
    line-height: 1.45;
    font-weight: 100;
}

.contact-address p strong {
    font-weight: 700;
}

.contact-portrait {
    width: min(100%, clamp(240px, 18.5vw, 290px));
    aspect-ratio: 0.74;
    margin: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #1d1bc1;
    flex: 0 0 auto;
    position: relative;
    transition: transform 0.35s ease;
}

.contact-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

	/* Animations for contact overlay */
	@keyframes slideInDown {
	    from { transform: translateY(-12px); opacity: 0; }
	    to   { transform: translateY(0); opacity: 1; }
	}

	@keyframes slideInUp {
	    from { transform: translateY(12px); opacity: 0; }
	    to   { transform: translateY(0); opacity: 1; }
	}

	.contact-portrait-overlay {
	    position: absolute;
	    inset: 0;
	    margin: 0;
	    padding: 20px 18px;
	    display: flex;
	    flex-direction: column;
	    justify-content: center;
	    align-items: center;
	    text-align: center;
	    color: white;
	    background: linear-gradient(135deg, #512680 0%, #722180 36%, #8A1D80 68%, #941C80 100%);
	    opacity: 0;
	    transition: opacity 0.35s ease;
	}

	.contact-portrait-overlay h3 {
	    margin: 0 0 4px;
	    font-size: 0.86rem;
	    font-weight: 700;
	    letter-spacing: 0.08em;
	    opacity: 0;
	    transform: translateY(-8px);
	    will-change: transform, opacity;
	}

	.contact-portrait-role,
	.contact-portrait-phone {
	    margin: 0;
	    font-size: 0.84rem;
	    line-height: 1.35;
	}

	.contact-portrait-role {
	    opacity: 0;
	    transform: translateY(-8px);
	    will-change: transform, opacity;
	}

	.contact-portrait-phone {
	    margin-top: 6px;
	    opacity: 0;
	    transform: translateY(8px);
	    will-change: transform, opacity;
	}

	.contact-portrait-overlay a {
	    margin-top: 8px;
	    color: white;
	    font-size: 0.76rem;
	    line-height: 1.3;
	    text-decoration: underline;
	    text-underline-offset: 2px;
	    overflow-wrap: anywhere;
	    opacity: 0;
	    transform: translateY(8px);
	    will-change: transform, opacity;
	}

	.contact-portrait:hover {
	    transform: rotate(-6deg) scale(1.04);
	}

	.contact-portrait:hover .contact-portrait-overlay {
	    opacity: 0.88;
	}

	/* trigger child animations when overlay appears */
	.contact-portrait:hover .contact-portrait-overlay h3 {
	    animation: slideInDown 0.45s cubic-bezier(.2,.9,.3,1) both;
	}

	.contact-portrait:hover .contact-portrait-overlay .contact-portrait-role {
	    animation: slideInDown 0.45s cubic-bezier(.2,.9,.3,1) both;
	    animation-delay: 0.06s;
	}

	.contact-portrait:hover .contact-portrait-overlay .contact-portrait-phone {
	    animation: slideInUp 0.45s cubic-bezier(.2,.9,.3,1) both;
	    animation-delay: 0.08s;
	}

	.contact-portrait:hover .contact-portrait-overlay a {
	    animation: slideInUp 0.45s cubic-bezier(.2,.9,.3,1) both;
	    animation-delay: 0.12s;
    align-items: center;
    gap: 18px;
}

.contact-mobile-portrait {
    width: 102px;
    aspect-ratio: 0.72;
    margin: 0;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 auto;
    background: #1d1bc1;
}

.contact-mobile-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.contact-mobile-copy {
    min-width: 0;
}

.contact-mobile-copy h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.contact-mobile-role,
.contact-mobile-phone {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.35;
}

.contact-mobile-copy a {
    color: white;
    font-size: 0.9rem;
    line-height: 1.35;
    text-decoration: underline;
    text-underline-offset: 2px;
    word-break: break-word;
}

.contact-form {
    padding-top: 2px;
}

.contact-form-status {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.45;
}

.contact-form-status--success {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.contact-form-status--error {
    background: rgba(255, 77, 77, 0.16);
    color: #ffffff;
}

.contact-form-note {
    margin: 0 0 10px;
    font-size: 0.68rem;
    text-align: right;
    opacity: 0.82;
}

.contact-form-grid {
    display: grid;
    gap: 10px;
}

.contact-form .form-control {
    background: #f4f1f7;
    border: 0;
    border-radius: 4px;
    color: #2a2034;
    padding: 13px 12px;
    min-height: 42px;
    box-shadow: none;
}

.contact-form textarea.form-control {
    min-height: 126px;
    resize: vertical;
}

.contact-form .form-control::placeholder {
    color: #5e5668;
}

.contact-form .form-control:focus {
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.24);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.btn-submit,
.btn-whatsapp {
    min-height: 46px;
    border-radius: 999px;
    padding: 11px 28px;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-submit {
    min-width: 142px;
    background: white;
    color: var(--tapioka-purple);
    border: 1px solid white;
}

.btn-submit:hover {
    background: transparent;
    color: white;
    border-color: rgba(255, 255, 255, 0.72);
}

.btn-whatsapp {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.72);
    gap: 8px;
}

.btn-whatsapp:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.form-check-input:checked {
    background-color: var(--tapioka-purple);
    border-color: var(--tapioka-purple);
}

.social-links a {
    color: white;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 0;
    padding-top: 8px;
}

.social-links a:hover {
    opacity: 0.85;
}

/* Footer */
.footer-links {
    margin-top: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    font-size: 0.72rem;
    opacity: 0.92;
}

.footer-links span,
.footer-links a {
    color: white;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Desktop styles */
@media (min-width: 993px) {
    .portfolio-modal-row-top-spacing {
        padding-top: 24px;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .client-testimonial-card {
        padding: 66px 40px 52px;
    }

    .client-testimonial::before,
    .client-testimonial::after {
        width: 24px;
        height: 24px;
    }

    .client-testimonial::before {
        top: 2px;
        left: 8px;
    }

    .client-testimonial::after {
        right: 8px;
        bottom: 64px;
    }

    .client-testimonial-track {
        min-height: 196px;
    }

    .client-testimonial {
        max-width: 100%;
    }

    .client-testimonial-text {
        font-size: clamp(1.15rem, 2.2vw, 1.55rem);
    }

    .contact-card {
        padding: 68px 0 32px;
    }

    .contact-info h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: calc(100vh - 68px);
        padding: 96px 0 72px;
    }

    .hero-content {
        padding: 0 24px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .tapioka-section {
        padding: 56px 0 64px;
    }

    .savoir-faire-section {
        padding-bottom: 0;
        margin-top: -30px;
    }

    .expertise-keywords-section {
        padding: 0;
        margin-top: -24px;
    }

    .expertise-keywords-panel {
        border-radius: 28px 28px 0 0;
        padding: 38px 0 74px 0;
    }

    .expertise-keywords-list {
        gap: 14px;
    }

    .expertise-keywords-row {
        gap: 16px;
    }

    .expertise-keyword {
        font-size: clamp(1.45rem, 7.5vw, 2.2rem);
    }

    .expertise-keyword-separator {
        width: 28px;
        height: 14px;
    }

    .tapioka-title {
        max-width: none;
    }

    .tapioka-content {
        margin-left: 0;
        font-size: 1.1rem;
        padding-top: 0;
    }

    .tapioka-content p {
        margin-bottom: 22px;
    }

    .section-title-left {
        justify-content: center;
    }

    .corporate-card {
        position: relative;
        padding: 58px 24px 72px;
    }

    .corporate-tabs {
        align-items: center;
        gap: 0;
        margin-bottom: 40px;
        margin-left: 0;
        margin-top: 0;
    }

    .corporate-tab {
        font-size: 0.88rem;
        padding: 7px 14px;
        border-radius: 999px;
        white-space: nowrap;
        display: none;
    }

    .corporate-tab.active {
        display: inline-block;
        background: rgba(255, 255, 255, 0.16);
    }

    .corporate-tab.active::after {
        display: none;
    }

    .corporate-tab.active::before {
        display: none;
    }

    .corporate-tabs .swiper-slide:not(:last-child)::after {
        display: none;
    }

    .corporate-layout {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        width: 100%;
    }

    .corporate-swiper {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .corporate-slide {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        width: 100%;
    }

    .corporate-nav {
        position: absolute;
        top: 28px;
        display: inline-flex;
        width: auto;
        height: auto;
        font-size: 1.1rem;
        z-index: 3;
        pointer-events: auto;
    }

    .corporate-nav-prev {
        right: 80px;
        top: 60px;
    }

    .corporate-nav-next {
        right: 20px;
        top: 60px;
    }

    .corporate-card h3 {
        margin-bottom: 20px;
    }

    /* Reduce h3 in the corporate copy on mobile to match .corporate-description */
    .corporate-copy h3 {
        margin-bottom: 12px;
    }

    .corporate-copy h3 span {
        display: block;
        font-size: 1.25rem;
        line-height: 1.2;
        font-weight: 700;
    }

    .corporate-copy h3 .highlight {
        margin-top: 4px;
        font-weight: 700;
        font-size: 2rem;
    }

    .corporate-copy {
        max-width: none;
        width: 100%;
    }

    .corporate-description {
        margin-bottom: 26px;
    }

    .corporate-media {
        display: none !important;
    }

    .corporate-visual {
        width: clamp(90px, 14vw, 280px);
    }

    .portfolio-section {
        padding: 72px 0;
    }

    .client-section {
        margin-top: -24px;
        border-radius: 24px 24px 0 0;
    }

    .client-testimonial-card {
        padding: 56px 24px 64px;
        border-radius: 24px;
    }

    .client-testimonial::before,
    .client-testimonial::after {
        width: 22px;
        height: 22px;
    }

    .client-testimonial::before {
        top: 2px;
        left: 4px;
    }

    .client-testimonial::after {
        right: 4px;
        bottom: 60px;
    }

    .client-testimonial-track {
        min-height: 232px;
    }

    .client-testimonial-text {
        font-size: clamp(1.1rem, 5vw, 1.45rem);
        line-height: 1.55;
    }

    .client-testimonial-author {
        margin-top: 28px;
        gap: 12px;
    }

    .portfolio-header {
        margin-bottom: 36px;
    }

    .portfolio-header h2::before {
        width: 44px;
        height: 52px;
        left: -22px;
        top: -15px;
    }

    .portfolio-header h2::after {
        width: 46px;
        height: 58px;
        right: -20px;
        top: 20px;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 14px;
        height: auto;
        overflow: visible;
    }

    .portfolio-card {
        width: min(100%, 228px);
    }

    .portfolio-card:nth-child(3n + 2) {
        margin-top: 0;
    }

    .portfolio-actions {
        margin-top: 32px;
    }

    .portfolio-modal {
        padding: 20px;
        align-items: stretch;
        justify-items: stretch;
    }

    .portfolio-modal-dialog {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        height: 100%;
        max-height: none;
        overflow-y: auto;
    }

    .portfolio-modal-media {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: clamp(220px, 48vw, 360px);
        aspect-ratio: 16 / 9;
    }

    .portfolio-modal-media img,
    .portfolio-modal-media video {
        min-height: 0;
        max-height: none;
        height: 100%;
    }

    .portfolio-modal-media-nav {
        width: 38px;
        height: 38px;
    }

    .portfolio-modal-media-nav-prev {
        left: 12px;
    }

    .portfolio-modal-media-nav-next {
        right: 12px;
    }

    .portfolio-modal-content {
        padding: 28px 24px 24px;
    }

    .portfolio-modal-top {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .portfolio-modal-meta {
        padding-top: 0;
    }

    .portfolio-modal-description,
    .portfolio-modal-tags {
        margin-left: 0;
    }

    .portfolio-modal-rich-block--offset {
        margin-left: 0;
    }

    .portfolio-modal-scroll-content {
        max-height: 34vh;
    }


    .portfolio-modal-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-top: 10px;
        padding-bottom: 0;
        margin-left: 0;
        margin-right: -6px;
        padding-right: 6px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .portfolio-modal-tags::-webkit-scrollbar {
        display: none;
    }
    .portfolio-modal-tags {
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        padding-bottom: 6px;
        margin-right: -24px;
        padding-right: 24px;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-x;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .portfolio-modal-tags::-webkit-scrollbar {
        display: none;
    }

    .portfolio-modal-meta > .portfolio-modal-row:first-child {
        display: none;
    }

    .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) .portfolio-modal-label {
        flex: 0 0 auto;
    }

    .portfolio-modal-meta > .portfolio-modal-row:nth-child(2) .portfolio-modal-operation {
        flex: 1 1 auto;
        min-width: 0;
        white-space: nowrap;
    }

    .portfolio-modal-row {
        display: block;
    }

    .portfolio-modal-meta {
        gap: 18px;
    }

    .portfolio-modal-footer {
        flex-direction: row;
    }

    .portfolio-modal-nav {
        justify-content: flex-start;
        text-align: left;
    }

    .portfolio-modal-nav-next {
        justify-content: flex-end;
        text-align: right;
    }

    .references-panel {
        padding: 64px 0 120px;
    }

    .references-header {
        margin-bottom: 56px;
        padding: 0 24px;
    }

    .references-row-offset {
        padding-left: 40px;
    }

    .team-member img {
        height: 300px;
    }

    .contact-card {
        padding: 64px 24px 18px;
    }

    .contact-section {
        --contact-bottom-crop: 10px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-brand-row {
        margin-bottom: 20px;
    }

    .contact-brand-top {
        justify-content: flex-start;
        gap: 14px;
        flex-wrap: wrap;
    }

    .social-links {
        position: static;
        margin-top: 0;
        padding-top: 0;
    }

    .contact-addresses {
        max-width: none;
    }

    .contact-mobile-contacts {
        display: flex;
        flex-direction: column;
        gap: 22px;
        margin-top: 18px;
    }

    .contact-form-note {
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .references-header h2::before {
        width: 38px;
        height: 48px;
        left: -30px;
        top: -20px;
    }

    .references-header h2::after {
        width: 40px;
        height: 52px;
        right: -40px;
        top: 40px;
    }

    .contact-portrait {
        display: none;
    }

    .contact-mobile-person {
        display: flex;
        align-items: flex-start;
        gap: 14px;
    }
}

/* Show all corporate tabs on screens larger than 768px */
@media (min-width: 769px) {
    .corporate-tab {
        display: inline-block !important;
    }
}

@media (max-width: 576px) {
    .client-testimonial-card {
        padding: 34px 18px 80px;
    }

    .client-testimonial::before,
    .client-testimonial::after {
        width: 20px;
        height: 20px;
    }

    .client-testimonial::before {
        top: 2px;
        left: 2px;
    }

    .client-testimonial::after {
        right: 2px;
        bottom: 78px;
    }

    .client-testimonial-track {
        min-height: 252px;
    }

    .client-testimonial {
        max-width: 100%;
    }

    .client-testimonial-text {
        max-width: 100%;
        font-size: clamp(1rem, 6vw, 1.28rem);
        line-height: 1.6;
    }

    .client-testimonial-author {
        margin-top: 24px;
    }

    .portfolio-header h2::before {
        width: 44px;
        height: 52px;
        left: -22px;
        top: -15px;
    }

    .portfolio-header h2::after {
        width: 46px;
        height: 58px;
        top: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
    }

    .portfolio-grid:not(.is-expanded) .portfolio-card:nth-child(n + 7) {
        display: none;
    }

    .portfolio-section {
        overflow: visible;
    }

    .portfolio-card {
        width: min(100%, 264px);
    }

    .portfolio-card:nth-child(3n + 2) {
        margin-top: 0;
    }

    .portfolio-actions:not([hidden]) {
        display: flex;
    }

    .references-panel {
        border-radius: 24px 24px 0 0;
        padding: 56px 0 112px;
    }

    .references-header {
        max-width: 300px;
        margin-bottom: 40px;
    }

    .references-header h2::before {
        width: 38px;
        height: 48px;
        left: -30px;
        top: -20px;
    }

    .references-header h2::after {
        width: 40px;
        height: 52px;
        right: -35px;
        top: 40px;
    }

    .references-header p {
        font-size: 1rem;
    }

    .references-logos {
        gap: 18px;
    }

    .references-row {
        gap: 10px;
        padding: 0 10px;
    }

    .references-row-offset {
        padding-left: 10px;
    }

    .reference-logo {
        flex-basis: 92px;
        width: 92px;
    }

    .contact-section {
        --contact-bottom-crop: 0px;
    }

    .reference-logo img {
        height: 32px;
    }

    .portfolio-modal {
        padding: 12px;
    }

    .portfolio-modal-media img {
        min-height: 260px;
    }

    .portfolio-modal-media-nav {
        width: 34px;
        height: 34px;
    }

    .portfolio-modal-media-nav i {
        font-size: 0.9rem;
    }

    .portfolio-modal-close {
        top: 14px;
        right: 14px;
    }

    .portfolio-modal-content {
        padding: 22px 18px 18px;
    }

    .portfolio-modal-logo {
        min-width: 92px;
        font-size: 1.55rem;
    }

    .portfolio-modal-description,
    .portfolio-modal-mission {
        font-size: 0.95rem;
    }

    .portfolio-modal-scroll-content {
        max-height: 44vh;
        padding-right: 6px;
    }

    .contact-section {
        border-radius: 24px 24px 0 0;
        margin-top: -24px;
    }

    .contact-card {
        padding: 64px 18px 16px;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    .contact-addresses {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 14px;
        margin-bottom: 24px;
    }

    .contact-person {
        gap: 14px;
    }

    .contact-portrait {
        display: none;
    }

    .contact-address h3 {
        font-size: 0.96rem;
    }

    .contact-address p {
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .contact-mobile-portrait {
        width: 88px;
    }

    .contact-mobile-copy h3 {
        font-size: 0.95rem;
    }

    .contact-mobile-role,
    .contact-mobile-phone,
    .contact-mobile-copy a {
        font-size: 0.82rem;
    }

    .social-links {
        display: none;
    }

    .contact-actions {
        flex-direction: column;
    }

    .btn-submit,
    .btn-whatsapp {
        width: 100%;
    }

    .footer-links {
        gap: 10px 16px;
        font-size: 0.68rem;
    }
}

[data-savoir-faire]:not(.is-visible) [data-savoir-faire-tabs],
[data-savoir-faire]:not(.is-visible) .corporate-copy h3,
[data-savoir-faire]:not(.is-visible) .corporate-description,
[data-savoir-faire]:not(.is-visible) .corporate-tags,
[data-savoir-faire]:not(.is-visible) .corporate-media,
[data-savoir-faire]:not(.is-visible) .corporate-nav {
    opacity: 0;
}

[data-savoir-faire].is-visible .animate__animated {
    opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
