@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; margin-block: 0.2rem;}
.btn {
    display: inline-flex;
    align-items: center; 
    position: relative; 
    background: transparent;
    font-weight: 400;
    text-decoration: none;
    padding: .5em 1.5em .5em 0em;
    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;
    color: inherit;
}
.btn::after { content: "";  width: 1rem; height: 1rem;  display: inline-flex; justify-content: center; align-items: center; background: url('/img/arrow-right-black.svg') 51% 50% / .9rem auto no-repeat;  position: absolute; right: 0; }
.btn:hover { opacity: 1;}

/* 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: 2.5rem;
    line-height: 1.2;
    max-width: 33.5em;
    font-weight: 500;
    margin-bottom: 1.75em;
}
section .container > p:first-child {max-width: 20em;}
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%;}
/* Text column: prevent the reveal script's transient nowrap lines (min-width:auto flex gotcha) from blowing the column out and overflowing the page. */
section.featuredimg .container > div:last-child { min-width: 0; overflow: hidden;}
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;
}

section:not(.has_ongoing_projects, .has_projects, .steps) h3:first-child:not(.h1) {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;}
    &:not(:has(:nth-child(6))) > *:nth-child(2) {grid-column: span 2; aspect-ratio: auto;}
    & > * > * {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%);}
    & > *.is-hovered > .parallax {opacity: 1!important;}
}
@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);}
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);}
body.dark_header header nav .lang select {
    color: var(--my-soft-white);
    background-image: url('/img/dropdown-arrow-white.svg');
}
body.dark_header header nav .lang select option {color: var(--my-soft-black);}
body.dark_header header nav .lang span {
    background: var(--my-soft-black);
    color: var(--my-soft-white);
}
body.dark_header header nav .lang span svg path {fill: var(--my-soft-white);}
body.dark_header header nav .lang div:hover span {color: var(--my-white-50);}
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):not(.has_team) .container > *:not(p:first-child) {margin-left: 30%;}
section:has(.accordion):not(.has_team) .container > p:not(:first-child),
section:has(.accordion):not(.has_team) 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 .prose { max-width: 80rem; margin-inline: auto; margin-bottom: 5rem; }
section.header .prose > * { max-width: 30em;}
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 h1 { margin-top: 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; }
}


section.header.has-prose + section .container { max-width: 80rem; padding-inline: 0; width: calc(100% - 4.5rem);}
section.header.has-prose + section .container > * { max-width: 40rem; margin-left: auto; }

section.has_facility { margin-inline: auto;background: var(--my-black); }
section.has_numbers:is(:last-child) .container,
section.has_facility .container {  max-width: 80rem;}
section.has_facility .top { color: var(--my-soft-white);}
section.has_facility .top h2 { border-color: var(--my-white-20);}
div.facility {
    padding: 0 !important;

    & .top { position: relative; }
    & .top .buttons { position: absolute; top: -.5rem; right: 0; display: flex; gap: .5rem; }
    & .top .buttons button { width: 2.2rem; height: 2.2rem; padding: 0; border: 1px solid black; border-radius: 50%; background: transparent url(/img/arrow-right-black.svg) center / 1rem auto no-repeat; cursor: pointer; transition: background-color .25s; filter: invert(1);}
    & .top .buttons button[data-dir="-1"] { rotate: 180deg; }
    & .top .buttons button:hover { background-color: white; filter: invert(0); border-color: white;}

    & .viewer { display: grid; grid-template-columns: 1fr 22rem; border: 1px solid var(--my-white-20); color: var(--my-soft-white);}
    & figure { position: relative; }
    & img { width: 100%; height: auto; }

    & .dots { position: absolute; inset: 0; margin: 0; }
    & .dots li { position: absolute; left: var(--left); top: var(--top); padding: 0; width: 1.25rem; height: 1.25rem; clip-path: none; clip-path: none !important; 
        &::before { display: none; }
        & button { position: relative; width: 100%; height: 100%; transform: translate(-50%, -50%); border-radius: 50%; background: var(--my-gray); transition: background 333ms; outline: 1px solid var(--my-white); border: none; cursor: pointer;  }
        
        & button::before { position: absolute; top: 50%; left: 50%; width: 45%; height: 45%; border-radius: 50%; background: var(--my-white); content: ""; transform: translate(-50%, -50%) scale(var(--scale, 1)); transition: transform 333ms; }
        
        & button::after { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 200%; height: 200%; border-radius: 50%; content: ""; }
        & button:hover,
        & button.active { background: var(--my-soft-black); }
        &:has(button.active) { z-index: 2; }
    }
    & .dots li button.active::before { --scale: .6; }

    & .captions { height: 100%; width: 100%; margin: 0; border-left: 1px solid var(--my-white-20); }
    & .captions > li { display: none; padding: 2.5rem 2rem; animation: fade-in 500ms forwards; }
    & .captions > li h2 { margin-bottom: 1rem;}
    & .captions > li.active { display: block; }
    & .captions > li::before { display: none; }
    & .captions > li h3 { max-width: unset; margin-block: 0; position: relative; font-size: 2rem; font-weight: 500; }
    & .captions > li hr { margin-block: 1.5rem; border-top: 1px solid var(--my-white-20); }
    & .captions > li div { margin-bottom: 1rem; }
    & .captions > li dt { font-weight: 500; }

    @media only screen and (max-width: 1024px) {
        & .viewer { grid-template-columns: 1fr; }
        & .captions { border-left: none; border-top: 1px solid var(--my-white-20); }
        & .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) {
    footer > div:last-child .container ul {gap: 1rem; flex-wrap: wrap;}
    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; bottom: 0; left: 0; width: 100%; height: 33%; 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!important; color: var(--my-white); width: 100%; max-width: unset; 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: 17.5rem; }
    nav.solutions ul::after {content: ""; width: 2.25rem; height: 100%;}
}
@media only screen and (max-width: 1000px) {
    nav.solutions {margin-inline: -1.25rem; padding-inline: 1.25rem !important;}
    nav.solutions ul::after {width: 0.25rem;}
    nav.solutions ul li h3 {font-size: 1rem!important;}
}


/* ======================== PROJECTS ======================== */
section.has_ongoing_projects .container,
section.has_projects .container {max-width: 80rem;}
div.projects {
    & > ul { display: grid; grid-template-columns: repeat(auto-fill, 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;}
    & .readmore input {position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;}
    & .readmore-content {display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden;}
    & .readmore input:checked ~ .readmore-content {display: block; -webkit-line-clamp: unset; line-clamp: unset;}
    & .readmore label {display: inline-block; margin-top: 0.75rem; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; transition: opacity 250ms;}
    & .readmore label:hover {opacity: 0.6;}
    & .readmore input:focus-visible ~ label {outline: 2px solid currentColor; outline-offset: 2px;}
    & .readmore input:checked ~ label {display: none;}
}
section.white div.projects > ul > li {background-color: var(--my-soft-white);}  

/* ======================== DELIVERIES ======================== */
section:has(.deliveries) { background: var(--my-white);}
section:has(.deliveries) .container { max-width: 80rem; }
section:has(.deliveries) h2 ~ p { max-width: 40rem; }

table.deliveries { text-align: left;  border-collapse: separate; border-spacing: 0; --border: 1px solid rgba(0,0,0,0.1);  width: 100%; }
table.deliveries th { font-weight: 500;}
table.deliveries thead th { padding: .5rem .75rem;}
table.deliveries tbody td {  padding: .75rem;}
table.deliveries tbody td:nth-of-type(3) { font-weight: 500;}
table.deliveries tbody tr:not(:last-of-type) td { border-bottom: var(--border);}

table.deliveries tbody { max-height: clamp(20rem, 85vh, 50rem); overflow: auto;  display: block; border: var(--border);}
table.deliveries tr { display: grid; grid-template-columns: 6rem 6rem 1fr 1fr 1fr;}
table.deliveries tbody tr[hidden] { display: none;}
table.deliveries tbody tr.is-last td { border-bottom: 0;}

.deliveries-filters { display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin-bottom: 1.5rem;}
.deliveries-filters button { padding: .3rem .7rem; border: 1px solid transparent; border-radius: .3rem; background: var(--my-soft-white); color: inherit; font: inherit; font-size: .7rem; cursor: pointer; transition: background .15s, border-color .15s;}
.deliveries-filters button span { color: var(--my-dark-gray);}
.deliveries-filters button:hover { border-color: rgba(0,0,0,0.2);}
.deliveries-filters button.is-active { background: var(--my-glacial); border-color: currentColor;}

.deliveries-count { margin-bottom: .75rem; font-size: .9rem; color: var(--my-dark-gray);}
.deliveries-count strong { font-weight: 500; color: inherit;}

/* Paging replaces the scrolling tbody below 768px — see deliveries.js. */
.deliveries-more { display: none; }
.deliveries-more .btn { --bg-color: var(--my-soft-white); color: var(--my-black);}
.btn.plus::after { background-image: url('/img/plus-black.svg');}

@media only screen and (max-width: 768px) {
    .deliveries-filters { flex-wrap: nowrap; position: sticky; overflow: auto; scroll-snap-type: x mandatory; margin-left: -1.25rem; width: calc(100% + 1.25rem * 2); padding-inline: 1.25rem; -ms-overflow-style: none; scrollbar-width: none;} 
    .deliveries-filters .slider::-webkit-scrollbar { display: none;} 
    .deliveries-filters button { flex-shrink: 0; scroll-snap-align: start; scroll-margin-left: 1.25rem;}

    table.deliveries thead { display: none; }
    table.deliveries tbody { max-height: unset; overflow: unset;}
    table.deliveries tbody tr { grid-template-columns: auto auto;  grid-gap: 0.2rem; padding: 1rem; }
    table.deliveries tbody tr:not(:last-of-type) { border-bottom: var(--border);}
    table.deliveries tbody tr td { display: inline; border: none !important; padding: 0; }
    table.deliveries tbody tr td:last-of-type { display: none; }
    table.deliveries tbody tr td:nth-of-type(2) { margin-left: auto; }
    table.deliveries tbody tr td:nth-of-type(2)::before { content: "No. "}
    table.deliveries tbody tr td:nth-of-type(2) ~ * { grid-column: -1/1;}
    table.deliveries tbody tr td:nth-of-type(3) { font-size: 1.2rem; }

    .deliveries-more { display: flex; justify-content: center; margin-top: 1.5rem;}
    .deliveries-more[hidden] { display: none;}
}

/* ======================== TIMELINE ======================== */
section.has_timeline { background: var(--my-soft-black); color: var(--my-soft-white);}
section.has_timeline .container { width: 100%; max-width: 100%;}
section.has_timeline .top h2 { border-bottom: 1px solid var(--my-white-20);}
.timeline { --gutter: 3.25rem; position: relative; margin-inline: auto; }
.timeline h3 { position: relative;  font-size: 3rem; max-width: 13em; margin-bottom: 4rem; }
.timeline .slider { overflow: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); -ms-overflow-style: none; scrollbar-width: none;}
.timeline .slider::-webkit-scrollbar { display: none;}
.timeline .slider ul { display: flex; gap: 5rem; margin-bottom: 0; max-width: calc(80rem - 6.5rem);; margin-inline: auto; }
.timeline .slider ul li { flex-shrink: 0; width: clamp(12rem, calc(100% / 4 - 1.5rem), 19rem); scroll-snap-align: center;  scroll-margin-left: var(--gutter); position: relative;  clip-path: none !important; padding: 0; }
.timeline .slider ul li p { color: var(--my-white-50);}
.timeline .slider ul li p strong  { color: var(--my-white); font-weight: 500;}
.timeline .slider ul li > strong { font-size: 1.8rem;  font-weight: 500; transform: none !important;  background: var(--my-soft-black); padding: .3rem 1rem .3rem 1rem; margin-left: -1rem; display: block; max-width: max-content; z-index: 2; position: relative; margin-bottom: 1.5rem;  }
.timeline .inner-container { max-width: calc(80rem - 6.5rem); margin-inline: auto; }

.timeline .slider ul li::before { display: none; }
.timeline .slider ul li::after { content: ""; position: absolute; width: calc(100% + 5rem); top: 1.85rem; left: 0; right: -2rem; height: 1px; background: var(--my-white-20);}
.timeline .slider ul li:last-of-type::after { display: none;}
.timeline .slider ul::after { width: var(--gutter); flex-shrink: 0; content: ""; }


.timeline .top { position: relative; }
.timeline .buttons { bottom: unset; right: 0; top: -.5rem; display: flex; gap: .5rem; z-index: 2; }
.timeline .buttons .arrow { width: 2.2rem; height: 2.2rem; border: none; border-radius: 50%; background: url(/img/arrow-right-white.svg) center / 1rem auto no-repeat; cursor: pointer; transition: .25s; transition-property: color, background, opacity; border: 1px solid var(--my-soft-white) }
.timeline .buttons .arrow.prev { rotate: -180deg;}
.timeline .buttons .arrow:hover { background-color: var(--my-white); background-image:  url(/img/arrow-right-black.svg); }
.timeline[data-scrollable=""] .buttons,
.timeline[data-scrollable="right"] .buttons button.prev,
.timeline[data-scrollable="left"] .buttons button.next { opacity: .5;}

@media (max-width: 1000px) {
    .timeline { --gutter: 1.25rem;}
    .timeline .slider ul li { scroll-snap-align: center;}
}
@media (max-width: 500px) {
    .timeline .slider ul li { scroll-snap-align: start; }
}

/* ======================== 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(17rem, 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 {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;}
} 

@media only screen and (max-width: 600px) {
    ul.whatweoffer { grid-template-columns: 1fr;}
}


/* ======================== OVERLAY ======================== */
section.overlay {padding: 0; background: var(--my-soft-black);;}
section.overlay .container {}
section.overlay div.parallax {margin: 0;}
section.overlay .container > div { 
    padding: 2rem 0;
    color: var(--my-soft-white); 

    & 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; }
    & .btn::after { background-image: url('/img/arrow-right-white.svg'); }
}

@media only screen and (max-width: 768px) {
    section.overlay { padding-top: 0; display: flex; flex-direction: column; }
    section.overlay .container {padding-inline: 0; position: relative; transform: none; left: 0;}
    section.overlay .container > div { padding-inline: 1.25rem; margin: 0 auto; width: 100%; max-width: 100%; position: relative; padding-bottom: 2.5rem;} 
    
}

/* ======================== 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;
    margin-top: -0.2rem;
}
@media screen and (max-width: 1000px) {
    section:has(.news_blocks.is-shortcode) h2 + .btn {right: 1.25rem;}
}


/* ======================== CONTACT ======================== */
section.contact {padding-bottom: 6rem;}
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; padding-right: 1rem;}
.contact-accordion h4 { font-weight: 500; font-size: 1.5rem; line-height: 1.2; padding-bottom: 0.25rem;}
.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) {
    .contact-accordion div.text { grid-template-columns: 1fr; grid-gap: 2rem; }
    .contact-accordion div.text .h1 {margin-bottom: calc(0.5em - 2rem);}
    .contact-accordion .locations > div { grid-template-columns: 1fr; grid-gap: 1rem; }
    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;}
}


/* ======================== STEPS ======================== */
section.steps ol { display: grid;  grid-auto-flow: column; grid-auto-columns: 1fr; grid-gap: 2rem; --gutter:  list-style: none; counter-set: step; margin-left: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); padding-inline: var(--gutter) !important; overflow: auto; scroll-snap-type: x mandatory; max-width: 100vw; }   
section.steps ol li { counter-increment: step; display: flex; flex-direction: column; align-items: flex-start; padding-left: .8rem; border-left: 1px solid var(--my-soft-white);  min-width: 14rem;  scroll-snap-align: start; scroll-margin-left: var(--gutter);}
section.steps ol li::before { content: counter(step); font-size: 1.8rem;  font-weight: 500; transform: none !important; background:var(--my-soft-white); aspect-ratio: 1/1; text-align: center;    margin-bottom: 1.8rem; }
section.steps ol h3 { position: relative; max-width: unset; margin-block: 0 1rem;  font-size: 1.2rem; max-width: 10em;}
section.steps ol { -ms-overflow-style: none; scrollbar-width: none; } section.steps ol::-webkit-scrollbar { display: none; }


@media only screen and (max-width: 1024px) {
    section.steps ol { --gutter: 1.25rem;  }
}


/* ======================== TEAM ======================== */
section.has_team { background: var(--my-white);}
section.has_team .container { max-width: 80rem; margin: 0 auto;  }
section.has_team .container ul { margin: 0 auto !important; max-width: unset;  width: 100%; }
section.has_team h3 { font-size: 2.5rem; position: relative; margin-bottom: 1rem;}
section.has_team h3 ~ *:not(.team-accordions) { max-width: 40rem; color: var(--my-body);}
.team-accordions ul.accordion > li > * > button:first-child {  display: flex; gap: 2rem; padding-block: 1rem;  }
.team-accordions ul.accordion > li > * > button img { max-width: 5rem; height: auto; border-radius: .2em; }
.team-accordions ul.accordion > li > * > button div { display: flex; flex-direction: column; font-size: 1.1rem;  font-weight: 500;}
.team-accordions ul.accordion > li > * > button div span { font-weight: 300;  }
.team-accordions ul.accordion > li > div > div:last-child { padding-left: calc(5rem + 2rem); max-width: 50rem; color: var(--my-body);}
.team-accordions ul.accordion > li > div > div:last-child p:last-of-type { margin-bottom: 0; }
.team-accordions ul.accordion > li:first-child { border-top: none;}

section.dark .frc-i-widget {filter: invert(1) hue-rotate(180deg) brightness(1.1);}
.frc-banner a {text-decoration: none!important;}


/* FORMS */
form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 2rem;
    color-scheme: dark;
}
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 > label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
form > div.multiselect fieldset {
    display: block;
    border: 1px solid var(--my-white-40);
    background-color: rgba(255,255,255,0.0);
    padding: 0.5rem 0.75rem;
}
form > div.multiselect fieldset label {
    display: block;
    cursor: pointer;
    padding: 0.15rem 0;
}
form > div.multiselect .multiselect-toggle {
    display: inline-block;
    padding: 0;
    width: 1.3em;
    aspect-ratio: 1;
    line-height: 1;
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-family: monospace;
    font-size: 1.2rem;
}
form > div label .info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.4em;
    padding: 0;
    width: 1.15em;
    aspect-ratio: 1;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: none;
    color: inherit;
    opacity: 0.6;
    font-family: inherit;
    font-size: 0.75em;
    font-style: italic;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}
form > div label .info:hover,
form > div label .info:focus-visible {
    opacity: 1;
}
form > div.multiselect select option {
    color: var(--my-soft-black);
}
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-color: transparent;
    border-color: var(--my-white-40);
}
/* prevent native styling of select */
form > div select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('/img/dropdown-arrow-white.svg');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.5rem 0.5rem;
    padding-right: 2rem;
}
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;
}
/* the submit button carries .reversed, which had no rule: on a dark section the base .btn is
   transparent with a black arrow, so it read as an invisible arrow on near-black. Inverted:
   a solid white block with black text and a black arrow. */
form .btn.reversed {
    background: var(--my-white);
    color: var(--my-soft-black);
    padding: .75em 3rem .75em 1.5rem;
    border-radius: .3rem;
}
form .btn.reversed::after {
    background-image: url('/img/arrow-right-black.svg');
    right: 1.25rem;
}
form .btn.reversed:hover {
    background: var(--my-soft-white);
}
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%;}
}