/* --- 1.0 STRICT ROOT DEFINITION (Global Colors) --- */

/* --- 2.0 PAGE SPECIFIC ROOT (Variables) --- */
:root {
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- BASE STYLES --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

::selection { 
    background-color: var(--color-text-primary); /* Dark */
    color: var(--color-text-secondary); /* Light */
}

html.lenis { height: auto; }

body { 
    font-family: var(--font-primary); 
    -webkit-font-smoothing: antialiased; 
    overflow-x: hidden; 
    font-size: 16px; 
}

a, button { text-decoration: none; color: inherit; }
em { font-family:var(--font-serif); font-style:italic; font-size:calc( 100% + 2px); }

.section { 
    width: var(--section-width); 
    margin: 0 auto; 
    padding: var(--section-padding-y) 0 !important; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
}

.section-header { margin-bottom: 5rem; }
.header-title { font-size: clamp(2.5rem, 6vw, 4.8rem); font-weight: 300; margin-bottom: 0.5rem; line-height: 1; }
.bs-serif-text { font-family: var(--font-serif); font-style: italic; font-size: calc(100% + 3px); }
.max-content { width: max-content; height: max-content; }

/* ACCESSIBILITY */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ====================================================== 
   LOGIC UPDATE: MENU, HERO, SCROLL & LOADER 
   Primary = Dark | Secondary = Light
   ====================================================== */

/* 1. DEFAULT STATE (Menu Closed)
   Nav elements are DARK (Primary) by default. */
.nav-center, 
.nav-right a, 
.nav-right span, 
#menu-toggle-text { 
    color: var(--color-text-secondary); /* Dark */
    transition: color 0.3s ease;
}

#menu-toggle-icon .bar-top, 
#menu-toggle-icon .bar-bottom {
    background-color: var(--color-text-secondary); /* Dark */
    transition: background-color 0.3s ease;
}


/* 2. HERO STATE (Exception: Top of Page)
   Condition: Body is NOT inverted (scrolled) AND Menu is Closed.
   Result: LIGHT (Secondary). */
body:not(.ui-inverted):not(.menu-is-active) .nav-center, 
body:not(.ui-inverted):not(.menu-is-active) .nav-right a, 
body:not(.ui-inverted):not(.menu-is-active) .nav-right span, 
body:not(.ui-inverted):not(.menu-is-active) #menu-toggle-text { 
    color: var(--color-text-primart); /* Light */
}

body:not(.ui-inverted):not(.menu-is-active) #menu-toggle-icon .bar-top, 
body:not(.ui-inverted):not(.menu-is-active) #menu-toggle-icon .bar-bottom {
    background-color: var(--color-text-primary); /* Light */
}

body:not(.ui-inverted):not(.menu-is-active) .custom-cursor path, 
body:not(.ui-inverted):not(.menu-is-active) .cursor-path {
    fill: var(--color-text-secondary); /* Light */
}

/* 3. MENU OPEN STATE (Highest Priority)
   Condition: Body has .menu-is-active.
   Result: DARK (Primary). */
body.menu-is-active .nav-center,
body.menu-is-active .nav-right a,
body.menu-is-active .nav-right span,
body.menu-is-active #menu-toggle-text,
body.menu-is-active #fullscreenMenu,
body.menu-is-active #fullscreenMenu a {
    color: var(--color-text-primary) !important; /* Dark */
}

body.menu-is-active #menu-toggle-icon .bar-top,
body.menu-is-active #menu-toggle-icon .bar-bottom {
    background-color: var(--color-text-primary) !important; /* Dark */
}

body.menu-is-active .nav-logo {
    filter: none !important;
}

/* 4. LOADER STATE 
   Condition: Body has .is-loading.
   Result: LIGHT Cursor (Secondary). */
body.is-loading .custom-cursor .cursor-icon path,
body.is-loading .custom-cursor path,
body.is-loading .cursor-path {
    fill: var(--color-text-secondary) !important; /* Light */
}

/* ====================================================== 
   END LOGIC UPDATE
   ====================================================== */

/* HERO SECTION */
.hero-section-new {
    background-size: cover;
    background-position: center;
    height: 100vh;
    min-height: 700px;
    color: var(--color-text-secondary); /* Light Text */
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.6) 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.hero-main-content { margin: auto; }
.hero-main-content .hero-title { font-size: clamp(3.5rem, 7.5vw, 6.5rem); color: var(--color-text-secondary); font-weight: 400; line-height: 0.9; margin-bottom: 2rem; text-align: center; font-style: normal; }

/* PHILOSOPHY */
.philosophy-section { padding: 0; display: flex; align-items: flex-start; justify-content: center; min-height: 100vh; margin-top: 80px; }
.philosophy-content { display: flex; flex-direction: column; gap: 40px; }
.philosophy-text { font-size: clamp(1.4rem, 3vw, 2.5rem); line-height: 1.4; margin: 0 auto; text-align: left;}
.opening-img{ min-height:50vh; }
.opening-img img{ border-radius: var(--border-radius-m); width: 100%; height: 70vh; object-fit: cover; }

/* CURSOR & MARQUEE */
.em-hover-cursor { position: fixed; top: 0; left: 0; width: 300px; height: 300px; background-image: url('https://ik.imagekit.io/82ygj2h6r/background-mpt.png?updatedAt=1681471760570'); background-color: transparent; background-size: cover; background-position: center; border-radius: 50%; pointer-events: none; z-index: 9999; visibility: hidden; opacity: 0; transform: translate(-50%, -50%) scale(0.5); transition: opacity 0.3s var(--ease-out-quint), transform 0.3s var(--ease-out-quint); will-change: transform, opacity; }
.infs-marquee-container { width: 100% !important; position: relative; display: flex; flex-direction: column; gap: 0px; opacity: 1; transform: translateY(0); font-family: var(--font-serif); padding: 2rem 0; color: var(--color-text-primary); }
.infs-scroll-wrapper { white-space: nowrap; overflow: hidden; display: flex; align-items: center; margin-top: -65px; }
.infs-scroll-track { display: inline-block; white-space: nowrap; animation-duration: 30s; animation-timing-function: linear; animation-iteration-count: infinite; }
.infs-rtl .infs-scroll-track { animation-name: infsScrollRTL; }
.infs-ltr .infs-scroll-track { animation-name: infsScrollLTR; }
.infs-scroll-text { display: inline-block; font-size: clamp(2rem, -0.2083rem + 9vw, 8rem); padding: 0 var(--gap-standard); font-weight: 400; }
.infs-scroll-text em { font-style: italic; }
.infs-dot { display: inline-block; margin: 0 var(--gap-standard); font-size: clamp(50px, 9vw, 100px); }
@keyframes infsScrollRTL { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
@keyframes infsScrollLTR { 0% { transform: translateX(-100%); } 100% { transform: translateX(0); } }

/* GALLERY */
.image-gallery-section { width: 100%; padding: 0 !important; }
.image-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, auto); gap: 4px;padding: var(--section-padding-y) 0 !important; }
.gallery-item { overflow: hidden; min-height: 70vh; max-height: 75vh; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* NEXT SERVICE */
.next-service-content{ display: flex; flex-direction: column; gap: 20px; align-items:center; }
.next-service-content span{ font-family:var(--font-serif); font-size: calc( 100% + 3px); }
.next-service-section{ background-color: var(--color-text-secondary); color: var(--color-text-primary); padding:10rem 0; text-align:center; }
.next-service-content p{ font-size: clamp(1rem, 1.5vw, 1.1rem); margin: auto; max-width: 60ch; }
.next-service-title-wrapper{position:relative; width:100%; cursor:pointer; overflow:hidden; display:inline-block; text-decoration: none;}
.next-service-title{ font-size: clamp(3rem, 5vw, 5rem); line-height: 1.5; font-weight: 400; transition: transform .6s var(--ease-out-quint); font-family: var(--font-serif);}
.hover-marquee{position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; white-space:nowrap; opacity:0; transform:translateY(110%); transition:transform .6s var(--ease-out-quint),opacity .6s var(--ease-out-quint)}
.next-service-title-wrapper:hover .next-service-title{transform:translateY(-110%)}
.next-service-title-wrapper:hover .hover-marquee{ transform: translateY(-20%); opacity: 1;}
.hover-marquee-track{display:inline-block; font-style:italic; font-size:clamp(3rem,8vw,8rem); line-height:1; animation:marquee-scroll 10s linear infinite}
.hover-marquee-track span{font-size: clamp(3rem, 5vw, 5rem) !important;}
.marquee-star { font-family: var(--font-serif); font-style: italic; color: var(--color-accent); margin: 0 1.5rem; }
@keyframes marquee-scroll{ 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }


/* FAQ */
.services-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }

/* CTA / INERTIA */
.cta-inertia-section { text-align: center; color: var(--color-text-primary); width: 100%; }
.inertia-container { display: flex; flex-direction: column; align-items: center; gap: 3rem; width: var(--section-width); margin: 0 auto; }
.inertia-pre-title { font-size: clamp(1.3rem, 1.5vw, 2rem); font-weight: 500; letter-spacing: 0.5px; font-family: var(--font-serif); text-transform: uppercase;}
.inertia-main-block { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: clamp(1rem, 4vw, 3rem); will-change: transform; transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1); }
.inertia-main-title { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 500; line-height: 0.95; font-family: var(--font-primary); letter-spacing: -0.02em; text-align: center; }
.inertia-side-text { font-size: clamp(0.8rem, 1.5vw, 0.9rem); font-weight: 500; white-space: nowrap; text-transform: uppercase; }

.fluid-rigor-showcase .showcase-banner { margin-bottom: 40px; height:325px; }
.fluid-rigor-showcase .showcase-banner img { width: 100%; border-radius: var(--border-radius-m); height: 100%; object-fit: cover; }
.fluid-rigor-showcase .showcase-content { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.fluid-rigor-showcase .showcase-cta { flex: 1; display: flex; align-items: center; justify-content: flex-start; }
.fluid-rigor-showcase .showcase-cta img { width: 100%; object-fit: contain; }
.fluid-rigor-showcase .showcase-text { flex: 1; padding-left: clamp(2rem, 8vw, 6rem); }
.fluid-rigor-showcase .showcase-text h2 { font-size: clamp(1.5rem, 5vw, 3.5rem); line-height: 1; font-weight: 400; margin-bottom: 10px; }
.fluid-rigor-showcase .showcase-text .divider { height: 1px; width: 80px; background-color: var(--color-text-muted); margin: 1.5rem 0; }
.fluid-rigor-showcase .showcase-text p { max-width: 45ch; }

/* QUOTE SECTION */
.alternatee{ align-items:center; max-height:max-content; !important; justify-content:center; }
.alternater{ text-align:center; }
.circular-cta { position: relative; display: flex; justify-content: center; align-items: center; width: 150px; height: 150px; border-radius: 50%; transition: transform 0.3s ease; }
.circular-cta:hover { transform: scale(1.05); }
.cta-image { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; animation: cta-bob 2.5s ease-in-out infinite; z-index: 2; }
.cta-text-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; animation: rotate-text 15s linear infinite; z-index: 1; overflow: visible; }
.cta-text-svg path { fill: transparent; }
.cta-text-svg text { font-family: var(--font-primary); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; fill: var(--color-text-primary); }
@keyframes cta-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes rotate-text { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 992px) {
    :root { --section-width: 90vw; --section-padding-y: 60px; }
    .inertia-main-block { display: flex; flex-direction: column; justify-content: center;}
}
@media (max-width: 768px) {
    h1 { font-size: clamp(2.5rem, 12vw, 3.5rem); }
    h2 { font-size: clamp(2rem, 8vw, 2.8rem); }
    h3 { font-size: clamp(1.5rem, 6vw, 2rem); }
    .header-title { width: 100%; }
    .fluid-rigor-showcase .showcase-text p {
        width: 100% !important;
        max-width: 100vw;
}
.image-gallery-grid {
    padding: 0 !important;
}

    .services-header { flex-direction: column; align-items: flex-end; gap: 10px; margin-bottom: 3rem; }
    .header-title { width: 100%; }
    .section { padding: 40px 0 !important; }
    .hero-section-new {align-items: center;}
    .hero-container { position: static; height: auto; justify-content: flex-end; gap: 1rem; }
    .hero-main-content { position: static; transform: none; max-width: 100%; text-align: left; margin: 0; }
    .hero-main-content .hero-title { font-size: clamp(2.8rem, 12vw, 4rem); text-align: center; }
    .philosophy-section { min-height: auto; margin-top: 40px; }
    .philosophy-text { max-width: 100%; text-align: left; font-size: clamp(1.2rem, 5vw, 1.8rem); }
    .opening-img img { height: 50vh; }
    .infs-scroll-wrapper { margin-top:-30px; }
    .infs-scroll-text { padding:0 5px; }
    .infs-dot { margin:0 5px; }
    .image-gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { min-height: 50vh; max-height: 60vh; }
    .fluid-rigor-showcase .showcase-banner { height: 250px; }
    .fluid-rigor-showcase .showcase-content { flex-direction: column; align-items: center; text-align: center; gap: 3rem; }
    .fluid-rigor-showcase .showcase-cta { margin-bottom: 0; }
    .fluid-rigor-showcase .showcase-text { padding-left: 0; }
    .fluid-rigor-showcase .showcase-text .divider { margin: 1.5rem auto; }
    .another-span { width: 100%; text-align: left; }
    .container-faq { margin: auto; }
    .question-faq { padding: 1rem 0; min-height: auto; }
    .text-faq { font-size: clamp(1.1rem, 4.5vw, 1.6rem); }
    .answer-faq.open-faq { padding: 1rem 0; }
    .content-faq { font-size: 1rem; }
    .arrow-faq { width: 45px; height: 45px; }
    .arrow-faq i { font-size: 20px; }
    .inertia-container { gap: 2.5rem; }
    .inertia-main-title { font-size: clamp(2rem, 8vw, 3rem); }
    .next-service-section { padding: 6rem 0; }
    .next-service-title, .hover-marquee-track span { font-size: clamp(2.5rem, 8vw, 3.5rem) !important; }
}
@media (hover: none) { .em-hover-cursor { display: none !important; } }