*, ::after, ::before {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 2vh; scroll-behavior: smooth; scroll-padding-top: 4rem;}
body {font-family: 'Poppins'; font-weight: 300; line-height: 1.6; color: #f5f5f5; background: #1c1c1c;} 
a {color: #f5f5f5;}
p {margin-bottom: 1.6em;}
img {max-width: 100%; display: block;}
.container {max-width: 57rem; margin: 0 auto; padding: 0 2.5rem;}
section:has(.team) h2,
section:has(.experience) h2,
section:has(.facility) h2,
div.facility h3,
section:has(.what_we_do) h2,
.monospace {
    font-family: 'IBMPlexMono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 400;
    color: #d1d2d3;
    font-size: 0.77rem;
    margin-bottom: 1rem;
}
.arrow {
    width: 1.5rem;
    position: absolute;
    right: 2.5rem;
    transform: rotate(-90deg);
    margin-top: -2.35rem;
    cursor: pointer;
}
.arrow.left {
    transform: rotate(90deg);
    right: 5rem;
}
.arrowbottom {
    position: absolute;
    right: 2.5rem;
    width: 1.5rem;
    bottom: 1.5rem;
}
section .container {position: relative;}



/* HEADER */

header {padding-top: 2.5rem;}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
header nav > a {
    width: 18rem;
    display: block;
    margin-bottom: 6.3rem;
    max-width: 50vw;
}
header nav ul {display: none;}
header button {
    background: none; 
    border-radius: 0; 
    border: 0; 
    color: #bec9d3!important;
    display: flex;
    font-size: 0.9rem!important;
    cursor: pointer;
}
header button img {width: 1.75rem; margin-left: 0.55rem;}



/* SECTION HOME (FIRST) */

section:nth-child(1) {padding-block: 0 0.5rem;}
section:nth-child(1) > .container {min-height: calc(100vh - 30rem); }
section:nth-child(1) p {max-width: 35em;}


/* SECTION EXPERIENCE */

section:has(div.experience) {background: white; padding-block: 2rem 0;}
section:has(div.experience) h2 {color: #1c1c1c;}


/* SECTION TEAM */

section:has(div.team) {background: white; padding-block: 0 3rem; border-top: 3rem solid #1c1c1c;}
section:has(div.team) .container {
    bottom: 3rem;
}
section:has(div.team) .container::after {
    content: "";
    position: absolute;
    top: 3rem;
    left: 2.5rem;
    width: calc(100% - 5rem);
    height: 1px;
    z-index: 3;
    background: #1c1c1c;
}
section:has(div.team) .container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 5rem);
    height: 100%;
    z-index: 0;
    background: #e3e4e6;
    margin: 0 2.5rem;
}
section:has(div.team) h2 {position: relative; z-index: 2; left: 1.25rem; top: 0.9rem; color: #1c1c1c;}



/* SECTION WHAT WE DO */

section:has(div.facility),
section:has(div.what_we_do) {
    background: #0c0e0e;
    padding-block: 2rem 3.75rem;
} 
div.what_we_do > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.25rem;
    list-style: none;
}
div.what_we_do > ul > li {
    border: 1px solid #f5f5f5;
    padding: 1.35rem 0.8rem;
}
div.what_we_do > ul > li li {
    padding-left: 0.5rem; 
    list-style: none; 
    font-size: 0.52rem;
    color: #9aa1a9;
}
div.what_we_do > ul > li li::before {
    content: ">";
    position: absolute;
    margin-left: -0.5rem;
}

div.what_we_do h3 {font-size: 0.9rem; font-weight: 500; line-height: 1.3; margin-bottom: 1.25rem; max-width: 7.7rem;}



/* SECTION GENERAL */

section.general {padding-block: 3.5rem; font-size: 0.9rem;}
section.general h2 {
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 1.25rem;
    font-weight: 400;
    width: 7em;
}
section.general h2 ~ * {
    margin-left: 15rem;
}
section.general h3 {font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.1rem}
section.general h2 + h3 {margin-top: 0;}
section.general ul {list-style: none;}
section.general ul > li {padding-left: 1rem}
section.general ul > li::before {
  content: ">";
  position: absolute;
  margin-left: -1rem;
}


/* SECTION TEXT */

section.text {
    background: #1c444e;
    height: 200vh;  
    padding-block: 40vh 0;
    font-weight: 500;
    line-height: 1.3;
    font-size: 2.5rem;
}
section.text > div.container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
}
section.text .container p .word {
    opacity: 0.25;
    transition: opacity 0.1s;
    display: inline-block;
}




/* FACILITY */
section:has(div.facility) {padding-top: 3rem; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;}
div.facility > div {overflow: hidden; margin-bottom: 1rem;}
div.facility .marker {
    position: absolute;
    transform: translate(-50%, -50%);
    width: clamp(0.5rem, 1.75vw, 1rem);
    aspect-ratio: 1;
    background: url(/img/marker.svg) center/contain no-repeat;
    cursor: pointer;
    user-select: none;
}
div.facility .marker.active {background: transparent}
div.facility .marker.active::after {
    content: "";
    aspect-ratio: 1;
    width: clamp(.75rem, 2.25vw, 1.5rem);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    background: url(/img/markeractive.svg) center/contain no-repeat;
}
div.facility .marker div {
    position: absolute; 
    white-space: nowrap; 
    font-size: clamp(0.5rem, 1.25vw, 0.7rem); 
    color: black; 
    display: block; 
    font-weight: 500; 
    text-shadow: 0 0 0.5rem white;
    opacity: 0;
    transition: opacity 0.3s;
}
div.facility .marker.active div,
div.facility .marker:hover div {opacity: 1;}
div.facility .marker div.top {top: 0; transform: translate(calc(-50% + 0.5rem), -100%);}
div.facility .marker div.left {right: clamp(0.5rem, 1.75vw, 1rem); top: 50%; transform: translateY(-50%); padding-right: 0.35em;}
div.facility .marker div.right {left: clamp(0.5rem, 1.75vw, 1rem); top: 50%; transform: translateY(-50%); padding-left: 0.35em;}
div.facility .marker div.bottom {bottom: 0; transform: translate(calc(-50% + 0.5rem), 100%);}
div.facility .info {margin-bottom: -0.5rem;}
div.facility .info h3 {font-size: 0.75rem; line-height: 1.4; margin-bottom: 1.25rem;}
div.facility .info .item {display: none; border: 1px solid #f5f5f5;}
div.facility .info .item.active {display: table; border: 1px solid #f5f5f5; padding: 0; margin: 0; border-collapse: collapse; width: 100%;}
div.facility .info .item td {border: 1px solid #f5f5f5; padding: 0.75rem 1rem; font-size: 0.8rem; height: 5.7rem; width: 25%; vertical-align: top;}
div.facility .info .item td p {margin-bottom: 0;}
div.facility .info .item td:first-child {padding-block: 0.95rem;}
div.facility .info .item td:first-child img {position: absolute; width: 1.7rem; margin: -0.35rem 0 0 -0.35rem;}
div.facility .info .item td:first-child h3 {line-height: 1.2; margin-left: 1.9rem;}
div.facility .info .item h4 {font-weight: 600;}
@media (max-width: 60rem) {
    div.facility .marker div {display: none;}
    div.facility .info .item.active {border-right: 0; border-bottom: 0;}
    div.facility .info .item.active tbody tr {
        display: flex; 
        flex-wrap: wrap;
        width: 100%;
    }
    div.facility .info .item.active tbody tr td {flex: 1; border-left: 0; border-top: 0;}
    div.facility .info .item td {min-width: 11rem;}
}



/* FOOTER */

footer > div {border-top: 1px solid #f5f5f5; font-size: 0.7rem; padding-block: 1.25rem;}
footer > div:last-child {font-size: 0.65rem;}
footer > div .container {display: flex; justify-content: space-between;}
footer > div .container > div {display: flex; gap: 5rem;}
footer > div ul {display: flex; gap: 1rem; list-style: none;}
footer p {margin-bottom: 0;}
footer a {text-decoration: none;}
footer a.large {
    border-left: 1px solid #f5f5f5; 
    margin-block: -1.25rem; 
    padding: 1.15rem 2rem;
    font-size: 2.15rem;
    width: 18rem;
    line-height: 1;
    font-weight: 400;
    height: 9rem;
    background: url(/img/arrowright.svg) right 1.5rem / 2.25rem auto no-repeat;
}
footer img {width: 9rem; margin-top: 0.5rem;}


/* 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: 42rem) {
    html {font-size: 15px;}
}