@import url("https://fonts.googleapis.com/css2?family=Archivo+Black&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap");

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

        :root {
            --bg: #ffffff;
            --grid-line:  #000000;
            --text-primary: #000000;
            --text-secondary: #000000;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            background: var(--bg);
            color: var(--text-primary);
            overflow-x: hidden;
            min-height: 100vh;
        }
        .hero-sub-title{
            font-size: clamp(1.3rem, 1.6vw, 2rem);
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 0.6em;
        }
        .hero-sub-title-work{
            font-size: clamp(1rem, 1.2vw, 1.5rem);
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 0.6em;

        }
        .hero-sub-title-big {
            font-size: clamp(1.7rem, 2.1vw, 1.8rem);
            font-weight: 600;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 0.6em;
        }
        /* MAIN GRID LAYOUT - The entire page is a grid */
        .page-grid {
            display: grid;
            grid-template-columns: 5% 50% 40% 5%;
            grid-template-rows: auto auto auto auto auto;
            min-height: 100vh;
            gap: 0;
        }

        /* All grid cells have white borders to create the grid lines */
        .grid-cell {
            border-right: 1px solid var(--grid-line);
            border-bottom: 1px solid var(--grid-line);
            padding: 30px;
            position: relative;
            /* width: 100vw; */
        }

        .grid-cell:nth-child(9n) {
            border-right: none; /* Last column doesn't need right border */
        }
        .dual {
            display: grid; 
            grid-template-columns: 1fr 1fr; 
            margin: 0; 
            min-height: 90%;
        }
        /* HEADER ROW */
        .header-left {
            grid-column: 1 / 2;
            grid-row: 1;
            border-top: 1px solid var(--grid-line);
            border-left: 1px solid var(--grid-line);
        }

        .header-main {
            grid-column: 2 / 4;
            grid-row: 1;
            border-top: 1px solid var(--grid-line);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .header-right {
            grid-column: 4 / 5;
            grid-row: 1;
            border-top: 1px solid var(--grid-line);
            border-right: 1px solid var(--grid-line);
            display: flex;
            justify-content: flex-end;
            align-items: center;
        }

        .logo {
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.02em;
        }

        .cta-button {
            background: white;
            color: black;
            padding: 12px 24px;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: opacity 0.3s;
        }

        .cta-button:hover {
            opacity: 0.8;
        }

        /* HERO ROW */
        .hero-left {
            grid-column: 1 / 2;
            grid-row: 2;
            border-left: 1px solid var(--grid-line);
        }

        .hero-main {
            grid-column: 2 / 4;
            grid-row: 2;
            display: flex;
            align-items: center;
            padding: 25px 20px;
        }

        .hero-title {
            font-size: clamp(1.6rem, 2vw, 3rem);
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin-bottom: 0.6em;
            width: 90%;
        }

        .hero-right {
            grid-column: 4 / 5;
            grid-row: 2;
            border-right: 1px solid var(--grid-line);
        }

        /* CONTENT ROW */
        .content-left-spacer {
            grid-column: 1 / 2;
            grid-row: 3;
            border-left: 1px solid var(--grid-line);
        }

        .content-main {
            grid-column: 2 / 4;
            grid-row: 3;
            padding: 60px 40px;
        }
        .content-right-spacer {
            grid-column: 4 / 5;
            grid-row: 3;
            border-right: 1px solid var(--grid-line);
        }
        .content-text {
            font-size: 1.1rem;
            line-height: 1.8;
            color: var(--text-primary);
            margin-bottom: 40px;
        }
        .content-text-short {
            font-size: 1.1rem;
            line-height: 1.7;
            color: var(--text-primary);
            margin-bottom: 40px;
            width: 85%;
        }
        .content-text strong {
            font-weight: 600;
        }

        .content-visual {
            grid-column: 3 / 4;
            grid-row: 3;
            padding: 0;
            background: #ffffff;
            overflow: hidden;
        }

        .visual-placeholder {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.8rem;
            color: #444;
            min-height: 400px;
        }


        /* gap */
        .reading-left {
            grid-column: 1 / 2;
            grid-row: 4;
            border-left: 1px solid var(--grid-line);
        }

        .reading-main {
            grid-column: 2 / 4;
            grid-row: 4;
            padding: 60px 40px;
        }

        .reading-right {
            grid-column: 4 / 5;
            grid-row: 4;
            border-right: 1px solid var(--grid-line) !important;
        }

        /* second-gap */
        .second-gap-left {
            grid-column: 1 / 2;
            grid-row: 6;
            border-left: 1px solid var(--grid-line);
        }

        .second-gap-main {
            grid-column: 2 / 4;
            grid-row: 6;
            padding: 60px 40px;
        }

        .second-gap-right {
            grid-column: 4 / 5;
            grid-row: 6;
            border-right: 1px solid var(--grid-line);
        }




        .section-label {
            font-family: 'IBM Plex Mono', monospace;
            font-size: 0.75rem;
            letter-spacing: 0.1em;
            color: var(--text-secondary);
            margin-bottom: 30px;
        }

        .link-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 30px 0;
            border-bottom: 1px solid #222;
            text-decoration: none;
            color: var(--text-primary);
            transition: opacity 0.3s;
        }

        .link-item:hover {
            opacity: 0.6;
        }

        .link-item:last-child {
            border-bottom: none;
        }

        .link-title {
            font-size: 2rem;
            font-weight: 600;
        }

        .link-arrow {
            font-size: 1rem;
        }

        /* why */
        .why-left {
            grid-column: 1 / 2;
            grid-row: 5;
            border-left: 1px solid var(--grid-line);
        }

        .why-main {
            grid-column: 2 / 4;
            grid-row: 5;
            padding: 60px 40px;
        }

        .why-right {
            grid-column: 4 / 5;
            grid-row: 5;
            border-right: 1px solid var(--grid-line) !important; 
        }

        /* HOW */
        .how-left {
            grid-column: 1 / 2;
            grid-row: 7;
            border-left: 1px solid var(--grid-line);
        }

        .how-main {
            grid-column: 2 / 4;
            grid-row: 7;
            padding: 60px 40px;
        }

        .how-right {
            grid-column: 4 / 5;
            grid-row: 7;
            border-right: 1px solid var(--grid-line) !important; 
        }

        .work-grid {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            grid-template-rows: 1fr 1fr;
            width: 100%;
            gap: 10px;
            /* border: 1px solid var(--grid-line) !important;  */

        }
        .work-item {
            padding: 15px;
            cursor: pointer;
            border: 1px solid var(--grid-line) !important; 
        }
        .work-item:hover {
            transform: translateY(-5px);
        }
        .exept{
            padding: 15px;
            transform: translateY(0px);
            cursor:auto;
            border: 1px solid var(--grid-line) !important; 
        }
        /* second-gap */
        .third-gap-left {
            grid-column: 1 / 2;
            grid-row: 8;
            border-left: 1px solid var(--grid-line);
        }

        .third-gap-main {
            grid-column: 2 / 4;
            grid-row: 8;
            padding: 60px 40px;
        }

        .third-gap-right {
            grid-column: 4 / 5;
            grid-row: 8;
            border-right: 1px solid var(--grid-line);
        }

        /* INSIGHT */
        .insight-left {
            grid-column: 1 / 2;
            grid-row: 9;
            border-left: 1px solid var(--grid-line);
        }

        .insight-main {
            grid-column: 2 / 4;
            grid-row: 9;
            padding: 60px 40px;
        }

        .insight-right {
            grid-column: 4 / 5;
            grid-row: 9;
            border-right: 1px solid var(--grid-line) !important; 
        }



        .blogs-grid {
            display: flex; /* Changed from grid */
            gap: 3rem;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 1rem;
            padding-right: 3rem; /* Add padding at end */
        }
        .blogs-grid a {
            display: flex; /* Instead of block */
            flex: 0 0 350px; /* Move this from .blog-item */
            text-decoration: none;
            color: black;
            scroll-snap-align: start;
        }

        .blog-item {
            cursor: pointer;
            transition: transform 0.3s ease;
            width: 100%; /* Fill the link */
        }
        .blog-item:hover {
            transform: translateY(-5px);
        }

        .blog-image {
            width: 100%;
            aspect-ratio: 3/2;
            background: #f5f5f5;
            margin-bottom: 1.5rem;
            overflow: hidden;
        }

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

        .blog-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        .blog-item h3 {
            font-size: 1.4rem;
            margin-bottom: 0.75rem;
            font-weight: 600;
            line-height: 1.3;
        }

        .blog-item p {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #555;
            margin-bottom: 1rem;
        }

        .blog-meta {
            font-size: 0.85rem;
            color: #999;
        }

        /* Scrollbar styling */
        .blogs-grid::-webkit-scrollbar {
            height: 8px;
        }

        .blogs-grid::-webkit-scrollbar-track {
            background: #f0f0f0;
        }

        .blogs-grid::-webkit-scrollbar-thumb {
            background: #292929;
            border-radius: 4px;
        }

        .blogs-grid::-webkit-scrollbar-thumb:hover {
            background: #292929;
        }
        .svg-image{
            width: 75%;
            background-color: white;
        }


        /* FOOTER ROW */
        .footer-left {
            grid-column: 1 / 2;
            grid-row: 10;
            border-left: 1px solid var(--grid-line);
            border-bottom: 1px solid var(--grid-line);
        }

        .footer-main {
            grid-column: 2 / 4;
            grid-row: 10;
            padding: 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85rem;
            color: var(--text-secondary);
            border-bottom: 1px solid var(--grid-line);
        }

        .footer-right {
            grid-column: 4 / 5;
            grid-row: 10;
            border-right: 1px solid var(--grid-line);
            border-bottom: 1px solid var(--grid-line);
        }

        /* The Modal (background) */
        .modal {
        display: none; /* Hidden by default */
        position: fixed; /* Stay in place */
        z-index: 1; /* Sit on top */
        padding-top: 100px; /* Location of the box */
        left: 0;
        top: 0;
        width: 100%; /* Full width */
        height: 100%; /* Full height */
        overflow: auto; /* Enable scroll if needed */
        background-color: rgb(0,0,0); /* Fallback color */
        background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
        }

        /* Modal Content */
        .modal-content {
        background-color: #fefefe;
        margin: auto;
        padding: 20px;
        border: 1px solid #888;
        width: 90%;
        }

        /* The Close Button */
        .close {
        color: #aaaaaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        }

        .close:hover,
        .close:focus {
        color: #000;
        text-decoration: none;
        cursor: pointer;
        }
    .pdf {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
        /* Responsive */
        @media (max-width: 1024px) {
            .page-grid {
                grid-template-columns: 5% 90% 5%;
                width: 100vw;
            }

            .header-left, .header-right,
            .hero-left, .hero-right,
            .content-left-spacer, .content-right-spacer,
            .reading-left, .reading-right, .second-gap-left,
            .second-gap-right, .footer-left, .footer-right, .why-left, .why-right,
            .how-left, .how-right, .third-gap-left, .third-gap-right,
            .insight-left, .insight-right {
                display: none;
            }

            .header-main {
                grid-column: 2 / 3;
            }
            .dual{
                grid-template-columns: 1fr;
                width: 100%;
            }
            .hide {
                display: none;
            }
            .hero-main {
                grid-column: 2 / 3;
            }

            .content-main {
                grid-column: 2 / 3;
                grid-row: 3;
            }

            .reading-main {
                grid-column: 2 / 3;
                grid-row: 4;
            }

            .second-gap-main {
                grid-column: 2 / 3;
                grid-row: 6;
            }
            .why-main{
                grid-column: 2 / 3;
                grid-row: 5;
            }
            .how-main{
                grid-column: 2 / 3;
                grid-row: 7;
            }
            .third-gap-main{
                grid-column: 2 / 3;
                grid-row: 8;
            }
            .insight-main{
                grid-column: 2 / 3;
                grid-row: 9;
            }
            .footer-main {
                grid-column: 2 / 3;
                grid-row: 10;
            }
            /* .hero-title {
                font-size: 2.5rem;
            } */
            .work-grid {
                display: grid;
                grid-template-columns: 1fr;
                /* width: 100%;
                gap: 10px; */
            }
            .svg-image{
                width: 45%;
                background-color: white;
            }
            .grid-cell {
                width: 100vw;
            }
        }

        @media (max-width: 768px) {
            .page-grid {
                grid-template-columns: 1fr;
            }

            .header-main {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
            }
/* 
            .hero-title {
                font-size: 2rem;
            } */

            .footer-main {
                flex-direction: column;
                gap: 20px;
                text-align: center;
            }
            .hide{
                display: none;
            }
        }