.main-page {
    --main-pad: max(24px, calc((100% - var(--container)) / 2));
    padding-top: 80px;
    background: #ffffff;
    color: #1a1a1a;
}

.main-page > section {
    padding-right: var(--main-pad);
    padding-left: var(--main-pad);
}

.main-page > .hero {
    position: relative;
    height: 760px;
    overflow-x: clip;
    padding-top: 120px;
    padding-bottom: 0;
    padding-inline: var(--main-pad);
    background: linear-gradient(270deg, #e6e6e6 0%, #ffffff 65%);
}

.hero-grid {
    position: relative;
    isolation: isolate;
    height: 100%;
}

.hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    width: 519px;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

.hero [data-hero-split] {
    --hero-split-x: 0px;
    transform: translate3d(var(--hero-split-x), 0, 0);
    will-change: transform;
}

.product-mark {
    width: 258px;
    height: auto;
}

.hero h1 {
    margin: 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.hero p,
.about-copy p {
    margin: 0;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
}

.main-button {
    display: inline-flex;
    min-height: 46px;
    padding: 11px 36px;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background: #00305b;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

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

.scanner {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 499px;
    height: 640px;
    margin: 0;
    overflow: hidden;
    filter: drop-shadow(16px 25px 37.1px rgba(0, 0, 0, .25));
    pointer-events: none;
}

.scanner img {
    --scanner-image-opacity: 1;
    display: block;
    width: 117.81%;
    height: 126.09%;
    object-fit: cover;
    object-position: left top;
    opacity: var(--scanner-image-opacity);
    transform: translate(-8.8%, -2.63%);
}

html.main-hero-pending .main-page .hero-copy > .product-mark,
html.main-hero-pending .main-page .hero-copy > h1,
html.main-hero-pending .main-page .hero-copy > p,
html.main-hero-pending .main-page .hero-copy > .main-button {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
}

html.main-hero-pending .main-page .scanner img {
    opacity: 0;
    transform: translate(-8.8%, -2.63%) scale(1.02);
}

html.main-hero-entrance .main-page .hero-copy > .product-mark,
html.main-hero-entrance .main-page .hero-copy > h1,
html.main-hero-entrance .main-page .hero-copy > p,
html.main-hero-entrance .main-page .hero-copy > .main-button {
    animation: main-hero-content-in .55s cubic-bezier(.2, .65, .3, 1) backwards;
}

html.main-hero-entrance .main-page .hero-copy > h1 {
    animation-delay: .12s;
}

html.main-hero-entrance .main-page .hero-copy > p {
    animation-delay: .24s;
}

html.main-hero-entrance .main-page .hero-copy > .main-button {
    animation-delay: .36s;
}

html.main-hero-entrance .main-page .scanner img {
    animation: main-hero-product-in .9s cubic-bezier(.2, .65, .3, 1) backwards;
}

@keyframes main-hero-content-in {
    from {
        opacity: 0;
        transform: translate3d(0, 18px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes main-hero-product-in {
    from {
        opacity: 0;
        transform: translate(-8.8%, -2.63%) scale(1.02);
    }

    to {
        opacity: var(--scanner-image-opacity, 1);
        transform: translate(-8.8%, -2.63%) scale(1);
    }
}

.welcome {
    display: flex;
    padding-top: 100px;
    padding-bottom: 100px;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    background: #e6e6e6;
}

.welcome h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.5;
}

.welcome p {
    max-width: 1296px;
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1.5;
}

html.main-welcome-boot-pending .main-page > .welcome h2,
html.main-welcome-boot-pending .main-page > .welcome p {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.scroll-reveal-enabled .welcome h2,
.scroll-reveal-enabled .welcome p {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity .6s ease, transform .6s cubic-bezier(.22, .7, .25, 1);
    will-change: opacity, transform;
}

.scroll-reveal-enabled .welcome.is-revealed p {
    transition-delay: .15s;
}

.scroll-reveal-enabled .welcome.is-revealed h2,
.scroll-reveal-enabled .welcome.is-revealed p {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.scroll-reveal-enabled .welcome.is-waiting-for-main-hero h2,
.scroll-reveal-enabled .welcome.is-waiting-for-main-hero p {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.about {
    padding-top: 120px;
    padding-bottom: 120px;
}

.about-grid {
    display: flex;
    max-width: var(--container);
    margin-inline: auto;
    align-items: flex-start;
    gap: 111px;
}

.about-image {
    width: 50%;
    max-width: 648px;
    height: auto;
    aspect-ratio: 648 / 420;
    overflow: hidden;
    border-radius: 10px;
    flex: 0 1 50%;
    transform: scale(1);
    transition: transform .7s cubic-bezier(.2, .65, .3, 1);
    will-change: transform;
}

.about-image:hover {
    transform: none;
}

.about-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    filter: grayscale(100%);
    transform: scale(1);
    transition: filter .7s ease, transform .7s cubic-bezier(.2, .65, .3, 1);
    will-change: filter, transform;
}

.about-image:hover img {
    filter: grayscale(0);
    transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
    .about-image,
    .about-image img {
        transition: filter .15s ease;
        will-change: auto;
    }

    .about-image:hover,
    .about-image:hover img {
        transform: none;
    }
}

.about-copy {
    display: flex;
    width: 519px;
    min-height: 268px;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

.scroll-reveal-enabled .about .about-image,
.scroll-reveal-enabled .about .about-copy h2,
.scroll-reveal-enabled .about .about-copy p,
.scroll-reveal-enabled .about .about-copy .main-button {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .7, .25, 1);
    will-change: opacity, transform;
}

.scroll-reveal-enabled .about .about-copy.is-revealed p {
    transition-delay: .15s;
}

.scroll-reveal-enabled .about .about-copy.is-revealed .main-button {
    transition-delay: .3s;
}

.scroll-reveal-enabled .about .about-image.is-revealed,
.scroll-reveal-enabled .about .about-copy.is-revealed h2,
.scroll-reveal-enabled .about .about-copy.is-revealed p,
.scroll-reveal-enabled .about .about-copy.is-revealed .main-button {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-enabled .welcome h2,
    .scroll-reveal-enabled .welcome p,
    .scroll-reveal-enabled .welcome.is-waiting-for-main-hero h2,
    .scroll-reveal-enabled .welcome.is-waiting-for-main-hero p,
    .scroll-reveal-enabled .about .about-image,
    .scroll-reveal-enabled .about .about-copy h2,
    .scroll-reveal-enabled .about .about-copy p,
    .scroll-reveal-enabled .about .about-copy .main-button {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

.about-copy h2,
.vision-copy h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
}

.vision {
    position: relative;
    display: grid;
    min-height: 698px;
    padding-top: 120px;
    padding-bottom: 120px;
    grid-template-columns: 519px 704px;
    align-items: flex-start;
    gap: 73px;
    overflow: hidden;
    background:
        linear-gradient(257.47deg, rgba(0, 0, 0, .66) 18.34%, rgba(240, 240, 240, .53) 53.53%),
        url("/img/main/visionBG.png") center / cover no-repeat;
}

.vision-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
}

/* Sections rise into view once their content reaches the viewport. */
.scroll-reveal-enabled .rise-reveal {
    opacity: 0;
    transform: translate3d(0, 56px, 0);
    transition: opacity .8s ease, transform .8s cubic-bezier(.22, .7, .25, 1);
    will-change: opacity, transform;
}

.scroll-reveal-enabled .rise-reveal.rise-reveal--delay-1 {
    transition-delay: .14s;
}

.scroll-reveal-enabled .rise-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal-enabled .rise-reveal {
        opacity: 1;
        transform: none;
        transition: none;
        will-change: auto;
    }
}

.vision-copy h2 {
    color: #ffffff;
}

.vision .main-button {
    padding: 11px 36px;
    background: #004fbb;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.vision-list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.vision-list article {
    display: flex;
    min-height: 136px;
    padding: 24px;
    align-items: center;
    gap: 26px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .7);
    backdrop-filter: blur(9.75px);
}

.vision-list i {
    display: grid;
    width: 84px;
    height: 84px;
    flex: 0 0 84px;
    place-items: center;
    border-radius: 50%;
    background: #00305b;
    color: #ffffff;
    font-size: 36px;
}

.vision-list .vision-globe {
    font-size: 48px;
}

.vision-list p {
    flex: 1;
    margin: 0;
    color: #1a1a1a;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    word-break: keep-all;
}

.metrics {
    padding-top: 100px;
    padding-bottom: 100px;
    background: #1a1a1a;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.metric-grid div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.metric-grid strong {
    display: block;
    height: 76px;
    color: #ffffff;
    font-family: var(--font-page);
    font-size: 64px;
    font-weight: 700;
    line-height: 76px;
    letter-spacing: -.5px;
    white-space: nowrap;
}

.metric-grid strong .count {
    display: inline;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.metric-grid > div > span {
    color: #cccccc;
    font-family: var(--font-page);
    font-size: 24px;
    font-weight: 700;
    line-height: 29px;
    letter-spacing: -.5px;
}

.listing {
    padding-top: 160px;
    padding-bottom: 160px;
}

.guide {
    background: #f2f2f2;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
}

.section-heading em {
    display: block;
    margin-bottom: 24px;
    color: #004fbb;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 1.5;
}

.section-heading h2 {
    margin: 0;
    color: #1a1a1a;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.5;
}

.round-arrow {
    display: grid;
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    place-items: center;
    border-radius: 50%;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 30px;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease;
}

.round-arrow:hover,
.round-arrow:focus-visible {
    background: #00305b;
    transform: translateX(4px);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}

.news-cards {
    --marquee-loop-distance: 0px;
    --marquee-loop-duration: 60s;
    display: flex;
    width: max-content;
    gap: 36px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    will-change: transform;
    animation: content-marquee-scroll var(--marquee-loop-duration) linear infinite;
}

.news-marquee {
    overflow: hidden;
}

.guide-marquee {
    overflow: visible;
}

.guide-marquee.is-scrollable {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.guide-marquee.is-scrollable::-webkit-scrollbar {
    display: none;
}

.guide-marquee.is-scrollable.is-animated {
    overflow: hidden;
}

.guide-marquee.is-scrollable .guide-cards {
    --marquee-loop-distance: 0px;
    --marquee-loop-duration: 60s;
    display: flex;
    width: max-content;
    gap: 36px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    will-change: transform;
    animation: content-marquee-scroll var(--marquee-loop-duration) linear infinite;
}

.news-marquee:hover .news-cards,
.news-marquee:focus-within .news-cards,
.guide-marquee.is-scrollable:hover .guide-cards,
.guide-marquee.is-scrollable:focus-within .guide-cards {
    animation-play-state: paused;
}

.news-marquee .news-cards .content-card,
.guide-marquee.is-scrollable .guide-cards .content-card {
    flex: 0 0 408px;
    scroll-snap-align: none;
}

.news-cards .content-card h3 {
    letter-spacing: -.5px;
}

.news-cards .content-card time {
    font-size: 20px;
}

@keyframes content-marquee-scroll {
    to {
        transform: translate3d(calc(-1 * var(--marquee-loop-distance)), 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-marquee,
    .guide-marquee.is-scrollable {
        overflow-x: auto;
        scrollbar-width: none;
    }

    .news-marquee::-webkit-scrollbar,
    .guide-marquee.is-scrollable::-webkit-scrollbar {
        display: none;
    }

    .news-cards,
    .guide-marquee.is-scrollable .guide-cards {
        animation: none;
    }
}

.content-card {
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.content-card img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.content-card:hover img,
.content-card:focus-visible img {
    box-shadow: 0 14px 26px rgba(0, 0, 0, .14);
    transform: translateY(-6px);
}

.content-card h3 {
    margin: 16px 0 4px;
    color: #1a1a1a;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
}

.content-card time {
    color: #999999;
    font-size: 18px;
    line-height: 1.5;
}

@media (max-width: 1508px) {
    .hero-copy {
        z-index: 2;
    }

    .hero-copy h1, .hero-copy p{
        color: black;
    }

    .scanner {
        z-index: 1;
    }

    .scanner img {
        --scanner-image-opacity: .3;
    }

    .vision {
        grid-template-columns: minmax(0, .75fr) minmax(0, 1fr);
        gap: 64px;
    }

    .vision-copy,
    .vision-list {
        min-width: 0;
    }

    .vision-list article {
        min-width: 0;
    }
}

@media (max-width: 1200px) {
    .about-grid,
    .vision {
        gap: 64px;
    }

    .about-image {
        width: 50%;
        flex-basis: 50%;
    }

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

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 36px;
    }
}

@media (max-width: 1220px) {
    .about-grid {
        display: block;
    }

    .about-image {
        width: 100%;
        margin-bottom: 32px;
    }

    .about-copy {
        width: 100%;
    }
}

@media (max-width: 1100px) and (min-width: 901px) {
    .main-page > .hero {
        padding-inline: 32px;
    }
}

@media (max-width: 900px) {
    .hero [data-hero-split] {
        transform: none;
        will-change: auto;
    }

    .main-page {
        --main-pad: 24px;
        /*padding-top: 68px;*/
    }

    .main-page > section {
        padding-right: 24px;
        padding-left: 24px;
    }

    .scanner {
        right: 0;
    }

    .hero-copy {
        width: min(519px, 100%);
        height: auto;
    }

    .welcome,
    .about,
    .vision,
    .metrics,
    .listing {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .welcome h2,
    .about-copy h2,
    .vision-copy h2,
    .section-heading h2 {
        font-size: 28px;
    }

    .metric-grid {
        gap: 38px 22px;
    }

    .metric-grid strong {
        height: 50px;
        font-size: 42px;
        line-height: 50px;
    }

    .metric-grid > div > span {
        font-size: 17px;
        line-height: 1.35;
    }

    .section-heading {
        align-items: flex-end;
        margin-bottom: 32px;
    }

    .section-heading em {
        margin-bottom: 14px;
        font-size: 18px;
    }

    .round-arrow {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        font-size: 22px;
    }

    .cards {
        display: flex;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 8px;
        scroll-snap-type: x mandatory;
    }

    .cards .content-card,
    .news-cards .content-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .news-marquee .news-cards {
        gap: 18px;
        overflow: visible;
        padding-bottom: 0;
    }

    .guide-marquee.is-scrollable .guide-cards {
        gap: 18px;
        overflow: visible;
        padding-bottom: 0;
    }

    .news-marquee .news-cards .content-card,
    .guide-marquee.is-scrollable .guide-cards .content-card {
        flex-basis: min(82vw, 408px);
        scroll-snap-align: none;
    }

    .content-card img {
        height: 220px;
    }

    .content-card h3 {
        font-size: 17px;
    }

    .content-card time {
        font-size: 15px;
    }
}

@media (max-width: 562px) {
    .scanner {
        left: 0;
        width: min(499px, 100%);
        height: auto;
        aspect-ratio: 499 / 640;
    }

    .metric-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}


@media (max-width: 430px) {
    .product-mark {
        width: min(258px, 70vw);
    }

    .hero-copy {
        gap: 28px;
    }

    .main-button {
        padding-right: 24px;
        padding-left: 24px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .main-page > .hero {
        padding-inline: 20px;
    }
}
