/* TOKENS: Manual 2024 */
:root {
    --purple: #5D1F77;
    --lavender: #B8A0C8;
    --orange: #E8412A;
    --yellow: #FFE433;
    --blue: #8ECBE1;
    --white: #FFFFFF;
    --dark: #2D2D2D;
    --gray: #F5F5F7;
}

/* RESET */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark);
    background: var(--white);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

main {
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
}

/* OVERLINE (Fira Mono) */
.overline {
    font-family: 'Fira Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--purple);
    background: var(--yellow);
    padding: 0.3rem 0.8rem;
    display: inline-block;
    transform: rotate(-1deg);
    box-shadow: 2px 2px 0 var(--orange);
    margin-bottom: 1rem;
}

.hero-overline-type {
    letter-spacing: 0.12em;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.hero-overline-type.is-typing::after {
    content: '|';
    margin-left: 0.15em;
}

/* HEADER - Floating Glass (from index-new2.html) */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 88%;
    max-width: 1300px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border: 1px solid rgba(93, 31, 119, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    top: 10px;
    width: 95%;
    border-radius: 30px;
}

.logo {
    position: relative;
    display: inline-block;
}

.logo img {
    display: block;
    height: 38px;
    transform: scale(1);
    transform-origin: center;
    transition: transform 0.22s ease;
    will-change: transform;
}

.logo:hover img,
.logo:focus-visible img {
    transform: scale(0.94);
}

@media (prefers-reduced-motion: reduce) {
    .logo img {
        transition: none;
    }

    .logo:hover img,
    .logo:focus-visible img {
        transform: scale(0.97);
    }

    .faq-item {
        transition: border-color 0.3s ease, box-shadow 0.3s ease;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: clamp(0.75rem, 1.5vw, 2rem);
    align-items: center;
}

/* Hamburger Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--purple);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

nav a {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
    position: relative;
    padding: 0.5rem 0;
}

nav a::before {
    content: '#';
    font-family: 'Fira Mono', monospace;
    color: var(--orange);
    margin-right: 0.3rem;
    opacity: 0;
    transition: opacity 0.3s;
}

nav a.bot-nav::before,
.btn-nav::before {
    content: none;
}

nav a:hover::before {
    opacity: 1;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a.bot-nav::after,
.btn-nav::after {
    content: none;
}

nav a:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--orange);
    color: white !important;
    padding: 0.7rem 2rem;
    border-radius: 100px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(232, 65, 42, 0.3);
}

.btn-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 65, 42, 0.4);
}

/* HERO - with shapes from index-v4.html */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(160deg, var(--white) 0%, var(--gray) 100%);
    position: relative;
    padding: 140px 0 80px;
    overflow: hidden;
    perspective: 1000px;
}

/* Animated Background Shapes from index-v4.html */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.void-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: voidFloat 15s ease-in-out infinite;
}

@keyframes voidFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -30px) scale(1.1);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }

    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

.void-1 {
    width: 600px;
    height: 600px;
    background: var(--purple);
    top: -200px;
    right: -200px;
    opacity: 0.1;
}

.void-2 {
    width: 400px;
    height: 400px;
    background: var(--blue);
    bottom: -100px;
    left: -100px;
    opacity: 0.08;
    animation-delay: 3s;
}

.void-3 {
    width: 300px;
    height: 300px;
    background: var(--yellow);
    top: 50%;
    left: 30%;
    opacity: 0.06;
    animation-delay: 6s;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
    transform-style: preserve-3d;
}

.hero-text {
    transform: translateZ(50px);
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    color: var(--purple);
    margin-bottom: 2.5rem;
    position: relative;
}

.hero-text h1 .band {
    background: var(--yellow);
    box-shadow: 6px 6px 0 var(--orange);
    display: inline-block;
    margin-bottom: 0.3rem;
    padding: 0.3rem 1rem;
    position: relative;
    transform: rotate(-1deg) translateX(-20px);
    z-index: 1;
}

.hero-text p {
    font-size: 1.15rem;
    color: #555;
    max-width: 550px;
    margin-bottom: 3rem;
    line-height: 1.9;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--orange);
    color: white;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 65, 42, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 65, 42, 0.4);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}

.hero-visual .img-wrapper {
    animation: floatChaos 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.hero-visual.cube-visual .img-wrapper {
    animation: none;
}

.hero-visual:not(.cube-visual):hover .img-wrapper {
    transform: translateZ(80px) rotateY(0deg);
}

/* Liquid float animation from index-v4.html */
.hero-visual img {
    max-width: 95%;
    /* animation: liquidFloat 10s ease-in-out infinite; */
    /*animation: floatChaos 6s ease-in-out infinite;*/
    filter: drop-shadow(30px 30px 0 var(--lavender)) contrast(1.1);
}

.cube-hero {
    width: min(108%, 644px);
    height: min(80.5vw, 644px);
    min-height: 280px;
    aspect-ratio: 1 / 1;
    position: relative;
}

.canvas-container,
#parametric-canvas {
    width: 100%;
    height: 100%;
}

@keyframes liquidFloat {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translateY(0) rotateX(0) rotateY(0);
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translateY(-15px) rotateX(2deg) rotateY(2deg);
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
        transform: translateY(10px) rotateX(-2deg) rotateY(-2deg);
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
        transform: translateY(-10px) rotateX(1deg) rotateY(1deg);
    }
}

@keyframes floatChaos {
            0%, 100% { transform: translate(0, 0) rotate(0deg); }
            25% { transform: translate(10px, -10px) rotate(2deg); }
            50% { transform: translate(-5px, 15px) rotate(-1deg); }
            75% { transform: translate(-10px, -5px) rotate(1deg); }
        }

.hero-visual::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    opacity: 0.2;
    z-index: -1;
    transform: rotate(-5deg);
}

.hero-visual.cube-visual::before {
    display: none;
}

@media (max-width: 992px) {
    .hero-visual::before {
        top: -20px;
        right: -10px;
        width: 80%;
        height: 90%;
    }
}

/* SERVICES - Cards from index-new2.html */
.services {
    padding: 10rem 0;
    background: var(--white);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, var(--purple) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.025;
    pointer-events: none;
}

.section-header {
    margin-bottom: 5rem;
    position: relative;
}

.section-header .overline {
    transform: rotate(0deg) translateX(0);
}

.section-header h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: var(--purple);
    margin-bottom: 1.5rem;
}

.section-header p {
    color: #666;
    max-width: 650px;
    line-height: 1.9;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfbfe 100%);
    padding: 2.5rem 2rem;
    border-radius: 0;
    border: 1px solid rgba(93, 31, 119, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(45, 45, 45, 0.08), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.service-card:nth-child(1) {
    transform: translateY(0);
}

.service-card:nth-child(2) {
    transform: translateY(40px);
}

.service-card:nth-child(3) {
    transform: translateY(0);
}

.service-card:nth-child(4) {
    transform: translateY(20px);
}

.service-card:nth-child(5) {
    transform: translateY(-20px);
}

.service-card:nth-child(6) {
    transform: translateY(40px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple), var(--lavender));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 24px 60px rgba(93, 31, 119, 0.16), 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(93, 31, 119, 0.2);
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gray);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--purple);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: var(--purple);
    color: white;
    transform: rotate(10deg) scale(1.1);
}

.service-card h3 {
    font-size: 1.3rem;
    color: var(--purple);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-link {
    font-family: 'Fira Mono', monospace;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.service-link i {
    transition: transform 0.3s;
}

.service-link:hover i {
    transform: translateX(10px);
}

/* FEATURED SERVICES - Two cards below culture */
.featured-services {
    padding: clamp(5rem, 8vw, 8rem) 0;
    background: var(--white);
    position: relative;
}

.featured-services::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--purple) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.025;
    pointer-events: none;
}

.featured-services .container {
    position: relative;
    z-index: 1;
}

.featured-services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
}

.featured-services-grid .service-card {
    transform: none;
}

/* CULTURE - Wide desktop layout */
.culture {
    padding: clamp(3.05rem, 5.45vw, 5.45rem) 0;
    position: relative;
    background: linear-gradient(135deg, var(--purple) 0%, var(--lavender) 100%);
    overflow: hidden;
}

.culture::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 228, 51, 0.22) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.28;
    pointer-events: none;
}

.culture .container {
    position: relative;
    z-index: 1;
    padding: 1rem 0;
}

.culture-text {
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 1240px;
    margin: 0 auto;
    text-align: left;
}

.culture-text .overline {
    background: var(--yellow);
    color: var(--dark);
    transform: none;
    margin-bottom: 1rem;
}

.culture-text h2 {
    font-size: clamp(1.9rem, 4.25vw, 4.25rem);
    margin-bottom: 1.75rem;
    line-height: 0.98;
    max-width: 980px;
}

.culture-text blockquote {
    font-size: clamp(1.05rem, 1.45vw, 1.35rem);
    line-height: 1.6;
    width: min(100%, 1120px);
    margin: 0 0 2.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--yellow);
    font-style: italic;
    position: relative;
    text-align: left;
    max-width: none;
}

.culture-text .btn-secondary {
    align-self: flex-start;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: var(--yellow);
    color: var(--dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 228, 51, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-secondary:hover::before {
    left: 100%;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 228, 51, 0.5);
}

.culture::before {
    content: '"';
    position: absolute;
    top: -50px;
    left: 30px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    pointer-events: none;
}

/* CLIENTS - Wave Effect */
.clients {
    padding: 8rem 0;
    background: var(--gray);
    overflow: hidden;
}

.clients .section-header {
    text-align: center;
}

.clients .section-header h2 {
    margin: 0 auto;
}

.wave-container {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.wave {
    display: flex;
    gap: 4rem;
    animation: wave 20s linear infinite;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes wave {
    0% {
        transform: translateX(0) translateY(-50%);
    }

    100% {
        transform: translateX(-50%) translateY(-50%);
    }
}

.wave-reverse {
    animation: wave-reverse 25s linear infinite;
    filter: invert(1);
}

@keyframes wave-reverse {
    0% {
        transform: translateX(-50%) translateY(-50%);
    }

    100% {
        transform: translateX(0) translateY(-50%);
    }
}

.wave img {
    height: 80px;
    max-width: 100px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.3s;
    flex-shrink: 0;
    object-fit: scale-down;
}

.wave img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

/* FAQ - GEO content */
.faq {
    padding: clamp(5rem, 8vw, 8rem) 0 clamp(1.95rem, 3vw, 3rem);
    background: var(--white);
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, var(--purple) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.025;
    pointer-events: none;
}

.faq .container {
    position: relative;
    z-index: 1;
}

.faq .section-header {
    max-width: 780px;
    margin-bottom: 3rem;
}

.faq-list {
    display: grid;
    gap: 1.25rem;
    width: 100%;
}

.faq-item {
    background: var(--white);
    border: 1px solid #eee;
    transition:
        height 0.35s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
    overflow: hidden;
}

.faq-item:hover,
.faq-item[open] {
    border-color: var(--lavender);
    box-shadow: 0 20px 45px rgba(93, 31, 119, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem;
    color: var(--purple);
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    color: var(--orange);
    font-family: 'Fira Mono', monospace;
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    color: #666;
    line-height: 1.8;
    padding: 1.6rem 1.8rem;
}


/* CONTACT - Split with gradient footer style */
.contact {
    padding: 10rem 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 5rem;
    align-items: start;
}

.contact-grid > * {
    min-width: 0;
}

.contact-cta {
    background: linear-gradient(135deg, var(--purple), #4a1861);
    color: white;
    padding: 4rem 3.5rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 50% 100%, 0 calc(100% - 60px));
    padding-bottom: 8rem;
}

.contact-cta::before {
    content: '>_';
    position: absolute;
    top: 30px;
    right: 40px;
    font-family: 'Fira Mono', monospace;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.05);
}

.contact-cta h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    margin-bottom: 2rem;
    line-height: 1.2;
}

.contact-cta p {
    opacity: 0.9;
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

.contact-form-wrapper {
    background: var(--white);
    padding: clamp(1.5rem, 4vw, 4rem);
    max-width: 100%;
    min-width: 0;
    position: relative;
    border: 1px solid #eee;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--blue));
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    color: var(--purple);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-family: 'Fira Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--purple);
    margin-bottom: 0.8rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 0;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    background: transparent;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--purple);
}

.form-group .line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus~.line,
.form-group textarea:focus~.line {
    width: 100%;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 1.2rem;
}

.form-group textarea:focus~.line {
    width: 100%;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.checkbox input {
    width: 22px;
    height: 22px;
    accent-color: var(--orange);
    cursor: pointer;
}

.checkbox label {
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-submit {
    width: 100%;
    padding: 1.2rem;
    background: var(--orange);
    color: white;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(232, 65, 42, 0.3);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(232, 65, 42, 0.4);
}

/* FOOTER - Gradient like culture */
footer {
    background: linear-gradient(135deg, var(--purple) 0%, var(--lavender) 100%);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--blue));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 3rem;
}

.footer-logo img {
    height: 45px;
    filter: brightness(0) invert(1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s;
}

.footer-logo img:hover {
    transform: scale(1.05);
}

.social a {
    display: inline-flex;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    margin-right: 1rem;
    transition: all 0.3s;
}

.social a:hover {
    background: var(--orange);
    transform: translateY(-5px) rotate(15deg);
}

.footer h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--yellow);
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(50px) rotate(-2deg);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid .service-card:nth-child(n) {
        transform: translateY(0) rotate(0deg) !important;
    }
}

@media (max-width: 992px) {

    .hero .container,
    .culture .container,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero .container {
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text h1 .band {
        transform: rotate(-1deg) translateX(0);
    }

    .hero-visual {
        width: 100%;
    }

    .cube-hero {
        width: min(100%, 520px);
        height: min(90vw, 520px);
        min-height: 260px;
        margin: 0 auto;
    }

    .culture .container {
        text-align: left;
    }

    .culture-text {
        display: block;
        max-width: 700px;
        text-align: left;
    }

    .culture-text .overline {
        margin-bottom: 1rem;
    }

    .culture-text h2 {
        font-size: clamp(2.07rem, 4.025vw, 3.45rem);
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }

    .culture-text blockquote {
        max-width: 500px;
        margin: 0 0 2rem;
        padding: 1.5rem;
    }

    .featured-services-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 132px 0 48px;
    }

    .hero .container {
        gap: 0.75rem;
    }

    .hero-text h1 {
        margin-bottom: 1.75rem;
    }

    .hero-text p {
        margin-bottom: 2rem;
    }

    .cube-hero {
        width: min(100%, 560px);
        height: min(66vw, 560px);
        min-height: 430px;
    }
}

@media (max-width: 1100px) {
    header {
        width: 95%;
        padding: 0.8rem 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
        width: 88%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        z-index: 999;
        border: none;
    }

    nav.active {
        max-height: min(80vh, 600px);
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(93, 31, 119, 0.1);
    }

    nav ul {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        align-items: flex-start;
    }

    nav ul li {
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.8rem 0;
    }

    .btn-nav {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1.5rem;
    }

}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 128px 0 24px;
        overflow-x: hidden;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .hero-text p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .btn-primary {
        padding: 1rem 1.85rem;
    }

    .cube-hero {
        width: min(100%, 430px);
        height: min(88vw, 430px);
        min-height: 250px;
    }

    .services {
        padding: 4rem 0 7rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
        box-shadow: 0 12px 30px rgba(45, 45, 45, 0.14), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
        border-color: rgba(93, 31, 119, 0.12);
    }

    .service-card:nth-child(n) {
        transform: translateY(0) !important;
    }

    .contact-cta {
        clip-path: none;
        padding-left: clamp(1.5rem, 8vw, 2.5rem);
        padding-right: clamp(1.5rem, 8vw, 2.5rem);
        padding-bottom: 4rem;
    }

    .contact-cta .btn-primary {
        width: auto;
        max-width: 100%;
        font-size: 0.95rem;
        padding-inline: clamp(1.35rem, 6vw, 2rem);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: clamp(1.95rem, 8.6vw, 2.2rem);
    }

    .hero-text {
        width: 100%;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .hero-text h1 .band,
    .hero-text .overline {
        max-width: 100%;
    }

    .hero-text h1 .band {
        padding: 0.25rem 0.8rem;
        box-shadow: 4px 4px 0 var(--orange);
    }

    .hero-text .overline {
        font-size: 0.7rem;
        letter-spacing: 0.16em;
        padding: 0.28rem 0.65rem;
    }

    .hero-text .hero-overline-type {
        font-size: 0.62rem;
        letter-spacing: 0.08em;
    }

    .hero {
        padding: 124px 0 18px;
    }

    .hero .container {
        width: calc(100% - 2rem);
        gap: 1rem;
    }

    .hero-text p {
        font-size: 0.95rem;
        line-height: 1.65;
        max-width: 34ch;
    }

    .cube-hero {
        width: min(92vw, 330px);
        height: min(70vw, 280px);
        min-height: 220px;
        margin-top: -0.25rem;
    }

    .services {
        padding: 3rem 0 6rem;
    }

    .section-header {
        margin-bottom: 2.25rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 380px) and (max-height: 720px) {
    .hero-text h1 {
        font-size: clamp(1.75rem, 8vw, 1.95rem);
    }

    .hero-text h1 .band {
        padding: 0.22rem 0.62rem;
        box-shadow: 3px 3px 0 var(--orange);
    }

    .hero-text .overline {
        font-size: 0.64rem;
        letter-spacing: 0.13em;
        padding: 0.24rem 0.5rem;
    }

    .hero-text .hero-overline-type {
        font-size: 0.56rem;
        letter-spacing: 0.06em;
        max-width: 31ch;
    }

    .hero-text p {
        max-width: 32ch;
    }
}

@media (max-width: 380px) and (min-height: 721px) {
    .hero-text h1 {
        font-size: clamp(1.82rem, 8.2vw, 2rem);
    }

    .hero-text h1 .band {
        padding: 0.24rem 0.68rem;
        box-shadow: 3px 3px 0 var(--orange);
    }

    .hero-text .overline {
        font-size: 0.66rem;
        letter-spacing: 0.14em;
        padding: 0.25rem 0.55rem;
    }

    .hero-text .hero-overline-type {
        font-size: 0.58rem;
        letter-spacing: 0.06em;
        max-width: 31ch;
    }

    .hero-text p {
        max-width: 30ch;
    }
}

@media (max-width: 480px) and (max-height: 720px) {
    .hero {
        padding: 104px 0 8px;
    }

    .hero .container {
        gap: 0.75rem;
    }

    .hero-text h1 {
        margin-bottom: 1rem;
    }

    .hero-text p {
        margin-bottom: 1.25rem;
    }

    .btn-primary {
        padding: 0.9rem 1.55rem;
    }

    .cube-hero {
        width: min(90vw, 310px);
        height: min(64vw, 245px);
        min-height: 200px;
    }
}

/* ACCESSIBILITY */
*:focus {
    outline: 3px solid var(--yellow);
    outline-offset: 2px;
}

nav a:focus,
nav a:active,
nav a:focus-visible {
    outline: none;
}

/* SMOOTH SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--purple), var(--lavender));
    border-radius: 4px;
}
.canvas-container {
  position: relative;
  background-color: transparent;
  overflow: hidden;
  user-select: none;
  contain: paint;
  isolation: isolate;
  backface-visibility: hidden;
  transform: translateZ(0);
}

@media (min-width: 768px) {
  .canvas-container {
    height: 100%;
  }
}

#parametric-canvas {
  display: block;
  width: 100%;
  height: 100%;
  background-color: transparent;
  backface-visibility: hidden;
  transform: translateZ(0);
}
