/* =========================================================
   DESKTOP TYPOGRAPHY REBALANCE
   Mobile remains unchanged
========================================================= */

@media (min-width: 992px) {

    /* -----------------------------------------
       Back Link
    ----------------------------------------- */

    .back-to-projects {
        font-size: 14px;
        gap: 10px;
    }

    .back-to-projects svg {
        width: 17px;
        height: 17px;
    }


    /* -----------------------------------------
       Hero
    ----------------------------------------- */

    .project-detail-eyebrow {
        font-size: 12px;
        margin-bottom: 25px;
    }

    .project-detail-eyebrow > span {
        width: 33px;
    }


    /*
     * The old hero was getting excessively large
     * on wide monitors.
     */

    .project-hero-copy h1 {
        font-size: clamp(64px, 6vw, 96px);
        line-height: 0.96;
    }


    .project-lead {
        max-width: 720px;

        font-size: 19px;
        line-height: 1.7;
    }


    /* -----------------------------------------
       Project Metadata
    ----------------------------------------- */

    .project-meta-item {
        padding: 20px 0;
    }

    .project-meta-item span {
        margin-bottom: 8px;

        font-size: 10px;
    }

    .project-meta-item strong {
        font-size: 15px;
        line-height: 1.5;
    }


    /* -----------------------------------------
       General Section Eyebrows
    ----------------------------------------- */

    .section-label {
        margin-bottom: 20px;

        font-size: 11px;
        letter-spacing: 0.15em;
    }


    /* -----------------------------------------
       About Project
    ----------------------------------------- */

    .project-overview-grid h2 {
        font-size: clamp(44px, 4vw, 62px);
    }

    .project-description {
        font-size: 17px;
        line-height: 1.85;
    }


    /* -----------------------------------------
       Website Experience
    ----------------------------------------- */

    .website-showcase-heading h2 {
        max-width: 780px;

        font-size: clamp(52px, 4.8vw, 76px);
        line-height: 0.98;
    }

    .website-showcase-heading p {
        max-width: 620px;

        font-size: 16px;
        line-height: 1.7;
    }


    /* -----------------------------------------
       Live Website Button
    ----------------------------------------- */

    .visit-live-site {
        min-height: 52px;

        padding: 0 21px;

        font-size: 12px;

        gap: 28px;
    }

    .visit-live-site svg {
        width: 17px;
        height: 17px;
    }


    /* -----------------------------------------
       Website Page Tabs
    ----------------------------------------- */

    .website-page-tab {
        min-height: 47px;

        padding: 0 18px;

        gap: 11px;
    }

    .website-tab-number {
        font-size: 10px;
    }

    .website-tab-name {
        font-size: 12px;
    }


    /* -----------------------------------------
       Browser Chrome
    ----------------------------------------- */

    .browser-address {
        font-size: 11px;
    }

    .scroll-hint {
        padding: 10px 15px;
    }

    .scroll-hint span {
        font-size: 10px;
    }

    .scroll-hint svg {
        width: 14px;
        height: 14px;
    }


    /* -----------------------------------------
       Features Heading
    ----------------------------------------- */

    .section-heading-row h2 {
        font-size: clamp(50px, 4.5vw, 70px);
        line-height: 1;
    }

    .section-count {
        font-size: clamp(34px, 3vw, 46px);
    }


    /* -----------------------------------------
       Feature Items
    ----------------------------------------- */

    .public-feature-item {
        min-height: 185px;

        grid-template-columns:
            50px
            minmax(0, 1fr);

        gap: 28px;

        padding-top: 34px;
        padding-bottom: 34px;
    }

    .public-feature-number {
        font-size: 11px;
    }

    .public-feature-item h3 {
        margin-bottom: 12px;

        font-size: clamp(24px, 2vw, 31px);
        line-height: 1.15;
    }

    .public-feature-item p {
        max-width: 500px;

        font-size: 14px;
        line-height: 1.7;
    }


    /* -----------------------------------------
       Final CTA
    ----------------------------------------- */

    .project-final-cta h2 {
        font-size: clamp(54px, 5vw, 78px);
    }

    .project-final-cta p {
        font-size: 16px;
    }

    .project-contact-button {
        min-height: 54px;

        font-size: 12px;
    }

}



/* =========================================================
   PROJECT DETAIL
========================================================= */

.project-detail-page {
    --project-blue: #006fca;
    --project-black: #080808;
    --project-text: #111111;
    --project-muted: #747474;
    --project-border: #e6e6e6;
    --project-soft: #f5f5f5;

    background: #ffffff;

    color: var(--project-text);
}


.project-detail-container {
    width: min(92%, 1320px);

    margin: 0 auto;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar-wrapper {
    position: relative;

    z-index: 1000;
}


/* =========================================================
   SERVICES DROPDOWN
========================================================= */

.dropdown {
    position: relative;

    display: flex;
    flex-direction: column;
}


.dropdown-menu {
    display: none;

    width: 100%;

    padding: 10px 0;

    overflow: hidden;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.10);

    opacity: 0;

    max-height: 0;

    transition:
        max-height 0.3s ease,
        opacity 0.3s ease;
}


.dropdown-menu a {
    display: block;

    padding: 12px 20px;

    color: #333333;

    font-size: 14px;

    text-decoration: none;
}


.dropdown-menu a:hover {
    background: #f6f6f6;
}


.dropdown-icon {
    margin-left: 5px;

    font-size: 10px;
}


@media (min-width: 992px) {

    .dropdown:hover .dropdown-menu {

        position: absolute;

        top: 100%;
        left: 0;

        display: block;

        min-width: 230px;

        max-height: none;

        opacity: 1;
    }

}


/* =========================================================
   BACK
========================================================= */

.project-back-section {
    padding-top:
        clamp(65px, 7vw, 34px);
}


.back-to-projects {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #6f6f6f;

    font-size: 23px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease;
}


.back-to-projects:hover {
    color: #111111;
}


.back-to-projects svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


/* =========================================================
   HERO
========================================================= */

.project-detail-hero {
    padding:
        clamp(50px, 7vw, 49px)
        0
        clamp(75px, 9vw, 130px);
}


.project-hero-main {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        230px;

    align-items: end;

    gap:
        clamp(45px, 7vw, 100px);
}


.project-hero-copy {
    max-width: 1000px;
}


.project-detail-eyebrow {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-bottom: 22px;

    color: #757575;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}


.project-detail-eyebrow > span {
    width: 27px;
    height: 1px;

    background:
        var(--project-blue);
}


.project-hero-copy h1 {
    max-width: 1000px;

    margin: 0;

    color: #080808;

    font-size:
        clamp(58px, 7.6vw, 118px);

    font-weight: 500;

    line-height: 0.94;

    letter-spacing: -0.065em;
}


.project-lead {
    max-width: 650px;

    margin:
        clamp(28px, 4vw, 28px)
        0
        0;

    color: #6a6a6a;

    font-size:
        clamp(15px, 1.25vw, 19px);

    line-height: 1.7;
}


/* =========================================================
   META
========================================================= */

.project-meta-panel {
    padding-bottom: 7px;
}


.project-meta-item {
    padding:
        15px
        0;

    border-bottom:
        1px solid
        var(--project-border);
}


.project-meta-item:first-child {
    padding-top: 0;
}


.project-meta-item span {
    display: block;

    margin-bottom: 5px;

    color: #a0a0a0;

    font-size: 18px;
    font-weight: 600;

    letter-spacing: 0.13em;
}


.project-meta-item strong {
    display: block;

    color: #222222;

    font-size: 16px;
    font-weight: 500;

    line-height: 1.5;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.project-hero-image {
    width: 100%;

    aspect-ratio: 16 / 8.5;

    margin-top:
        clamp(52px, 7vw, 95px);

    overflow: hidden;

    border-radius:
        clamp(17px, 2vw, 32px);

    background: #ededed;
}


.project-hero-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   COMMON SECTION
========================================================= */

.section-label {
    display: block;

    margin-bottom: 17px;

    color: var(--project-blue);

    font-size: 18px;
    font-weight: 650;

    letter-spacing: 0.16em;
}


.section-label.light {
    color: #7bbff6;
}


/* =========================================================
   OVERVIEW
========================================================= */

.project-overview-section {
    padding:
        clamp(85px, 10vw, 85px)
        0;

    border-top:
        1px solid
        var(--project-border);
}


.project-overview-grid {
    display: grid;

    grid-template-columns:
        minmax(250px, 0.8fr)
        minmax(0, 1.2fr);

    gap:
        clamp(60px, 11vw, 170px);
}


.project-overview-grid h2 {
    max-width: 480px;

    margin: 0;

    font-size:
        clamp(38px, 4.5vw, 68px);

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;
}


.project-description {
    max-width: 680px;

    color: #656565;

    font-size:
        clamp(15px, 1.25vw, 18px);

    line-height: 1.85;
}


/* =========================================================
   FEATURES
========================================================= */

.project-features-section {
    padding:
        clamp(80px, 9vw, 80px)
        0;

    background: #f6f6f6;
}


.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom:
        clamp(45px, 6vw, 80px);
}


.section-heading-row h2 {
    margin: 0;

    font-size:
        clamp(42px, 5.2vw, 78px);

    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.section-count {
    color: #b2b2b2;

    font-size:
        clamp(28px, 3vw, 45px);

    font-weight: 400;
}


.public-features-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    border-top:
        1px solid
        #dddddd;
}


.public-feature-item {
    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr);

    gap: 23px;

    min-height: 160px;

    padding:
        28px
        25px
        28px
        0;

    border-bottom:
        1px solid
        #dddddd;
}


.public-feature-item:nth-child(odd) {
    border-right:
        1px solid
        #dddddd;
}


.public-feature-item:nth-child(even) {
    padding-left: 25px;
}


.public-feature-number {
    color: #aaa;

    font-size: 35px;
    font-weight: 600;
}


.public-feature-item h3 {
    margin:
        -2px
        0
        9px;

    font-size:
        clamp(20px, 2vw, 28px);

    font-weight: 500;

    letter-spacing: -0.03em;
}


.public-feature-item p {
    max-width: 430px;

    margin: 0;

    color: #777777;

    font-size: 15px;

    line-height: 1.2;
}


/* =========================================================
   WEBSITE SHOWCASE
========================================================= */

.website-showcase-section {
    padding:
        clamp(0px, 11vw, 0px)
        0;
}


.website-showcase-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 45px;

    margin-bottom:
        clamp(42px, 6vw, 75px);
}


.website-showcase-heading h2 {
    max-width: 750px;

    margin: 0;

    font-size:
        clamp(45px, 5.8vw, 88px);

    font-weight: 500;

    line-height: 0.96;

    letter-spacing: -0.06em;
}


.website-showcase-heading p {
    max-width: 550px;

    margin:
        22px
        0
        0;

    color: #777777;

    font-size: 13px;

    line-height: 1.7;
}


/* =========================================================
   LIVE BUTTON
========================================================= */

.visit-live-site {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 48px;

    padding:
        0
        18px;

    border-radius: 100px;

    background: #080808;

    color: #ffffff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 600;

    transition:
        background 0.2s ease;
}


.visit-live-site:hover {
    background: var(--project-blue);
}


.visit-live-site svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


/* =========================================================
   WEBSITE TABS
========================================================= */

.website-page-tabs {
    display: flex;
    align-items: center;

    gap: 8px;

    margin-bottom: 17px;

    overflow-x: auto;

    padding-bottom: 2px;

    scrollbar-width: none;

    -webkit-overflow-scrolling: touch;
}


.website-page-tabs::-webkit-scrollbar {
    display: none;
}


.website-page-tab {
    flex: 0 0 auto;

    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        0
        16px;

    border:
        1px solid
        #dddddd;

    border-radius: 100px;

    background: #ffffff;

    color: #626262;

    font-family: inherit;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}


.website-page-tab:hover {
    border-color: #a9a9a9;

    color: #111111;
}


.website-page-tab.active {
    border-color: #080808;

    background: #080808;

    color: #ffffff;
}


.website-tab-number {
    font-size: 15px;

    opacity: 0.55;
}


.website-tab-name {
    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   BROWSER SHELL
========================================================= */

.website-browser-shell {
    overflow: hidden;

    border:
        1px solid
        #dcdcdc;

    border-radius:
        clamp(14px, 1.5vw, 22px);

    background: #ededed;

    box-shadow:
        0 30px 80px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   BROWSER TOOLBAR
========================================================= */

.browser-toolbar {
    height: 53px;

    display: grid;

    grid-template-columns:
        100px
        minmax(0, 480px)
        100px;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding:
        0
        18px;

    border-bottom:
        1px solid
        #dedede;

    background: #f4f4f4;
}


.browser-controls {
    display: flex;
    align-items: center;

    gap: 6px;
}


.browser-controls span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #d0d0d0;
}


.browser-address {
    min-height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        0
        14px;

    overflow: hidden;

    border:
        1px solid
        #dfdfdf;

    border-radius: 8px;

    background: #ffffff;

    color: #808080;

    font-size: 9px;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.browser-lock {
    display: flex;
}


.browser-lock svg {
    width: 10px;
    height: 10px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.3;
}


/* =========================================================
   BROWSER SCREEN
========================================================= */

.browser-screen {
    position: relative;

    height:
        clamp(520px, 70vh, 820px);

    overflow-y: auto;
    overflow-x: hidden;

    background: #ffffff;

    scrollbar-width: thin;

    scrollbar-color:
        #bababa
        #eeeeee;

    scroll-behavior: smooth;
}


.browser-screen::-webkit-scrollbar {
    width: 8px;
}


.browser-screen::-webkit-scrollbar-track {
    background: #eeeeee;
}


.browser-screen::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: #bbbbbb;
}


.browser-screen > img {
    width: 100% !important;
    height: auto !important;

    max-width: none !important;

    display: block;

    object-fit: initial !important;

    opacity: 1;

    transition:
        opacity 0.18s ease;
}


.browser-screen.changing > img {
    opacity: 0;
}


/* =========================================================
   SCROLL HINT
========================================================= */

.scroll-hint {
    position: sticky;

    left: 50%;
    bottom: 17px;

    width: max-content;

    display: flex;
    align-items: center;

    gap: 7px;

    margin:
        -46px
        auto
        14px;

    padding:
        9px
        13px;

    border-radius: 100px;

    background:
        rgba(0, 0, 0, 0.78);

    color: #ffffff;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    pointer-events: none;
}


.scroll-hint span {
    font-size: 8px;
    font-weight: 600;
}


.scroll-hint svg {
    width: 13px;
    height: 13px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


/* =========================================================
   BOTTOM SITE ACTION
========================================================= */

.website-bottom-action {
    display: none;

    margin-top: 20px;
}


/* =========================================================
   FINAL CTA
========================================================= */

.project-final-cta {
    padding:
        0
        0
        clamp(70px, 9vw, 125px);
}


.project-final-cta-inner {
    min-height: 440px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding:
        clamp(38px, 6vw, 80px);

    border-radius:
        clamp(20px, 2vw, 32px);

    background: #080808;

    color: #ffffff;
}


.project-final-cta h2 {
    max-width: 800px;

    margin: 0;

    font-size:
        clamp(48px, 6vw, 90px);

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.06em;
}


.project-final-cta p {
    max-width: 760px;

    margin:
        10px
        0
        13px;

    color: #a3a3a3;

    font-size: 21px;

    line-height: 1.7;
}


.project-contact-button {
    width: fit-content;

    min-height: 51px;

    display: inline-flex;
    align-items: center;

    gap: 11px;

    padding:
        0
        19px;

    border-radius: 100px;

    background: var(--project-blue);

    color: #ffffff;

    text-decoration: none;

    font-size: 19px;
    font-weight: 600;
}


.project-contact-button svg {
    width: 17px;
    height: 17px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .dropdown {
        align-items: flex-start;
    }


    .dropdown .nav-menu-link {
        width: 100%;

        display: flex;

        align-items: center;
        justify-content: flex-start;

        text-align: left !important;
    }


    .dropdown-icon {
        margin-left: auto;

        padding-left: 15px;

        cursor: pointer;

        transition:
            transform 0.3s ease;
    }


    .dropdown-menu {
        width: 100%;
    }


    .dropdown.active .dropdown-menu {
        display: block;

        max-height: 500px;

        opacity: 1;
    }


    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }


    .project-hero-main {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    .project-meta-panel {
        display: grid;

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 20px;
    }


    .project-meta-item {
        padding-top: 0;
    }


    .project-overview-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .website-showcase-heading {
        display: block;
    }


    .top-live-button {
        margin-top: 28px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .project-detail-container {
        width:
            calc(100% - 32px);
    }


    .project-back-section {
        padding-top: 55px;
    }


    .project-detail-hero {
        padding:
            38px
            0
            80px;
    }


    .project-detail-eyebrow {
        margin-bottom: 17px;

        font-size: 9px;
    }


    .project-hero-copy h1 {
        font-size:
            clamp(49px, 14vw, 72px);

        line-height: 0.96;
    }


    .project-lead {
        margin-top: 26px;

        font-size: 14px;
    }


    .project-meta-panel {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap:
            0
            20px;

        margin-top: 5px;
    }


    .project-meta-item {
        padding:
            13px
            0;
    }


    .project-hero-image {
        aspect-ratio: 4 / 3;

        margin-top: 50px;

        border-radius: 17px;
    }


    .project-overview-section {
        padding:
            75px
            0;
    }


    .project-overview-grid h2 {
        font-size:
            clamp(39px, 11vw, 56px);
    }


    .project-description {
        font-size: 14px;
    }


    .project-features-section {
        padding:
            75px
            0;
    }


    .section-heading-row {
        align-items: flex-start;

        margin-bottom: 42px;
    }


    .section-heading-row h2 {
        font-size:
            clamp(41px, 12vw, 60px);
    }


    .public-features-grid {
        grid-template-columns: 1fr;
    }


    .public-feature-item,
    .public-feature-item:nth-child(even) {
        min-height: auto;

        padding:
            22px
            0;

        border-right: 0;
    }


    .website-showcase-section {
        padding:
            80px
            0;
    }


    .website-showcase-heading h2 {
        font-size:
            clamp(43px, 12vw, 61px);
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile page tabs
    |--------------------------------------------------------------------------
    */

    .website-page-tabs {
        margin-right:
            -16px;

        padding-right:
            16px;
    }


    .website-page-tab {
        min-height: 40px;

        padding:
            0
            14px;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile Browser
    |--------------------------------------------------------------------------
    */

    .website-browser-shell {
        border-radius: 13px;
    }


    .browser-toolbar {
        height: 43px;

        grid-template-columns:
            50px
            minmax(0, 1fr)
            50px;

        gap: 8px;

        padding:
            0
            10px;
    }


    .browser-controls {
        gap: 4px;
    }


    .browser-controls span {
        width: 7px;
        height: 7px;
    }


    .browser-address {
        min-height: 25px;

        padding:
            0
            8px;

        font-size: 8px;
    }


    /*
    |--------------------------------------------------------------------------
    | Important:
    | screenshot frame remains scrollable on mobile.
    |--------------------------------------------------------------------------
    */

    .browser-screen {
        height:
            min(67vh, 600px);

        min-height: 430px;

        -webkit-overflow-scrolling:
            touch;

        overscroll-behavior:
            contain;
    }


    .scroll-hint {
        bottom: 10px;

        margin-bottom: 9px;
    }


    /*
    |--------------------------------------------------------------------------
    | Mobile Live Website CTA
    |--------------------------------------------------------------------------
    */

    .top-live-button {
        display: none;
    }


    .website-bottom-action {
        display: block;
    }


    .website-bottom-action
    .visit-live-site {
        width: 100%;

        justify-content: space-between;
    }


    /*
    |--------------------------------------------------------------------------
    | Final CTA
    |--------------------------------------------------------------------------
    */

    .project-final-cta {
        padding-bottom: 60px;
    }


    .project-final-cta-inner {
        min-height: 420px;

        padding:
            34px
            25px;

        border-radius: 20px;
    }


    .project-final-cta h2 {
        font-size:
            clamp(44px, 13vw, 64px);
    }


    .project-contact-button {
        width: 100%;

        justify-content: space-between;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .project-detail-container {
        width:
            calc(100% - 24px);
    }


    .project-meta-panel {
        grid-template-columns: 1fr 1fr;
    }


    .project-hero-copy h1 {
        font-size:
            clamp(44px, 13vw, 60px);
    }


    .browser-screen {
        height: 520px;

        min-height: 0;
    }


    .browser-toolbar-spacer {
        display: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .browser-screen {
        scroll-behavior: auto;
    }


    .browser-screen > img {
        transition: none;
    }

}