@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(https://fonts.gstatic.com/s/inter/v20/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa2JL7W0Q5n-wU.woff2) format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: 'Corvetta';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../Corvetta.otf') format('opentype'),
         url('../Corvetta.ttf') format('truetype');
}

:root {
    --bg-color: #ECEFF4;
    --text-dark: #29323B;
    --text-light: #6A7280;
    --card-light: #F4ECD8;
    --card-dark: #2E3643;
    --container-width: 1240px;
    --gap: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    overflow: visible;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    width: 100%;
}

/* ── Two-column layout ─────────────────────────────────────────────
   .cols          — flex row, gap 40px
   .col-left      — 360px fixed width
   .col-right     — fluid, takes remaining ~760px
   On mobile: left stacks above right
──────────────────────────────────────────────────────────────────── */
.cols {
    display: flex;
    align-items: center;
    gap: 40px;
}

.cols--start {
    align-items: flex-start;
}

.col-left {
    flex: 0 0 360px;
    min-width: 0;
}

.col-right {
    flex: 1;
    min-width: 0;
}

/* Visibility helpers */
.mobile-only {
    display: none;
}



/* Header */
.header {
    padding: 30px 0 35px;
    text-align: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
}

.header-tel {
    color: #29323B;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: right;
    text-decoration: none;
}

.logo {
    display: block;
    width: fit-content;
}

.logo-svg {
    width: 264px;
    height: auto;
    max-width: 100%;
    display: block;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 0;
    min-height: 400px;
    margin-bottom: 110px;
}

.hero-title {
    color: #29323B;
    font-size: 60px;
    margin-bottom: 34px;
    font-family: Inter;
    font-weight: 400;
    font-style: normal;
    line-height: 100%;

}

.hero-p {
    font-size: 16px;
    max-width: 440px;
    line-height: 1.5;
}

.hero-description {
    font-weight: 400;
    font-size: 16px;
    margin-top: 80px;
    margin-bottom: 110px;
    line-height: 1.5;
}

.hero-image-card {
    position: absolute;
    left: -120px;
    top: 300px;
    width: 300px;
    height: 300px;
    background-image: url('../images/card.jpg');
    background-size: cover;
    background-position: center;
    transform: rotate(18deg);
    /* Slightly more tilt */
    padding: 40px 30px;
    display: flex;
    align-items: flex-start;
    box-shadow: 0px 19px 11px -9px rgba(0, 0, 0, 0.15);
    /* Stronger shadow */
    z-index: 10;
}

.hero-card-content {
    font-size: 20px;
    font-weight: 400;
    color: #2A313E;
    line-height: 1.3;
}

.hero-card-badge {
    position: absolute;
    left: 50%;
    top: 60%;
    transform: translate(-50%, -50%);
    font-family: 'Corvetta', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #2A313E;
    text-align: center;
    pointer-events: none;
}

.hero-image-card.is-modal .hero-card-badge {
    display: none;
}

/* Hover hint */
.hero-image-card {
    cursor: pointer;
    will-change: transform;
}

/* Blur overlay (covers everything except header) */
.hero-card-overlay {
    position: fixed;
    inset: 0;
    background: rgba(210, 215, 228, 0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-card-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Close button × */
.hero-card-close {
    position: fixed;
    /* top / left set dynamically in hero-card.js based on final card position */
    width: 58px;
    height: 58px;
    background: rgba(237, 236, 222, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #29323B;
    cursor: pointer;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s, background 0.2s;
    line-height: 1;
    user-select: none;
}

.hero-card-close:hover {
    background: rgba(237, 236, 222, 0.65);
}

.close-svg {
    width: 18px;
    height: 18px;
    display: block;
}

.hero-card-close.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.hero-card-phone {
    position: absolute;
    left: 0;
    right: 0;
    top: 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #29323B;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: translateY(-8px);
}

.hero-image-card.is-modal .hero-card-phone {
    pointer-events: all;
}

.hero-card-mail {
    position: absolute;
    left: 0;
    right: 0;
    top: 56%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #29323B;
    opacity: 0;
    pointer-events: none;
    text-decoration: none;
    transform: translateY(28px);
}

.hero-image-card.is-modal .hero-card-mail {
    pointer-events: all;
}

/* Keep header above overlay */
.header {
    position: relative;
    z-index: 1001;
}

.strategy-section {
    /* Increase gap between hero and strategy */
    display: flex;
    justify-content: space-between;
    position: relative;
}

.strategy-content {
    width: 760px;
    margin-left: 400px;
    /* Aligns directly above the video card (337 + 63 = 400) */
    z-index: 2;
}

.section-subtitle {
    font-weight: 300;
    margin-bottom: 10px;
}

.section-title {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.section-description {
    font-weight: 300;
    font-size: 18px;
    line-height: 1.6;
    max-width: 500px;
}

/* Portfolio Floating Cards */
.portfolio-container {
    position: static;
    right: 0;
    top: 0;
    width: 100%;
    height: 800px;
    padding-top: 0;
}

.portfolio-title {
    font-weight: 400;
    font-size: 60px;
    line-height: 100%;
    margin-bottom: 22px;
}

.cards-wrapper {
    position: relative;
    margin: 75px auto 0;
    height: 660px;
    width: 920px;
}

.portfolio-card {
    cursor: pointer;
    position: absolute;
    width: 280px;
    height: auto;
    display: block;
    box-shadow: 0px 19px 11.6px -9px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.portfolio-card.is-tapped {
    transform: scale(1.06) !important;
}


.portfolio-card-img {
    width: 100%;
    display: block;
}

.portfolio-card-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 14px 19px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    /* 150% */
    letter-spacing: 0;
}

.text-dark {
    color: #29323B;
}

.text-light {
    color: #E0E2E8;
}

/* Positioning portfolio cards to simulate collage */
.card-pos-5 {
    left: 0px;
    top: 0px;
    transform: rotate(-6deg);
    z-index: 1;
}

.card-pos-3 {
    left: 320px;
    top: 20px;
    transform: rotate(3deg);
    z-index: 2;
}

.card-pos-2 {
    left: 640px;
    top: 0px;
    transform: rotate(-4deg);
    z-index: 3;
}

.card-pos-1 {
    left: 160px;
    top: 330px;
    transform: rotate(5deg);
    z-index: 4;
}

.card-pos-4 {
    left: 480px;
    top: 340px;
    transform: rotate(-3deg);
    z-index: 5;
}


.role-text-content {
    width: 337px;
}

.role-section {
    position: relative;
    z-index: 2;
}

.role-title {
    font-size: 60px;
    font-weight: 400;
    margin-bottom: 22px;
    line-height: 100%;
}

.role-p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 380px;
    margin-bottom: 35px;
}
.watch-video {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 33px;
}

.watch-video--mobile {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: 0;
    margin: 0 0 10px;
}

.role-description {
    font-size: 18px;
    font-weight: 400;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    margin: 0;
    padding: 24px;
}

.role-quote {
    font-style: italic;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.6;
}

.portfolio-section {
    position: relative;
}

.portfolio-section--index {
    height: 1100px;
}

/* Culture block / Video placeholder */
.culture-section {
    width: 760px;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.culture-card {
    position: relative;
    /* Remove absolute positioning to stay in grid */
    width: 100%;
    background-color: #E2DFCB;
    z-index: 1;
}

.culture-image-wrapper {
    position: relative;
    width: 100%;
}

.culture-image-top {
    top: -30%;
    width: 100%;
    position: absolute;
}

.culture-image {
    width: 100%;
    display: block;
}

.culture-tag {
    position: absolute;
    top: 34px;
    left: 34px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    /* 150% */
    letter-spacing: 0;
}

.culture-heading {
    position: absolute;
    bottom: 25px;
    left: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 84px;
    line-height: 1;
    /* 100% */
    letter-spacing: 0;
    color: var(--text-dark);
}

.culture-play-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.culture-play-btn::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-45%, -50%);
    /* slightly offset to the right to look visually centered like a play icon */
    width: 24px;
    height: 24px;
    background-image: url('../images/play.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.culture-play-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.flex-start {
    align-items: flex-start;
}

/* Footer */
.footer {
    padding-bottom: 22px;
}

.footer-container {
    /* layout handled by .cols — only footer-specific overrides here */
    font-size: 14px;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 55px;
}

.footer-right {
    /* email left, phone right inside the 760px column */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
}

.footer-copyright {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0;
    color: #BCBEC2;
    text-align: left;
    margin-top: 60px;
}

/* Responsiveness Mobile 320-480 */
/* Responsiveness Mobile 320-480 */

.video {
    align-items: flex-start;
    margin-bottom: 120px;
}

.video-q {
    color: #B5B8C0;
    font-weight: 400;
    font-style: Italic;
    font-size: 16px;
    line-height: 150%;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: visibility 0.6s;
}

.video-modal.active {
    visibility: visible;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 49, 62, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: background-color 0.6s ease, backdrop-filter 0.6s ease;
}

.video-modal.active .video-modal-overlay {
    background: rgba(42, 49, 62, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.video-modal.active .video-modal-container {
    opacity: 1;
    transform: translateY(0);
}

.video-modal-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(237, 236, 222, 0.6);
    border-radius: 50%;
    border: none;
    color: #29323B;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s, opacity 0.3s;
}

.video-modal-close:hover {
    opacity: 1;
    background: rgba(237, 236, 222, 0.72);
}

.video-modal-close svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 768px) {
    .role-section .watch-video {
        display: none;
    }

    .video-modal-close {
        top: 16px;
        right: 16px;
    }
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper iframe,
.video-responsive-wrapper div,
.video-responsive-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-responsive-wrapper video {
    object-fit: cover;
    background: #000;
}

body.video-modal-open {
    overflow: hidden !important;
}

.line--section-consumer {
    right: -50px;
    top: 20px;
}

.case-image--rigla {
        object-position: 60%;
}

@media(max-width: 1200px) {

    .cards-wrapper {
        width: 768px;
    }

    .hero-image-card {
        width: 300px;
        height: 300px;
        left: -35px;
    }

    .culture-section {
        width: 100%;
    }

    .card-pos-2 {
        left: 560px;
    }

    .card-pos-5 {
        left: 40px;
    }

    .card-pos-1,
    .card-pos-4 {
        top: 280px;
    }

    .hero-title,
    .role-title,
    .culture-heading,
    .portfolio-title {
        font-size: 32px;
    }

    .portfolio-card {
        width: 210px;
    }

    .col-left {
        flex: 0 0 269px;
    }

    .container {
        max-width: 768px;
        padding: 0 20px;
    }

    .portfolio-section-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 38px 0 0;
    }

    .hero-section {
        flex-direction: column;
        min-height: auto;
        padding-top: 50px;
    }

    .hero-text {
        width: 100%;
        margin-top: 0;
        margin-bottom: 30px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 1.4;
        text-align: left;
        margin-top: 0;
        margin-bottom: 82px;
    }

    .hero-image-card {
        position: relative;
        left: auto;
        right: -30px;
        top: 0;
        width: 250px;
        height: 250px;
        margin: 0 0 60px auto;
        transform: rotate(15deg);
        box-shadow: 0px 80px 40px -10px rgba(0, 0, 0, 0.15);
        padding: 14px 18px;
    }

    .hero-card-content {
        font-size: 16px;
    }

    .hero-card-phone {
        top: 50%;
        font-size: 20px;
    }

    .hero-card-mail {
        font-size: 18px;
        transform: translateY(42px);
    }

    .hero-card-badge {
        font-size: 10px;
    }

    .strategy-section {
        flex-direction: column;
        margin-top: 0;
    }

    .strategy-content {
        width: 100%;
        margin-left: 0;
    }

    .strategy-content.mobile-only {
        margin-bottom: 40px;
    }

    .section-subtitle {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .section-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .section-description {
        font-size: 14px;
        line-height: 1.4;
    }

    .portfolio-container {
        position: static;
        width: 100%;
        height: auto;
        display: block;
    }

    .portfolio-title-wrapper {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
    }

    .portfolio-title {
        position: static;
        margin-bottom: 30px;
        text-align: left;
        font-size: 20px;
        transform: none;
        color: var(--text-dark);
        z-index: 10;
    }

    .cards-wrapper {
        position: relative;
        width: 100%;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    body.home-page .portfolio-card {
        position: relative;
        width: 260px;
        height: 260px;
        margin: 0 0 -50px 0;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        display: block;
        box-shadow: 0px 19px 11px -9px rgba(0, 0, 0, 0.25);
        transition: none;
    }

    body.home-page .portfolio-card.is-tapped {
        transform: none !important;
    }

    body.home-page .portfolio-card:last-child {
        margin-bottom: 0;
    }

    body.home-page .portfolio-card-text {
        font-size: 14px;
        bottom: 20px;
        left: 20px;
    }

    /* Stack styling for mobile cards */
    .card-pos-1 {
        order: 4;
        transform: rotate(-8deg) translateX(20px);
        z-index: 4;
    }

    .card-pos-2 {
        order: 3;
        transform: rotate(10deg) translateX(-20px);
        z-index: 3;
    }

    .card-pos-3 {
        order: 2;
        transform: rotate(-5deg) translateX(30px);
        z-index: 2;
    }

    .card-pos-4 {
        order: 5;
        transform: rotate(8deg) translateX(-10px);
        z-index: 5;
    }

    .card-pos-5 {
        order: 1;
        transform: rotate(-10deg) translateX(15px);
        z-index: 1;
    }

    .role-section {
        gap: 0;
        flex-direction: column;
        margin-top: 50px;
        min-height: auto;
    }

    .role-text-content {
        width: 100%;
        margin-bottom: 10px;
    }

    .role-title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .role-description {
        margin: 0;
        font-size: 14px;
        line-height: 1.4;
    }

    .role-quote {
        font-size: 14px;
        font-style: italic;
        line-height: 1.4;
        margin-top: 30px;
        color: var(--text-light);
    }

    .role-quote.mobile-only {
        margin-top: 40px;
    }

    .culture-section {
        width: 100%;
        margin-top: 0;
        position: relative;
    }

    .culture-card {
        position: relative;
    }

    .culture-heading {
        font-size: 24px;
        bottom: 20px;
        left: 20px;
    }

    .culture-tag {
        top: 20px;
        left: 20px;
        font-size: 12px;
    }

    .culture-play-btn {
        width: 60px;
        height: 60px;
    }

    .culture-play-btn::after {
        width: 18px;
        height: 18px;
    }

    .footer {
        padding: 50px 0 25px;
        margin-top: 60px;
    }

    .footer-right {
        flex-direction: column-reverse;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
        text-align: center;
        margin-bottom: 30px;
    }

    .footer-logo-img {
        width: 100%;
        max-width: 210px;
        display: block;
        margin: 0 auto 30px;
    }

    .footer-link--phone {
        font-size: 24px;
        margin-bottom: 18px;
        display: block;
    }

    .footer-link--mail {
        font-size: 16px;
        display: block;
        margin-bottom: 70px;
    }

    .footer-copyright {
        margin: 0;
        text-align: center;
    }

    .header-tel {
        display: none;
    }

    .logo {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 24px;
        margin-bottom: 22px;
        font-family: Inter;
        font-weight: 400;
        line-height: 100%;
        margin-bottom: 22px;
    }

    .hero-section {
        margin-bottom: 50px;
    }

    .role-p {
        max-width: 100%;
    }

    .video {
        gap: 52px;
        margin-bottom: 62px;
        flex-direction: column-reverse;
    }

    .portfolio-title {
        margin: 0 0 16px;
        font-size: 24px;
    }

    .portfolio-section--index {
        margin-bottom: 250px;
    }

    .watch-video {
        font-size: 14px;
        font-weight: 500;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

@media (max-width: 768px) {
    body.home-page {

        overflow-x: hidden;
    }

    .cols {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .col-left,
    .col-right {
        flex: none;
        width: 100%;
    }
}
