/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: #17202a;
    background: #ffffff;

    font-size: 16px;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
}

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

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


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #102a43;
    --navy-dark: #0a1d2d;
    --blue: #2d6a8a;
    --blue-light: #eaf3f7;

    --text: #17202a;
    --muted: #68737d;
    --border: #dbe2e7;

    --white: #ffffff;
    --off-white: #f7f9fa;

    --max-width: 1160px;
}


/* =========================================================
   LAYOUT
   ========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--max-width)
    );

    margin-left: auto;
    margin-right: auto;
}

.narrow {
    max-width: 850px;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    z-index: 100;

    color: var(--white);
}

.nav {
    min-height: 78px;

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

    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.logo {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;

    font-size: 13px;
}

.nav-links a {
    opacity: 0.82;

    transition:
        opacity 0.2s ease,
        color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: #b9dbe8;
}

.nav-links .nav-cv {
    padding: 8px 15px;

    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 3px;

    opacity: 1;
}


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

.hero {
    min-height: 720px;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(54, 113, 145, 0.34),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #0a1d2d 0%,
            #102a43 55%,
            #173b53 100%
        );

    padding-top: 78px;
}

.hero-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);

    gap: 90px;

    align-items: center;
}

.eyebrow,
.section-label {
    margin: 0 0 16px;

    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
}

.eyebrow {
    color: #8fc1d5;
}

.hero h1 {
    max-width: 700px;

    margin: 0;

    font-size: clamp(
        48px,
        6vw,
        76px
    );

    line-height: 0.98;
    letter-spacing: -3px;
    font-weight: 700;
}

.hero h1 span {
    display: block;
    color: #8fc1d5;
}

.hero-intro {
    max-width: 650px;

    margin: 28px 0 0;

    color: #d8e3e9;

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

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

    gap: 12px;

    margin-top: 35px;
}


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

.hero-portrait {
    position: relative;

    justify-self: end;

    width: min(
        100%,
        400px
    );
}

.portrait-frame {
    position: relative;

    width: 100%;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    background: #173b53;

    border:
        1px solid rgba(255,255,255,0.25);

    box-shadow:
        25px 25px 0 rgba(143,193,213,0.12);
}

.portrait-frame::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10,29,45,0.02) 45%,
            rgba(10,29,45,0.28) 100%
        );

    pointer-events: none;
}

.portrait-frame img {
    width: 100%;
    height: 100%;

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

.portrait-caption {
    display: flex;

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

    gap: 20px;

    margin-top: 14px;
}

.portrait-caption span {
    color: #8fa4b1;

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.portrait-caption strong {
    color: #ffffff;

    font-size: 12px;
}


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

.button {
    display: inline-flex;

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

    min-height: 45px;

    padding: 0 20px;

    border-radius: 3px;

    font-size: 13px;
    font-weight: 700;

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

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: var(--navy);
    background: var(--white);
}

.button-primary:hover {
    background: #e8f1f5;
}

.button-secondary {
    color: var(--white);

    border: 1px solid rgba(255,255,255,0.4);
}

.button-secondary:hover {
    border-color: var(--white);
}


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

.section {
    padding: 105px 0;
}

.section-light {
    background: var(--off-white);
}

.section-dark {
    color: var(--white);
    background: var(--navy);
}

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

.section h2,
.cta h2 {
    max-width: 760px;

    margin: 0;

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

    line-height: 1.08;
    letter-spacing: -1.5px;
}

.section-intro {
    max-width: 620px;

    margin: 24px 0 0;

    color: var(--muted);

    font-size: 17px;
    line-height: 1.7;
}

.section-label-light {
    color: #8fc1d5;
}


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

.about-text {
    margin-top: 38px;

    columns: 2;
    column-gap: 55px;
}

.about-text p {
    margin: 0 0 20px;

    color: #4f5b65;

    font-size: 16px;
    line-height: 1.75;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 0.65fr);

    gap: 80px;

    align-items: end;

    margin-bottom: 55px;
}

.section-heading-text {
    margin: 0;

    color: #aebdc7;

    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   EXPERIENCE
   ========================================================= */

.experience-grid {
    display: grid;

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

    gap: 1px;

    background: rgba(255,255,255,0.15);
}

.experience-card {
    min-height: 330px;

    padding: 32px;

    background: #102a43;
}

.card-number {
    margin-bottom: 55px;

    color: #6e9db1;

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

    letter-spacing: 1px;
}

.experience-card h3 {
    margin: 0 0 15px;

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

.experience-card p {
    margin: 0;

    color: #b9c7d0;

    font-size: 14px;
    line-height: 1.7;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 25px;
}

.card-tags span {
    padding: 4px 8px;

    color: #a7c8d6;

    border: 1px solid rgba(143,193,213,0.25);

    font-size: 10px;
}


/* =========================================================
   TECHNOLOGY
   ========================================================= */

.technology-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 100px;

    align-items: center;
}

.text-link {
    display: inline-block;

    margin-top: 28px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;

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

    padding-bottom: 3px;
}

.project-card {
    padding: 38px;

    color: var(--white);

    background:
        linear-gradient(
            145deg,
            #102a43,
            #173b53
        );

    box-shadow:
        0 20px 50px rgba(16,42,67,0.12);
}

.project-card-top {
    display: flex;
    justify-content: space-between;

    margin-bottom: 50px;

    color: #8fc1d5;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.5px;
}

.project-card h3 {
    max-width: 430px;

    margin: 0 0 18px;

    font-size: 32px;
    line-height: 1.1;
}

.project-card p {
    margin: 0;

    color: #bdccd4;

    font-size: 14px;
    line-height: 1.7;
}

.technology-list {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 30px;
}

.technology-list span {
    padding: 5px 9px;

    color: #c2dce7;

    border: 1px solid rgba(143,193,213,0.25);

    font-size: 10px;
}


/* =========================================================
   INTERNATIONAL
   ========================================================= */

.international {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap: 100px;

    align-items: center;
}

.international-content > p {
    margin: 0;

    color: #d9e8ed;

    font-size: 17px;
    line-height: 1.75;
}

.languages {
    display: grid;

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

    gap: 25px;

    margin-top: 38px;

    padding-top: 25px;

    border-top: 1px solid rgba(255,255,255,0.25);
}

.languages div {
    display: flex;
    flex-direction: column;
}

.languages strong {
    font-size: 14px;
}

.languages span {
    margin-top: 3px;

    color: #c0d4dc;

    font-size: 11px;
}


/* =========================================================
   BEYOND WORK
   ========================================================= */

.beyond-grid {
    display: grid;

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

    gap: 1px;

    margin-top: 55px;

    background: var(--border);
}

.beyond-item {
    padding: 32px;

    background: var(--white);
}

.beyond-icon {
    display: block;

    margin-bottom: 50px;

    color: #9aabb5;

    font-size: 11px;
    font-weight: 700;
}

.beyond-item h3 {
    margin: 0 0 12px;

    color: var(--navy);

    font-size: 20px;
}

.beyond-item p {
    margin: 0;

    color: var(--muted);

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


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

.cta {
    padding: 85px 0;

    color: var(--white);

    background: var(--navy-dark);
}

.cta-inner {
    display: flex;

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

    gap: 50px;
}

.cta h2 {
    font-size: clamp(30px, 4vw, 45px);
}

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

    gap: 10px;
}

.button-light {
    color: var(--navy);
    background: var(--white);
}

.button-outline-light {
    color: var(--white);

    border: 1px solid rgba(255,255,255,0.4);
}


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

.site-footer {
    padding: 30px 0;

    color: #aeb9c0;

    background: #071722;

    font-size: 11px;
}

.footer-inner {
    display: grid;

    grid-template-columns:
        1fr
        auto
        auto;

    gap: 40px;

    align-items: center;
}

.footer-inner strong {
    display: block;

    color: var(--white);

    font-size: 13px;
}

.footer-inner > div:first-child span {
    display: block;

    margin-top: 2px;
}

.footer-links {
    display: flex;

    gap: 22px;
}

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

.copyright {
    color: #71818b;
}


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

@media (max-width: 900px) {

    .hero {
        min-height: auto;

        padding-top: 130px;
        padding-bottom: 85px;
    }

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

        gap: 55px;
    }

    .hero-portrait {
        justify-self: start;

        width: min(100%, 390px);
    }

    .section-heading {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .technology-grid {
        gap: 55px;
    }

    .international {
        gap: 55px;
    }

}


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

@media (max-width: 700px) {

    .container {
        width: calc(100% - 36px);
    }

    .nav {
        min-height: 68px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 14px;
        font-size: 11px;
    }

    .nav-links a:not(.nav-cv) {
        display: none;
    }

    .nav-links .nav-cv {
        padding: 7px 12px;
    }


    /* HERO */

    .hero {
        padding-top: 115px;
        padding-bottom: 65px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero h1 {
        font-size: clamp(
            43px,
            13vw,
            62px
        );

        letter-spacing: -2.5px;
    }

    .hero-intro {
        margin-top: 22px;
        font-size: 16px;
    }

    .hero-actions {
        margin-top: 28px;

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

    .hero-actions .button {
        width: 100%;
    }

    .hero-portrait {
        width: min(
            100%,
            360px
        );

        margin: 0 auto;
    }

    .portrait-caption {
        align-items: flex-start;
        flex-direction: column;

        gap: 4px;
    }

    .portrait-frame {
        box-shadow:
            15px 15px 0 rgba(143,193,213,0.12);
    }


    /* SECTIONS */

    .section {
        padding: 72px 0;
    }

    .section h2,
    .cta h2 {
        font-size: 34px;
        letter-spacing: -1px;
    }


    /* ABOUT */

    .about-text {
        columns: 1;
        margin-top: 25px;
    }

    .about-text p {
        font-size: 15px;
    }


    /* EXPERIENCE */

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

    .experience-card {
        min-height: auto;
        padding: 28px;
    }

    .card-number {
        margin-bottom: 30px;
    }


    /* TECHNOLOGY */

    .technology-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .project-card {
        padding: 28px;
    }

    .project-card-top {
        margin-bottom: 35px;
    }

    .project-card h3 {
        font-size: 28px;
    }


    /* INTERNATIONAL */

    .international {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .languages {
        grid-template-columns: 1fr;
        gap: 15px;
    }


    /* BEYOND */

    .beyond-grid {
        grid-template-columns: 1fr;
        margin-top: 35px;
    }

    .beyond-item {
        padding: 28px;
    }

    .beyond-icon {
        margin-bottom: 25px;
    }


    /* CTA */

    .cta {
        padding: 65px 0;
    }

    .cta-inner {
        flex-direction: column;

        align-items: flex-start;

        gap: 30px;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .button {
        width: 100%;
    }


    /* FOOTER */

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .footer-links {
        flex-wrap: wrap;
    }

}


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

@media (max-width: 420px) {

    .container {
        width: calc(100% - 30px);
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero-portrait {
        width: 100%;
    }

    .button {
        min-height: 43px;
    }

}


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

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }

}
