/* =========================================================
   HELICONTROL — PROJECT PAGE
   Page-specific styles
========================================================= */

.project-page {
    --project-green: #9cff00;
    --project-blue: #6f8ba3;
    --project-white: #f7f8fa;
    --project-border: rgba(255, 255, 255, 0.075);
    --project-card: rgba(255, 255, 255, 0.015);
}


/* =========================================================
   SHARED CONTAINER
========================================================= */

.project-container {
    width: min(1180px, calc(100% - 72px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.project-hero {
    position: relative;
    padding: 150px 0 125px;
    border-bottom: 1px solid var(--project-border);
    overflow: hidden;
}

.project-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 78% 45%,
            rgba(156, 255, 0, 0.035),
            transparent 32%
        );
}

.project-eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 26px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.project-hero-title {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0;
    color: var(--project-white);
    font-size: clamp(52px, 6.4vw, 86px);
    line-height: 0.98;
    letter-spacing: -4px;
    font-weight: 700;
}

.project-hero-title span {
    color: var(--project-green);
}

.project-intro {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 32px 0 0;
    color: var(--project-blue);
    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   SHARED SECTION SYSTEM
========================================================= */

.project-section {
    position: relative;
    padding: 135px 0;
    border-bottom: 1px solid var(--project-border);
    overflow: hidden;
}

.project-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.project-number {
    position: absolute;
    top: 74px;
    right: 4%;
    z-index: 0;
    color: rgba(255, 255, 255, 0.018);
    font-size: clamp(180px, 18vw, 250px);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -12px;
    pointer-events: none;
    user-select: none;
}

.project-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 76px;
    align-items: start;
}

.project-label {
    padding-top: 10px;
    color: var(--project-green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.2;
    text-transform: uppercase;
}

.project-content {
    max-width: 820px;
}

.project-content h2 {
    max-width: 780px;
    margin: 0 0 34px;
    color: var(--project-white);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 700;
}

.project-content h2 span {
    color: var(--project-green);
}

.project-content p {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--project-blue);
    font-size: 16px;
    line-height: 1.8;
}

.project-text {
    max-width: 760px;
}

.project-text p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   PROJECT OVERVIEW
========================================================= */

.overview-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 52px;
}

.overview-card {
    min-height: 285px;
    padding: 30px;
    border: 1px solid var(--project-border);
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            rgba(255, 255, 255, 0.006)
        );
}

.overview-number {
    display: block;
    margin-bottom: 76px;
    color: var(--project-green);
    font-size: 16px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 1px;
}

.overview-card h3 {
    margin: 0 0 14px;
    color: var(--project-white);
    font-size: 20px;
    line-height: 1.25;
}

.overview-card p {
    margin: 0;
    color: var(--project-blue);
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   PROJECT OBJECTIVES
========================================================= */

.objective-list {
    margin-top: 42px;
    border-top: 1px solid var(--project-border);
}

.objective-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 26px 0 28px;
    border-bottom: 1px solid var(--project-border);
}

.objective-number {
    padding-top: 4px;
    color: var(--project-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.objective-copy h3 {
    margin: 0 0 10px;
    color: var(--project-white);
    font-size: 20px;
    line-height: 1.3;
}

.objective-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--project-blue);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   PROJECT SCOPE
   Same structural system as the other sections
========================================================= */

.scope-list {
    margin-top: 40px;
    border-top: 1px solid var(--project-border);
}

.scope-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
    padding: 27px 0 28px;
    border-bottom: 1px solid var(--project-border);
}

.scope-number {
    padding-top: 4px;
    color: var(--project-green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.scope-copy h3 {
    margin: 0 0 10px;
    color: var(--project-white);
    font-size: 20px;
    line-height: 1.3;
}

.scope-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--project-blue);
    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   BACKGROUND NUMBER BALANCE
========================================================= */

.project-background .project-number,
.project-overview .project-number,
.project-problem .project-number,
.project-objectives .project-number,
.project-scope .project-number {
    opacity: 1;
}


/* =========================================================
   HOVER DETAILS
========================================================= */

.overview-card,
.objective-item,
.scope-item {
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.overview-card:hover {
    border-color: rgba(156, 255, 0, 0.24);
    background:
        linear-gradient(
            180deg,
            rgba(156, 255, 0, 0.018),
            rgba(255, 255, 255, 0.008)
        );
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px) {

    .project-container {
        width: min(100% - 44px, 720px);
    }

    .project-hero {
        padding: 110px 0 90px;
    }

    .project-hero-title {
        font-size: clamp(46px, 10vw, 68px);
        letter-spacing: -2.8px;
    }

    .project-section {
        padding: 100px 0;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .project-label {
        padding-top: 0;
    }

    .project-number {
        top: 48px;
        right: 3%;
        font-size: 145px;
        letter-spacing: -8px;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .overview-card {
        min-height: 0;
    }
}


@media (max-width: 560px) {

    .project-container {
        width: calc(100% - 34px);
    }

    .project-hero {
        padding: 92px 0 74px;
    }

    .project-hero-title {
        font-size: 45px;
        line-height: 1;
        letter-spacing: -2px;
    }

    .project-intro {
        font-size: 15px;
        line-height: 1.7;
    }

    .project-section {
        padding: 82px 0;
    }

    .project-content h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

    .project-number {
        top: 42px;
        right: 0;
        font-size: 108px;
        letter-spacing: -6px;
    }

    .overview-card {
        padding: 24px;
    }

    .overview-number {
        margin-bottom: 58px;
    }

    .objective-item,
    .scope-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .objective-copy h3,
    .scope-copy h3 {
        font-size: 18px;
    }
}

/* =========================================================
   PROJECT PAGE OVERRIDE
   Prevent conflicts from legacy rules in style.css
========================================================= */

main.project-page .project-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    padding: 135px 0;
    overflow: hidden;
    border-top: none;
    border-bottom: 1px solid var(--project-border);
}

main.project-page .project-background,
main.project-page .project-overview,
main.project-page .project-problem,
main.project-page .project-objectives,
main.project-page .project-scope {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
}

main.project-page .project-container {
    width: min(1180px, calc(100% - 72px));
    max-width: none;
    margin: 0 auto;
}

main.project-page .project-grid {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 76px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    align-items: start;
}

main.project-page .project-label {
    display: block;
    max-width: none;
    margin: 0;
    padding-top: 10px;
}

main.project-page .project-content {
    width: 100%;
    max-width: 820px;
    margin: 0;
    padding: 0;
}

main.project-page .project-content h2 {
    width: auto;
    max-width: 780px;
    margin: 0 0 34px;
}

main.project-page .project-content p {
    width: auto;
    max-width: 760px;
    margin: 0 0 20px;
}

main.project-page .overview-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 52px 0 0;
}

main.project-page .overview-card {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
}

main.project-page .objective-list,
main.project-page .scope-list {
    width: 100%;
    max-width: none;
    margin: 42px 0 0;
}

main.project-page .objective-item,
main.project-page .scope-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0;
}

main.project-page .objective-copy,
main.project-page .scope-copy {
    width: auto;
    max-width: none;
    margin: 0;
}

main.project-page .objective-copy p,
main.project-page .scope-copy p {
    max-width: 720px;
}

@media (max-width: 900px) {

    main.project-page .project-container {
        width: min(100% - 44px, 720px);
    }

    main.project-page .project-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    main.project-page .overview-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    main.project-page .project-container {
        width: calc(100% - 34px);
    }

    main.project-page .objective-item,
    main.project-page .scope-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

/* =========================================================
   HELICONTROL — PROJECT FOOTER
   Fully scoped to the Project page
========================================================= */

.project-site .project-footer {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #030606;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.project-site .project-footer-container {
    width: min(1180px, calc(100% - 72px));
    margin: 0 auto;
}

.project-site .project-footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    padding: 58px 0 54px;
}

.project-site .project-footer-brand {
    flex: 0 1 360px;
    max-width: 360px;
    min-width: 0;
}

.project-site .project-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--project-white);
    text-decoration: none;
}

.project-site .project-footer-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--project-green);
    border-radius: 7px;
    color: var(--project-green);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.project-site .project-footer-logo-name {
    color: var(--project-white);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
}

.project-site .project-footer-description {
    max-width: 300px;
    margin: 14px 0 0;
    color: var(--project-blue);
    font-size: 13px;
    line-height: 1.7;
}

.project-site .project-footer-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 34px;
    padding-top: 6px;
}

.project-site .project-footer-nav a {
    display: inline-block;
    color: #6f8ba3;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 180ms ease;
}

.project-site .project-footer-nav a:hover {
    color: var(--project-green);
}

.project-site .project-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 24px 0 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #4f687b;
    font-size: 12px;
    line-height: 1.5;
}

/* Footer responsive */

@media (max-width: 900px) {

    .project-site .project-footer-container {
        width: min(100% - 44px, 720px);
    }

    .project-site .project-footer-top {
        flex-direction: column;
        gap: 32px;
        padding: 48px 0 42px;
    }

    .project-site .project-footer-nav {
        justify-content: flex-start;
        gap: 18px 28px;
        padding-top: 0;
    }
}

@media (max-width: 560px) {

    .project-site .project-footer-container {
        width: calc(100% - 34px);
    }

    .project-site .project-footer-top {
        padding: 44px 0 36px;
    }

    .project-site .project-footer-nav {
        gap: 16px 22px;
    }

    .project-site .project-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 20px 0 24px;
    }
}

/* =========================================================
   FINAL PROJECT OVERRIDES
   Prevent legacy style.css selectors from changing layout
========================================================= */

.project-site main.project-page .project-section {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
    padding: 135px 0;
    overflow: hidden;
    border-top: none;
    border-bottom: 1px solid var(--project-border);
}

.project-site main.project-page .project-background,
.project-site main.project-page .project-overview,
.project-site main.project-page .project-problem,
.project-site main.project-page .project-objectives,
.project-site main.project-page .project-scope {
    width: 100%;
    max-width: none;
    margin: 0;
    display: block;
}

.project-site main.project-page .project-container {
    width: min(1180px, calc(100% - 72px));
    max-width: none;
    margin: 0 auto;
}

.project-site main.project-page .project-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 76px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    align-items: start;
}

.project-site main.project-page .project-label {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
    padding-top: 10px;
}

.project-site main.project-page .project-content {
    width: 100%;
    max-width: 820px;
    margin: 0;
    padding: 0;
}

.project-site main.project-page .project-content h2 {
    width: auto;
    max-width: 780px;
    margin: 0 0 34px;
}

.project-site main.project-page .project-content p {
    width: auto;
    max-width: 760px;
    margin: 0 0 20px;
}

.project-site main.project-page .overview-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: none;
    margin: 52px 0 0;
}

.project-site main.project-page .overview-card {
    display: block;
    width: auto;
    max-width: none;
    margin: 0;
}

.project-site main.project-page .objective-list,
.project-site main.project-page .scope-list {
    width: 100%;
    max-width: none;
    margin: 42px 0 0;
}

.project-site main.project-page .objective-item,
.project-site main.project-page .scope-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    margin: 0;
}

.project-site main.project-page .objective-copy,
.project-site main.project-page .scope-copy {
    width: auto;
    max-width: none;
    margin: 0;
}

.project-site main.project-page .objective-copy p,
.project-site main.project-page .scope-copy p {
    max-width: 720px;
}

@media (max-width: 900px) {

    .project-site main.project-page .project-container {
        width: min(100% - 44px, 720px);
    }

    .project-site main.project-page .project-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .project-site main.project-page .overview-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .project-site main.project-page .project-container {
        width: calc(100% - 34px);
    }

    .project-site main.project-page .objective-item,
    .project-site main.project-page .scope-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }
}

/* =========================================================
   FOOTER LOGO — FINAL OVERRIDE
========================================================= */

.site-footer .footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.site-footer .footer-logo-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    height: 30px !important;

    border: 1px solid #9cff00 !important;
    border-radius: 7px !important;

    background: transparent !important;
    color: #9cff00 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    box-sizing: border-box !important;
}

.site-footer .footer-logo-name {
    color: #f7f8fa !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
}

/* =========================================================
   PROJECT FOOTER — FINAL FIX
   Do not depend on .project-site wrapper
========================================================= */

.project-footer {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #030606 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.project-footer-container {
    width: min(1180px, calc(100% - 72px)) !important;
    margin: 0 auto !important;
}

.project-footer-top {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 60px !important;
    padding: 58px 0 54px !important;
}

.project-footer-brand {
    max-width: 360px !important;
    min-width: 0 !important;
}

.project-footer-logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f7f8fa !important;
    text-decoration: none !important;
}

.project-footer-logo-mark {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 30px !important;
    height: 30px !important;

    flex: 0 0 30px !important;

    border: 1px solid #9cff00 !important;
    border-radius: 7px !important;

    background: transparent !important;
    color: #9cff00 !important;

    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-align: center !important;
    box-sizing: border-box !important;
}

.project-footer-logo-name {
    color: #f7f8fa !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
}

.project-footer-description {
    max-width: 300px !important;
    margin: 14px 0 0 !important;
    color: #637c90 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

.project-footer-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex-wrap: wrap !important;
    gap: 34px !important;
    padding-top: 6px !important;
}

.project-footer-nav a {
    display: inline-block !important;
    color: #6f8ba3 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    transition: color 180ms ease !important;
}

.project-footer-nav a:hover {
    color: #9cff00 !important;
}

.project-footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 30px !important;
    padding: 24px 0 28px !important;

    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;

    color: #4f687b !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}


/* =========================================================
   PROJECT FOOTER — RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .project-footer-container {
        width: min(100% - 44px, 720px) !important;
    }

    .project-footer-top {
        flex-direction: column !important;
        gap: 32px !important;
        padding: 48px 0 42px !important;
    }

    .project-footer-nav {
        justify-content: flex-start !important;
        gap: 18px 28px !important;
        padding-top: 0 !important;
    }
}

@media (max-width: 560px) {

    .project-footer-container {
        width: calc(100% - 34px) !important;
    }

    .project-footer-top {
        padding: 44px 0 36px !important;
    }

    .project-footer-nav {
        gap: 16px 22px !important;
    }

    .project-footer-bottom {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 8px !important;
        padding: 20px 0 24px !important;
    }
}