@import url(edgecards.css);
@import url(news.css);
@import url(curtaincarousel.css);
@import url(forms.css);
@import url(header.css);
@import url(footer.css);
@import url(reveal.css);
@import url(lenis.css);


@view-transition {navigation: auto;}
*, ::after, ::before {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 18px; scroll-behavior: smooth; scroll-padding-top: 3rem;}
body {
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif; 
    font-size: 0.95rem; 
    font-weight: 300; 
    line-height: 1.5; 
    color: var(--my-soft-black);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
:root {
    /* Base colors */
    --my-soft-black: #1c1c1c;
    --my-soft-white: #f5f5f5;

    /* Neutrals */
    --my-white: #FFF;
    --my-black: #000000;
    --my-dark-gray: #63686f;
    --my-body: #808080;
    --my-gray: #b4b8bd;

    /* Helsinki brand accent */
    --my-glacial: #d8e4ee;
    --my-steel: #8aaec6;
    --my-slate: #2e4755;
    --my-yellow: #e8c84a;

    /* White fades */
    --my-white-15: rgba(255, 255, 255, 0.15);
    --my-white-20: rgba(255, 255, 255, 0.2);
    --my-white-40: rgba(255, 255, 255, 0.4);
    --my-white-50: rgba(255, 255, 255, 0.5);

    /* Black fades */
    --my-black-15: rgba(0, 0, 0, 0.15);
    --my-black-20: rgba(0, 0, 0, 0.2);
    --my-black-40: rgba(0, 0, 0, 0.4);

    /* Slate fades */
    --my-slate-0: rgba(46, 71, 85, 0);
    --my-slate-7: rgba(46, 71, 85, 0.07);
    --my-slate-80: rgba(46, 71, 85, 0.8);
}
a {
    color: var(--my-soft-black);
    text-decoration-color: var(--my-black-20);
    text-underline-offset: 0.15rem;
    transition: 0.2s opacity ease-in-out;
}
section.dark a:not(.btn) {
    color: var(--my-soft-white);
    text-decoration-color: var(--my-white-40);
}
a:not(.logo, .btn):hover {opacity: 0.5;}
a[href^="mailto:"], a[href^="tel:"] {text-decoration: none;}
p {margin-bottom: 1.6em;}
p:last-child, ul:last-child {margin-bottom: 0;}
img {max-width: 100%; display: block;}
h1 {font-size: 3rem; font-weight: 500; line-height: 1; margin-bottom: 2rem;}

h2 {
    font-size: 1.2rem;
    font-family: 'Sometype Mono', monospace;  
    border-bottom: 1px solid var(--my-black-40);
    font-weight: normal;
    margin-bottom: 3.5rem;
    padding-bottom: 0.4rem;
    letter-spacing: 0.025em;
    margin-top: 3rem;
    text-transform: uppercase;
}
h2:first-child {margin-top: 0;}
main ul {
    list-style: none;
    position: relative;
    margin-bottom: 1.6em;
}
main ul li {padding-block: 0.25rem;}
main ul + h2 {margin-top: 6rem;}
main ul:not(.tabs-nav) li {
    padding-left: 1.1rem;
}
main ul:not(.tabs-nav) li::before {
    content: '>';
    display: block;
    position: absolute;
    margin-left: -1.1rem;
}
h3, .list .title {font-size: 2rem; font-weight: 500; line-height: 1.2; margin-block: 4rem 1.5rem;}
.list {position: relative; }
.list .title {margin-top: 0; width: 15em; max-width: 45%; position: absolute;}
.list .title + ul {margin-left: 50%; border-top: 1px solid var(--my-white-40);}
.list .title + ul li {padding-block: 1.2rem; border-bottom: 1px solid var(--my-white-40);}
@media (max-width: 1000px) {
    .list .title {width: 100%; max-width: 100%; position: relative; font-size: 1rem; font-weight: 300;}
    .list .title + ul {margin-left: 0;}
}
hr {border: none; border-top: 1px solid var(--my-soft-black); margin-block: 3.5rem 3.75rem;}
.container {max-width: 100rem; margin: 0 auto; padding: 0 3.25rem; position: relative;}
body.section_solutions section .container {max-width: 80rem;}
.logo {text-decoration: none;}
.logo img, .logo svg {display: block; height: 2rem; width: auto;}
.btn {
    --bg-color: var(--my-soft-black); 
    --text-color: var(--my-white); 
    display: inline-flex;
    align-items: center; 
    position: relative; 
    background: transparent;
    font-weight: 400;
    color: var(--text-color);
    text-decoration: none;
    padding: .5em calc(1.45em + 2.5em) .5em 1em;
    border: none; 
    transition: 0.25s all ease-in-out;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    isolation: isolate;
}
.btn::before { content: "";  z-index: -1; background: var(--bg-color); height: 100%; width: calc(100% - 3em); position: absolute; top: 0; left: 0;   border-radius: .25em; transition: border-radius 250ms, width 250ms; }
.btn::after { content: ""; height: 2.5em; width: 2.5em; display: inline-flex; justify-content: center; align-items: center; background: var(--bg-color) url('/img/news_arrow_right.svg') 51% 50% / .9rem auto no-repeat;  position: absolute; right: 0; border-radius: 50%; transition: border-radius 250ms, transform 250ms, background-position 250ms; }
.btn:hover { opacity: 1;}
.btn:hover::before {  border-radius: .25em 0 0 .25em; width: calc(100% - 1.7em); }
.btn:hover::after { border-radius: 0 .25em .25em 0;}

.btn.reversed {
    --bg-color: var(--my-soft-white); 
    --text-color: var(--my-soft-black); 
}


/* SECTIONS */
section {
    position: relative;
    padding-block: 4rem 5rem;
    overflow: clip;
}
section:nth-of-type(2n) { background: var(--my-soft-white);}
section .container > p:first-child {
    font-size: 2rem;
    line-height: 1.2;
    max-width: 33.5em;
    font-weight: 500;
    margin-bottom: 1.75em;
}
section .container > p:first-child {max-width: 33em;}
section .container > p:only-child { margin-bottom: 0;}
section:not(.has_solutions) > .container:has(> p:first-child) h2 ~ p:not(:has(+ .blocks)) {
    margin-left: 50%;
}
section > .container:has(> p:first-child) h2 + p:has(+ .blocks) {max-width: 38rem;}
section.white {background: white;}
section.dark {background: #1c1c1c; color: #f5f5f5;}
section.has_solutions .container {padding-bottom: 3rem;}
section.index_0:has(h1) .container {max-width: 80rem;}
section.white + section.white {padding-top: 0;}


/* SECTION FEATUREDIMG */
section.featuredimg .container {display: flex; max-width: 80rem;}
section.featuredimg .container h1 {
    font-size: 1.2rem;
    font-family: 'Sometype Mono', monospace;  
    border-bottom: 1px solid var(--my-black-40);
    font-weight: normal;
    margin-bottom: 4rem;
    padding-bottom: 0.4rem;
    letter-spacing: 0.025em;
    margin-top: 1rem;
    text-transform: uppercase;
    width: 100%;
}
section.featuredimg .container p:first-child {
    font-size: 2.5rem;
    line-height: 1.2;
    max-width: 33.5em;
    font-weight: 500;
    margin-bottom: 1.2em;
}
section.featuredimg .container > div:first-child { width: 50%; min-width: 50%;}
section.featuredimg .parallax {margin-right: 6.5rem;}
section.featuredimg .parallax img {opacity: 1!important;}
section.featuredimg:last-child { padding-bottom: 10rem;}
@media (max-width: 1200px) {
    section.featuredimg .container {flex-direction: column-reverse;}
    section.featuredimg .parallax {margin-right: 0; margin-top: 4rem;}
}



/* SECTION IMAGE */
.parallax:has(+ .container:empty) {margin-bottom: 0;}
.container:empty + .parallax:has(+ .container:empty) {margin-top: 0;}
section:has(.container:empty:first-child + .parallax) {padding-top: 0;}
section > .container:empty:first-child + .parrallax {margin-top: 0;}
section:has(.container:empty:last-child) {padding-bottom: 0rem;}
h2 + .tabs ul.tabs-nav {border: 0;}
section .container > h2:first-child:has(+ .bigtext) {margin-top: -2rem;}


/* SECTION PAGE */
section:not(.news_page,.page) h1 + p:not(:has(img)) {max-width: 45.5rem;}
h1 + p + h2 {padding-top: 1rem;}
section.page h1 + p {
    font-size: 1.5rem; 
    font-weight: 500; 
    line-height: 1.4;
}
section.page h2 {padding-bottom: 0;}
section.page h3 {
    position: relative;
    max-width: 100%;
    margin-block: 3rem 0.5rem;
    font-size: 1.15rem;
    padding-bottom: 0;
}

h3 {position: absolute; max-width: calc(50% - 6.5rem); margin: 0;}
section > .container > h3:first-child ~ * {
    padding-left: 50%;
}
p img {margin-block: 2rem 3rem;}


/* TABS */

.tabs ul.tabs-nav {
    margin-block: 6rem 1rem; 
    list-style: none; 
    display: flex; 
    gap: 2.25em;
    position: relative;
}
.tabs ul.tabs-nav a {
    opacity: 0.3; 
    text-decoration: none; 
    font-size: 1.3rem;
    font-weight: 500;
    padding-bottom: 0.3rem;
    line-height: 1.6;
    display: block;
    border-bottom: 2px solid transparent;
    user-select: none;
}
.tabs ul.tabs-nav a:hover {color: inherit;}
.tabs ul.tabs-nav li {position: relative; top: 1px; padding-block: 0;}
.tabs ul.tabs-nav li.active a {opacity: 1; border-bottom: 2px solid var(--my-soft-black);}
.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;}

/* BLOCKS */

.blocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    gap: 1rem;
    margin-top: 2.5rem;
    cursor: pointer;

    h3 {position: relative; max-width: 100%;}
    & > * {background: var(--my-soft-black); aspect-ratio: 1; color: var(--my-soft-white); padding: 1.75rem 1.25rem; position: relative; display: flex; justify-content: flex-end; flex-direction: column;}
    & > * > * {position: relative; z-index: 2;}
    & > * > h3 {margin-bottom: 0;}
    & > * > .block-content {height: 0; overflow: hidden; transition: height 0.4s ease;}
    & > * > .block-content > :first-child {padding-top: 1rem;}
    & > * > .parallax {position: absolute; left: 0; top: 0; z-index: 1; width: 100%; height: 100%; opacity: 0!important; transition: opacity 0.4s ease!important;}
    & > * > .parallax::before {content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--my-soft-black) 0%, transparent 75%);}
    & > * > .parallax {opacity: 1!important;}
}
section:has(#careers) .blocks {grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr;}
section:has(#careers) .blocks > .block:nth-child(3) {grid-row: span 2; aspect-ratio: auto;}
section:has(#careers) .blocks > .block:nth-child(4) {grid-column: span 2; aspect-ratio: auto;}
@media screen and (max-width: 1450px) {
   .blocks {grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));}
}
@media screen and (max-width: 1250px) {
    .blocks {
        display: flex;
        flex-wrap: wrap;

        & > * {flex: 1; min-width: min(20rem, 100%); aspect-ratio: 1!important;}
    }
}





/* LEADERSHIP */

.leadership {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 3rem 1rem;

    li {padding: 0!important;}
    li::before {content: none!important;}
    li h3 {position: relative; font-size: 1.3rem; max-width: 100%; font-weight: 600;}
    li img {width: 100%; height: auto; margin-bottom: 0.81rem;}
}


section:has(#our-fleet) .bigtext:not(:first-child) {padding-top: 23rem;}
section:has(#our-fleet) {
    background: var(--my-soft-black) url(/img/map.svg) center calc(100% - 2rem) / 81rem auto no-repeat;
}

/* CARD */

.card {
    background: white;
    position: relative;
    height: 23rem;
    padding: 1.5rem 2.25rem 1rem;
    padding-left: calc(51% + 2.25rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
}
.card h4 {margin: 0 0 2.25rem; font-size: 2rem; font-weight: 500;}
.card div.parallax {
    position: absolute;
    left: 0; 
    top: 0;
    width: 51%!important;
    display: block;
    margin: 0;
    background-color: var(--my-gray);
}
.card div.parallax img {
    margin: 0;
    height: 23rem;
    object-fit: cover;
    width: 100%;
    opacity: 0!important;
}


section:has(.card) {
    padding-bottom: 1rem;
    position: relative;
}
section:has(.card) {
    background-image: linear-gradient(to bottom, var(--my-soft-white) calc(100% - 9rem), var(--my-soft-black) calc(100% - 9rem));
}



.parallax {background: url() center center / cover no-repeat; position: relative; overflow: hidden; display: block;}
section > div.parallax {margin-block: 3rem 3.5rem; aspect-ratio: 3;}
.parallax img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0!important;
}
.parallax.inline {margin-bottom: 3rem; padding: 0!important;}
.parallax.inline img {
    aspect-ratio: 2.5;
}
@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;
}

h2 + .bigtext {padding-top: 12rem;}
.bigtext p {
    font-size: 3rem!important;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 2.38rem;
    max-width: 25em!important;
}
.bigtext-word {
    color: var(--my-dark-gray);
    transition: color 1s; 
}


/* SECTION PAGE */

body.menuopen.dark_header header .container nav ul,
body.dark_header, body.dark_header header {background: var(--my-soft-black);}
body.dark_header header a {color: var(--my-soft-white); font-weight: 400;}
body.menuopen.dark_header header a {font-weight: 500;}
body.dark_header header button,
body.dark_header header .logo img, body.dark_header header .logo svg {filter: invert(1) brightness(1.08);}
section.page .container {max-width: 52rem; padding-bottom: 3rem;}
section.page h1 {margin-block: 3rem 4rem;}
section.page h2 {
    font-size: 1.7rem; 
    margin-block: 5rem 1.5rem; 
    border: 0;
    font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none;
    font-weight: 500;
    line-height: 1.2;
}
section.page h1 + h2 {margin-top: 0rem;}


section:has(.accordion) .container > *:not(p:first-child) {margin-left: 30%;}
section:has(.accordion) .container > p:not(:first-child),
section:has(.accordion) ul.accordion > li > div > div > * {max-width: 55rem;}
@media (max-width: 1200px) {
    section:has(.accordion) .container > * {margin-left: 0!important;}
}
@media (max-width: 600px) {
    section.page {padding-top: 4rem;}
}

/* SECTION HEADER */

section.header {
    padding-block: 0;
    background: white;
}
section.header .container {
    padding-inline: 2.25rem;
}
section.header .header-video {
    margin-bottom: 2.5rem;
    position: relative; 
}
section.header .header-construction {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-family: 'Sometype Mono', monospace;
    font-weight: normal;
    letter-spacing: 0.025em;
    text-transform: uppercase;
    color: var(--my-soft-black);
}
section.header .header-construction img { width: 1.75rem; height: auto; margin-block: 0; position: relative; bottom: 0.1rem}
section.header button { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--my-white);  border: none; display: grid;place-items: center; position: absolute; bottom: 1.4rem; right: 1.4rem; cursor: pointer; }  
section.header button img { display: none; width: .8rem; height: auto; }
section.header video:not([data-playing]) + button { display: none; }
section.header video[data-playing=true] + button img:nth-of-type(1) { display: block; }
section.header video[data-playing=false] + button img:nth-of-type(2) { display: block; margin-left: .1em; }
/* 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; }
}


div.facility {
    display: grid; grid-template-columns: 1fr 20rem; padding: 0 !important; align-items: flex-start; grid-gap: 1rem; 
     
    & figure {position: relative; display: flex; align-items: flex-start;  }
    & img { width: 100%;  }
    
    & .dots {  position: absolute; top: 0; left: 0; width: 100%; height: 100%;  }
    & .dots li { position: absolute; left: var(--left); top: var(--top);  padding: 0; width: 1rem; height: 1rem; clip-path: none;
        &::before { display: none; }
        & button { position: relative; width: 100%; height: 100%;  transform: translate(-50%, -50%); border-radius: 50%; background: var(--my-dark-gray); transition: background 333ms;  border: none; cursor: pointer; }
        & button::before { position: absolute; top: 50%; left: 50%; width: 160%; height: 160%; border-radius: 50%; border: 1px solid var(--my-yellow); content: ""; transform: translate(-50%, -50%) scale(var(--scale, 0)); transition: transform 333ms, border-color 333ms; }
        & button::after { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 150%; height: 150%; border-radius: 50%; content: ""; }
        & button:is(:hover,.active) { background: var(--my-yellow); }
        &:has(button.active) { z-index: 2; }
    }
    & .dots li button.active::before { --scale: 1;  }
    
    & .captions { height: 100%;  margin-inline: auto;  width: 100%; }
    & .captions > li { padding: 1rem .5rem; height: 100%; animation: fade-in 500ms forwards;   display: none; }
    & .captions > li.active {  display: block;  }
    & .captions > li::before { display: none; }
    & .captions > li > * {padding-inline: .5rem;}
    & .captions > li h3 { max-width: unset; margin-block: unset; position: relative;  font-size: 1rem; font-weight: 600;}
    & .captions > li h2 { padding-block: .5rem 2rem; margin-bottom: 1rem; padding-right: 2rem;  display: flex; }
    & .captions > li h2::before { position: relative; display: block; margin-right: 1rem; margin-top: .5rem;  content: ""; flex-shrink: 0; width: .9rem; height: .9rem;  border-radius: 50%; background: var(--my-yellow); box-shadow: 0 0 0 4px var(--my-soft-black), 0 0 0 5px var(--my-yellow);}
    & .captions > li hr { padding-block: 1rem; margin-block: auto; height: 1px; border-top: 1px solid var(--my-white-40); }

    .buttons { position: absolute; bottom: 0.25rem; right: 0.25rem;  display: flex; gap: .25rem; }
    .buttons button { width: 1.8rem; height: 1.8rem; padding: 0.4rem;  display: grid; place-items: center; cursor: pointer; }
    .buttons button:hover { background: var(--my-dark-gray); }

    @media only screen and (min-width: 1024px) {
        .mobile { display: none; }
    }
    @media only screen and (max-width: 1024px) {
         grid-template-columns: 1fr;
        & .dots li { width: 0.8rem; height: 0.8rem; }
    }
}

.buttons { position: absolute; bottom: 0.25rem; right: 0.25rem;  display: flex; gap: .25rem; }
.buttons button { width: 1.8rem; height: 1.8rem; padding: 0.4rem;  display: grid; place-items: center; cursor: pointer; }
.buttons button:hover { background: var(--my-dark-gray); }

.cut-corner { position: relative;  --border-width: 1px; --corner-offset: 3rem; }
.cut-corner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--my-white-40); z-index: -1;  clip-path: 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) ) }

@keyframes fade-in  {
    from { opacity: 0; transform: translateY(1rem);}
    to { opacity: 1; transform: none;}
}







 
@media (max-width: 1000px) {
    header .container,
    section.header .container {
        padding-inline: 1.25rem;
    }
    .container {
        padding-inline: 1.25rem;
    }
    section > .container:has(> p:first-child) h2 ~ p {
        margin-left: 0;
    }
    h3 {position: relative; max-width: 100%; margin-bottom: 2rem;}
    section:has(h3):not(:has(.numbers, .accordion)) .container > :not(p:has(img), h2, h3, .bigtext, .tabs) {
        padding-left: 0;
    }
    footer > div:first-child .container {flex-direction: column;} 
    footer .right {border-left: none; padding: 0 0 3rem 0; margin-inline: -1.25rem; border-top: 1px solid var(--my-white-40);}
    footer .right h3 {padding-block: 1rem;}
    footer .left h3 {margin-bottom: 0.15rem;}
    footer .left .logo {margin-top: 2rem;}
    footer .left .companies {
        align-items: flex-start;
        padding: 0;
    }
    footer .right .horizontalsplit > div:first-child::after {content: none;}
    footer .right .horizontalsplit > div a {padding-inline: 1.25rem; padding-bottom: 4rem;}
    footer .right .horizontalsplit > div a::after {right: 1.25rem;}

    .bigtext {padding-block: 2rem;}
    .bigtext p {font-size: 2rem!important;}
    h2 + .bigtext {padding-top: 5rem;}
    
    section:has(#our-fleet) .tab-content:not(:last-child) .bigtext:not(:first-child) {padding-block: 7rem;}
    section:has(#our-fleet) .tab-content:last-child .bigtext:not(:first-child) {padding-block: 7rem 0;}

    h1 {font-size: 2.5rem;}
    .contact-accordion .h1,
    section.featuredimg .container p:first-child,
    h3, .edgecards .title, section .container > p:first-child, 
    section:not(.page, :has(p:first-child, .numbers)) h2 + p:not(:has(img)) {
        font-size: 1.5rem!important;
    }
    .edgecards .title {height: auto; padding-bottom: 1.35rem;}
    section.featuredimg .container h1, div.projects h4,
    h2 {font-size: 1rem; margin-bottom: 2rem;}
    section:has(#our-fleet) {background-image: none;}
    .card {height: auto; padding-inline: 1.25rem; margin-inline: -1.25rem; font-size: 0.85rem;}
    .tab-content:first-of-type .card {padding-top: 3.5rem; margin-top: 4.5rem;}
    .tab-content:last-of-type .card {padding-bottom: 4.5rem;}
    .card div.parallax {position: relative; width: 100%!important; margin-bottom: 1rem; display: none;}
    .card h4 {margin-bottom: 1rem; font-size: 1.5rem;}
    .tabs ul.tabs-nav {display: none;}
    .tabs .tab-content {display: block; padding: 0; min-height: 0!important;}
    .tabs .tab-content:not(:has(.card)) h3 {display: block; margin-top: 4rem;}
    .tabs .tabs h3 {font-size: 1.1rem;}
    .card div.parallax img {height: auto; aspect-ratio: 1.9;}
    section > div.parallax,
    section.header video,
    .parallax.inline img {aspect-ratio: 1.9;}
    section.header .header-video {margin-bottom: 1.65rem;}
}


@media (max-width: 600px) {
    .edgecards {
        display: flex;
        flex-direction: column;
    }
    footer > div:last-child .container ul {gap: 1rem}
    footer .right {font-size: 0.85rem;}
    section > div.parallax {aspect-ratio: 1;}
    section.header video {aspect-ratio: 0.9;}
    div.projects .text {padding-inline: 1.75rem!important;}
}
@media (max-width: 450px) {
    html {font-size: 4vw;}
}


/* =========================================================== */
/* ==================== HELSINKI-SPECIFIC ==================== */
/* =========================================================== */

/* ======================== GENERAL ======================== */
section ul.exclude { padding: 0; }
section ul.exclude > li {padding: 0; }
section ul.exclude > li::before { display: none; }

/* ======================== SOLUTIONS ======================== */
nav.solutions { padding: 0 !important; 
 & ul { display: grid; grid-auto-flow: column; grid-gap: 1rem; padding: 0; }
 & ul li { position: relative;}
 & ul li::after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, var(--my-black), transparent); content: ""; opacity: 0.5; transition: opacity 250ms; pointer-events: none;}
 & ul li:hover::after { opacity: .7;}
 & ul li a:hover { opacity: 1;}
 & ul li h3 { position: absolute; bottom: 1.5rem; margin-bottom: 0; padding-inline: 1.2rem; z-index: 2; font-size: 1.2rem; color: var(--my-white); width: 100%; max-width: unset; opacity: 0; transition: opacity 500ms 500ms;}
 & ~ p { max-width: 35em; margin-top: 2rem; padding: 0 !important;}
}
section.visible nav.solutions > ul li h3 { opacity: 1;}

@media only screen and (max-width: 1250px) {
    nav.solutions {margin-inline: -3.25rem; padding-inline: 3.25rem !important;  overflow: auto; scroll-snap-type: x mandatory; }
    nav.solutions li { scroll-snap-align: center;  min-width: 12.5rem; }
}
@media only screen and (max-width: 1000px) {
    nav.solutions {margin-inline: -1.25rem; padding-inline: 1.25rem !important;}
}


/* ======================== PROJECTS ======================== */
section.has_projects .container {max-width: 80rem;}
div.projects {
    & > ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(30rem, 100%), 1fr)); grid-gap: 4rem 2.25rem;}
    & > ul > li {background: var(--my-white);}
    & h3 {position: relative; max-width: 100%; margin-bottom: 1rem;}
    & h4 {
        font-size: 1.2rem;
        font-family: 'Sometype Mono', monospace;  
        border-bottom: 1px solid var(--my-black-40);
        font-weight: normal;
        margin-bottom: 1.5rem;
        padding-bottom: 0.4rem;
        letter-spacing: 0.025em;
        margin-top: 4rem;
        text-transform: uppercase;
    }
    & .parallax img {opacity: 1!important; aspect-ratio: 1.8;}
    & .text {padding: 0 2.25rem 4rem;}
}
section.white div.projects > ul > li {background-color: var(--my-soft-white);}  


/* ======================== NUMBERS ======================== */
ul.numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); grid-gap: .8rem; margin-right: 1px; }  
ul.numbers.exclude li { padding: 2rem; background: var(--my-soft-white);}
ul.numbers li strong { font-size: 3.5rem; font-weight: 500; line-height: 1.1;}
ul.numbers li p { max-width: 11em; color: var(--my-dark-gray); }

@media only screen and (max-width: 768px) {
    ul.numbers.exclude li { padding: 2rem 1rem; }
    ul.numbers li strong { font-size: 2.5rem; }
    ul.numbers { grid-template-columns: 1fr 1fr;}
    ul.numbers > li:last-of-type:nth-of-type(odd) { grid-column: -1/1;}
    ul.numbers > li:last-of-type:nth-of-type(odd) p { max-width: 12em;}
} 


/* ======================== WHAT WE OFFER ======================== */
ul.whatweoffer { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); grid-gap: .8rem; margin-right: 1px; }  
ul.whatweoffer.exclude li { padding: 2rem; background: var(--my-white);}
ul.whatweoffer li strong {font-weight: 500; color: var(--my-soft-black);}
ul.whatweoffer li p { max-width: 11em; color: var(--my-dark-gray); }

@media only screen and (max-width: 768px) {
    ul.whatweoffer.exclude li { padding: 2rem 1rem; }
    ul.whatweoffer { grid-template-columns: 1fr 1fr;}
    ul.whatweoffer > li:last-of-type:nth-of-type(odd) { grid-column: -1/1;}
    ul.whatweoffer > li:last-of-type:nth-of-type(odd) p { max-width: 12em;}
} 


/* ======================== OVERLAY ======================== */
section.overlay {padding: 0;}
section.overlay .container {position: absolute; top: 0; left: 50%; width: 100%; transform: translateX(-50%); height: 100%; display: flex; align-items: center;}
section.overlay div.parallax {margin: 0;}
section.overlay .container > div { 
    background: var(--my-soft-black); 
    position: absolute; 
    color: var(--my-soft-white);
    padding: 2rem; 
    max-width: 22rem; 
    margin-block: clamp(10rem, 25vw, 15rem);
    width: 22rem;

    & p { margin-bottom: 0;}
    & h2 { font-size: 1.5rem; font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.2; letter-spacing: -2%; margin: .5rem 0 1rem; border: none; text-transform: none; }
}

@media only screen and (max-width: 768px) {
    section.overlay { padding-top: 0; }
    section.overlay .container {padding-inline: 0; }
    section.overlay .container > div { padding-inline: 1.25rem; margin: 0 auto; width: 100%; max-width: 100%; } 
    
}

/* ======================== NEWS ======================== */

section:has(.news_blocks.is-shortcode) { background: var(--my-white);}
section:has(.news_blocks.is-shortcode) h2 + .btn {
    position: absolute; 
    right: 3.25rem;
    top: 0;
    background: white;
    border-left: 1rem solid white;
}



/* ======================== CONTACT ======================== */

section.contact .container {padding-top: 1rem;}
section.contact h1 ~ :not(div) { max-width: 30em!important; }
section.contact .getintouch { max-width: 20rem;  float: right;  padding-left: 1.25rem; border-left: 1px solid var(--my-black-20); margin-left: 6.5rem;}
section.contact .getintouch a:not(.btn) { color: inherit; transition: color 250ms;}
section.contact .getintouch a.btn { margin-top: 1rem;  }
section.contact .getintouch h2 { color: var(--my-soft-black); border-bottom: none; font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;; font-weight: 500; margin-bottom: .15em; font-size: 1.5rem; text-transform: none; padding-bottom: 0; letter-spacing: 0;}
section.contact ul.accordions { clear: both; }

section.has_contact_accordions {padding-top: 2rem;}
section.has_contact_accordions:last-child { padding-bottom: 10rem;}
section:has(.contact-accordion) { background: var(--my-white);}
section:has(.contact-accordion) .container { max-width: 80rem; margin: 0 auto;  }
section:has(.contact-accordion) .container ul { margin: 0 auto !important; max-width: unset;  width: 100%; }
ul.accordion.contact-accordion > li:first-child { border-top: none;}

.contact-accordion .inner  { padding-top: 2rem; max-width: unset !important;}
 .contact-accordion .inner:last-child {padding-bottom: 5rem;}
.contact-accordion.accordion > li { border-bottom: none;}
.contact-accordion h3 button { font-family: 'Sometype Mono', monospace !important; text-transform: uppercase !important; font-weight: 400 !important; font-size: 1.2rem !important;  border-bottom: 1px solid var(--my-black-40) !important; padding-block: 0.4rem !important; margin-top: 1.5rem;}
.contact-accordion h3 button::after {top: 0;}
.contact-accordion .locations { display: grid; grid-gap: 2rem; }
.contact-accordion .locations > div { display: grid; grid-template-columns: 1fr 1fr; width: 100%;   align-items: flex-start; }
.contact-accordion .locations > div + div {border-top: 1px solid var(--my-black-20); padding-top: 2rem;}
.contact-accordion address { font-style: normal;}
.contact-accordion h4 { font-weight: 500; font-size: 1.5rem;}
.contact-accordion address a { display: block; max-width: max-content; }

.contact-accordion .h1 { font-size: 2.5rem; margin-bottom: .5em; line-height: 1.2;}
.contact-accordion div.contacts ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); grid-gap: 1rem;}
.contact-accordion div.contacts li { padding: 1rem; background: var(--my-white); color: var(--my-body); font-size: 0.85rem; font-weight: 400; border: 1px solid var(--my-black-20); min-height: 7.2rem;}
.contact-accordion div.contacts li.empty {border: 0; min-height: 0; padding: 0!important;}
.contact-accordion div.contacts li strong { color: var(--my-soft-black); font-weight: 400;}
.contact-accordion div.contacts li p { margin: 0; }
.contact-accordion div.contacts li a { color: inherit; margin-top: 0; display: block; text-decoration-color: rgba(0, 0, 0, 0.2);}
.contact-accordion div.contacts > p {max-width: 22em; margin-top: 2rem;}
.contact-accordion div.contacts > .h1 + p {max-width: 40em; margin-block: 0 3rem;}

.contact-accordion div.text { display: grid;  grid-template-columns: 1fr 1fr; grid-gap: 4rem; }
.contact-accordion div.text ul + p { margin-top: 1.4rem;}
.contact-accordion div.text div a { color: inherit;}
.contact-accordion div.text div :is(h4,strong) { color: var(--my-soft-black);}
.contact-accordion div.text div h4 { margin-bottom: 0.5em;}
.contact-accordion article { padding: 1.5rem; background: var(--my-soft-white); }
.contact-accordion article p { max-width: 20em;} 
.contact-accordion article .btn { --bg-color: var(--my-white); margin-left: auto; display: flex; max-width: max-content; margin-top: 1.5rem;}

@media (max-width: 768px) {
    section.has_getintouch .container {display: grid;}
    section.has_getintouch .container div.getintouch {
        order: 1;
        margin-left: 0;
        padding-left: 0;
        border-left: 0;
        margin-top: 4rem;
        margin-bottom: -3rem;
    }
}
@media (max-width: 600px) {
    .contact-accordion div.contacts li.empty {position: absolute; pointer-events: none;}
}



/* FORMS */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2rem;
}
form > div.half {width: calc(50% - 1rem);}
form > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    justify-content: flex-start;
}
form > div label {display: block;}
form > div textarea,
form > div select,
form > div input:not(.btn) {
    border: 0; 
    border-bottom: 1px solid rgba(255,255,255,0);
    background-color: rgba(255,255,255,0.07);
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-family: 'Questrial', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: 0.1s all ease-in-out;
    color: #fff;
    line-height: 1.4;
    border-radius: 0;
}
form > div.checkbox input,
form > div.radio input,
form > div.multiselect input {
    margin-right: 0.35rem;
}
form > div.checkbox + div.checkbox,
form > div.radio + div.radio {margin-top: -1.45rem;}
form > div.checkbox:not(:has(+ div.checkbox)) > label:first-child,
form > div.radio:not(:has(+ div.radio)) > label:first-child,
form > div.checkbox + div.checkbox > label:first-child,
form > div.radio + div.radio > label:first-child {display: none;}
form > div.multiselect .value {
    cursor: pointer;
}
form > div.multiselect .search {
    display: none;
    align-items: center;
}
form > div.multiselect .search-input {
    flex: 1;
    min-width: 0;
}
form > div.multiselect .search-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0.5rem;
    opacity: 0.6;
}
form > div.multiselect .search-close:hover {
    opacity: 1;
}
form > div.multiselect .options {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.35rem;
}
form > div.multiselect .options.open {
    display: flex;
}
form > div textarea {
    resize: none;
    overflow-y: hidden;
    min-height: calc(3.7rem + 1px);
}
form > div input:placeholder-shown,
form > div select:invalid,
form > div select:has(option[value=""]:checked),
form > div textarea:placeholder-shown {
    background: transparent;
    border-color: var(--my-white-40);
}
/* prevent native styling of select */
form > div select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
form > div input::-webkit-outer-spin-button,
form > div input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}
form > div input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
form .btn {
    min-width: 10rem;
    margin-top: 2rem;
}
form.submitted > div:has(:invalid) input,
form.submitted > div:has(:invalid) select,
form.submitted > div:has(:invalid) textarea {
    border-color: #e05555 !important;
}
form.submitted > div:has(:invalid),
form.submitted > div:has(:invalid) a {
    color: #e05555;
    text-decoration-color: #e0555577;
}


@media (max-width: 600px) {
    form > div textarea,
    form > div select,
    form > div input:not(.btn) {
        background-color: rgba(255,255,255,0.07)!important;
        border-color: transparent!important;
    }
    form > div.half {width: 100%;}
}