/* ROOT 2: PAGE SPECIFIC LOGIC */
:root {
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background-color: var(--color-text-primary);
    color: var(--color-text-secondary);
}

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;
}

.container {
    width: 90%;
    max-width: 1680px;
    margin: 0 auto;
}

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;
}

.bs-serif-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: calc(100% + 3px);
}

.max-content {
    width: max-content;
    height: max-content;
}

/* ====================================================== 
   END LOGIC UPDATE
   ====================================================== */

.hero-section-new {
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: var(--fixed-text-light); /* Always white on hero image */
    display: flex;
    align-items: center;
    padding: 0 clamp(2rem, 5vw, 4rem);
}

.hero-container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-main-content {
    margin: auto;
}

.hero-main-content .hero-title {
    font-size: clamp(3.5rem, 7.5vw, 6.5rem);
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2rem;
    text-align: center;
    font-style: normal;
}

.philosophy-section {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 80px !important;
}

.philosophy-content {
    max-width: 1680px;
}

.philosophy-text {
    font-size: clamp(1.4rem, 3vw, 2.5rem);
    line-height: 1.4;
    max-width: 70vw;
    margin: 0 auto;
    text-align: center;
}

.process-section {
    background-color: var(--color-text-secondary); /* Dark */
    padding: var(--section-padding-y) 0;
}

.process-container {
    width: var(--section-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(3rem, 8vw, 8rem);
    align-items: flex-start;
}

.process-nav-column {
    position: sticky;
    top: 20vh;
    align-self: start;
}

.process-nav-header {
    margin-bottom: 3rem;
}

.process-nav-header h2 {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.process-nav-header p {
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    color: var(--color-text-muted); 
    margin-top: 1rem;
    max-width: 40ch;
}

.process-nav-list {
    list-style: none;
    counter-reset: step-counter;
}

.process-nav-item {
    position: relative;
    counter-increment: step-counter;
}

.process-nav-item::before {
    content: "0"counter(step-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-text-primary);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-quint);
}

.process-nav-item.is-active::before {
    opacity: 1;
}

.process-nav-item a {
    display: block;
    padding: 1rem 0 1rem 3rem;
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text-muted); 
    transition: color 0.4s var(--ease-out-quint);
}

.process-nav-item.is-active a {
    color: var(--color-text-primary);
}

.process-content-column {
    padding-top: 0;
    padding-bottom: 15vh;
    counter-reset: card-step-counter;
}

.process-card {
    position: sticky;
    top: 20vh;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-height: 60vh;
    padding: 2rem;
    border-radius: var(--border-radius-m);
    counter-increment: card-step-counter;
    overflow: hidden;
    background-color: var(--color-text-secondary); /* Dark */
}

.process-card:last-of-type {
    margin-bottom: 0;
}

.process-card-main-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.process-card-description {
    font-size: 16px;
    margin-bottom: 20px;
}

.process-card-outputs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.process-card-outputs span {
    font-size: clamp(14px, 1.2vw, 14px) !important;
}

/* Default state: Hide mobile-specific headers on desktop */
.process-mobile-title, .process-mobile-header {
    display: none;
}

.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);
    color: var(--color-text-primary);
    padding: 2rem 0;
}

.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: 15s;
    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(5rem, 10vw, 10rem);
    padding: 0 var(--gap-standard);
    font-weight: 400;
    color: var(--color-text-primary);
}

.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);
    }
}

.strategy-section {
    padding: var(--section-padding-y) 0 !important;
    width: 100%;
}

.strategy-grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px !important;
    width: var(--section-width);
    overflow: visible;
    margin: auto;
}

.strategy-cell {
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
        border-radius: 16px;
    justify-content: center;
    aspect-ratio: 1 / 1;
}

.strategy-cell.image-cell {
    padding: 0;
}

.strategy-cell.image-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
        border-radius: 16px;
}

.strategy-cell p {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.6;
  font-weight: 300;
  max-width: 50ch;
  opacity:0.8;
}

.header-title {
    font-size: var(--heading-font-size);
    font-weight: 300;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.strategy-cell h3 {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

.strategy-cell:has(h3:only-child) h3 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0;
}

.next-service-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}


.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(100%);
    transition: transform .6s var(--ease-out-quint), opacity .6s var(--ease-out-quint)
}

.next-service-title-wrapper:hover .next-service-title {
    transform: translateY(-100%)
}

.next-service-title-wrapper:hover .hover-marquee {
transform: translateY(-10px);          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%);
    }
}

.project-number-pro {
    font-size: 1.2rem;
    font-weight: 500;
    font-family: var(--font-serif);
}

.nav-center {
    color: var(--color-text-secondary);
}


/* --- RESPONSIVE STYLES --- */

/* Specific override for Process Section at 999px and below */
@media (max-width: 999px) {
    /* 1. Reset Container: Remove Grid, simple block flow */
    .process-container {
        display: block !important;
        position: relative;
    }

    /* 2. Hide Sidebar Navigation completely */
    .process-nav-column {
        display: none !important;
    }

    /* 3. Show Mobile Main Header (which was in sidebar) */
    .process-mobile-header {
        display: block;
        margin-bottom: 3rem;
        /* Matches styles of standard headers */
    }
    .process-mobile-header h2 {
font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    }
    .process-mobile-header p {
        color: var(--color-text-muted);
        opacity: 0.8;
    }

    /* 4. Reset Content Column: Full width, no top padding */
    .process-content-column {
        width: 100% !important;
        margin-left: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 5. Reset Card: No sticky, standard spacing */
    .process-card {
        position: relative !important;
        top: auto !important;
        min-height: auto !important;
        margin-bottom: 4rem; /* Spacing between sections */
        padding: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1); /* Divider */
        
        /* Ensure GSAP doesn't hide/blur these */
        opacity: 1 !important; 
        transform: none !important;
        filter: none !important;
    }

    /* 6. Show the Title (Anchor) inside the card */
    .process-mobile-title {
        display: block;
        font-family: var(--font-primary);
        font-weight: 400;
        font-size: 2rem; /* Large readable heading */
        color: var(--color-text-primary);
        margin-bottom: 1.5rem;
        line-height: 1.2;
    }

    /* Styling the number (e.g., "01") */
    .mobile-step-num {
        font-family: var(--font-serif);
        font-style: italic;
        margin-right: 0.5rem;
        color: var(--color-text-primary);
        opacity: 0.6;
    }
}


/* Existing Tablet/Mobile breakpoints */
@media (max-width: 992px) {
    :root {
        --section-width: 90vw;
        --section-padding-y: 60px;
    }

    .strategy-grid {
 display: flex;
        flex-direction: column;
        width: var(--section-width);
        margin: auto;
    }

    .strategy-cell {
        aspect-ratio: unset;
    }

    .strategy-cell.image-cell {
        min-height: 400px;
    }

    .strategy-cell.empty-cell {
        display: none;
    }

    .strategy-cell-reorder {
        display: contents;
    }

}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    h2, .header-title{ 
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
.philosophy-section {
  margin-top: 40px !important;
}
    h3 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    :root {
        --section-padding-y: 40px;
    }
    .header-title {
        width: 100%;
    }

    .infs-scroll-text {
        padding: 0 5px;
        font-size: 80px;
    }
    .infs-dot {
        margin: 0 15px;
        font-size: 60px;
    }
    .process-card-description {
        font-size: 14px;
        margin-bottom: 5px;
    }
    .section-header,
    .services-header {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 0 !important;
    }

    .infs-scroll-wrapper {
        margin-top: -30px;
    }

    .hero-section-new {
        align-items: center
    }

    .hero-container {
        position: static;
        height: auto;
        justify-content: flex-end;
        gap: 1rem;
    }

    .hero-main-content,
    .hero-sub-text {
        position: static;
        transform: none;
        max-width: 100%;
        text-align: left;
    }

    .hero-main-content .hero-title {
        font-size: clamp(2.8rem, 12vw, 4rem);
        text-align: center;
    }

    .philosophy-section {
        height: auto;
    }

    .philosophy-text {
        max-width: 100%;
        text-align: center;
        font-size: clamp(1.2rem, 5vw, 1.8rem);
    }

    .strategy-cell {
        padding: 1.5rem;
    }

    .strategy-cell.image-cell {
        min-height: 300px;
    }

    .strategy-cell.empty-cell {
        display: none;
    }

    .strategy-cell-reorder {
        display: contents;
    }

    .next-service-section {
        padding: 6rem 0;
    }

    .next-service-title,
    .hover-marquee-track span {
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
    }


    .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;
    }

}