/* ==========================================================================
   MAIN.CSS - Consolidated Responsive Stylesheet
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: "Inter Tight", sans-serif;
    font-size: clamp(16px, 15px + 0.2vw, 17px);
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    margin: 0; 
    padding: 0;


    background-color: #111111;
    color: #ddd;
    line-height: 1.75em;
    
}

header {position: relative; color: #fff; padding: 30px 20px; margin: auto; text-align: left; width: 100vw; }
#logo a {font-family: "Hind Siliguri", sans-serif; font-size: 40px; font-weight: 800; letter-spacing: -3px; color: #fff;}
header a:hover {text-decoration: none; color: #fff;} 

/* Global Terrain Background */
#terrain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    transition: opacity 0.8s ease, filter 0.8s ease;
}

@keyframes slowFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

#terrain canvas {
    display: block;
    width: 100%;
    height: 100%;
    animation: slowFadeIn 2.5s ease-in-out;
}

/* Dim terrain on scroll for homepage */
body.homepage.scrolled #terrain {
    opacity: 0.3;
}

body.standard #terrain, body.article #terrain {
    filter: blur(10px) brightness(0.3) grayscale(0.4);
    opacity: 0.6;
}

/* Dim even further on scroll for subpages */
body.standard.scrolled #terrain, body.article.scrolled #terrain {
    opacity: 0.2;
}
header nav {position: relative; color: #fff;}
header nav li {display: inline-block; padding-right: 30px;}
header nav li a {
    font-weight: 600;
    position: relative;
    text-decoration: none;
    color: #ddd;
    transition: color 0.3s ease;
}

header nav li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

header nav li a:hover {
    color: #fff;
}

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

#menu_toggle {display: none;}

.menu_label {
    display: none;
}

.headline {display: block; padding: 10px; margin: 0px;}
/* #text_we {} */
#txt_dynamic { transition: color 0.5s ease; filter: blur(0); color: #fff;}
#txt_digital {font-weight: bold;}
#txt_performance {font-weight: bold;}

main {padding: 20px;}
main h1 {font-family: "Inter Tight", sans-serif; font-size: clamp(36px, 5vw, 48px); line-height: 1.15em; font-weight: 900; color: #fff; margin: 0 0 1em 0; letter-spacing: -1.5px;}
main h2 {font-family: "Inter Tight", sans-serif; font-size: clamp(24px, 3.5vw, 28px); line-height: 1.3em; font-weight: 900; color: #fff; margin: 1em 0 1em 0;}  
main h3 {font-family: "Inter Tight", sans-serif; font-size: clamp(18px, 3vw, 20px); line-height: 1.4em; font-weight: 900; color: #fff; margin: 1em 0 1em 0;}

main ul {margin: 1em 0 1em 0;}
main li {margin-left: 50px; margin-bottom: 1rem;}


p {margin: 1em 0 1em 0; color: #ddd;}
strong {font-weight:900; color: #fff;}

#credits {
    color: #999; 
    font-weight: normal; 
    font-size: 14px; 
    margin-top: 5px;
}

a {color: #ddd; text-decoration: none; }
a:hover {color: #fff; text-decoration: underline; transform: translateY(-2px);}
a:active {color: #fff; text-decoration: none; }

main p a:not(.cta), main li a:not(.cta) { text-decoration: underline; }

h2.article_title {
    font-size: 28px; 
    line-height: 1.2em;
    letter-spacing: -0.5px;
}
.article_title a {color: #fff;}

.article_tags {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article_tags span {font-style: italic;}
.featured-badge {
    display: inline-block;
    margin-bottom: 20px;
    background: #444;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.filter-btn { padding: 4px 12px; border-radius: 16px; font-size: 12px; font-weight: 600; text-decoration: none; color: #bbb; transition: all 0.2s ease; border: 1px solid transparent; text-transform: uppercase; letter-spacing: 0.5px;}

table {border: 1px solid #555; border-collapse: collapse;}
table th {border: 1px solid #555; border-bottom-width: 3px; padding: 5px 10px;}
table td {border: 1px solid #555; padding: 5px 10px;}

td.numeric {text-align: right;}

/* Global Form Focus States */
form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6) !important;
}

pre {
    margin: 2em 0;
    overflow-x: auto;
    border-radius: 10px;
    background: #000;
}
pre code {
    display: block; 
    color: #fff; 
    padding: 24px; 
    font-family: Courier, monospace; 
    font-size: 13px !important; 
    white-space: pre;
}
code {display: inline-block; background: #000; padding: 0 10px; margin: 0 5px; font-family: Courier, monospace; font-size: 13px; border-radius: 10px;}


#milestones {
    padding: 0;
    font-size: inherit;
    margin: 0;
    border: none;
    line-height: inherit;
    font-weight: normal;
}
#milestones ul {margin: 0; padding: 0;}
#milestones li {margin: 0; padding: 0;}
#milestones ul ul {margin-left: 0px; margin-top: 5px;}
#milestones ul ul a::before {content: "- ";}
#milestones a {text-decoration: none;}
#milestones a:hover {text-decoration: none;}

optgroup {color: #ccc;}

.latest-articles {
    margin: 80px 0;
}
.latest-articles h2 {
    text-align: left;
    font-size: 32px;
    margin-bottom: 40px;
    letter-spacing: -1px;
}
.article-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.article-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}
.article-card .date,
.featured-article-card .date {
    font-size: 14px;
    color: #888;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.article-card h3,
.featured-article-card h3 {
    font-family: "Hind Siliguri", sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.3em;
    letter-spacing: -0.5px;
}
.article-card h3 a,
.featured-article-card h3 a {
    color: #fff;
}
.article-card h3 a:hover,
.featured-article-card h3 a:hover {
    text-decoration: none;
    transform: none;
}
.article-card p,
.featured-article-card p {
    color: #aaa;
    line-height: 1.6em;
    flex-grow: 1;
    margin: 0 0 20px 0;
}
.article-card .read-more,
.featured-article-card .read-more {
    font-weight: 600;
    color: #fff;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.article-card:hover .read-more,
.featured-article-card:hover .read-more {
    transform: translateX(8px);
    text-decoration: none;
}

/* Featured Article Card */
.featured-article-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}
.featured-article-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.featured-article-card .featured-badge {
    position: absolute;
    top: -12px;
    left: 40px;
    margin-bottom: 0;
}
.featured-article-card .featured-content {
    margin-top: 15px;
}

/* Icon Bullet List Component */
.icon-bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 2.5rem;
}

.icon-bullet-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.icon-bullet-list .icon-container {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Kinetic Entrance Animations */
@keyframes reveal-entrance {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-entrance {
    animation: reveal-entrance 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Pathfinder Process Timeline */
.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding-left: 40px;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), rgba(255,255,255,0.3), rgba(255,255,255,0.05));
}

.process-step {
    position: relative;
    margin-bottom: 30px;
}

.process-step::before {
    content: '';
    position: absolute;
    left: -46px;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #fff;
    border: 4px solid #111111;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.process-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.process-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.process-card h3 {
    margin: 0 0 5px 0;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.process-card p {
    margin: 0;
    color: #bbb;
    font-size: 0.9rem;
    line-height: 1.6em;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1em;
    margin-bottom: 5px;
    font-family: "Hind Siliguri", sans-serif;
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* FAQ Accordion Styling */
#faqs details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 1rem;
    padding: 15px 20px;
    transition: all 0.3s ease;
}

#faqs details[open] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

#faqs summary {
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; 
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 15px;
    color: #fff;
    outline: none;
    margin: 0;
}

#faqs summary::-webkit-details-marker {
    display: none; 
}

#faqs summary::before {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: #888;
    transition: transform 0.3s ease;
}

#faqs details[open] summary::before {
    content: '\2212'; /* Minus sign */
    transform: rotate(180deg);
    color: #fff;
}

#faqs details p {
    margin-top: 15px;
    margin-bottom: 0;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.6;
}


/* --- DESKTOP (1025px and up) --- */
@media screen and (min-width: 1025px) {
html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

header {
    height: 80px;
    margin: auto;
    width: 1024px;
}

footer #footer-container {
    position: relative;
    color: #fff;
    padding: 20px;
    margin: 80px auto 20px auto;
    width: 1024px;
}

footer #newsletter {
    justify-self: center;
}

footer #terms_of_use {
    justify-self: right;
}


body.homepage {
    display: flex;
    flex-direction: column;
    height: 100vh;


    div#banner {
        position: relative;
        flex: 1 0 auto;
        overflow: auto;
        /* optional, if banner needs scroll */
        min-height: 90vh;
        width: 1024px;
        margin: auto;
        padding: 0px;
    }

    main {

        position: relative;
        width: 1024px;
        margin: auto;
        padding: 80px 100px 20px 20px;

        p.intro {

            font-size: 20px;
            letter-spacing: -1px;
            word-spacing: 1px;
            line-height: 1.3em;

            strong {
                font-weight: bold;
                font-size: inherit;
            }
        }
    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

    #hp_banner_headline {

        position: absolute;
        top: 45%;
        left: 50%;
        width: 1000px;
        margin: auto;
        padding: 0px;
        transform: translateX(-502px) translateY(-70%);
        font-size: 100px;
        font-kerning: normal;
        letter-spacing: -3px;
        word-spacing: 2px;
        line-height: 80%;
        text-rendering: optimizeLegibility;
        color: #fff;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        transition: opacity 0.2s ease-in-out;
    }

}

body.article {

    main {
        position: relative;
        width: 1024px;
        margin: auto;
        padding: 80px 20px 40px 20px;

        .article-hero {
            margin-bottom: 50px;
        }

        .article-grid {
            display: grid;
            grid-template-columns: 280px 1fr;
            gap: 60px;
            align-items: start;
        }

        .article-body {
            min-width: 0;
        }

        /* Subtle breakout for smaller desktop */
        .article-body pre {
            width: calc(100% + 40px);
            margin-left: -20px;
        }

        aside#milestones {
            position: sticky;
            top: 120px;
            left: auto;
            transform: none;
            width: 100%;
            max-height: calc(100vh - 150px);
            overflow-y: auto;

            li {
                list-style-type: none;
                line-height: 1.2em;
            }

            li > a {
                display: block;
                padding: 4px 8px;
                border-left: 5px solid transparent;
                transition: border-left 0.3s;
                color: rgb(221, 221, 221);
            }

            li.active > a {
                border-left: 5px solid white;
            }

            li li {
                margin-left: 20px;
            }

            li li > a {
                padding-left: 8px;
            }

            aside#milestones a:hover {
                color: #fff;
            }
        }

        p.intro {

            font-size: 20px;
            letter-spacing: -1px;

            strong {
                font-weight: bold;
                font-size: inherit;
            }
        }


        .svg-label {
            font-size: 22px;
            fill: white;
            font-family: sans-serif;
        }

    }

    aside {
        font-size: 24px;
        margin-left: 30px;
        padding: 30px;
        border-left: 5px solid #fff;
        line-height: 1.2em;
        font-weight: 400;
    }

    aside.right {
        width: 50%;
        float: right;
    }


    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

}

body.standard {

    main {

        position: relative;
        width: 1024px;
        margin: auto;
        padding: 20px 20px 20px 20px;

        p.intro {

            font-size: 20px;
            letter-spacing: -1px;

            strong {
                font-size: inherit;
                font-weight: bold;
            }
        }
    }

    aside {
        font-size: 24px;
        margin-left: 30px;
        padding: 30px;
        border-left: 5px solid #fff;
        line-height: 1.2em;
        font-weight: 400;
    }

    aside.right {
        width: 300px;
        float: right;
    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

}

#main_nav {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.menu_label {display: none;}

div.callout {
    border-left: 5px solid #eee;
    padding-left: 20px;
}

div.callout a.cta {
    background: #eee;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    display: block;
    margin: auto;
    max-width: 200px;
}

.bigandbold {

    font-size: 24px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* COLUMS --------------------------------------------- */

.columns {
    column-gap: 20px;
    padding: 1rem 0;
}

.two-columns {
    column-count: 2;
}

.three-columns {
    column-count: 3;
}

.faq-section {
  break-inside: avoid;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}


/* GRID ----------------------------------------------- */

.grid {
    display: grid;
    gap: 40px;
    width: 100%;
}

.two-by-one {
    grid-template-columns: auto 1fr;
    /* Creates 3 equal columns */
}

.three-by-one {
    grid-template-columns: 1fr 1fr 1fr;
    /* Creates 3 equal columns */
}

.four-by-one {
    grid-template-columns: repeat(4fr);
    /* Creates 3 equal columns */
}

.chart {
    width: 100%;
    height: 500px;
}

.narrow {
    width: 40%;
}

.med {
    width: 60%;
}

.wide {
    width: 80%;
}

#usps {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}

#blog_articles {
    width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
}

.service h2 {
    margin: 0;
    padding: 0;
}

#formContainer {
    width: 600px;
    padding: 40px;
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#contactExit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
}

form {

    width: 100%;
    align-items: center;
    display: grid;
    grid-template-columns: 150px 380px;
    gap: 10px;
    padding-top: 30px;
}

form label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form textarea,
form button {
    grid-column: span 2;
}

form input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form select {
    
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;

    option {
        color:#000;
    }
}


form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form .checkbox-label {
    min-width: 240px;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/*article index */
.grid-container {
    display: grid;
    grid-template-columns: repeat(1);
    grid-template-rows: auto auto auto;
    /* Three rows */
    gap: 10px;
    width: auto;
    padding: 0px;
}

div.feature-article,
div.article {
    padding: 40px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.article_listing {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.article_listing:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.article_listing.feature-article {
    border-color: rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
}

h2.article_title {
    margin: 0 0 15px 0;
    padding: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.article_description {
    margin-top: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
    color: #bbb;
    line-height: 1.6em;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    margin-bottom: 20px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    transition: transform 0.3s ease;
}

.article_listing:hover .read-more-link {
    transform: translateX(8px);
}

.article_tags {
    position: relative;
    margin-top: auto;
}

#contactExit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
}

form#contactForm {
    display: grid;
    grid-template-columns: 150px 380px;
    align-items: start;
    /* align items vertically to the start (top) */
    justify-items: start;
    /* align items horizontally to the start (left) */
    width: 100%;
    gap: 10px;
}

form#contactForm label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form#contactForm .checkbox-label {
    min-width: 240px;

}

.checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
}

/* --- TABLET (768px to 1024px) --- */
@media screen and (min-width: 768px) and (max-width: 1024px) {
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    scroll-behavior: smooth;
}

header {
    height: 80px;
    margin: auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

footer #footer-container {position: relative; color: #fff; padding: 20px; margin: auto; width: 100%; gap: 0px; }
footer #newsletter {justify-self: center;}
footer #terms_of_use {justify-self: right;}

/* NAV styles ------------------------------------------- */

/* Hide the checkbox toggle input */
#menu_toggle {
    display: none;
}

.menu_label {
    display: block;
}

/* Premium Hamburger Animation */
.menu_icon line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.menu_icon .top { transform-origin: 50px 30px; }
.menu_icon .middle { transform-origin: 50px 50px; }
.menu_icon .bottom { transform-origin: 50px 70px; }

/* Menu open: perfect X shape */
#menu_toggle:checked ~ .menu_label .top {
    transform: translateY(20px) rotate(45deg);
}

#menu_toggle:checked ~ .menu_label .middle {
    opacity: 0;
    transform: scaleX(0);
}

#menu_toggle:checked ~ .menu_label .bottom {
    transform: translateY(-20px) rotate(-45deg);
}

/* Toggle button position */
/* This is the icon itself */
.menu_label {
    position: relative;
    z-index: 1001;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

#menu_toggle:checked+.menu_label {
    position: fixed;
    top: 22px;
    right: 20px;
}

/* Optional: SVG sizing inside label */
.menu_icon {
    width: 100%;
    height: 100%;
}

/* Slide-out menu panel (hidden by default) */
.menu_panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 400px;
    height: 100dvh;
    background-color: #111111;
    color: white;
    padding: 100px 0 0 40px;
    box-shadow: -2px 0 15px rgba(0, 0, 0, 0.7);
    transition: right 0.3s ease;
    z-index: 1000;
}

/* Show panel when menu is toggled */
#menu_toggle:checked~.menu_panel {
    right: 0;
}

/* Optional: Menu list styling */
.menu_panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_panel li {
    display: block;
    margin-bottom: 30px;
    font-size: 22px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#menu_toggle:checked ~ .menu_panel li {
    opacity: 1;
    transform: translateX(0);
}
#menu_toggle:checked ~ .menu_panel li:nth-child(1) { transition-delay: 0.1s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(2) { transition-delay: 0.15s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(3) { transition-delay: 0.2s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(4) { transition-delay: 0.25s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(5) { transition-delay: 0.3s; }

.menu_panel a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu_panel a:hover {
    color: #ddd;
}

/* Dark overlay */
#menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* darkness level */
  z-index: 999; /* Must be below .menu_panel (z-index: 1000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show overlay when menu is open */
#menu_toggle:checked ~ #menu_overlay {
  opacity: 1;
  pointer-events: all;
}

/* Ensure menu panel is on top of the overlay */
.menu_panel {
  z-index: 1000;
}

body.homepage {
    
    display: flex;
    flex-direction: column;
    height: 100vh;


    
    div#banner {      
        position: relative;     
        flex: 1 0 auto;
        overflow: auto; /* optional, if banner needs scroll */
        min-height: 90vh;
        width: 100%;
        max-width: 1024px;
        margin: auto;
        padding: 0 40px;
        box-sizing: border-box;
    }

    main {
        
        position: relative;
        width: 100%;
        max-width: 1024px;
        box-sizing: border-box;
        margin: auto;
        padding: 40px 40px 60px 40px;

        p.intro {

            font-size: 20px;
            letter-spacing: -1px;
            word-spacing: 1px;
            line-height: 1.4em;

            strong {
                font-weight: bold;
            }
        }
    }
    
    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
   
    #hp_banner_headline {
    
        position: absolute;
        top: 45%;
        left: 50%;
        width: 100%;
        max-width: 1024px;
        padding: 0 40px;
        box-sizing: border-box;
        margin: auto;
        transform: translateX(-50%) translateY(-70%);
        font-size: 70px;
        font-kerning: normal;
        letter-spacing: -2px;
        word-spacing: 2px;
        line-height: 1.1em;
        text-rendering: optimizeLegibility;
        color: #ccc;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        /* Subtle shadow */
        transition: opacity 0.2s ease-in-out;
    }
    
}

body.article {  

    main {
        
        position: relative;
        width: 100%;
        margin: auto;
        padding: 20px 20px 20px 20px;

        aside#milestones {
            display: none;
            position: fixed;
            top: 270px; /* or whatever vertical position you want */
            left: 50%;  /* start at center of the viewport */
            transform: translateX(-540px); /* move it 300px to the right */
            width: 300px;

            li {
                list-style-type:none;
                line-height: 1.2em;
            }

            li > a {
                display: block;
                padding: 8px;
                border-left: 5px solid transparent;
                transition: border-left 0.3s;
                color: rgb(221, 221, 221);
            }
 
            li.active > a {
                border-left: 5px solid white;
            }

            li li {margin-left: 20px;}

            li li > a {
                padding-left: 8px;
            }

            aside#milestones a:hover {
                color: #fff;
            }
        }

        p.intro {

            font-size: 20px;
            letter-spacing: -1px;

            strong {
                font-weight: bold;
            }
        }

        /* callout styles moved to global scope */
        .svg-label {
            font-size: 22px;
            fill: white;
            font-family: sans-serif;
          }

    }
    
    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
       
}

body.standard {  

    main {
        
        position: relative;
        width: 100%;
        margin: auto;
        padding: 20px 20px 20px 20px;

        p.intro {

            font-size: 40px;
            letter-spacing: -2px;

            strong {
                font-weight: bold;
            }
        }
    }

    aside {
        font-size: 20px;
        letter-spacing: -1px;
        margin: 40px auto;
        padding: 30px;
        border-left: 5px solid #fff;
        width: 100%;
        box-sizing: border-box;
    }
    aside.right {
        width: 100%;
        float: none;
    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
      }
       
}


/* #main_nav is now controlled by the menu_panel class */

.bigandbold {

    font-size: 24px;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

/* GRID ------------------------------------------------- */

.article-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.grid {
    display: grid;
    gap: 10px;
    width: 100%;
}

.two-by-one {
    grid-template-columns: auto 1fr;
    /* Creates 3 equal columns */
}

.three-by-one {
    grid-template-columns: 1fr 1fr 1fr;
    /* Creates 3 equal columns */
}

.four-by-one {
    grid-template-columns: repeat(4fr);
    /* Creates 3 equal columns */
}

.chart {
    width: 100%;
    height: 500px;
}

.narrow {
    width: 40%;
}

.med {
    width: 60%;
}

.wide {
    width: 80%;
}

#usps {
    width: 1000px;
    margin: 0 auto;
    background: #fff;
    border-radius: 10px;
}

#blog_articles {
    width: 1000px;
    margin: 0 auto;
    border-radius: 10px;
}

.service h2 {
    margin: 0;
    padding: 0;
}

#formContainer {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

form {


    width: 100%;
    align-items: center;

    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

form label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form textarea,
form button {
    grid-column: 1;
}

form input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form select {
    
    padding: 5px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;

    option {
        color:#000;
    }
}

form textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form .checkbox-label {
    min-width: 240px;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Article Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    width: 100%;
    padding: 0;
}

.article_listing {
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

/* Pathfinder Process Timeline Tablet */
.process-timeline {
    padding-left: 40px;
    margin: 40px 0;
}

.process-card {
    padding: 20px;
}

/* Stats Grid Tablet */
.stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 20px;
}

/* Disable backdrop-filter for performance on tablet */
.article-card, .featured-article-card, .process-card, .stat-card, aside, .article_listing {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#formContainer {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 40px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

#contactExit {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
}

form {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    /* align items vertically to the start (top) */
    justify-items: start;
    /* align items horizontally to the start (left) */
    width: 100%;
    gap: 15px;
}

form label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;
}

form .checkbox-label {
    min-width: 240px;

}

.checkbox-container {

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

div.callout {
    border-left: 5px solid #eee;
    padding-left: 20px;
    margin-top: 60px; /* Kept margin so it isn't completely flush with above text */
}

div.callout a.cta {
    background: #eee;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    display: block;
    margin: auto;
    max-width: 200px;
}
}

/* --- MOBILE PORTRAIT (max 767px) --- */
@media screen and (max-width: 767px) and (orientation: portrait) {
main h1 {
    font-size: 36px;
    line-height: 1.2em;
}

main h2 {
    font-size: 28px;
    line-height: 1.3em;
}

main h3 {
    font-size: 20px;
    line-height: 1.4em;
}

main li {
    margin-left: 20px;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo a {font-size: 30px; }

/* NAV styles ------------------------------------------- */

/* Hide the checkbox toggle input */
#menu_toggle {
    display: none;
}

.menu_label {
    display: block;
}

/* Premium Hamburger Animation */
.menu_icon line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.menu_icon .top { transform-origin: 50px 30px; }
.menu_icon .middle { transform-origin: 50px 50px; }
.menu_icon .bottom { transform-origin: 50px 70px; }

/* Menu open: perfect X shape */
#menu_toggle:checked ~ .menu_label .top {
    transform: translateY(20px) rotate(45deg);
}

#menu_toggle:checked ~ .menu_label .middle {
    opacity: 0;
    transform: scaleX(0);
}

#menu_toggle:checked ~ .menu_label .bottom {
    transform: translateY(-20px) rotate(-45deg);
}

/* Toggle button position */
/* This is the icon itself */
.menu_label {
    position: relative;
    z-index: 1001;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#menu_toggle:checked+.menu_label {
    position: fixed;
    top: 26px;
    right: 20px;
}

/* Optional: SVG sizing inside label */
.menu_icon {
    width: 100%;
    height: 100%;
}

/* Slide-out menu panel (hidden by default) */
.menu_panel {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    background-color: #111111;
    color: white;
    padding: 100px 0 0 40px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Show panel when menu is toggled */
#menu_toggle:checked~.menu_panel {
    transform: translateX(0);
}

/* Optional: Menu list styling */
.menu_panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_panel li {
    display: block;
    margin-bottom: 30px;
    font-size: 22px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#menu_toggle:checked ~ .menu_panel li {
    opacity: 1;
    transform: translateX(0);
}
#menu_toggle:checked ~ .menu_panel li:nth-child(1) { transition-delay: 0.1s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(2) { transition-delay: 0.15s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(3) { transition-delay: 0.2s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(4) { transition-delay: 0.25s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(5) { transition-delay: 0.3s; }

.menu_panel a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu_panel a:hover {
    color: #ddd;
}

/* Dark overlay */
#menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* darkness level */
  z-index: 999; /* Must be below .menu_panel (z-index: 1000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show overlay when menu is open */
#menu_toggle:checked ~ #menu_overlay {
  opacity: 1;
  pointer-events: all;
}

/* Ensure menu panel is on top of the overlay */
.menu_panel {
  z-index: 1000;
}


/* FOOTER styles -------------------------------------------- */

footer #footer-container {
    position: relative;
    color: #fff;
    padding: 20px;
    margin: 80px auto 20px auto;
    width: 100%;
    gap: 0px;
}

footer #newsletter {
    justify-self: left;
}

footer #terms_of_use {
    justify-self: left;
}

body.homepage {

    header {
        height: 80px;
    }

    div#banner {
        min-height: calc(100vh - 70px);
        /* Make it fill screen if content is short */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    main {

        margin: auto;
        padding: 20px;
        line-height: 1.5em;

        .featured-article-card {
            padding: 20px;
        }
        .featured-article-card .featured-badge {
            left: 20px;
        }

        p.intro {

            font-size: 18px;
            letter-spacing: -1px;
            line-height: 1.4em;

            strong {
                font-weight: bold;
            }
        }
    }

    footer {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #hp_banner_headline {

        position: absolute;
        top: 50%;
        left: 10px;
        margin: auto;
        transform: translateY(-70%);
        font-size: clamp(40px, 10vw, 60px);
        font-kerning: normal;
        letter-spacing: -2px;
        word-spacing: 2px;
        line-height: 80%;
        text-rendering: optimizeLegibility;
        color: #fff;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        /* Subtle shadow */
    }

}

body.standard,
body.article {

    header {
        height: 80px;
        margin: auto;
    }

    main {
        width: 100%;
        margin: auto;
        padding: 20px;

        aside#milestones {
            display: none;
        }

        p.intro {

            font-size: 18px;
            letter-spacing: -1px;

            strong {
                font-weight: bold;
            }
        }

        aside {
            display: block;
            font-size: 18px;
            padding: 20px;
            border-left: 3px solid #fff;
            line-height: 1.4em;
            font-weight: 400;
            margin-bottom: 2rem;
        }

        aside.right {
            float: none;
            width: 100%;
            margin-left: 0;
        }

        svg#five_stages {
            width: 100%;
            height: 160px;
        }

        .svg-label {
            font-size: 22px;
            fill: white;
            font-family: sans-serif;
        }

        .svg-label {
            transform: rotate(-45deg);
        }

        .label-ad-hoc {
            transform-origin: 50px 150px;
        }

        .label-foundational {
            transform-origin: 250px 150px;
        }

        .label-developing {
            transform-origin: 450px 150px;
        }

        .label-advanced {
            transform-origin: 650px 150px;
        }

        .label-transformational {
            transform-origin: 850px 150px;
        }

    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

}

div.callout {
    border-left: 5px solid #eee;
    border-right: 5px solid none;
    padding-left: 20px;
}

div.callout a.cta {
    background: #eee;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    display: block;
    margin: auto;
    max-width: 200px;
}

.bigandbold {

    font-size: 20px;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}



#formContainer {
    right: 10px;
    bottom: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

form {

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

form label {
    min-width: 60px;
    grid-column: 1;
    text-align: left;
}

form input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    color: #fff;
}

form select {

    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;

    option {
        color: #000;
    }

}

form textarea {
    padding: 10px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    height: 160px;
    border: none;
    /* grid-column: 2; */
    overflow-y: visible;
    color: #fff;
}

form .checkbox-label {
    max-width: 140px;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {
    display: grid;
    grid-template-columns: 1fr;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

form .checkbox-item input {
    width: 20px;
}

/* Article Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.article_listing {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.article_listing h2.article_title {
    font-size: 24px;
}

.article_description {
    font-size: 15px;
    line-height: 1.5em;
}

/* Pathfinder Process Timeline Mobile */
.process-timeline {
    padding-left: 25px;
    margin: 30px 0;
}

.process-timeline::before {
    left: 0;
}

.process-step {
    margin-bottom: 25px;
}

.process-step::before {
    left: -31px;
    top: 8px;
    width: 10px;
    height: 10px;
}

.process-card {
    padding: 15px;
}

.process-card h3 {
    font-size: 1rem;
}

/* Stats Grid Mobile */
.stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.stat-card {
    padding: 15px;
}

.stat-number {
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Disable backdrop-filter for performance on mobile */
.article-card, .featured-article-card, .process-card, .stat-card, aside, .article_listing {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.chart {
    width: 100%;
    height: 300px;
}

.narrow {
    width: 80%;
}

.med {
    width: 60%;
}

.wide {
    width: 40%;
}

/* CONTACT FORM --------------------------------------- */

form#contactForm {

    width: 100%;
}

form#contactForm label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;

}

form#contactForm textarea,
form#contactForm button {
    grid-column: span 2;
}

form#contactForm input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form#contactForm textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form#contactForm .checkbox-label {
    min-width: 240px;
}

form#contactForm button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background-color: #585e5a;
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form#contactForm button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}
}

/* --- MOBILE LANDSCAPE (max 767px) --- */
@media screen and (max-width: 767px) and (orientation: landscape) {
main h1 {
    font-size: 36px;
    line-height: 1.2em;
}

main h2 {
    font-size: 28px;
    line-height: 1.3em;
}

main h3 {
    font-size: 20px;
    line-height: 1.4em;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    box-sizing: border-box;
}

header {
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#logo a {font-size: 30px; }

/* NAV styles ------------------------------------------- */

/* Hide the checkbox toggle input */
#menu_toggle {
    display: none;
}

.menu_label {
    display: block;
}

/* Premium Hamburger Animation */
.menu_icon line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}
.menu_icon .top { transform-origin: 50px 30px; }
.menu_icon .middle { transform-origin: 50px 50px; }
.menu_icon .bottom { transform-origin: 50px 70px; }

/* Menu open: perfect X shape */
#menu_toggle:checked ~ .menu_label .top {
    transform: translateY(20px) rotate(45deg);
}

#menu_toggle:checked ~ .menu_label .middle {
    opacity: 0;
    transform: scaleX(0);
}

#menu_toggle:checked ~ .menu_label .bottom {
    transform: translateY(-20px) rotate(-45deg);
}

/* Toggle button position */
/* This is the icon itself */
.menu_label {
    position: relative;
    z-index: 1001;
    width: 28px;
    height: 28px;
    cursor: pointer;
}

#menu_toggle:checked+.menu_label {
    position: fixed;
    top: 26px;
    right: 20px;
}

/* Optional: SVG sizing inside label */
.menu_icon {
    width: 100%;
    height: 100%;
}

/* Slide-out menu panel (hidden by default) */
.menu_panel {
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100%);
    width: 80%;
    max-width: 320px;
    height: 100dvh;
    background-color: #111111;
    color: white;
    padding: 100px 0 0 40px;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

/* Show panel when menu is toggled */
#menu_toggle:checked~.menu_panel {
    transform: translateX(0);
}

/* Optional: Menu list styling */
.menu_panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu_panel li {
    display: block;
    margin-bottom: 30px;
    font-size: 22px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#menu_toggle:checked ~ .menu_panel li {
    opacity: 1;
    transform: translateX(0);
}
#menu_toggle:checked ~ .menu_panel li:nth-child(1) { transition-delay: 0.1s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(2) { transition-delay: 0.15s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(3) { transition-delay: 0.2s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(4) { transition-delay: 0.25s; }
#menu_toggle:checked ~ .menu_panel li:nth-child(5) { transition-delay: 0.3s; }

.menu_panel a {
    color: white;
    text-decoration: none;
    transition: color 0.2s ease;
}

.menu_panel a:hover {
    color: #ddd;
}

/* Dark overlay */
#menu_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8); /* darkness level */
  z-index: 999; /* Must be below .menu_panel (z-index: 1000) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Show overlay when menu is open */
#menu_toggle:checked ~ #menu_overlay {
  opacity: 1;
  pointer-events: all;
}

/* Ensure menu panel is on top of the overlay */
.menu_panel {
  z-index: 1000;
}


/* FOOTER styles -------------------------------------------- */

footer #footer-container {
    position: relative;
    color: #fff;
    padding: 20px;
    margin: 80px auto 20px auto;
    width: 100%;
    gap: 0px;
}

footer #newsletter {
    justify-self: left;
}

footer #terms_of_use {
    justify-self: left;
}

body.homepage {

    header {
        height: 80px;
    }

    div#banner {
        min-height: calc(100dvh - 70px);
        /* Make it fill screen if content is short */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    main {

        margin: auto;
        padding: 20px;
        line-height: 1.5em;

        .featured-article-card {
            padding: 20px;
        }
        .featured-article-card .featured-badge {
            left: 20px;
        }

        p.intro {

            font-size: 18px;
            letter-spacing: -1px;
            line-height: 1.4em;

            strong {
                font-weight: bold;
            }
        }
    }

    footer {
        height: 80px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #hp_banner_headline {

        position: absolute;
        top: 50%;
        left: 10px;
        margin: auto;
        transform: translateY(-30%);
        font-size: clamp(40px, 10vw, 60px);
        font-kerning: normal;
        letter-spacing: -2px;
        word-spacing: 2px;
        line-height: 60%;
        text-rendering: optimizeLegibility;
        color: #fff;
        text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.9);
        /* Subtle shadow */
    }

}

body.standard,
body.article {

    header {
        height: 80px;
        margin: auto;
    }

    main {
        width: 100%;
        margin: auto;
        padding: 20px;

        aside#milestones {
            display: none;
        }

        p.intro {

            font-size: 18px;
            letter-spacing: -1px;

            strong {
                font-weight: bold;
            }
        }

        aside {
            display: block;
            font-size: 18px;
            padding: 20px;
            border-left: 3px solid #fff;
            line-height: 1.4em;
            font-weight: 400;
            margin-bottom: 2rem;
        }

        aside.right {
            float: none;
            width: 100%;
            margin-left: 0;
        }

        svg#five_stages {
            width: 100%;
            height: 160px;
        }

        .svg-label {
            font-size: 22px;
            fill: white;
            font-family: sans-serif;
        }

        .svg-label {
            transform: rotate(-45deg);
        }

        .label-ad-hoc {
            transform-origin: 50px 150px;
        }

        .label-foundational {
            transform-origin: 250px 150px;
        }

        .label-developing {
            transform-origin: 450px 150px;
        }

        .label-advanced {
            transform-origin: 650px 150px;
        }

        .label-transformational {
            transform-origin: 850px 150px;
        }

    }

    footer {
        margin: auto;
        padding: 0px;
        color: #fff;
    }

}

div.callout {
    border-left: 5px solid #eee;
    border-right: 5px solid none;
    padding-left: 20px;
}

div.callout a.cta {
    background: #eee;
    color: #000;
    font-weight: bold;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    display: block;
    margin: auto;
    max-width: 200px;
}

.bigandbold {

    font-size: 20px;
    letter-spacing: 0px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
}

.bigandbold svg {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}



#formContainer {
    right: 10px;
    bottom: 10px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

form {

    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

form label {
    min-width: 60px;
    grid-column: 1;
    text-align: left;
}

form input {
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    color: #fff;
}

form select {

    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;

    option {
        color: #000;
    }

}

form textarea {
    padding: 10px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 100%;
    height: 160px;
    border: none;
    /* grid-column: 2; */
    overflow-y: visible;
    color: #fff;
}

form .checkbox-label {
    max-width: 140px;
}

form button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}

form .checkbox-container {
    display: grid;
    grid-template-columns: 1fr;
}

form .checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

form .checkbox-item input {
    width: 20px;
}

/* Article Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns for landscape mobile */
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.article_listing {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.article_listing h2.article_title {
    font-size: 22px;
}

/* Pathfinder Process Timeline Mobile Landscape */
.process-timeline {
    padding-left: 25px;
    margin: 30px 0;
}

.process-timeline::before {
    left: 0;
}

.process-step {
    margin-bottom: 25px;
}

.process-step::before {
    left: -31px;
    top: 8px;
    width: 10px;
    height: 10px;
}

.process-card {
    padding: 15px;
}

.process-card h3 {
    font-size: 1rem;
}

/* Stats Grid Mobile Landscape */
.stats-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 columns for landscape */
    gap: 15px;
}

.stat-card {
    padding: 15px;
}

.stat-number {
    font-size: 1.8rem;
}

.stat-label {
    font-size: 0.7rem;
    letter-spacing: 1px;
}

/* Disable backdrop-filter for performance on mobile */
.article-card, .featured-article-card, .process-card, .stat-card, aside, .article_listing {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.chart {
    width: 100%;
    height: 300px;
}

.narrow {
    width: 80%;
}

.med {
    width: 60%;
}

.wide {
    width: 40%;
}

/* CONTACT FORM --------------------------------------- */

form#contactForm {

    width: 100%;
}

form#contactForm label {
    min-width: 200px;
    grid-column: 1;
    text-align: left;

}

form#contactForm textarea,
form#contactForm button {
    grid-column: span 2;
}

form#contactForm input:not([type="checkbox"]) {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
}

form#contactForm textarea {
    padding: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 100%;
    height: 140px;
    border: none;
    grid-column: 2;
    color: #fff;
}

form#contactForm .checkbox-label {
    min-width: 240px;
}

form#contactForm button {
    margin-top: 30px;
    grid-column: 2;
    width: 50%;
    justify-self: end;
    background-color: #585e5a;
    border: 1px solid #222423;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    outline: 0;
    padding: 10px 25px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

form#contactForm button:hover {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
}
}


@media screen and (min-width: 1200px) {
    body.article main .article-body pre {
        width: calc(100% + 120px);
        margin-left: -60px;
    }
}
