:root {
    --navy: #001435;
    --navy-2: #04375d;
    --navy-3: #054466;
    --blue: #188ece;
    --blue-light: #429ffc;
    --ink: #25282b;
    --muted: #5d6974;
    --paper: #ffffff;
    --mist: #f2f4f6;
    --line: #dce3e8;
    --red: #e3002b;
    --shadow: 0 24px 70px rgba(0, 20, 53, 0.14);
    --container: 1300px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Avenir", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--mist);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

p {
    margin: 0;
    font-size: 17px;
    line-height: 1.78;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy-3);
    font-weight: 700;
    letter-spacing: -0.035em;
}

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

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 18px;
    color: var(--navy);
    background: var(--paper);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* NAVBAR */
.paySoftNav {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    padding: 25px 0;
    color: var(--paper);
    width: 100%;
}

.nav-inner {
    display: flex;
    align-items: center;
    min-height: 52px;
}

.navbar-brand {
    position: relative;
    z-index: 22;
    flex: 0 0 auto;
}

.navbar-brand img {
    width: 176px;
    height: auto;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    margin: 0 28px 0 auto;
    padding: 0;
    list-style: none;
}

.nav-link {
    position: relative;
    display: inline-block;
    padding: 10px 0;
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .035em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--blue-light);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .24s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

/* LANGUAGE DROPDOWN */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: 10px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--paper);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    font-family: inherit;
}

.lang-btn::after {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.2s;
}

.lang-dropdown.is-open .lang-btn::after {
    transform: rotate(225deg) translateY(0px);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--paper);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    min-width: 60px;
    z-index: 100;
    text-align: center;
}

.lang-dropdown.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: block;
    padding: 6px 16px;
    color: var(--navy-3);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.lang-menu li a:hover,
.lang-menu li a.active {
    color: var(--blue);
    background: var(--mist);
}

.menu-toggle {
    display: none;
    position: relative;
    z-index: 22;
    width: 46px;
    height: 44px;
    margin-left: auto;
    padding: 10px;
    border: 0;
    color: var(--paper);
    background: transparent;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px 0;
    content: "";
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

/* HERO */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding: 180px 0 92px;
    color: var(--paper);
    background: radial-gradient(circle at 77% 28%, rgba(24, 142, 206, .2), transparent 25%), linear-gradient(135deg, var(--navy) 0%, #032b50 100%);
}

.hero::before {
    position: absolute;
    top: 122px;
    right: -62px;
    width: 280px;
    height: 280px;
    content: "";
    opacity: .42;
    background-image: radial-gradient(rgba(255, 255, 255, .55) 1.3px, transparent 1.3px);
    background-size: 14px 14px;
    transform: rotate(12deg);
}

.hero::after {
    position: absolute;
    bottom: -70px;
    left: -72px;
    width: 220px;
    height: 220px;
    content: "";
    border: 44px solid rgba(24, 142, 206, .18);
    transform: rotate(45deg);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-content {
    width: 100%;
    max-width: 900px;
    text-align: left;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 0 28px;
}

.hero-image::before {
    position: absolute;
    top: -2px;
    left: 4px;
    width: 88px;
    height: 88px;
    content: "";
    border: 16px solid rgba(66, 159, 252, .68);
    transform: rotate(45deg);
}

.hero-image img {
    width: min(100%, 600px);
    height: auto;
    border: 8px solid rgba(255, 255, 255, .96);
    border-radius: 8px;
    box-shadow: 0 35px 80px rgba(0, 0, 0, .34);
    position: relative;
    z-index: 3;
    transform: rotate(1deg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 27px;
    color: #9dd7f6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    justify-content: flex-start;
}

.eyebrow::before {
    width: 28px;
    height: 3px;
    content: "";
    background: var(--blue-light);
}

.hero h1 {
    color: var(--paper);
    font-size: clamp(40px, 4.5vw, 70px);
    line-height: .98;
    margin: 0;
    text-align: left;
}

.hero h1 span {
    display: block;
    color: var(--blue-light);
}

.hero-copy {
    margin-top: 31px;
    color: #d8e4ec;
    font-size: 19px;
    line-height: 1.65;
    margin: 31px 0 0;
    text-align: left;
}

/* BUTTONS */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    margin-top: 38px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.button::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

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

.button-primary:hover,
.button-primary:focus-visible {
    color: var(--paper);
    border-color: var(--blue);
    background: var(--blue);
}

.button-blue {
    color: var(--paper);
    background: var(--blue);
    border-color: var(--blue);
}

.button-blue:hover,
.button-blue:focus-visible {
    background: var(--navy-3);
    border-color: var(--navy-3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 20px;
}

/* SECTIONS */
.section {
    position: relative;
    padding: 120px 0;
}

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

.section-mist {
    background: var(--mist);
}

.section-kicker {
    display: block;
    margin-bottom: 21px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(36px, 4vw, 55px);
    line-height: 1.08;
}

.section-intro {
    max-width: 720px;
    margin-top: 25px;
    color: var(--muted);
}

/* STORY GRID */
.story-grid {
    display: grid;
    grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
    gap: 100px;
    align-items: start;
}

.story-heading {
    position: sticky;
    top: 40px;
}

.story-heading .section-title {
    font-size: clamp(36px, 3.7vw, 54px);
}

.story-heading::after {
    display: block;
    width: 42px;
    height: 42px;
    margin-top: 42px;
    content: "";
    border: 11px solid var(--blue-light);
    transform: rotate(45deg);
}

.story-copy {
    padding-top: 7px;
}

.story-copy p+p {
    margin-top: 27px;
}

.story-copy .lead {
    color: var(--navy-3);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.6;
}

/* TABS */
.criteria-heading {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: end;
    margin-bottom: 30px;
}

.criteria-heading .section-intro {
    max-width: 540px;
    margin-top: 0;
}

.tabs-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}

.tabs-menu {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-button {
    background: var(--blue);
    border: none;
    padding: 22px 25px;
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: var(--paper);
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.tab-button:hover {
    background: var(--blue-light);
}

.tab-button.active {
    background: var(--navy-2);
    box-shadow: 0 10px 30px rgba(0, 20, 53, .15);
}

.tab-button.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--blue-light);
}

.tab-content {
    display: none;
    padding: 45px;
    background: radial-gradient(circle at 77% 28%, rgba(24, 142, 206, .2), transparent 25%), linear-gradient(135deg, var(--navy) 0%, #032b50 100%);
    border-radius: 8px;
    box-shadow: var(--shadow);
    position: relative;
    min-height: 250px;
    color: var(--paper);
    overflow: hidden;
}

.tab-content.active {
    display: block;
    animation: fadeEffect 0.4s;
}

.tab-content h3 {
    font-size: 26px;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--paper);
}

.tab-content p {
    color: #d8e4ec;
    font-size: 16px;
    line-height: 1.72;
    margin: 0;
    position: relative;
    z-index: 2;
}

.tab-content::after {
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 120px;
    height: 120px;
    content: "";
    border: 24px solid rgba(255, 255, 255, 0.05);
    transform: rotate(45deg);
    z-index: 1;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CLOSING */
.closing {
    overflow: hidden;
    padding: 94px 0;
    color: var(--paper);
    background: var(--navy-2);
    position: relative;
}

.closing::before {
    position: absolute;
    top: -80px;
    right: 7%;
    width: 220px;
    height: 220px;
    content: "";
    opacity: .35;
    background-image: radial-gradient(rgba(255, 255, 255, .75) 1.2px, transparent 1.2px);
    background-size: 13px 13px;
    transform: rotate(11deg);
}

.closing-inner {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 70px;
    align-items: center;
}

.closing h2 {
    max-width: 760px;
    color: var(--paper);
    font-size: clamp(36px, 4.2vw, 56px);
    line-height: 1.08;
}

.closing p {
    max-width: 670px;
    margin-top: 22px;
    color: #d8e4ec;
}

.closing .button {
    flex: 0 0 auto;
    margin-top: 0;
}

/* FOOTER */
.footerWidgets {
    color: var(--paper);
    background: #054371;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.footerLinks {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 54px;
    padding: 64px max(5vw, 42px) 64px max(calc((100vw - var(--container)) / 2), 24px);
    background: #054371;
}

.footerSocial {
    margin-top: 0;
    padding: 64px max(calc((100vw - var(--container)) / 2), 48px) 64px 58px;
    background: #054371;
}

.footerLinks h2,
.footerSocial h2 {
    margin-bottom: 25px;
    color: var(--paper);
    font-size: 20px;
    letter-spacing: 0;
}

.footerLinks ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footerLinks a,
.footerLinks p,
.footerSocial p,
.footerSocial a {
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.8;
    text-decoration: none;
}

.footerLinks a,
.footerSocial a {
    display: inline-block;
    margin-bottom: 5px;
}

.footerSocial a {
    display: block;
}

.footerLinks a:hover,
.footerSocial a:hover {
    color: var(--paper);
    text-decoration: underline;
}

.footerSocial img {
    width: 176px;
    margin-bottom: 27px;
}

.footer-empresa {
    display: grid;
    justify-content: center;
    justify-items: start;
}

.footer-bottom {
    padding: 40px 0 20px;
    color: var(--paper);
    background: #04375D;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.funding-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.funding-logos img {
    max-height: 45px;
    width: auto;
    display: block;
}

.footer-bottom p {
    font-size: 13px;
    text-align: center;
    margin: 0;
}

/* SCROLL TO TOP */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background-color: var(--blue, #188ece);
    color: var(--paper, #ffffff);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 20, 53, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
    background-color: var(--navy-3, #054466);
    transform: translateY(0) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 20, 53, 0.25);
}

.scroll-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 1050px) {
    .story-grid {
        gap: 56px;
    }
}

@media (max-width: 850px) {
    .container {
        width: min(calc(100% - 36px), var(--container));
    }

    .menu-toggle {
        display: block;
    }

    .navbar-nav,
    .lang-dropdown {
        display: none;
    }

    .nav-inner.is-open .navbar-nav {
        position: fixed;
        inset: 0;
        z-index: 21;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 26px;
        margin: 0;
        padding: 110px 28px 50px;
        background: rgba(0, 20, 53, .98);
    }

    .nav-inner.is-open .nav-link {
        font-size: 20px;
    }

    .nav-inner.is-open .menu-toggle span {
        opacity: 0;
    }

    .nav-inner.is-open .menu-toggle::before {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-inner.is-open .menu-toggle::after {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding-top: 130px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        width: min(520px, calc(100% - 20px));
        margin: 20px auto 0;
        padding-left: 18px;
    }

    .hero-image img {
        width: 100%;
    }

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

    .section {
        padding: 90px 0;
    }

    .story-heading {
        position: static;
    }

    .story-heading::after {
        display: none;
    }

    .criteria-heading {
        display: block;
        margin-bottom: 20px;
    }

    .tabs-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tabs-menu {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: none;
    }

    .tabs-menu::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        padding: 15px 20px;
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 15px;
    }

    .tab-button.active::before {
        width: 100%;
        height: 4px;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
    }

    .tab-content {
        padding: 30px;
        min-height: auto;
    }

    .closing-inner {
        display: block;
    }

    .closing .button {
        margin-top: 34px;
    }

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

    .footerLinks,
    .footerSocial {
        padding: 55px 24px;
    }

    .footerSocial {
        margin-top: 0;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(43px, 13vw, 60px);
    }

    .section-title,
    .story-heading .section-title {
        font-size: 36px;
    }

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

    .footer-empresa {
        justify-content: start;
        justify-items: start;
        width: 100%;
        text-align: left;
    }

    .footer-empresa ul {
        width: 100%;
        text-align: left;
    }

    .funding-logos {
        flex-direction: column;
        gap: 20px;
    }
}

/* JOBS */
.jobs-status {
    margin-top: 50px;
    color: var(--muted);
    font-weight: 600;
}

.jobs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
    text-align: left;
}

.jobs-list:empty {
    display: none;
}

.job-card {
    display: flex;
    flex-direction: column;
    padding: 32px 30px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--blue-light);
    box-shadow: var(--shadow);
}

.job-card h3 {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.job-card-meta {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.job-card-meta strong {
    color: var(--navy-3);
}

.job-card .button {
    align-self: flex-start;
    margin-top: auto;
}

.job-card-meta+.button {
    margin-top: 28px;
}

@media (max-width: 991px) {
    .jobs-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .jobs-list {
        grid-template-columns: 1fr;
    }

    .job-card {
        padding: 26px 22px;
    }
}