:root {
    --brand-blue: #37aae1;
    --brand-blue-dark: #0f7fb5;
    --light-bg: #ececec;
    --surface: #ffffff;
    --text: #0f1b2b;
    --muted: #3d4a5b;
    --border: #c8d6df;
    --box-pink: #ff00ff;
    --box-blue: #2386c2;
    --nav-glass: rgba(55, 170, 225, 0.3);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--light-bg);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(100% - 2rem, var(--max-width));
    margin-inline: auto;
}

.announcement-bar {
    background: #000000;
    color: #ffffff;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 12;
}

.announcement-bar p {
    margin: 0;
}

.top-nav {
    background: var(--nav-glass);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-wrap {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: clamp(150px, 16vw, 220px);
    height: auto;
    object-fit: contain;
}

.top-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.1rem;
    align-items: center;
}

.top-nav nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.07rem;
    font-weight: 600;
}

.top-nav nav a:hover,
.top-nav nav a:focus-visible,
.top-nav nav a.is-active {
    text-decoration: underline;
}

.top-nav nav a.github-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1;
}

.github-nav-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (min-width: 781px) {
    .github-nav-link svg {
        transform: translateY(3px);
    }
}

.github-nav-text {
    display: none;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 2px solid #ffffff;
    width: 42px;
    height: 36px;
    padding: 6px 7px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
}

.menu-toggle span + span {
    margin-top: 6px;
}

.hero {
    padding: 4rem 0 3rem;
    background: #ffffff;
}

.home-with-bg {
    position: relative;
    isolation: isolate;
}

.home-bg-stage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
    background: #0b1420;
}

.home-bg-stage::before,
.home-bg-stage::after {
    content: "";
    position: absolute;
    inset: -12%;
    pointer-events: none;
}

.home-bg-stage::before {
    background:
        radial-gradient(circle at 20% 26%, rgba(56, 174, 234, 0.2), transparent 38%),
        radial-gradient(circle at 78% 72%, rgba(255, 0, 255, 0.14), transparent 42%),
        radial-gradient(circle at 60% 16%, rgba(255, 255, 255, 0.08), transparent 35%);
    filter: blur(6px);
    animation: homeBgOrbsDrift 22s ease-in-out infinite alternate;
}

.home-bg-stage::after {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.11) 0.7px, transparent 0.7px),
        radial-gradient(rgba(255, 255, 255, 0.08) 0.5px, transparent 0.5px);
    background-position: 0 0, 18px 14px;
    background-size: 26px 26px, 32px 32px;
    opacity: 0.2;
    mix-blend-mode: soft-light;
    animation: homeBgGrainDrift 18s linear infinite;
}

.home-bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.08) translate3d(0, 0, 0);
    transition: opacity 1.2s ease, transform 9s ease;
    animation: homeBgKenBurns 25s ease-in-out infinite alternate;
    will-change: opacity, transform;
}

.home-bg-layer.is-visible {
    opacity: 1;
    transform: scale(1.16) translate3d(0, 0, 0);
}

.home-bg-layer.layer-b {
    animation-direction: alternate-reverse;
}

.home-bg-tint {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 20%, rgba(35, 134, 194, 0.3), transparent 44%),
        radial-gradient(circle at 84% 78%, rgba(255, 0, 255, 0.2), transparent 40%),
        linear-gradient(180deg, rgba(5, 14, 24, 0.46), rgba(5, 14, 24, 0.72));
    animation: homeBgTintPulse 14s ease-in-out infinite;
}

.home-bg-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(31, 49, 68, 0.95) 12%, rgba(76, 104, 133, 0.9) 22%, rgba(31, 49, 68, 0.95) 32%);
    background-size: 220% 100%;
    animation: homeSkeletonShimmer 1.5s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.home-bg-stage.skeleton-loading .home-bg-skeleton {
    opacity: 1;
}

@keyframes homeSkeletonShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

@keyframes homeBgKenBurns {
    0% {
        transform: scale(1.1) translate3d(-0.6%, -0.4%, 0);
    }
    50% {
        transform: scale(1.16) translate3d(0.4%, 0.2%, 0);
    }
    100% {
        transform: scale(1.2) translate3d(0.9%, 0.7%, 0);
    }
}

@keyframes homeBgOrbsDrift {
    0% {
        transform: translate3d(-1.4%, -0.8%, 0) scale(1);
    }
    100% {
        transform: translate3d(1.8%, 1.2%, 0) scale(1.04);
    }
}

@keyframes homeBgGrainDrift {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(24px, 16px, 0);
    }
}

@keyframes homeBgTintPulse {
    0% {
        opacity: 0.94;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.95;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-bg-stage::before,
    .home-bg-stage::after,
    .home-bg-layer,
    .home-bg-tint,
    .vision-page .vision-intro-box::before,
    .vision-page .vision-intro-box p {
        animation: none !important;
    }
}

.home-with-bg .hero,
.home-with-bg .home-quick-links {
    background: transparent;
}

.dynamic-bg-page {
    background: transparent;
}

.dynamic-bg-page .page-hero,
.dynamic-bg-page .white-section,
.dynamic-bg-page .section-alt {
    background: transparent;
}

.dynamic-bg-page .section-alt {
    border-top-color: transparent;
    border-bottom-color: transparent;
}

.dynamic-bg-page .page-hero .container,
.dynamic-bg-page .section .container {
    background: rgba(236, 236, 236, 0.64);
    border: 1px solid rgba(200, 214, 223, 0.72);
    backdrop-filter: blur(1.5px);
}

.dynamic-bg-page .page-hero .container {
    padding: 1.15rem;
}

.dynamic-bg-page .section .container {
    padding: 1rem;
}

.about-page {
    color: #ffffff;
}

.about-page h1,
.about-page h2,
.about-page h3 {
    text-align: center;
    color: #ffffff;
}

.about-page p,
.about-page li {
    color: #ffffff;
    text-align: center;
}

.about-page .page-hero p {
    color: #ffffff;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    margin-left: auto;
    margin-right: auto;
}

.about-page .page-hero .container,
.about-page .section .container {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none;
}

.about-page .patterned-cards .card {
    border: 0;
}

.about-page .about-intro-grid {
    margin-top: 0;
}

.about-page .about-intro-grid .card {
    min-height: 100%;
}

.about-direction-note {
    margin: 1rem auto 0;
    width: 100%;
    max-width: 100%;
    background: transparent !important;
    border: 0 !important;
    padding: 0;
}

.about-direction-note h3 {
    color: #ffffff !important;
}

.about-direction-note p {
    color: #ffffff;
    margin: 0;
    max-width: none;
    width: 100%;
    display: block;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--box-blue), var(--box-pink));
    padding: 1rem 1.2rem;
}

.home-with-bg .hero-content {
    background: transparent;
    border: 0;
    backdrop-filter: none;
    padding: 1rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 2.5rem;
    align-items: start;
}

.hero-logo {
    background: transparent;
    border: 0;
    padding: 0;
}

.hero-spacer {
    min-height: 1px;
}

.hero-left {
    color: #ffffff;
}

.hero-left h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.85rem, 3.5vw, 2.95rem);
    line-height: 1.1;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-left p {
    margin: 0 0 0.9rem;
    font-size: 1.12rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-logo img {
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
}

.hero-text {
    margin-top: 0;
    color: #ffffff;
}

.hero-text h1 {
    margin: 0 0 1.1rem;
    font-size: clamp(1.85rem, 3.5vw, 2.95rem);
    line-height: 1.1;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    margin-top: 0;
    margin-bottom: 0.9rem;
    font-size: 1.08rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-text p {
    margin-top: 0;
    font-size: 1.14rem;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-inline-media {
    margin-top: 1rem;
}

.hero-inline-media-left {
    margin-top: 1.2rem;
}

.hero-inline-media img {
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.home-quick-links {
    padding: 1.2rem 0 3.3rem;
}

.quick-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.quick-box {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 500;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.quick-box:hover,
.quick-box:focus-visible {
    transform: translateY(-2px);
    filter: brightness(0.96);
}

.box-blue {
    background: var(--box-blue);
}

.box-pink {
    background: var(--box-pink);
}

.page-hero {
    padding: 2.4rem 0;
    background: #ffffff;
}

.page-hero h1 {
    margin: 0 0 0.65rem;
    font-size: clamp(1.85rem, 3.5vw, 2.7rem);
    font-weight: 600;
}

.page-hero p {
    margin: 0;
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 920px;
}

.section {
    padding: 3.2rem 0;
}

.white-section {
    background: #ffffff;
}

.section-alt {
    background: #f4f8fa;
    border-top: 1px solid #dde8ee;
    border-bottom: 1px solid #dde8ee;
}

.section h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.7rem, 2.5vw, 2.4rem);
    font-weight: 600;
}

.section p {
    margin: 0 0 1rem;
    font-size: 1.06rem;
}

.cards {
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 1.2rem;
}

.card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.35rem;
    color: var(--brand-blue-dark);
}

.project-heading-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.project-heading-row h3 {
    margin: 0;
}

.project-heading-row .project-github-link {
    margin-left: auto;
}

.project-heading-row h3 a {
    color: inherit;
    text-decoration: none;
}

.project-heading-row h3 a:hover,
.project-heading-row h3 a:focus-visible {
    text-decoration: underline;
}

.project-github-link {
    color: var(--brand-blue-dark);
    line-height: 0;
}

.project-github-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.project-badge-link {
    display: inline-flex;
    align-items: center;
}

.project-badge {
    width: auto;
    height: 20px;
    display: block;
}

.card p {
    margin: 0;
    font-size: 1rem;
}

.patterned-cards .card {
    border: 0;
    color: #ffffff;
}

.patterned-cards .card h3 {
    color: #ffffff;
}

.patterned-cards .card:nth-child(odd) {
    background: var(--box-blue);
}

.patterned-cards .card:nth-child(even) {
    background: var(--box-pink);
}

.compact-copy p {
    margin-bottom: 0.7rem;
}

.compact-copy p:last-child {
    margin-bottom: 0;
}

.about-page .section,
.vision-page .section {
    padding: 2.4rem 0;
}

.about-page .page-hero {
    padding-bottom: 0.65rem;
}

.about-page .about-intro {
    padding-top: 0.45rem;
}

.about-page .about-direction-note {
    margin: 1rem 0 0;
    width: 100%;
    max-width: none;
    background: transparent;
    border: 0;
    padding: 0 !important;
}

.about-page .about-direction-note h3 {
    color: #ffffff;
}

.about-page .about-direction-note p {
    width: 100%;
    margin: 0;
    max-width: none;
    display: block;
    box-sizing: border-box;
    padding: 1rem 1.2rem;
    background: linear-gradient(135deg, var(--box-blue), var(--box-pink));
}

.about-page .about-people {
    padding-top: 0.8rem;
}

.about-page .about-people h2 {
    margin-bottom: 1rem;
}

.about-page .about-people-grid {
    margin-top: 0;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.about-page .about-person-card {
    border: 1px solid rgba(178, 218, 238, 0.42);
    background: rgba(16, 45, 74, 0.68);
    backdrop-filter: blur(1px);
}

.about-page .about-person-card h3 {
    text-align: left;
    margin-bottom: 0.35rem;
}

.about-page .about-person-card h3 a {
    color: inherit;
    text-decoration: none;
}

.about-page .about-person-card h3 a:hover,
.about-page .about-person-card h3 a:focus-visible {
    text-decoration: underline;
}

.about-page .about-person-role {
    text-align: left;
    font-weight: 700;
    color: #d9efff;
    margin-bottom: 0.7rem;
}

.about-page .about-person-card p {
    text-align: left;
}

.about-page .about-person-card p + p {
    margin-top: 0.7rem;
}

.whatwedo-page {
    color: #ffffff;
}

.whatwedo-page h1,
.whatwedo-page h2,
.whatwedo-page h3 {
    text-align: center;
    color: #ffffff;
}

.whatwedo-page p,
.whatwedo-page li {
    color: #ffffff;
    text-align: center;
}

.whatwedo-page .page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.projects-page .page-hero h1,
.projects-page .page-hero p {
    text-align: center;
}

.projects-page .page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.page-projects .top-nav nav a,
.page-projects .top-nav nav a:hover,
.page-projects .top-nav nav a:focus-visible,
.page-projects .top-nav nav a.is-active {
    color: #000000;
}

.page-projects .menu-toggle {
    border-color: #000000;
}

.page-projects .menu-toggle span {
    background: #000000;
}

.page-projects .site-footer,
.page-projects .site-footer p {
    color: #000000;
}

.contact-page .page-hero h1,
.contact-page .page-hero p {
    text-align: center;
    color: #ffffff;
}

.contact-page .page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.contact-page .page-hero .container,
.contact-page .section .container {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none;
}

.contact-page .contact-topics-grid .card {
    border: 0;
}

.contact-page .contact-topics-grid .card:nth-child(odd) {
    background: var(--box-blue);
}

.contact-page .contact-topics-grid .card:nth-child(even) {
    background: var(--box-pink);
}

.contact-page .contact-topics-grid h3,
.contact-page .contact-topics-grid p,
.contact-page .contact-topics-grid li {
    color: #ffffff;
}

.contact-page .contact-page-box {
    background: linear-gradient(135deg, var(--box-blue), var(--box-pink));
    border: 0;
}

.contact-page .contact-page-box h2,
.contact-page .contact-page-box p,
.contact-page .contact-page-box strong {
    color: #ffffff;
}

.vision-page {
    color: #ffffff;
}

.vision-page h1,
.vision-page h2,
.vision-page h3 {
    text-align: center;
    color: #ffffff;
}

.vision-page p,
.vision-page li {
    color: #ffffff;
    text-align: center;
}

.vision-page .page-hero p {
    margin-left: auto;
    margin-right: auto;
}

.vision-page .page-hero .container,
.vision-page .section .container {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none;
}

.vision-page .vision-intro-split {
    margin: -0.45rem auto 0;
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    align-items: stretch;
}

.vision-page .vision-intro-box {
    background: transparent;
    padding: 1.2rem 1.3rem;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.vision-page .vision-intro-box::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(102, 197, 255, 0.36) 0 2px, transparent 3px),
        radial-gradient(circle at 36% 68%, rgba(102, 197, 255, 0.3) 0 2px, transparent 3px),
        radial-gradient(circle at 60% 32%, rgba(102, 197, 255, 0.32) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 56%, rgba(102, 197, 255, 0.34) 0 2px, transparent 3px),
        linear-gradient(120deg, transparent 28%, rgba(102, 197, 255, 0.24) 30%, rgba(102, 197, 255, 0.24) 31%, transparent 33%),
        linear-gradient(20deg, transparent 52%, rgba(102, 197, 255, 0.2) 54%, rgba(102, 197, 255, 0.2) 55%, transparent 57%);
    opacity: 0.45;
    pointer-events: none;
    animation: visionNetworkFlow 10s linear infinite;
}

.vision-page .vision-intro-box p {
    color: #eaf7ff;
    font-size: clamp(1.35rem, 1.85vw, 1.95rem);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.01em;
    width: 100%;
    max-width: none;
    margin: 0;
    text-align: justify;
    text-justify: inter-word;
    text-wrap: pretty;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 12px rgba(137, 220, 255, 0.16);
    animation: visionSignalPulse 3.8s ease-in-out infinite;
}

.vision-page .vision-intro-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@keyframes visionNetworkFlow {
    0% {
        transform: translateX(-4%) translateY(0);
        opacity: 0.32;
    }
    50% {
        transform: translateX(3%) translateY(-2%);
        opacity: 0.5;
    }
    100% {
        transform: translateX(-4%) translateY(0);
        opacity: 0.32;
    }
}

@keyframes visionSignalPulse {
    0% {
        color: #eaf7ff;
        text-shadow: 0 0 10px rgba(137, 220, 255, 0.14);
    }
    50% {
        color: #ffffff;
        text-shadow: 0 0 18px rgba(137, 220, 255, 0.28);
    }
    100% {
        color: #eaf7ff;
        text-shadow: 0 0 10px rgba(137, 220, 255, 0.14);
    }
}

.vision-page .vision-roadmap-box {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, var(--box-blue), var(--box-pink));
    padding: 1rem 1.2rem;
}

.vision-page .vision-roadmap-box .feature-list {
    margin: 0;
    padding-left: 17rem;
    list-style-position: outside;
    text-align: left;
}

.vision-page .vision-roadmap-box .feature-list li {
    margin-bottom: 0.5rem;
    text-align: left;
}

.vision-page .vision-roadmap-box .feature-list li:last-child {
    margin-bottom: 0;
}

.whatwedo-page .page-hero .container,
.whatwedo-page .section .container {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter: none;
}

.whatwedo-core {
    padding-top: 1.2rem;
}

.whatwedo-core .cards {
    margin-top: 0;
}

.compact-card {
    text-align: center;
}

.toolkit-card {
    margin-top: 1rem;
}

.projects-page .toolkit-card h3,
.projects-page .toolkit-card p {
    text-align: center;
}

.project-media-wrap {
    margin-bottom: 0.9rem;
    border: 1px solid var(--border);
    background: #f8fbfd;
    overflow: hidden;
}

.media-loading {
    position: relative;
}

.media-loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, #d8e3ea 10%, #edf3f7 24%, #d8e3ea 38%);
    background-size: 220% 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.media-loading.is-loading::before {
    opacity: 1;
    animation: projectMediaSkeletonShimmer 1.25s linear infinite;
}

.project-media {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.js-skeleton-media {
    opacity: 1;
    transition: opacity 0.35s ease-out;
}

.media-loading.is-loading .js-skeleton-media {
    opacity: 0;
}

.compiled-media-wrap {
    margin-top: 0.9rem;
}

.compiled-media {
    height: auto;
    object-fit: contain;
}

@keyframes projectMediaSkeletonShimmer {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

.feature-list {
    margin: 0 0 1rem 1.2rem;
    padding: 0;
}

.feature-list li {
    margin-bottom: 0.45rem;
    font-size: 1.04rem;
}

.btn {
    display: inline-block;
    text-decoration: none;
    border: 2px solid var(--brand-blue);
    padding: 0.72rem 1.1rem;
    font-size: 1.12rem;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-filled {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.btn-filled:hover,
.btn-filled:focus-visible {
    background: #1f8fc5;
    border-color: #1f8fc5;
}

.contact-box {
    margin-top: 1.25rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.3rem 1.2rem;
}

.contact-box .btn {
    margin-top: 0.5rem;
}

.contact-page-main {
    padding-top: 1.6rem;
}

.contact-topics-grid {
    margin-top: 0;
}

.contact-page-box {
    margin-top: 1rem;
    border-width: 2px;
}

.notfound-page .page-hero h1,
.notfound-page .page-hero p {
    text-align: center;
}

.notfound-card {
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
}

.notfound-card h2 {
    margin-bottom: 0.6rem;
}

.notfound-card p {
    margin-bottom: 0.75rem;
}

.notfound-card p:last-child {
    margin-bottom: 0;
}

.notfound-card a {
    color: var(--brand-blue-dark);
    font-weight: 600;
}

.site-footer {
    background: rgba(15, 27, 43, 0.3);
    color: #d9e5ee;
    text-align: center;
    padding: 1.2rem 0;
    position: relative;
    z-index: 5;
    display: block;
}

.site-footer p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 1060px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .home-with-bg .hero-text {
        order: 1;
    }

    .home-with-bg .hero-left {
        order: 2;
    }

    .hero-text {
        margin-top: 0;
    }

    .hero-logo {
        max-width: 500px;
    }

    .three-col {
        grid-template-columns: 1fr 1fr;
    }

    .quick-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-inline-media img {
        height: auto;
    }
}

@media (max-width: 780px) {
    .nav-wrap {
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        row-gap: 0.75rem;
        padding: 0.7rem 0;
    }

    .menu-toggle {
        display: inline-block;
        margin-left: auto;
    }

    .site-nav {
        width: 100%;
        display: none;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-nav.is-open {
        display: block;
    }

    .top-nav ul {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        width: 100%;
        background: transparent;
    }

    .top-nav nav a {
        display: block;
        padding: 0.8rem 0.1rem;
        font-size: 1.02rem;
        text-decoration: none;
        border-bottom: 2px solid transparent;
    }

    .top-nav nav a.github-nav-link {
        display: flex;
        align-items: center;
        gap: 0.45rem;
    }

    .github-nav-text {
        display: inline;
    }

    .top-nav nav a:hover,
    .top-nav nav a:focus-visible {
        border-bottom-color: rgba(255, 255, 255, 0.95);
        text-decoration: none;
    }

    .top-nav nav a.is-active {
        border-bottom-color: transparent;
        text-decoration: none;
    }

    .page-projects .top-nav nav a,
    .page-projects .top-nav nav a:hover,
    .page-projects .top-nav nav a:focus-visible,
    .page-projects .top-nav nav a.is-active {
        color: #000000;
    }

    .hero {
        padding-top: 2.6rem;
    }

    .hero-text p,
    .page-hero p,
    .section p,
    .feature-list li,
    .btn {
        font-size: 1rem;
    }

    .three-col,
    .two-col,
    .quick-grid {
        grid-template-columns: 1fr;
    }

    .quick-box {
        min-height: 80px;
    }

    .project-media {
        height: auto;
    }

    .vision-page .vision-intro-split {
        grid-template-columns: 1fr;
    }

    .vision-page .vision-intro-box p {
        text-align: left;
        text-justify: auto;
    }

    .vision-page .vision-intro-media img {
        height: auto;
    }

    .vision-page .vision-roadmap-box .feature-list {
        padding-left: 1.2rem;
        list-style-position: outside;
    }
}
