@view-transition {navigation: auto;}
*, ::after, ::before {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 18px; scroll-behavior: smooth;}
body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    font-size: 0.95rem; 
    font-weight: 400; 
    line-height: 1.5; 
    color: rgb(28,28,28); 
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a {
    color: rgb(28,28,28);
    text-decoration-color: rgba(6, 16, 60, 0.8);
    text-underline-offset: 0.15rem;
    transition: 0.2s all ease-in-out;
}
a:hover {color: rgb(161, 165, 170);}
a[href^="mailto:"] {text-decoration: none;}
p {margin-bottom: 1.6em;}
p:last-child {margin-bottom: 0;}
img {max-width: 100%; display: block;}
h1 {font-size: 3rem; font-weight: 400; line-height: 1; margin-bottom: 1rem;}

h2 {
    font-size: 1.35rem;
    font-family: 'Sometype Mono', monospace; 
    font-weight: 400;   
    text-transform: uppercase;
    border-bottom: 1px solid rgba(0,0,0,0.4);
    font-weight: normal;
    margin-bottom: 2rem;
    padding-bottom: 0.4rem;
    letter-spacing: 0.025em;
    margin-top: 3rem;
}
h2:first-child {margin-top: 0;}
main ul {
    list-style: none;
    position: relative;
    line-height: 2;
    margin-bottom: 1.6em;
}
main ul + h2 {margin-top: 6rem;}
main ul:not(.tabs-nav) li {
    padding: 0 0 0 1.1rem;
}
main ul:not(.tabs-nav) li::before {
    content: '>';
    display: block;
    position: absolute;
    margin-left: -1.1rem;
}
h3 {font-size: 2rem; font-weight: 600; line-height: 1.2; margin-block: 4rem 1.5rem;}
hr {border: none; border-top: 1px solid rgb(28,28,28); margin-block: 3.5rem 3.75rem;}
.container {max-width: 100rem; margin: 0 auto; padding: 0 3.25rem;}
.logo {text-decoration: none;}
.logo img {display: block; height: 1.15rem;}
.btn {
    display: inline-block;
    background: #1c1c1c;
    color: #fff!important;
    text-decoration: none;
    border-radius: 1.5rem;
    line-height: 2.25rem;
    padding-inline: 1.35rem;
    border: 1px solid #1c1c1c;
    transition: 0.25s all ease-in-out;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}
.btn:hover {
    background: transparent;
    color: rgb(28,28,28)!important;
}
.btn.reversed {
    background: transparent;
    color: rgb(28,28,28)!important;
}
.btn.reversed:hover {
    background: #1c1c1c;
    color: #fff!important;
}

/* HEADER */

header {
    background: #fff;
    color: #070708;
    position: sticky;
    padding-block: 1.75rem 0.75rem;
    font-size: 0.85rem;
}
header .container {padding-inline: 2.25rem;}
header .container nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
header .container nav ul {
    display: flex;
    gap: 2rem;
}
header a {text-decoration: none; font-weight: 600;}
header nav ul {
    list-style: none;
    padding-top: 0.5rem; 
}
header button {
    display: none;
    background: transparent;
    border: none;
    height: 2.4rem;
    width: 2.4rem;
    background: url(/img/menu.svg) center center / contain no-repeat;
    color: transparent;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    left: 0.4rem;
}
body.menuopen header button {
    background: url(/img/close.svg) center center / contain no-repeat;
}
@media (max-width: 850px) {
    html {scroll-padding-top: 9.5rem;}
    header .btn.reversed {
        position: absolute;
        top: 20.5rem;
        left: 50%;
        transform: translateX(-50%);
        background: #1c1c1c!important;
        color: white!important;
    }
    header button {display: block;}
    header .container nav ul {
        background: #f5f5f5;
        display: flex;
        position: absolute;
        top: 3.3rem;
        left: 0;
        transform: none;
        margin: 0;
        width: 100%;
        text-align: center;
        padding-block: 0 5rem;
        height: 0rem;
        flex-direction: column;
        justify-content: center;
        gap: 0;
        transition: height 0.15s ease-in-out;
        opacity: 0;
        pointer-events: none;
    }
    header .container nav ul li,
    header .btn.reversed {
        opacity: 0;
        pointer-events: none;
        transition: none;
        transition-delay: 0s;
    }
    body.menuopen header .container nav ul {opacity: 1; height: 22rem; pointer-events: all;}
    body.menuopen header .container nav ul li,
    body.menuopen header .btn.reversed {opacity: 1; pointer-events: all; transition: opacity 0.3s ease-in-out, background 0.25s ease-in-out, color 0.25s ease-in-out; transition-delay: 0.15s;}
    header .container nav ul li a {
        display: block;
        padding-block: 0.35rem;
        font-size: 1.5rem;
    }
    body.menuopen header .btn.reversed:hover {
        background: transparent!important;
        color: rgb(28,28,28)!important;
    }
    header {
        position: absolute;
    }
    body.scrolled header {
        position: fixed; 
        top: 0; 
        width: calc(100% + 0.5rem);
        max-width: none;
        animation: forwards slideDown 0.3s ease-in-out;
    }
}

@keyframes slideDown {
    from {transform: translate(-50%, -100%);}
    to {transform: translate(-50%, 0%);}
}



/* SECTIONS */

section {
    padding-block: 6.7rem;
    overflow: clip;
    background: #f5f5f5;
}
section p:first-child,
section:not(.page,:has(p:first-child, .numbers)) h2 + p:not(:has(img)) {
    font-size: 1.92rem;
    line-height: 1.4;
    max-width: 33.5em;
    font-weight: 600;
    margin-bottom: 1.75em;
}
section:has(p:first-child) h2 ~ p {
    margin-left: 50%;
}
section:has(h3):not(:has(.numbers)) .container > *:not(p:has(img), h2, h3, .bigtext, .tabs) {
    padding-left: 50%;
}
section:nth-child(odd) {background: #1c1c1c; color: white;}
section:nth-child(odd) a {color: white;}
section:nth-child(odd) .tabs ul.tabs-nav {border-color: rgba(255, 255, 255, 0.4);}
section:nth-child(odd) .tabs ul.tabs-nav li.active a {border-color: white;}
section:nth-child(odd) h2 {border-color: rgba(255, 255, 255, 0.4);}
h2 + .tabs ul.tabs-nav {border: 0;}


h3 {position: absolute; max-width: 50%; margin: 0;}
p img {margin-block: 2rem 3rem;}

.tabs ul.tabs-nav {
    margin-block: 5rem 1rem; 
    list-style: none; 
    display: flex; 
    gap: 3rem;
    border-bottom: 1px solid rgba(28, 28, 28, 0.5);
    position: relative;
}
.tabs ul.tabs-nav a {
    opacity: 0.3; 
    text-decoration: none; 
    font-size: 1.35rem;
    font-weight: 600;
    padding-bottom: 0.3rem;
    line-height: 1.6;
    display: block;
    border-bottom: 2px solid transparent;
}
.tabs ul.tabs-nav a:hover {color: inherit;}
.tabs ul.tabs-nav li {position: relative; top: 1px;}
.tabs ul.tabs-nav li.active a {opacity: 1; border-bottom: 2px solid #1c1c1c;}
.tabs .tab-content {display: none; padding-top: 1.35rem;}
.tabs .tab-content.active {display: block;}
.tabs .tab-content h3 {display: none;}
.tabs .tab-content img {width: 100%; aspect-ratio: 1.9; object-fit: cover;}

.tabs + script + .bigtext {padding-top: 25rem;}
section:has(.tabs + script + .bigtext) {
    background: #1c1c1c url(/img/map.svg) center calc(100% - 2rem) / 93rem auto no-repeat;
}

.numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 1.2rem 1.1rem;
}
.numbers > div {background: #1c1c1c; color: white; padding: 2rem 1.25rem 1.25rem;}
.numbers .title {font-weight: 600; margin-bottom: 0.75rem; font-size: 4rem; line-height: 1;}
.numbers .description {font-size: 0.95rem; line-height: 1.4; margin-top: -0.5rem;}
.numbers .parallax {margin-top: 1.35rem;}
.numbers .parallax img {
    width: 100%; 
    object-fit: cover; 
    aspect-ratio: 1.9;
}

.capabilities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1.2rem 1.1rem;
    padding-top: 0.85rem;
}
.capabilities > div {
    padding: 2rem 1.5rem 0.25rem; 
    position: relative;
}
.capabilities > div::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    --border-width: 1px;
    --corner-offset: 2rem;
    --mask: polygon(
        0 0,
        calc(100% - var(--corner-offset)) 0,
        100% var(--corner-offset),
        100% 100%,
        0 100%,
        0 0,

        var(--border-width) var(--border-width),
        var(--border-width) calc(100% - var(--border-width)),
        calc(100% - var(--border-width)) calc(100% - var(--border-width)),
        calc(100% - var(--border-width)) calc(var(--corner-offset) + var(--border-width) / 2),
        calc(100% - var(--corner-offset) - var(--border-width) / 2) var(--border-width),
        var(--border-width) var(--border-width)
    );
    -webkit-clip-path: var(--mask);
    clip-path: var(--mask);
}

.capabilities .title {font-size: 1.95rem; line-height: 1.2; font-weight: 600; height: 7.75rem; max-width: 80%;}
.capabilities ul {font-size: 0.85rem; line-height: 1.8;}

.parallax {background: url() center center / cover no-repeat; position: relative; overflow: hidden;}
section > div.parallax {margin-block: 2rem 4.5rem; aspect-ratio: 3;}
.parallax img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0!important;
}
@keyframes parallax {
  from { 
    background-position: center bottom;
  }
  to {
    background-position: center top;
  }
}
.parallax {
  animation: parallax linear;
  animation-fill-mode: none;
  animation-timeline: view();
}


/* BIGTEXT */
.bigtext {
    padding-block: 7rem 0.5rem;
}
.bigtext p {
    font-size: 3rem!important;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 2.38rem;
    max-width: 25em!important;
}


/* SECTION PAGE */

section.page .container {max-width: 45rem;}
section.page h1 {text-align: center; margin-block: 3rem 4rem;}
section.page h2 {font-size: 1.7rem; margin-block: 4rem 1.5rem;}
@media (max-width: 600px) {
    section.page h1 {text-align: left;}
}




/* SECTION HEADER */

section.header {
    padding-block: 0;
    background: white;
}
section.header .container {
    padding-inline: 2.25rem;
}
section.header .header-video {
    margin-bottom: 2.5rem;
}
section.header + section {
    padding-top: 2.5rem;
}
section.header video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform-origin: 50% 50%;
    aspect-ratio: 1.85;
    animation: header-parallax linear;
    animation-fill-mode: none;
    animation-timeline: view();
}
@keyframes header-parallax {
    from { object-position: center bottom; }
    to   { object-position: center top; }
}


/* FORMS */

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.25rem;
    gap: 0.5rem;
}
.input-group > label {display: block;}
.input-group > textarea,
.input-group > select,
.input-group > input:not(.btn) {
    border: 0; 
    border-bottom: 1px solid rgba(6, 16, 60, 0);
    background-color: rgba(6, 16, 60, 0.07);
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: 0.1s all ease-in-out;
    color: rgb(28,28,28);
    line-height: 1.4;
    border-radius: 0;
}
.input-group > textarea {
    resize: none;
    overflow-y: hidden;
    height: calc(3.7rem + 1px);
}
.input-group > input:placeholder-shown,
.input-group > textarea:placeholder-shown {
    background: transparent;
    border-color: rgb(28,28,28);
}
form button.btn {min-width: 10rem; margin-top: 0.25rem;} 

@media (max-width: 600px) {
.input-group > textarea,
.input-group > select,
.input-group > input:not(.btn) {
    background-color: rgba(6, 16, 60, 0.07)!important;
    border-color: transparent!important;
}
}


/* FOOTER */

footer {
    background: black;
    padding-block: 0rem 2rem;
    color: white;
    border-top: 1px solid white;
}
footer a {color: white;}
footer > div:not(:last-child) {
    background: #1c1c1c;
}
footer .logo {
    display: inline-block;
    margin-bottom: 3rem;
    filter: invert(1);
}
footer .logo img {
    height: 2rem;
}
footer ul {list-style: none;}
footer h3 {position: relative;}
footer > div:first-child .container {
    display: flex;
    justify-content: space-between;
}
footer > div:first-child .container > * {flex: 1; padding: 3rem 3rem 3rem 0;}
footer > div:first-child .container > :nth-child(2) {
    border-left: 1px solid white;
    padding: 3rem 0 3rem 3rem;
}
footer > div:last-child .container {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding-top: 2rem;
}
footer > div:last-child .container ul {
    display: flex;
    gap: 1rem 2rem;
}
@media (max-width: 600px) {
    footer > div:last-child {text-align: left; padding-top: 4rem;}
    footer > div:nth-child(2) .container {flex-direction: column;}
}


/* REVEAL */

.reveal .line-wrap {
    display: block;
    overflow: hidden;
}
.reveal .line-inner {
    display: block;
    white-space: nowrap;
    transform: translateY(110%);
}
.reveal.visible .line-inner {
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}
.reveal .fade-in {
    opacity: 0;
}
.reveal.visible .fade-in {
    opacity: 1;
    transition: opacity 0.8s ease var(--delay, 0s);
}
main .reveal li {
    clip-path: inset(0);
}
main .reveal li::before {
    transform: translateY(110%);
}
main .reveal.visible li::before {
    transform: translateY(0);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1) var(--delay, 0s);
}


/* LENIS */

html.lenis, html.lenis body {height: auto;}
.lenis.lenis-smooth {scroll-behavior: auto !important;}
.lenis.lenis-smooth [data-lenis-prevent] {overscroll-behavior: contain;}
.lenis.lenis-stopped {overflow: hidden;}
.lenis.lenis-smooth iframe {pointer-events: none;}
 
@media (max-width: 1500px) {
    body.scrolled header .container {
        padding-inline: 1.75rem;
    }
}
@media (max-width: 600px) {
    .capabilities {
        display: flex;
        flex-direction: column;
    }
}
@media (max-width: 450px) {
    html {font-size: 4vw;}
}
