:root {
    --blue: #1267f5;
    --blue-dark: #0757dc;
    --navy: #0d2345;
    --text: #26364d;
    --muted: #66758b;
    --line: #e8edf4;
    --soft: #f7faff;
    --soft-blue: #eef5ff;
    --white: #ffffff;

    --radius: 20px;
    --radius-sm: 14px;

    --shadow:
        0 14px 40px rgba(21, 54, 98, 0.08);

    --shadow-card:
        0 10px 30px rgba(20, 50, 90, 0.06);

    --container: 1180px;
}


/* ================================
   RESET & BASE
================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}


/* ================================
   NAVIGATION
================================ */

.nav {
    height: 78px;
    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--line);

    background: rgba(255, 255, 255, 0.96);

    position: sticky;
    top: 0;
    z-index: 100;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--navy);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.brand span {
    color: var(--blue);
    font-weight: 700;
}

.links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.links a {
    transition: color 0.2s ease;
}

.links a:hover,
.footer a:hover {
    color: var(--blue);
}

.menu-btn {
    display: none;
    background: none;
    border: 0;
    color: var(--navy);
    font-size: 28px;
    cursor: pointer;
}


/* ================================
   BUTTONS
================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 12px 21px;

    background: var(--blue);
    color: var(--white);

    border: 1px solid var(--blue);
    border-radius: 999px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);

    transform: translateY(-1px);

    box-shadow:
        0 8px 22px rgba(18, 103, 245, 0.18);
}

.btn.secondary {
    background: var(--white);
    color: var(--blue);
}

.btn.secondary:hover {
    background: var(--soft-blue);
    color: var(--blue-dark);
}


/* ================================
   HERO
================================ */

.hero {
    padding: 82px 0 54px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(360px, 0.92fr);

    align-items: center;

    gap: clamp(50px, 7vw, 90px);
}

.eyebrow {
    color: var(--blue);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;

    margin: 15px 0 22px;

    color: var(--navy);

    font-size: clamp(44px, 5vw, 70px);
    font-weight: 800;

    line-height: 1.025;
    letter-spacing: -0.045em;
}

.accent {
    color: var(--blue);
}

.lead {
    max-width: 650px;

    margin: 0;

    color: var(--muted);

    font-size: 19px;
    line-height: 1.65;
}

.actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}


/* ================================
   HERO PORTRAIT
================================ */

.portrait-wrap {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.portrait {
    width: min(390px, 90%);
    aspect-ratio: 1 / 1;

    border-radius: 50%;

    object-fit: cover;
    object-position: center;

    background: var(--soft);

    border: 10px solid var(--soft);

    box-shadow:
        0 0 0 1px #dbe8ff,
        0 20px 55px rgba(28, 76, 140, 0.08);
}


/* ================================
   TRUST / CREDENTIALS
================================ */

.trust {
    margin-top: 62px;

    padding: 22px 28px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 0;

    border: 1px solid var(--line);
    border-radius: 18px;

    background: var(--white);
}

.trust-item {
    min-height: 62px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 20px;

    border-right: 1px solid var(--line);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    padding-right: 0;
    border-right: 0;
}

.trust-logo {
    width: 62px;
    height: 50px;

    flex: 0 0 auto;

    object-fit: contain;
}

.trust strong {
    display: block;

    color: var(--navy);

    line-height: 1.3;
}

.trust small {
    color: var(--muted);
}


/* ================================
   GENERAL SECTIONS
================================ */

section {
    padding: 76px 0;
}

.section-head {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    margin-bottom: 34px;
}

.section-head h2,
.about h2 {
    margin: 8px 0;

    color: var(--navy);

    font-size: clamp(32px, 4vw, 48px);

    line-height: 1.1;
    letter-spacing: -0.025em;
}

.section-head p {
    max-width: 560px;

    margin: 0;

    color: var(--muted);
}


/* ================================
   ABOUT
================================ */

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(350px, 0.85fr);

    gap: clamp(50px, 7vw, 80px);

    align-items: center;
}

.about-grid p {
    color: var(--muted);
    font-size: 17px;
}

.stats {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 16px;
}

.stat {
    min-height: 115px;

    padding: 22px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--soft);

    border-left: 3px solid var(--blue);
    border-radius: 0 14px 14px 0;
}

.stat b {
    display: block;

    margin-bottom: 3px;

    color: var(--blue);

    font-size: 25px;
    line-height: 1.2;
}


/* ================================
   PROJECT CARDS
================================ */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: var(--radius);

    box-shadow:
        0 6px 20px rgba(20, 50, 90, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);

    border-color: #dce6f4;

    box-shadow: var(--shadow-card);
}

.card-visual {
    height: 205px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 28px;

    background:
        linear-gradient(
            145deg,
            #f4f8ff,
            #e6f0ff
        );
}

.visual-ui {
    width: 90%;
    height: 78%;

    padding: 14px;

    background: var(--white);

    border: 1px solid #cbd9ed;
    border-radius: 12px;

    box-shadow: var(--shadow);
}

.visual-ui::before,
.visual-ui::after {
    content: "";

    display: block;

    border-radius: 8px;

    background: #e8f0fd;
}

.visual-ui::before {
    width: 52%;
    height: 14px;

    margin-bottom: 14px;
}

.visual-ui::after {
    height: 55%;

    background:
        linear-gradient(
            90deg,
            #e7f0ff 35%,
            #cfe0ff 35% 65%,
            #edf4ff 65%
        );
}

.card-body {
    padding: 25px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.card h3 {
    margin: 0 0 13px;

    color: var(--navy);

    font-size: 21px;

    line-height: 1.3;
}

.card p {
    margin: 7px 0;

    color: var(--muted);
}

.text-link {
    display: inline-block;

    margin-top: auto;
    padding-top: 16px;

    color: var(--blue);

    font-weight: 750;
}

.text-link:hover {
    color: var(--blue-dark);
}


/* ================================
   ORGANIZATION LOGOS
================================ */

.logos {
    display: grid;

    grid-template-columns: repeat(6, 1fr);

    align-items: center;

    gap: 34px;

    padding: 30px 0 12px;
}

.logos img {
    width: 100%;
    height: 68px;

    object-fit: contain;

    /*
     * IMPORTANT:
     * No CSS filters, recoloring or opacity changes.
     * Original organization logo artwork is preserved.
     */
}


/* ================================
   EXPERTISE
================================ */

.expertise {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 16px;
}

.expert {
    min-height: 165px;

    padding: 25px 16px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: var(--white);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.expert:hover {
    transform: translateY(-3px);

    border-color: #dbe5f3;

    box-shadow:
        0 10px 26px rgba(20, 50, 90, 0.06);
}

.expert .ico {
    color: var(--blue);

    font-size: 28px;
    font-weight: 800;
}

.expert strong {
    display: block;

    margin: 10px 0 5px;

    color: var(--navy);
}

.expert small {
    color: var(--muted);

    line-height: 1.45;
}


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

.cta {
    padding: 36px 40px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

    background:
        linear-gradient(
            110deg,
            #f4f8ff,
            #e8f1ff
        );

    border: 1px solid #dce8fb;
    border-radius: 24px;
}

.cta h2 {
    margin: 0 0 5px;

    color: var(--navy);

    letter-spacing: -0.02em;
}

.cta p {
    margin: 0;

    color: var(--muted);
}


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

.footer {
    margin-top: 72px;

    padding: 36px 0;

    color: var(--muted);

    border-top: 1px solid var(--line);
}

.footer-grid {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 30px;
}

.footer-links {
    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}


/* ================================
   LEGAL PAGES
================================ */

.legal {
    max-width: 860px;

    margin: auto;

    padding: 76px 0;
}

.legal h1 {
    margin-top: 0;

    color: var(--navy);

    font-size: clamp(36px, 5vw, 46px);

    line-height: 1.1;
    letter-spacing: -0.03em;
}

.legal h2 {
    margin-top: 38px;

    color: var(--navy);
}

.legal p,
.legal li {
    color: #53647a;
}

.legal li {
    margin-bottom: 8px;
}


/* ================================
   PROJECT DETAIL PAGE
================================ */

.project-hero {
    padding: 78px 0 46px;
}

.project-hero h1 {
    max-width: 900px;

    margin-bottom: 22px;

    color: var(--navy);

    font-size: clamp(40px, 5vw, 64px);

    line-height: 1.05;
    letter-spacing: -0.04em;
}

.project-hero .lead {
    max-width: 780px;
}

.chips {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 28px;
}

.chip {
    padding: 9px 14px;

    background: var(--soft);

    border: 1px solid #dfe9f8;
    border-radius: 999px;

    color: #40536e;
}

.project-layout {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;
}

.panel {
    padding: 30px;

    background: var(--white);

    border: 1px solid var(--line);
    border-radius: 20px;
}

.panel h2 {
    margin-top: 0;

    color: var(--navy);
}

.panel p,
.panel li {
    color: var(--muted);
}


/* ================================
   PROJECT PROCESS
================================ */

.process {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 16px;
}

.step {
    padding: 24px;

    background: var(--soft);

    border-radius: 16px;
}

.step b {
    color: var(--blue);
}


/* ================================
   PROJECT APP MOCKUP
================================ */

.mock-app {
    padding: 28px;

    display: grid;

    grid-template-columns: 190px 1fr;

    gap: 20px;

    background: #eef5ff;

    border-radius: 22px;
}

.mock-side,
.mock-main {
    padding: 20px;

    background: var(--white);

    border: 1px solid #dbe5f2;
    border-radius: 14px;
}

.mock-side div {
    height: 12px;

    margin: 14px 0;

    background: #e7eef8;

    border-radius: 8px;
}

.journal-card {
    margin: 12px 0;

    padding: 16px;

    border: 1px solid #dbe5f2;
    border-radius: 12px;
}

.journal-card b {
    color: var(--navy);
}


/* ================================
   TABLET
================================ */

@media (max-width: 1000px) {

    .hero-grid {
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(43px, 6vw, 60px);
    }

    .trust {
        grid-template-columns: repeat(2, 1fr);

        gap: 20px;
    }

    .trust-item {
        border-right: 0;

        padding: 8px 15px;
    }

    .trust-item:nth-child(odd) {
        border-right: 1px solid var(--line);
    }

    .expertise {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ================================
   MOBILE / TABLET
================================ */

@media (max-width: 900px) {

    .links {
        display: none;
    }

    .links.open {
        position: absolute;

        top: 78px;
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 14px 24px 24px;

        background: var(--white);

        border-bottom: 1px solid var(--line);

        box-shadow:
            0 16px 30px rgba(20, 50, 90, 0.07);
    }

    .links.open a {
        padding: 12px 0;
    }

    .links.open .btn {
        margin-top: 10px;
    }

    .menu-btn {
        display: block;
    }

    .hero {
        padding-top: 52px;
    }

    .hero-grid {
        grid-template-columns: 1fr;

        gap: 38px;
    }

    .portrait-wrap {
        order: -1;
    }

    .portrait {
        width: min(310px, 75vw);

        border-width: 8px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero .lead {
        margin-inline: auto;
    }

    .hero .actions {
        justify-content: center;
    }

    .hero .eyebrow {
        text-align: center;
    }

    .about-grid,
    .project-layout {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .card {
        max-width: 680px;
        width: 100%;

        margin-inline: auto;
    }

    .card-visual {
        height: 260px;
    }

    .logos {
        grid-template-columns: repeat(3, 1fr);

        gap: 28px 34px;
    }

    .expertise {
        grid-template-columns: repeat(2, 1fr);
    }

    .process {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta,
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }

    .mock-app {
        grid-template-columns: 1fr;
    }

    .mock-side {
        display: none;
    }
}


/* ================================
   SMALL MOBILE
================================ */

@media (max-width: 560px) {

    .container {
        width: min(100% - 30px, var(--container));
    }

    .nav {
        height: 70px;
    }

    .brand {
        font-size: 19px;
    }

    .links.open {
        top: 70px;
    }

    .hero {
        padding: 38px 0 36px;
    }

    .hero-grid {
        gap: 30px;
    }

    .portrait {
        width: min(250px, 72vw);

        border-width: 7px;
    }

    .hero h1 {
        margin-top: 12px;

        font-size: clamp(39px, 12vw, 48px);

        line-height: 1.02;
    }

    .lead {
        font-size: 17px;

        line-height: 1.6;
    }

    .actions {
        gap: 10px;
    }

    .actions .btn {
        flex: 1 1 auto;
    }

    .trust {
        margin-top: 44px;

        grid-template-columns: 1fr;

        gap: 0;

        padding: 10px 20px;
    }

    .trust-item,
    .trust-item:nth-child(odd) {
        min-height: 78px;

        padding: 14px 0;

        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-item:last-child {
        border-bottom: 0;
    }

    section {
        padding: 56px 0;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;

        gap: 12px;

        margin-bottom: 26px;
    }

    .about-grid {
        gap: 34px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat {
        min-height: auto;
    }

    .card-visual {
        height: 210px;
    }

    .card-body {
        padding: 22px;
    }

    .logos {
        grid-template-columns: repeat(2, 1fr);

        gap: 30px;
    }

    .logos img {
        height: 60px;
    }

    .expertise {
        grid-template-columns: 1fr;
    }

    .expert {
        min-height: auto;

        padding: 22px 18px;
    }

    .process {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: 28px 24px;

        border-radius: 20px;
    }

    .cta .btn {
        width: 100%;
    }

    .footer {
        margin-top: 52px;
    }

    .footer-links {
        flex-direction: column;

        gap: 10px;
    }

    .legal {
        padding: 54px 0;
    }

    .legal h1 {
        font-size: 36px;
    }

    .project-hero {
        padding: 54px 0 34px;
    }

    .project-hero h1 {
        font-size: 40px;
    }

    .panel {
        padding: 24px;
    }

    .mock-app {
        padding: 18px;
    }
}


/* ================================
   ACCESSIBILITY
================================ */

a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(18, 103, 245, 0.28);
    outline-offset: 3px;
}


/* ================================
   REDUCED MOTION
================================ */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}