/* ========================================
   RESPONSIVE ENHANCEMENTS FOR ALL BREAKPOINTS
   Preserving all animations and interactions
   ======================================== */

/* ========================================
   MOBILE LANDSCAPE (480px - 767px)
   ======================================== */
@media screen and (min-width: 480px) and (max-width: 767px) {

    /* Hero Section */
    .hero_text {
        font-size: 12vw;
        line-height: 1.1;
    }

    .hero_small_text {
        margin-right: 30px;
    }

    .small_text {
        font-size: 0.9rem;
    }

    .circle_text-image {
        width: 110px;
    }

    .hero_circle_wrapper .image {
        width: 50px;
        height: 50px;
    }

    /* About Section */
    .about_text {
        font-size: 1.1rem;
    }

    .about_discription {
        font-size: 2rem;
        line-height: 1.3;
    }

    /* Steps Grid */
    .steps_grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;
    }

    ._5steps_card {
        min-height: 300px;
    }

    .card_number {
        font-size: 6rem;
    }

    .card_heading {
        font-size: 1.5rem;
    }

    .card_discription {
        font-size: 0.9rem;
    }

    /* Services Section */
    .section_heading {
        font-size: 2.5rem;
    }

    .grow_discription_heading {
        font-size: 1.3rem;
    }

    .discription {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Case Studies */
    .casestudy_card_heading {
        font-size: 1.1rem;
    }

    .casestudy_card_discription {
        font-size: 0.7rem;
        display: block;
    }

    .casestudy_circle {
        width: 50px;
        height: 50px;
    }

    /* Contacts */
    .contacts_heading {
        font-size: 12vw;
    }

    .contact_circle {
        width: 60px;
        height: 60px;
    }

    /* Menu */
    .menulinks {
        font-size: 3rem;
    }

    .menu_contact_links {
        max-width: 300px;
    }

    /* Hero Circle Text Positioning */
    .hero_circle_text {

        bottom: 3%;
    }
}

/* ========================================
   TABLET PORTRAIT (768px - 991px)
   ======================================== */
@media screen and (min-width: 768px) and (max-width: 991px) {

    /* Hero Section */
    .hero_text {
        font-size: 10vw;
        line-height: 1.1;
    }

    .hero_small_text {
        margin-right: 40px;
    }

    .small_text {
        font-size: 1rem;
    }

    .circle_text-image {
        width: 140px;
    }

    .hero_circle_wrapper .image {
        width: 60px;
        height: 60px;
    }

    /* About Section */
    .about_text {
        font-size: 1.3rem;
    }

    .about_discription {
        font-size: 2.8rem;
        line-height: 1.3;
    }

    /* Steps Grid */
    .steps_grid {
        grid-template-columns: 1fr 1fr;
        grid-gap: 1.5rem;
    }

    ._5steps_card {
        min-height: 350px;
    }

    .card_number {
        font-size: 8rem;
    }

    .card_heading {
        font-size: 1.8rem;
    }

    .card_discription {
        font-size: 1rem;
    }

    /* Services Section */
    .section_heading {
        font-size: 3rem;
    }

    .section_heading.changes {
        font-size: 2.5rem;
    }

    .grow_grid {
        grid-template-columns: 1fr;
    }

    .grow_discription_heading {
        font-size: 1.6rem;
    }

    .discription {
        font-size: 1.1rem;
        line-height: 1.6;
    }

    .line_virtical {
        display: none;
    }

    /* Case Studies */
    .casestudy_cards {
        grid-template-columns: 1fr;
    }

    .casestudy_card_heading {
        font-size: 1.5rem;
    }

    .casestudy_card_discription {
        font-size: 0.9rem;
        display: block;
    }

    .casestudy_circle {
        width: 60px;
        height: 60px;
    }

    .work_img {
        width: 100%;
    }

    /* Contacts */
    .contacts_heading {
        font-size: 12vw;
    }

    .contacts_wraper {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact_circle {
        width: 70px;
        height: 70px;
    }

    /* Menu */
    .menulinks {
        font-size: 4rem;
    }

    .menu_wraper {
        padding: 2rem;
    }

    /* Hero Circle Text Positioning */
    .hero_circle_text {

        bottom: 5%;
    }
}

/* ========================================
   TABLET LANDSCAPE / SMALL DESKTOP (992px - 1199px)
   ======================================== */
@media screen and (min-width: 992px) and (max-width: 1199px) {

    /* Hero Section */
    .hero_text {
        font-size: 8vw;
        line-height: 1.1;
    }

    .hero_small_text {
        margin-right: 50px;
    }

    .small_text {
        font-size: 1.1rem;
    }

    .circle_text-image {
        width: 160px;
    }

    .hero_circle_wrapper .image {
        width: 70px;
        height: 70px;
    }

    /* About Section */
    .about_text {
        font-size: 1.5rem;
    }

    .about_discription {
        font-size: 3.2rem;
        line-height: 1.3;
    }

    /* Steps Grid */
    .steps_grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 2rem;
    }

    ._5steps_card {
        min-height: 400px;
    }

    .card_number {
        font-size: 9rem;
    }

    .card_heading {
        font-size: 2rem;
    }

    .card_discription {
        font-size: 1.1rem;
    }

    /* Services Section */
    .section_heading {
        font-size: 3.5rem;
    }

    .section_heading.changes {
        font-size: 2.8rem;
    }

    .grow_grid {
        grid-template-columns: 1fr 1fr;
    }

    .grow_discription_heading {
        font-size: 1.8rem;
    }

    .discription {
        font-size: 1.2rem;
        line-height: 1.6;
    }

    /* Case Studies */
    .casestudy_cards {
        grid-template-columns: 1fr;
    }

    .casestudy_card_heading {
        font-size: 1.8rem;
    }

    .casestudy_card_discription {
        font-size: 1rem;
    }

    .casestudy_circle {
        width: 70px;
        height: 70px;
    }

    /* Contacts */
    .contacts_heading {
        font-size: 10vw;
    }

    .contact_circle {
        width: 80px;
        height: 80px;
    }

    /* Menu */
    .menulinks {
        font-size: 5rem;
    }

    /* Hero Circle Text Positioning */
    .hero_circle_text {

        bottom: 6%;
    }
}

/* ========================================
   MEDIUM DESKTOP (1200px - 1439px)
   ======================================== */
@media screen and (min-width: 1200px) and (max-width: 1439px) {

    /* Hero Section */
    .hero_text {
        font-size: 7.5vw;
        line-height: 1.1;
    }

    .circle_text-image {
        width: 180px;
    }

    .hero_circle_wrapper .image {
        width: 80px;
        height: 80px;
    }

    /* About Section */
    .about_text {
        font-size: 1.6rem;
    }

    .about_discription {
        font-size: 3.5rem;
        line-height: 1.3;
    }

    /* Steps Grid */
    .steps_grid {
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 2rem;
    }

    ._5steps_card {
        min-height: 450px;
    }

    .card_number {
        font-size: 10rem;
    }

    .card_heading {
        font-size: 2.2rem;
    }

    .card_discription {
        font-size: 1.2rem;
    }

    /* Services Section */
    .section_heading {
        font-size: 3.8rem;
    }

    .grow_grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grow_discription_heading {
        font-size: 2rem;
    }

    .discription {
        font-size: 1.25rem;
        line-height: 1.6;
    }

    /* Case Studies */
    .casestudy_cards {
        grid-template-columns: 1fr;
    }

    .casestudy_card_heading {
        font-size: 2rem;
    }

    .casestudy_card_discription {
        font-size: 1.1rem;
    }

    .casestudy_circle {
        width: 75px;
        height: 75px;
    }

    /* Contacts */
    .contacts_heading {
        font-size: 9vw;
    }

    .contact_circle {
        width: 90px;
        height: 90px;
    }

    /* Menu */
    .menulinks {
        font-size: 5.5rem;
    }

    /* Hero Circle Text Positioning */
    .hero_circle_text {

        bottom: 7%;
    }
}

/* ========================================
   LARGE DESKTOP (1440px - 1919px)
   Already handled in main CSS
   ======================================== */

/* ========================================
   EXTRA LARGE DESKTOP (1920px+)
   Already handled in main CSS
   ======================================== */

/* ========================================
   COMMON RESPONSIVE UTILITIES
   ======================================== */

/* Ensure images are responsive */
@media screen and (max-width: 1199px) {
    img {
        max-width: 100%;
        height: auto;
    }

    .work_photo {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}

/* Padding adjustments for smaller screens */
@media screen and (max-width: 991px) {
    .padding-global {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .padding-section-large {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .padding-right-left {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media screen and (max-width: 767px) {
    .padding-global {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .padding-section-large {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .padding-right-left {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navigation responsive improvements */
@media screen and (max-width: 991px) {
    .navbar_wraper {
        padding: 1rem 0;
    }

    .logo {
        width: 50px;
        height: 50px;
    }

    .image-2 {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Grid improvements for all breakpoints */
@media screen and (max-width: 767px) {
    .grow_grid {
        grid-template-columns: 1fr;
        grid-gap: 2rem;
    }

    .casestudy_cards {
        grid-template-columns: 1fr;
        grid-gap: 2rem;
    }
}

/* Ensure animations work on all devices */
@media (prefers-reduced-motion: no-preference) {

    /* Preserve all GSAP and transform animations */
    [data-w-id] {
        transition: all 0.3s ease;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .casestudy_circle,
    .contact_circle,
    .menu_lot {
        min-width: 44px;
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .casestudy_card:hover,
    .gmail_link:hover,
    .upwork_link:hover {
        transform: none;
    }
}

/* Hero Circle Text - Proper Alignment Across All Breakpoints */
.hero_circle_text {
    position: absolute;
    display: flex;

}

/* Wrapper div to contain both images */
.hero_circle_wrapper {
    position: relative;
    display: inline-block;
}

/* Circle text image (EXPLORE MORE rotating text) */
.hero_circle_wrapper .circle_text-image {
    display: block;
    position: relative;
    animation: spin-infinite 10s linear infinite !important;
}

@keyframes spin-infinite {
    0% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(0deg);
    }

    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1) rotate(360deg);
    }
}

/* Center the inner arrow image inside the circle */
.hero_circle_wrapper .image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}

/* Landscape orientation fixes for mobile */
@media screen and (max-width: 991px) and (orientation: landscape) {
    .section_hero {
        min-height: 100vh;
        height: auto;
    }

    .hero_text {
        font-size: 8vw;
    }

    .hero_circle_text {
        position: relative;
        bottom: auto;
        margin-top: 2rem;
        display: flex;
        justify-content: right;
        align-items: center;
    }
}



@media screen and (max-width: 479px) {
    .small_text {
        font-size: 0.9rem;
    }

    .steps_grid {
        grid-template-columns: 1fr !important;
    }
}

/* Fix for very small screens */
@media screen and (max-width: 374px) {
    .hero_text {
        font-size: 14vw;
    }

    .menulinks {
        font-size: 2rem;
    }

    .section_heading {
        font-size: 1.8rem;
    }

    .about_discription {
        font-size: 1.5rem;
    }

    .contacts_heading {
        font-size: 12vw;
    }

    /* Hero Circle Text Positioning */


    .circle_text-image {
        width: 90px;
    }

    .hero_circle_wrapper .image {
        width: 40px;
        height: 40px;
    }
}

/* Ensure proper spacing on all breakpoints */
@media screen and (min-width: 768px) {
    .spacer-huge {
        height: auto;
    }

    .spacer-medium {
        width: auto;
    }
}

/* Fix overflow issues */
@media screen and (max-width: 991px) {
    body {
        overflow-x: hidden;
    }

    .page-wrapper {
        overflow-x: hidden;
    }

    .container-large {
        max-width: 100%;
    }
}

/* Ensure menu is accessible on all devices */
@media screen and (max-width: 991px) {
    .full_menu {
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    .menu_options {
        width: 100%;
    }

    .menu_text_wraper {
        width: 100%;
    }
}

/* Improve readability on smaller screens */
@media screen and (max-width: 767px) {

    .card_discription,
    .discription {
        line-height: 1.6;
    }

    .about_discription {
        letter-spacing: 0.5px;
    }
}

/* Ensure proper image loading on all devices */
@media screen and (max-width: 991px) {
    .work_img-height {
        overflow: hidden;
    }

    .work_photo {
        transition: height 0.6s ease;
    }
}

/* Fix for Safari iOS */
@supports (-webkit-touch-callout: none) {
    .section_hero {
        min-height: -webkit-fill-available;
    }
}

/* ========================================
   NEW SERVICES SECTION (V2)
   ======================================== */
.section_services_new {
    padding: 6rem 0;
    position: relative;
    /* Ensure transparency so main bg shows through, or set dark if needed */
    background-color: transparent;
}

.services_new_wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.service_new_header_sticky {
    position: sticky;
    top: 5rem;
    height: fit-content;
}

.services_new_list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service_new_card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.service_new_card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.service_card_top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.service_new_title {
    font-family: 'Playfair Display', sans-serif;
    font-size: 2.2rem;
    color: #fff;
    margin: 0;
    font-weight: 400;
}

.service_icon {
    font-size: 2rem;
    color: #fff;
    font-weight: 300;
    transition: transform 0.4s ease;
}

.service_new_card:hover .service_icon {
    transform: rotate(90deg);
}

.service_new_sub {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    color: #ccc;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 300px;
}

/* Responsive adjustments for new section */
@media screen and (max-width: 991px) {
    .services_new_wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service_new_header_sticky {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }

    .service_new_card {
        padding: 2rem;
    }

    .service_new_title {
        font-size: 1.8rem;
    }
}

/* ========================================
   TECH STACK MARQUEE SECTION
   ======================================== */
.section_tech_stack {
    padding: 0 0 6rem 0;
    overflow: hidden;
    position: relative;
    /* Ensure z-index is correct if needed */
}

.tech_stack_wrapper {
    position: relative;
    width: 100%;
}

.marquee_track {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
    /* Gradient mask for fading edges */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee_content {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    /* Ensure content is duplicated enough to fill wide screens */
}

.scroll_left {
    animation: marquee_left 60s linear infinite;
}

.scroll_right {
    animation: marquee_right 65s linear infinite;
}

/* Pause animation on hover */
.marquee_track:hover .marquee_content {
    animation-play-state: paused;
}

.tech_pill {
    padding: 0.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Pill shape */
    color: #cccccc;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.tech_pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Keyframes for continuous scrolling */
@keyframes marquee_left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes marquee_right {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media screen and (max-width: 767px) {
    .section_tech_stack {
        padding-bottom: 4rem;
    }

    .tech_pill {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .marquee_content {
        gap: 1rem;
    }
}

/* ========================================
   AMBIENT BACKGROUND GLOWS
   ======================================== */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.glow-top {
    top: -10%;
    left: 20%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    /* Violet */
    animation: glow-pulse 15s ease-in-out infinite alternate;
}

.glow-bottom {
    bottom: -10%;
    right: 10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
    /* Blue */
    animation: glow-drift 20s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1) translate(-20px, 20px);
        opacity: 0.7;
    }
}

@keyframes glow-drift {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(30px, -30px);
    }
}

@media screen and (max-width: 479px) {
    .glow-blob {
        filter: blur(50px);
    }
}

/* ========================================
   SERVICES V3 (Editorial Style)
   ======================================== */
.services_v3_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 2rem;
}

.v3_title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    line-height: 1.1;
    color: #fff;
    margin: 0 0 2rem 0;
}

.v3_line {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.v3_desc {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #f1f1f1;
    line-height: 1.5;
    /* Slightly increased for readability at smaller size */
    max-width: 100%;
    margin-bottom: 2rem;
}

.v3_tags {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #888;
    margin-top: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media screen and (max-width: 991px) {
    .services_v3_grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .v3_title {
        font-size: 2.5rem;
    }
}

/* Editorial Spacing */
.spacer-editorial {
    height: 12rem;
    width: 100%;
}

@media screen and (max-width: 991px) {
    .spacer-editorial {
        height: 6rem;
    }
}

.load-hidden {
    opacity: 0;
}

/* ========================================
   ABOUT V2 (Editorial Style)
   ======================================== */
.about_v2_grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: flex-start;
    max-width: 800px;
    /* Constrain width like the old section */
}

.about_lead {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-style: italic;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 2rem;
}

.about_signature {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.5;
    margin-top: 3rem;
    text-align: right;
}

@media screen and (max-width: 991px) {
    .about_v2_grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about_lead {
        font-size: 1.8rem;
    }
}

/* ========================================
   TECH STACK V3 (Big Type)
   ======================================== */
/* Fix overlap issue with Process section */
.section_massage {
    position: relative;
    z-index: 5;
    /* Removed background-color as requested */
    clear: both;
    height: auto !important;
    min-height: auto !important;
}

/* Added Breathing room for Case Studies */
.casestudy_wraper {
    padding-top: 10rem;
    padding-bottom: 10rem;
    position: relative;
    z-index: 2;
}

.casestudy_card {
    background-color: transparent !important;
    box-shadow: none !important;
    /* Ensure clean look */
}

.tech_text_huge {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    color: #fff;
    /* Solid white for bold impact */
    margin: 0 1rem;
    display: inline-block;
    line-height: 1;
    opacity: 0.9;
    text-transform: uppercase;
}

.tech_separator {
    font-size: 2.2rem;
    color: #444;
    /* Dark gray for subtle separation */
    vertical-align: middle;
    margin: 0 1rem;
    display: inline-block;
}

@media screen and (max-width: 767px) {
    .tech_text_huge {
        font-size: 3rem;
    }
}

/* ========================================
   HIGH-EDITORIAL LIST (V5 - ANIMATED)
   ======================================== */
.editorial_list_group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.editorial_list_row {
    position: relative;
    /* Border is now handled by the link itself for the fill effect bounds */
}

.editorial_list_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3.5rem 2rem;
    /* Added padding for fill breathing room */
    text-decoration: none;
    width: 100%;
    cursor: pointer;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.4s ease;
    overflow: hidden;
    /* For rolling text */
}

/* 1. BACKGROUND FILL */
.editorial_list_link:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    /* Seamless border merge */
}

/* 2. TEXT INVERSION & TYPOGRAPHY */
.editorial_content_left {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
}

.editorial_project_title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #fff;
    font-weight: 400;
    margin: 0;
    line-height: 1;
    overflow: hidden;
    /* Mask the roll */
    height: 1.1em;
    /* Lock height */
    transition: color 0.4s ease;
}

.editorial_meta_tag {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    transition: all 0.4s ease;
}

.editorial_arrow_wrap {
    width: 3rem;
    height: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.editorial_arrow_icon {
    width: 1.2rem;
    filter: invert(1);
    /* White by default */
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* HOVER: TEXT INVERSION */
.editorial_list_link:hover .editorial_project_title,
.editorial_list_link:hover .editorial_meta_tag {
    color: #000000;
}

.editorial_list_link:hover .editorial_meta_tag {
    border-color: rgba(0, 0, 0, 0.2);
}

.editorial_list_link:hover .editorial_arrow_wrap {
    border-color: rgba(0, 0, 0, 0.2);
    /* transform: rotate(-45deg); Moved to icon */
}

.editorial_list_link:hover .editorial_arrow_icon {
    filter: invert(0);
    /* Turn Black */
    transform: rotate(-45deg);
}

/* 3. ROLLING TEXT ANIMATION (Grid Stack) */
.editorial_project_title {
    display: grid;
    grid-template-areas: "stack";
    align-items: center;
    overflow: hidden;
    /* Remove fixed height to let grid sizing work */
    height: auto;
    margin: 0;
    line-height: 1;
}

.roll_text_origin,
.roll_text_target {
    grid-area: stack;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    will-change: transform, opacity;
}

/* Original Text (Serif) */
.roll_text_origin {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 400;
    color: #ffffff;
    /* Increase width to meet in the middle */
    letter-spacing: 0.03em;
    transform: translateY(0);
    opacity: 1;
}

/* Target Text (Sans-Serif) - Starts Below */
.roll_text_target {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 500;
    /* Decrease width to match Serif */
    letter-spacing: -0.05em;
    color: #000000;
    transform: translateY(100%);
    opacity: 0;
}

/* HOVER: Slide Up & Swap Opacity */
.editorial_list_link:hover .roll_text_origin {
    transform: translateY(-100%);
    opacity: 0;
}

.editorial_list_link:hover .roll_text_target {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Adjustments for new structure */
@media screen and (max-width: 767px) {

    .roll_text_origin,
    .roll_text_target {
        font-size: 2.2rem;
    }
}

@media screen and (max-width: 767px) {
    .editorial_list_link {
        padding: 2.5rem 1.5rem;
    }

    .editorial_project_title {
        font-size: 2.2rem;
    }

    .editorial_content_left {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   FIX: MENU ICON VISIBILITY
   ======================================== */
.menu {
    cursor: pointer;
    z-index: 9999;
    position: relative;
}

/* Force Lottie SVG to be white */
.menu_lot svg path,
.menu_lot svg g,
.menu_lot svg polyline,
.menu_lot svg rect {
    fill: #ffffff !important;
    stroke: #ffffff !important;
}

/* Ensure the container has size if Lottie fails */
.menu_lot {
    min-width: 40px;
    min-height: 40px;
    display: block;
}

/* ========================================
   TESTIMONIALS SECTION (V2)
   ======================================== */
.testimonials_grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

@media screen and (max-width: 991px) {
    .testimonials_grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 479px) {
    .about_lead {
        font-size: 1.4rem !important;
        line-height: 1.35 !important;
    }
    .v3_title {
        font-size: 2rem !important;
    }
    .contacts_heading {
        font-size: 12vw !important;
        letter-spacing: -1px !important;
    }
}

/* Prevent characters/words in footer heading from breaking awkwardly */
.contacts_heading .word {
    white-space: nowrap !important;
}