@charset "utf-8";

/* ============================================
   ERGONOMICS ENGINEERED - CUSTOM STYLES
   Brand Colors:
   - Dark Navy: #0a1628
   - Gunmetal: #1a2332
   - Cyan Accent: #00d4ff
   - White: #ffffff
   ============================================ */

/* ----- TRADEMARK SYMBOL ----- */
.tm {
    font-size: 0.5em;
    vertical-align: super;
    opacity: 0.7;
}

/* ----- CYAN COLOR THEME ----- */
.grax_tm_settings .colors li a.cyan{background-color: #00d4ff;}

.grax_tm_all_wrap[data-color="cyan"] .grax_tm_topbar .menu ul li.current a{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_topbar .menu ul li a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_title_holder span{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_button a{background-color: #00d4ff;border-color:#00d4ff; color: #0a1628;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_button a:hover{background-color: transparent; color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_news .news_list ul li .details .title a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_news .news_list ul li .details .date a:hover{color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-inner.cursor-hover{background-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-outer{border-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .cursor-inner{background-color: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .progress_inner .background .bar_in{background: #00d4ff;}
.grax_tm_all_wrap[data-color="cyan"] .progressbar .line{background-color: #00d4ff;}

/* ----- HEADER MENU CENTERED ----- */
.grax_tm_topbar .container .topbar_inner {
    justify-content: center !important;
    position: relative;
}

.grax_tm_topbar .topbar_inner .logo {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* ----- HERO - BRAND FIRST LAYOUT ----- */
.grax_tm_hero .details .brand_prefix {
    display: block;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 15px;
    font-weight: 500;
}

.grax_tm_hero .details .brand_name {
    font-family: 'Archivo Black', Arial Black, sans-serif;
    font-size: 75px;
    font-weight: 400;
    letter-spacing: 3px;
    line-height: 0.95;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.grax_tm_hero .details .founder {
    display: block;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    font-style: italic;
    margin-bottom: 25px;
}

.grax_tm_hero .details .tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 300;
    max-width: 500px;
    line-height: 1.6;
}

@media (max-width: 1040px) {
    .grax_tm_hero .details .brand_name {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .grax_tm_hero .details .brand_name {
        font-size: 50px;
        letter-spacing: 2px;
    }

    .grax_tm_hero .details .brand_prefix {
        font-size: 8px;
    }

    .grax_tm_hero .details .founder {
        font-size: 14px;
    }

    .grax_tm_hero .details .tagline {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .grax_tm_hero .details .brand_name {
        font-size: 40px;
    }
}

/* ----- HERO BACKGROUND ----- */
.grax_tm_hero .ripple {
    background-image: url(../img/slider/2.webp);
}

.grax_tm_hero .ripple:before {
    background-color: rgba(0, 0, 0, 0); /* Remove dark overlay */
}

/* ----- TOPBAR LOGO SIZE ----- */
.grax_tm_topbar .logo img {
    max-width: 150px;
}

/* ----- SECTION TAGLINE ----- */
.section_tagline {
    font-size: 12px;
    font-weight: 500;
    color: #00d4ff;
    margin-bottom: 20px;
    margin-top: 5px;
}

/* ----- ERGOSPHERE/ERGOCONNECT LAYOUT ----- */
/* Reduce bottom margin to match other sections */
.grax_tm_about {
    margin-bottom: 100px;
}

.grax_tm_about .about_inner {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

.grax_tm_about .left {
    width: 50%;
}

.grax_tm_about .left .image {
    max-height: 400px;
    overflow: hidden;
}

.grax_tm_about .right {
    width: 50%;
}

/* Image styling for .right (when image is on right side) */
.grax_tm_about .right .image {
    position: relative;
    max-height: 400px;
    overflow: hidden;
    border-radius: 12px;
}

.grax_tm_about .right .image img {
    opacity: 0;
    min-width: 100%;
}

.grax_tm_about .right .main {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 12px;
    box-shadow: 0px 0px 40px rgb(0 0 0 / 20%);
}

/* ErgoSphere robots image — sit it on its right edge so more of the left is cropped */
.grax_tm_about .right .main[data-img-url*="ErgoSphere_Robots"] {
    background-position: right center;
}

/* Button under image styling */
.grax_tm_about .right .grax_tm_button {
    margin-top: 50px;
    text-align: center;
    display: flex;
    justify-content: center;
}

/* Reversed layout: text left, image right */
.grax_tm_about .about_inner.reverse {
    flex-direction: row;
}

.grax_tm_about .about_inner.reverse .left {
    order: 1;
}

.grax_tm_about .about_inner.reverse .right {
    order: 2;
}

@media (max-width: 1040px) {
    .grax_tm_about .about_inner {
        flex-direction: column;
    }

    .grax_tm_about .about_inner.reverse {
        flex-direction: column;
    }

    .grax_tm_about .about_inner.reverse .left,
    .grax_tm_about .about_inner.reverse .right {
        order: unset;
        width: 100%;
    }

    .grax_tm_about .left,
    .grax_tm_about .right {
        width: 100%;
    }
}

/* ----- ERGOSPHERE VIDEO ----- */
.ergosphere_video {
    position: relative;
    width: 100%;
    padding-bottom: 133.33%; /* 3:4 aspect ratio to match original placeholder */
    overflow: hidden;
    border-radius: 8px;
}

.ergosphere_video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    transform: translate(-50%, -50%);
    border: none;
    pointer-events: none;
}

@media (max-width: 768px) {
    .ergosphere_video {
        padding-bottom: 75%; /* 4:3 aspect ratio on mobile */
    }
}

/* ----- ERGOSPHERE GALLERY ----- */
.ergosphere_gallery {
    margin-top: 60px;
    margin-bottom: 0;
    overflow: hidden;
}

.gallery_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollGallery 60s linear infinite;
    width: max-content;
}

.gallery_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollGallery {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.gallery_card {
    flex: 0 0 auto;
    width: 180px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.gallery_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.gallery_item {
    display: block;
    width: 100%;
    height: 120px;
    overflow: hidden;
    position: relative;
    pointer-events: none;
    cursor: default;
}

.gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
    filter: saturate(0.8) brightness(0.9);
}

.gallery_card:hover .gallery_item img {
    filter: saturate(1) brightness(1);
}

.gallery_caption {
    display: block;
    padding: 12px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 48px;
}

.gallery_card:hover .gallery_caption {
    color: #fff;
}

/* Magnific Popup 50% size */
.mfp-container .mfp-content {
    max-width: 50% !important;
}

.mfp-figure {
    transform: translateY(-40px);
}

.mfp-container .mfp-figure figure {
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
}

/* Magnific Popup close button positioning */
.mfp-close {
    right: 15px !important;
    top: -40px !important;
    font-size: 36px;
    opacity: 0.8;
}

.mfp-close:hover {
    opacity: 1;
}

/* Magnific Popup title and description styling */
.mfp-title {
    padding: 0 !important;
    line-height: 1.5;
}

.mfp-title .popup-title-bar {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 15px 20px;
    background: #1a2332;
}

.mfp-title .popup-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    padding: 0;
}

.mfp-title .popup-desc-bar {
    padding: 15px 20px;
    background: #111a28;
}

.mfp-title .popup-desc {
    display: block;
    font-size: 13px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery_card {
        width: 150px;
    }

    .gallery_item {
        height: 100px;
    }

    .ergosphere_gallery {
        margin-top: 40px;
    }

    .mfp-container .mfp-content {
        max-width: 90% !important;
    }
}

/* ----- SECTION NUMBERS ----- */
.section_number {
    display: block;
    font-size: 12px;
    letter-spacing: 3px;
    color: #00d4ff;
    margin-bottom: 10px;
    font-weight: 500;
}

.section_subtitle {
    color: #00d4ff;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

/* ----- JOURNEY SECTION ----- */
.grax_tm_journey {
    padding: 100px 0;
}

/* Top Area - Two Columns */
.journey_top {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 50px;
    align-items: flex-start;
    margin-top: 50px;
    width: 100%;
}

.grax_tm_journey .journey_portrait {
    flex: 0 0 35%;
    min-width: 280px;
    max-width: 400px;
    margin-top: 10px;
}

.journey_intro {
    flex: 1 1 auto;
    padding-top: 0;
    text-align: left;
}

.grax_tm_journey .journey_portrait .image {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.grax_tm_journey .journey_portrait .image img {
    width: 100%;
    display: block;
    filter: saturate(0.7) brightness(0.9);
    transition: all 0.5s ease;
}

.grax_tm_journey .journey_portrait .image:hover img {
    filter: saturate(1) brightness(1);
}

.journey_intro .intro_label {
    display: block;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: 500;
}

.journey_intro .intro_text {
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
    margin-bottom: 20px;
}

.journey_intro .intro_text:last-child {
    margin-bottom: 0;
}

/* Timeline Section */
.journey_timeline {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 60px;
}

.timeline_image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #1a2332;
    margin-top: 50px;
}

.timeline_image img {
    width: 100%;
    display: block;
}

.journey_quote {
    display: inline-block;
    position: relative;
    font-family: "Poppins", sans-serif;
    font-size: 1.2em;
    font-weight: 300;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    padding-left: 55px;
    padding-top: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.journey_quote::before {
    content: "\201C";
    position: absolute;
    top: 0;
    left: 0;
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    color: rgba(0, 212, 255, 0.6);
}

/* Credentials Row */
.credentials_row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 50px;
}

.credential_item {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    transition: all 0.3s ease;
}

.credential_item:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
}

.credential_text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.credential_item:hover .credential_text {
    color: #fff;
}

/* Awards Gallery */
.awards_gallery {
    margin-top: 60px;
    overflow: hidden;
}

.awards_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollAwards 45s linear infinite;
    width: max-content;
}

.awards_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollAwards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.award_card {
    flex: 0 0 auto;
    width: 170px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.award_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.award_image {
    display: block;
    width: 100%;
    height: 190px;
    overflow: hidden;
    cursor: pointer;
}

.award_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.award_card:hover .award_image img {
    filter: grayscale(0%);
}

.award_caption {
    display: block;
    padding: 8px 10px;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.award_card:hover .award_caption {
    color: #fff;
}

/* ----- ERGOBYTES SECTION ----- */
.ergobytes_top {
    display: flex;
    gap: 50px;
    align-items: flex-start;
    margin-bottom: 50px;
}

/* Reversed layout: image left, text right */
.ergobytes_top.reverse .ergobytes_logo {
    order: 1;
}

.ergobytes_top.reverse .ergobytes_text {
    order: 2;
}

.ergobytes_text {
    flex: 1;
}

.ergobytes_description {
    font-size: 15px;
    line-height: 30px;
    font-weight: 400;
    margin-top: 25px;
    margin-bottom: 30px;
}

/* Space after title holder when subtitle is inside (sections 02, 03) */
#ergobytes .grax_tm_title_holder,
#ergoconnect .grax_tm_title_holder {
    margin-bottom: 25px;
}

.ergobytes_logo {
    flex: 0 0 350px;
}

.ergobytes_logo .image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ergobytes_logo .image img {
    opacity: 0;
    min-width: 100%;
}

.ergobytes_logo .main {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
}

.season_label {
    /* Inherits from .section_subtitle - cyan, 12px */
}

/* Episodes Carousel */
.ergobytes_episodes {
    margin-top: 20px;
    margin-bottom: 40px;
    overflow: hidden;
}

.episodes_scroll {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    animation: scrollEpisodes 30s linear infinite;
    width: max-content;
}

.episodes_scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollEpisodes {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.episode_card {
    flex: 0 0 auto;
    width: 280px;
    background: #1a2332;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.episode_card:hover {
    border-color: #00d4ff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.episode_image {
    width: 100%;
    height: 158px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(0.8) brightness(0.9);
    transition: all 0.3s ease;
}

.episode_card:hover .episode_image {
    filter: saturate(1) brightness(1);
}

@media (max-width: 1040px) {
    .ergobytes_top {
        flex-direction: column;
    }

    .ergobytes_logo {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

/* ----- ERGOBYTES CTA ----- */
.ergobytes_cta {
    text-align: left;
    margin-top: 0;
}

.ergobytes_cta .youtube_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ergobytes_cta .youtube_link:hover {
    background: #00d4ff;
    color: #0a1628;
}

.ergobytes_cta .youtube_link .icon {
    font-size: 12px;
}

/* ----- CONTACT SIMPLE LAYOUT ----- */
.contact_simple {
    max-width: 600px;
}

/* Hide YouTube on desktop (mobile-only item) */
.contact_simple .info_list ul li.youtube-item {
    display: none;
}

/* Mobile line spans - inline on desktop */
.mobile-line {
    display: inline;
}

.contact_simple .info_list ul li {
    margin-bottom: 25px;
}

.contact_simple .info_list ul li .list_inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact_simple .info_list ul li .svg {
    position: relative;
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 2px;
    filter: brightness(0) invert(1);
    transform: none;
    top: auto;
    left: auto;
}

.contact_simple .info_list ul li .first {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact_simple .info_list ul li .second {
    font-size: 16px;
}

.contact_simple .info_list ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact_simple .info_list ul li a:hover {
    color: #00d4ff;
}

/* ----- FOOTER ----- */
.ee_footer {
    background-color: #0a0a0a;
    padding: 40px 0 60px 0 !important;
}

.ee_footer .my_wave {
    display: none;
}

.ee_footer .copyright_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.ee_footer .logo img {
    max-height: 120px;
    max-width: none;
}

.ee_footer .social ul {
    display: flex;
    gap: 20px;
}

.ee_footer .social ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.ee_footer .social ul li a:hover {
    border-color: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.ee_footer .social ul li a .svg {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.ee_footer .copy p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
}

/* Footer logos row (top) */
.ee_footer_logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 80px;
    margin-bottom: 24px;
}
/* Match ErgoSphere's footer logo sizing (unequal by design — different visual weight) */
.ee_footer_logos .ee_logo_home   { max-height: 60px; width: auto; }
.ee_footer_ergosphere img        { max-height: 100px; width: auto; }
/* Both footer logos are links and behave identically, matching the ErgoSphere
   footer: .8 at rest, lifting to full on hover */
.ee_footer_logos .ee_logo_home,
.ee_footer_ergosphere img { opacity: .8; transition: opacity .3s ease; }
.ee_logo_home_link:hover .ee_logo_home,
.ee_footer_ergosphere:hover img { opacity: 1; }

/* Footer links row */
.ee_footer_links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 12px;
    margin-bottom: 24px;
}
/* Inherit the footer's existing link colour/hover; remove underlines */
.ee_footer_links a { color: inherit; opacity: .85; transition: opacity .2s; text-decoration: none; }
.ee_footer_links a:hover { opacity: 1; text-decoration: none; }

/* copyright_inner now holds only social + copyright — center it */
.copyright_inner { justify-content: center; }

/* ----- RESPONSIVE ----- */
@media (max-width: 1040px) {
    .journey_top {
        flex-direction: column;
        gap: 40px;
    }

    .grax_tm_journey .journey_portrait {
        flex: none;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .journey_intro {
        padding-top: 0;
        text-align: center;
    }

    .journey_intro .intro_text {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .journey_intro .intro_label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .journey_intro .intro_text {
        font-size: 14px;
    }

    .journey_quote {
        font-size: 1em;
        padding-left: 45px;
        padding-top: 10px;
    }

    .journey_quote::before {
        font-size: 70px;
    }

    .journey_timeline {
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .credentials_row {
        gap: 8px;
    }

    .credential_item {
        padding: 8px 15px;
    }

    .credential_text {
        font-size: 11px;
    }

    .award_card {
        max-width: 150px;
        min-width: 120px;
    }

    .award_image {
        height: 160px;
    }
}

/* ----- PRELOADER COLOR ----- */
body.dark .loader_line:before {
    background-color: #00d4ff;
}

/* ----- DARK MODE REFINEMENTS ----- */
body.dark {
    background-color: #0a1628;
}

body.dark .grax_tm_portfolio,
body.dark .grax_tm_news,
body.dark .grax_tm_journey {
    background-color: #0d1a2d;
}

body.dark .grax_tm_contact {
    background-color: #0a1628;
    margin-bottom: 0;
    padding-bottom: 100px;
}

body.dark .grax_tm_copyright {
    background-color: #060d18;
}

/* ----- TO TOP BUTTON ----- */
.progressbar a {
    color: #fff;
}

.progressbar .line {
    background-color: rgba(255, 255, 255, 0.4);
}

/* ----- SCROLL INDICATOR ----- */
.grax_tm_all_wrap[data-color="cyan"] .grax_tm_down .line {
    background-color: #00d4ff;
}

/* ============================================================
   MISSION SUB-PAGE (/mission.html)
   ============================================================ */

/* ----- INNER-PAGE TOPBAR (solid, no transparent hero) ----- */
.solid-header .grax_tm_topbar {
    background-color: #060d18 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.solid-header .grax_tm_topbar.animate {
    background-color: #060d18 !important;
    box-shadow: none !important;
}

.solid-header .grax_tm_topbar.animate .menu ul li a {
    color: #fff !important;
}

.solid-header .grax_tm_topbar.animate .menu ul li a:hover {
    color: #00d4ff !important;
}

.solid-header .grax_tm_mobile_menu .topbar_inner,
.solid-header .grax_tm_mobile_menu .dropdown {
    background-color: #060d18 !important;
}

/* ----- PAGE BANNER (replaces hero on inner pages) ----- */
.page_banner {
    background: linear-gradient(180deg, #0a1628 0%, #0d1a2d 100%);
    padding: 180px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page_banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
}

.page_banner .banner_kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #00d4ff;
    margin-bottom: 20px;
}

.page_banner h1 {
    font-family: 'Archivo Black', Arial Black, sans-serif;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 2px;
    line-height: 1.05;
    text-transform: uppercase;
    color: #fff;
    margin: 0 auto 25px;
    max-width: 18ch;
}

.page_banner h1 span {
    color: #00d4ff;
}

.page_banner p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 60ch;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Tablet/mobile: the template floats .grax_tm_all_wrap (<=1040px), which
   shrink-wraps non-cleared block children. Pin the banner to full width so
   its heading doesn't collapse into a tall column of empty space. */
@media (max-width: 1040px) {
    .page_banner { width: 100%; clear: both; }
}

@media (max-width: 768px) {
    .page_banner { padding: 140px 0 70px; }
    .page_banner h1 { font-size: 38px; letter-spacing: 1.5px; }
    .page_banner p { font-size: 15px; }
}

/* ----- MISSION-PAGE SECTIONS ----- */
#mission,
#flagship,
#goals,
#sectors,
#founder,
#paths,
#contact-cta {
    float: none !important;
    display: block !important;
    width: 100% !important;
    clear: both !important;
    padding-top: 80px;
    padding-bottom: 80px;
}

#mission,
#goals,
#founder,
#contact-cta {
    background-color: #0a1628;
}

#flagship,
#sectors,
#paths {
    background-color: #0d1a2d;
}

#mission .container,
#flagship .container,
#goals .container,
#sectors .container,
#founder .container,
#paths .container,
#contact-cta .container {
    display: block !important;
}

#mission .grax_tm_title_holder,
#flagship .grax_tm_title_holder,
#goals .grax_tm_title_holder,
#sectors .grax_tm_title_holder,
#founder .grax_tm_title_holder,
#paths .grax_tm_title_holder,
#contact-cta .grax_tm_title_holder {
    width: 100%;
    text-align: center;
    float: none !important;
    clear: both;
}

/* Content blocks must sit below the (template-floated) title, full width */
.mission_block,
.flagship_card,
.goals_list,
.sectors_grid,
.founder_card,
.paths_grid,
.contact_cta_card {
    clear: both;
}

#mission .grax_tm_title_holder h3,
#flagship .grax_tm_title_holder h3,
#goals .grax_tm_title_holder h3,
#sectors .grax_tm_title_holder h3,
#founder .grax_tm_title_holder h3,
#paths .grax_tm_title_holder h3 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: 25px;
}

#mission .grax_tm_title_holder h3 span,
#flagship .grax_tm_title_holder h3 span,
#goals .grax_tm_title_holder h3 span,
#sectors .grax_tm_title_holder h3 span,
#founder .grax_tm_title_holder h3 span,
#paths .grax_tm_title_holder h3 span {
    color: #00d4ff;
}

.page_lead {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 720px;
    margin: 10px auto 0;
    line-height: 1.7;
    text-align: center;
}

/* ----- MISSION BLOCK ----- */
.mission_block {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06), rgba(65, 105, 225, 0.04));
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    padding: 60px 50px;
    margin-top: 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mission_block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.mission_label {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 25px;
}

.mission_block p {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 300;
    line-height: 1.45;
    color: #ffffff;
    /* Was 28ch (~450px) which left the statement as a thin column stranded in
       the middle of a ~1100px card. Widen to a comfortable reading measure that
       fills the card with sensible margins, still centred. */
    max-width: 800px;
    margin: 0 auto;
}

.mission_block p strong {
    color: #00d4ff;
    font-weight: 600;
    font-style: italic;
}

@media (max-width: 768px) {
    .mission_block { padding: 40px 25px; }
    .mission_block p { font-size: 20px; }
}

/* ----- FLAGSHIP PRODUCT CARD ----- */
.flagship_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.flagship_card:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(0, 212, 255, 0.3);
}

@media (max-width: 900px) {
    .flagship_card { grid-template-columns: 1fr; gap: 35px; padding: 35px; }
}

.flagship_label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #00d4ff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.flagship_info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 18px 0;
}

.flagship_info h3 span { color: #00d4ff; }

.flagship_info p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 25px 0;
}

.flagship_link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #00d4ff;
    color: #0a1628;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s ease;
}

.flagship_link:hover {
    background: transparent;
    color: #00d4ff;
    box-shadow: inset 0 0 0 2px #00d4ff;
}

.flagship_visual {
    aspect-ratio: 9 / 8;
    background: linear-gradient(135deg, #0a1628, #1a2332);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.flagship_visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 60%);
}

.flagship_visual.has_image {
    background: #0a1628;
}

.flagship_visual.has_image::before {
    display: none;
}

.flagship_image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 1;
}

.flagship_mark {
    width: 90px;
    height: 90px;
    border-radius: 18px;
    background: linear-gradient(135deg, #00d4ff, #015292);
    position: relative;
    display: grid;
    place-items: center;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.4);
    z-index: 1;
}

.flagship_mark::before {
    content: '';
    position: absolute;
    inset: 12px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.flagship_mark::after {
    content: '';
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.flagship_visual_label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 1;
}

/* ----- GOALS / TIMELINE ----- */
.goals_list {
    display: grid;
    gap: 18px;
    margin-top: 50px;
}

.goal_row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 35px;
    padding: 30px 35px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    align-items: center;
    transition: all 0.3s ease;
}

.goal_row:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(4px);
}

@media (max-width: 700px) {
    .goal_row { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; align-items: start; }
}

.goal_period {
    font-size: 15px;
    font-weight: 700;
    color: #00d4ff;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    padding-left: 18px;
}

.goal_period::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.goal_period small {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.goal_content h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.goal_content p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ----- SECTORS GRID ----- */
.sectors_grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 50px;
}

@media (max-width: 800px) { .sectors_grid { grid-template-columns: repeat(2, 1fr); } }

.sector_item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0; /* let the 2-col tracks shrink below content on narrow phones */
    overflow-wrap: anywhere;
}

@media (max-width: 420px) { .sector_item { padding: 28px 14px; } }

.sector_item:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
}

.sector_icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sector_icon svg {
    width: 26px;
    height: 26px;
    stroke: #00d4ff;
    fill: none;
}

.sector_item h5 {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0 0 8px 0;
}

.sector_item p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* ----- FOUNDER NOTE ----- */
.founder_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 50px;
    margin-top: 50px;
}

@media (max-width: 600px) {
    .founder_card { padding: 35px 25px; }
}

.founder_label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #00d4ff;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 25px;
}

.founder_quote {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: #ffffff;
    margin: 0 0 30px 0;
    max-width: 60ch;
    position: relative;
    padding-left: 30px;
    border-left: 3px solid #00d4ff;
}

.founder_body p {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 18px;
    max-width: none;
}

.founder_body p strong {
    color: #ffffff;
    font-weight: 600;
}

.founder_creds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cred_pill {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 8px 14px;
    border-radius: 4px;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .founder_quote { font-size: 18px; padding-left: 20px; }
}

/* ----- PATHS (3 engagement options) ----- */
.paths_grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 50px;
}

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

.path_card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 40px 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.path_card:hover {
    border-color: #00d4ff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

.path_icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    display: grid;
    place-items: center;
    margin-bottom: 5px;
}

.path_icon svg {
    width: 22px;
    height: 22px;
    stroke: #00d4ff;
    fill: none;
}

.path_label {
    font-size: 11px;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.path_card h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
    line-height: 1.25;
}

.path_card h4 span { color: #00d4ff; }

.path_card p {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    flex: 1;
}

.path_link {
    font-size: 11px;
    font-weight: 600;
    color: #00d4ff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 8px;
}

.path_arrow {
    transition: transform 0.25s ease;
}

.path_card:hover .path_arrow {
    transform: translateX(4px);
}

/* ----- CONTACT CTA (mission page) ----- */
.contact_cta_card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(65, 105, 225, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 16px;
    padding: 60px 50px;
    text-align: center;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.contact_cta_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00d4ff, transparent);
}

.contact_cta_card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 20px 0;
    line-height: 1.25;
}

.contact_cta_card h3 span { color: #00d4ff; }

.contact_cta_card p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact_cta_card a.cta_email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: #00d4ff;
    color: #0a1628;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.contact_cta_card a.cta_email:hover {
    background: transparent;
    color: #00d4ff;
    box-shadow: inset 0 0 0 2px #00d4ff;
}

@media (max-width: 768px) {
    .contact_cta_card { padding: 40px 25px; }
    .contact_cta_card h3 { font-size: 20px; letter-spacing: 1.5px; }
    /* The email is one long unbreakable token; let it shrink + wrap so the
       button never exceeds the card/viewport width at narrow sizes */
    .contact_cta_card a.cta_email {
        max-width: 100%;
        padding: 14px 22px;
        font-size: 13px;
        letter-spacing: 0;
        text-align: center;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
