/* =====================================================
   COMMON STYLESHEET - All Pages
   ===================================================== */

html {
    overscroll-behavior: none;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    position: relative;
    width: 100%;
    margin: 0;
    background-color: #050b05;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

/* ========== UTILITY CLASSES ========== */

#boot-text {
    white-space: pre;
    line-height: 1.2;
    text-wrap: wrap;
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
    color: #a7ffb0;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.85rem;
}

/* ========== LOADER ========== */

.loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
    z-index: 999;
}

.loader.is-visible {
    opacity: 1;
}

.loader-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.loader-flair-wrap {
    width: min(260px, 68vw);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

#svg-stage {
    width: 100%;
    height: 100%;
    display: block;
    opacity: 0;
    overflow: visible;
}

.loader-progress {
    width: min(320px, calc(100vw - 48px));
    height: 6px;
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.18);
}

.loader-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f4f6ff 0%, #9ec7ff 100%);
    animation: loader-fill 1.8s ease forwards;
}

@keyframes loader-fill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* ========== SHAPE OVERLAYS ========== */

.shape-overlays {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 998;
}

.shape-overlays.is-active {
    opacity: 1;
    visibility: visible;
}

/* ========== CTA BUTTON ========== */

.cta-button {
    background: none;
    border: 1px solid rgba(57, 255, 20, 0.6);
    text-transform: uppercase;
    padding: 0.5em 1.4em;
    border-radius: 999px;
    cursor: pointer;
    color: #e3ffe8;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    box-shadow: 0 0 0 1px rgba(57, 255, 20, 0.2) inset;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button:focus-visible {
    background: #39ff14;
    color: #051107;
    box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
    transform: translateY(-1px);
}

/* ========== NAVIGATION DOCK (DESKTOP) ========== */

.wrapper {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%);
    display: flex;
    justify-content: center;
    z-index: 40;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.toolbar {
    display: inline-flex;
    justify-content: center;
    align-items: flex-end;
    height: 30px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0;
    padding: 10px;
    background-color: rgba(57, 255, 20, 0.14);
    list-style: none;
}

.toolbarItem {
    width: 40px;
    height: 40px;
    margin: 0 4px;
    position: relative;
}

.toolbarItem::after {
    content: attr(data-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%) translateY(6px);
    background: rgba(3, 20, 8, 0.95);
    color: #c9ffd0;
    border: 1px solid rgba(57, 255, 20, 0.45);
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 0.42rem;
    line-height: 1;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 40;
}

.toolbarItem:hover::after,
.toolbarItem:focus-within::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toolbarLink {
    display: block;
    height: 100%;
}

.toolbarImg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

/* ========== NAVIGATION DOCK (MOBILE) ========== */

.mobileHomeButton {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 20%;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(57, 255, 20, 0.14);
    box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.35);
    z-index: 25;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.mobileAppWindow {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    flex-direction: column;
    padding: 18px 16px 90px;
    background:
        radial-gradient(circle at 20% 15%, rgba(57, 255, 20, 0.2), transparent 45%),
        linear-gradient(165deg, #0a1b0f 0%, #061109 45%, #030805 100%);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    max-height: min(72vh, calc(100vh - 84px));
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 20;
}

.mobileAppWindow.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobileHomeButton[aria-expanded="true"] {
    opacity: 0;
    pointer-events: none;
}

.nav-hidden .wrapper {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 120%);
}

.nav-hidden .mobileHomeButton {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 120%);
}

.mobileAppHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    color: #b7ffbf;
}

.mobileCloseButton {
    border: 0;
    border-radius: 16px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: #c9ffd0;
    background: rgba(57, 255, 20, 0.14);
}

.mobileAppList {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 8px;
    align-content: start;
}

.mobileAppItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #b6ffc6;
    font-size: 0.73rem;
    text-align: center;
}

.mobileAppLink {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: inherit;
    text-decoration: none;
}

.mobileAppIconWrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(57, 255, 20, 0.14);
    box-shadow: inset 0 0 0 1px rgba(57, 255, 20, 0.35);
}

.mobileAppIcon {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
}

.app-window-open {
    overflow: hidden;
}

body.contact-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}

/* ========== CONTACT OVERLAY ========== */

.contact-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 12, 8, 0.78);
    backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.contact-overlay-inner {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    gap: clamp(12px, 2vw, 24px);
    padding: clamp(1rem, 2.5vw, 2rem) clamp(1.2rem, 3vw, 2.4rem);
    color: #f5fff8;
    background: linear-gradient(135deg, #2e8b57 0%, #0f2b1b 70%);
    border: 1px solid rgba(245, 245, 245, 0.28);
    box-sizing: border-box;
    overflow: hidden;
    align-items: stretch;
}

.contact-panel {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.6vw, 20px);
    min-height: 0;
    overflow: hidden;
}

.contact-panel--form {
    flex: 1;
    padding-right: 24px;
    border-right: 1px solid rgba(245, 245, 245, 0.28);
}

.contact-panel--copy {
    flex: 1.05;
    justify-content: space-between;
    position: relative;
}

.contact-logo {
    width: max-content;
    border: 1px solid rgba(245, 245, 245, 0.65);
    padding: 4px 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
}

.contact-form {
    display: grid;
    gap: clamp(8px, 1.2vw, 12px);
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

.contact-form label {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    outline: none;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(245, 245, 245, 0.6);
    padding: 8px 0;
    color: inherit;
    font-family: inherit;
    resize: none;
}

.contact-form input[type="text"]::placeholder,
.contact-form input[type="email"]::placeholder,
.contact-form input[type="tel"]::placeholder,
.contact-form textarea::placeholder {
    text-transform: uppercase;
    color: rgba(245, 245, 245, 0.65);
    font-size: 0.72rem;
}

.contact-jobs {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-job-group {
    display: grid;
    gap: 10px;
    min-width: 150px;
}

.contact-item {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.contact-submit {
    align-self: flex-start;
    border: 1px solid rgba(245, 245, 245, 0.75);
    background: rgba(10, 24, 16, 0.6);
    color: inherit;
    text-transform: uppercase;
    padding: 0.48em 1.2em;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.contact-submit:hover,
.contact-submit:focus-visible {
    background: #f5fff8;
    color: #0c1e14;
}

.contact-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-meta p {
    margin: 0;
}

.contact-back {
    background: none;
    border: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    cursor: pointer;
}

.contact-about {
    max-width: 36ch;
    font-size: 0.86rem;
    line-height: 1.5;
}

.contact-about p {
    margin: 0;
}

.contact-giant h1 {
    margin: 0;
    font-size: clamp(3rem, 8.5vw, 7.5rem);
    line-height: 0.84;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
}

/* ========== FOOTER CTA SECTION ========== */

.footer-cta {
    position: relative;
    display: flex;
    justify-content: center;
    padding: clamp(2.8rem, 6vw, 4.2rem) 1.5rem 1.6rem;
    border-top: 1px solid rgba(72, 255, 109, 0.22);
    background:
        radial-gradient(circle at 15% 25%, rgba(57, 255, 20, 0.14), transparent 55%),
        radial-gradient(circle at 90% 0%, rgba(0, 255, 204, 0.12), transparent 60%),
        linear-gradient(180deg, rgba(3, 10, 6, 0.95) 0%, rgba(3, 10, 6, 0.7) 100%);
}

.footer-cta-inner {
    width: min(980px, 100%);
    display: grid;
    gap: 1.2rem;
    padding: clamp(1.8rem, 3vw, 2.6rem);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(12, 26, 17, 0.96), rgba(4, 10, 6, 0.78)),
        repeating-linear-gradient(90deg, rgba(72, 255, 109, 0.08) 0 1px, transparent 1px 38px),
        repeating-linear-gradient(0deg, rgba(72, 255, 109, 0.05) 0 1px, transparent 1px 38px);
    border: 1px solid rgba(72, 255, 109, 0.32);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 255, 170, 0.12);
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    color: #dfffe8;
}

.footer-cta-kicker {
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: rgba(129, 255, 162, 0.82);
}

.footer-cta-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.4vw, 2.6rem);
    line-height: 1.05;
    color: #c7ffd4;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-cta-copy {
    margin: 0;
    max-width: 60ch;
    line-height: 1.55;
    color: rgba(223, 255, 232, 0.86);
}

.footer-cta-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.8rem;
}

.footer-cta-item {
    display: grid;
    gap: 0.4rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(72, 255, 109, 0.2);
    background: rgba(5, 12, 8, 0.65);
}

.footer-cta-label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(129, 255, 162, 0.82);
}

.footer-cta-value {
    font-size: 0.9rem;
    color: rgba(223, 255, 232, 0.92);
}

.footer-cta-action {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    align-items: flex-start;
}

.footer-cta-note {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(129, 255, 162, 0.7);
}

/* ========== FOOTER ========== */

.footer {
    position: absolute;
    width: 100%;
    bottom: 0;
    height: clamp(260px, 34vw, 380px);
    overflow: hidden;
    isolation: isolate;
}

.footer::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background-blend-mode: color-dodge;
    background-image: url("https://assets.codepen.io/16327/noise.png");
    pointer-events: none;
    z-index: 1;
}

#footer-img {
    position: absolute;
    inset: 0;
    height: 100%;
    width: 100%;
    display: block;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
}

.footer-links {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(1rem, 2.6vw, 1.8rem) 1rem clamp(1.2rem, 3vw, 2rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(13, 19, 34, 0.34) 100%);
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.7rem, 2vw, 1.6rem);
    align-items: center;
    padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 4vw, 2rem) clamp(1.2rem, 3vw, 2rem);
    box-sizing: border-box;
    font-family: "Fraktion Mono", "Courier New", Courier, monospace;
    color: #0b1020;
}

.footer-column {
    display: grid;
    gap: 0.55rem;
    align-content: start;
}

.footer-title {
    margin: 0;
    font-size: clamp(0.86rem, 1.4vw, 0.98rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.35rem;
    font-size: clamp(0.92rem, 1.5vw, 1.02rem);
    line-height: 1.45;
}

.footer-list li {
    margin: 0;
}

.footer-list a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(11, 16, 32, 0.32);
    width: fit-content;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
    border-color: rgba(11, 16, 32, 0.9);
    opacity: 0.92;
}

#center {
    visibility: hidden;
}

.footer-in-flow .footer {
    position: relative;
    bottom: auto;
}

/* ========== RESPONSIVE - MOBILE ========== */

@media (max-width: 767px) {
    .shape-overlays {
        display: none;
    }

    .toolbar {
        display: none;
    }

    .toolbarItem::after {
        display: none;
    }

    .mobileHomeButton {
        display: flex;
    }

    .mobileAppWindow {
        display: flex;
    }

    .loader-progress {
        display: none;
    }

    .footer-cta {
        padding: 2rem 1rem 1.2rem;
    }

    .footer-cta-inner {
        padding: 1.4rem;
        border-radius: 14px;
    }

    .footer-cta-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .footer-cta-meta {
        grid-template-columns: 1fr;
    }

    .footer-cta-action {
        align-items: stretch;
    }

    .footer {
        height: 240px;
    }

    .footer-links {
        padding: 1rem 0.85rem 1.2rem;
    }

    .footer-content {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.75rem;
        padding: 2.4rem 0.9rem 1rem;
    }

    .footer-title {
        font-size: 0.75rem;
    }

    .footer-list {
        font-size: 0.82rem;
    }

    .contact-overlay-inner {
        flex-direction: column;
        height: 100svh;
        min-height: 100svh;
        gap: 12px;
        padding: 1rem;
        justify-content: flex-start;
    }

    .contact-panel {
        gap: 10px;
    }

    .contact-panel--copy {
        order: -1;
        flex: 0 0 auto;
        gap: 8px;
        justify-content: flex-start;
    }

    .contact-panel--form {
        border-right: none;
        border-top: 1px solid rgba(245, 245, 245, 0.28);
        padding-right: 0;
        padding-top: 12px;
    }

    .contact-logo {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .contact-form {
        gap: 6px;
    }

    .contact-form label {
        font-size: 0.68rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea {
        padding: 6px 0;
    }

    .contact-jobs {
        gap: 10px;
    }

    .contact-job-group {
        gap: 8px;
        min-width: 0;
    }

    .contact-item {
        font-size: 0.64rem;
        letter-spacing: 0.04em;
    }

    .contact-submit {
        font-size: 0.68rem;
        padding: 0.4em 1em;
    }

    .contact-meta {
        font-size: 0.6rem;
    }

    .contact-about {
        font-size: 0.76rem;
    }

    .contact-giant h1 {
        font-size: clamp(1.9rem, 9vw, 3.6rem);
        line-height: 0.9;
    }

}
