@font-face {
  font-family: icomoon;
  src:
    url(../fonts/icomoon.woff2) format("woff2"),
    url(../fonts/icomoon.woff) format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --font: sofia-pro, "Helvetica Neue", Arial, sans-serif;
  --gray: #adadad;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.94;
  color: #000;
  background-color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  font-weight: 700;
  letter-spacing: 0;
  word-break: break-word;
}

h1 {
  font-size: 90px;
  line-height: 110px;
  margin-bottom: 30px;
}

h2 {
  font-size: 58px;
  line-height: 66px;
  margin-bottom: 21px;
}

h3 {
  font-size: 38px;
  line-height: 50px;
  margin-bottom: 19px;
}

h4 {
  font-size: 26px;
  line-height: 36px;
  margin-bottom: 14px;
}

@media (max-width: 767.98px) {
  h1 {
    font-size: 67.5px;
    line-height: 82.5px;
  }
  h2 {
    font-size: 43.5px;
    line-height: 49.5px;
  }
  h3 {
    font-size: 28.5px;
    line-height: 37.5px;
  }
}

p {
  margin: 0 0 20px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  color: rgba(0, 0, 0, 0.5);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.icon::after,
.main ul li::before {
  font-family: icomoon, sans-serif;
  font-weight: 400;
  font-style: normal;
  speak: never;
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  padding-left: 25px;
  padding-right: 25px;
}

@media (min-width: 992px) {
  .container {
    padding-left: 90px;
    padding-right: 90px;
  }
}

.main > .page-header {
  padding-top: 40px;
}

/* Lists in content */

.main ol,
.main ul {
  padding-left: 30px;
  margin: 0 0 20px;
  list-style: none;
}

.main ol li,
.main ul li {
  position: relative;
  font-size: 22px;
  line-height: 38px;
  margin-bottom: 8px;
  font-weight: 300;
}

.main ul li::before {
  content: "\e624";
  position: absolute;
  top: 0;
  left: -30px;
  font-size: 16px;
  line-height: 38px;
}

.main ol {
  counter-reset: li;
}

.main ol li {
  counter-increment: li;
}

.main ol li::before {
  content: counter(li) ".";
  position: absolute;
  left: -30px;
}

/* Header */

.site-header {
  position: relative;
  z-index: 3;
  background-color: #fff;
}

.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 0 20px;
}

.logo {
  flex-grow: 1;
}

.logo a {
  display: inline-block;
  padding: 15px 0;
}

.logo img {
  width: 261px;
  height: 42px;
}

.nav-menu {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 20px 15px;
  font-size: 22px;
  line-height: 22px;
  font-weight: 700;
  text-decoration: none;
  color: #000;
}

.nav-menu a:hover {
  text-decoration: underline;
  color: #000;
}

.nav-menu .nav-secondary,
.nav-menu .nav-baldwin {
  display: none;
}

.nav-toggle {
  display: none;
  line-height: 22px;
}

.nav-toggle .icon::after {
  content: "\e609";
  font-size: 24px;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .logo a {
    padding: 0;
  }
}

@media (max-width: 991.98px) {
  .nav-toggle {
    display: block;
    position: relative;
    z-index: 3;
  }

  .nav-collapse {
    display: none;
  }

  body.open-menu {
    overflow: hidden;
  }

  body.open-menu .nav-toggle {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 70px;
    padding: 5px 25px;
    text-align: right;
    background-color: #fff;
  }

  body.open-menu .nav-toggle .icon::after {
    content: "\e616";
    font-size: 14px;
    font-weight: 700;
  }

  body.open-menu .nav-collapse {
    display: block;
    position: fixed;
    z-index: 2;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    padding-bottom: 70px;
    background-color: #fff;
  }

  body.home.open-menu .nav-toggle,
  body.home.open-menu .nav-collapse {
    background-color: #000;
  }

  .nav-menu {
    flex-direction: column;
    padding: 0 20px 10px;
  }

  .nav-menu a {
    padding: 15px 0;
  }

  .nav-menu .nav-last {
    margin-bottom: 76px;
  }

  .nav-menu .nav-secondary {
    display: block;
  }

  .nav-menu .nav-secondary a {
    padding: 0;
    font-size: 14px;
    line-height: 38px;
    font-weight: 300;
    color: var(--gray);
  }

  .nav-menu .nav-baldwin {
    display: block;
    margin-top: 20px;
  }

  .nav-menu .nav-baldwin a {
    padding: 0;
  }

  .nav-menu .nav-baldwin img {
    max-width: 25px;
  }
}

/* Footer (vertical legal strip on the right) */

.site-footer {
  display: none;
}

@media (min-width: 992px) {
  .site-footer {
    display: flex;
    position: absolute;
    bottom: 170px;
    right: -80px;
  }
}

.footer-legal {
  display: flex;
  align-items: center;
  transform: rotate(90deg);
}

.footer-legal ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-legal li {
  padding-right: 15px;
}

.footer-legal li a {
  font-size: 14px;
  line-height: 14px;
  font-weight: 300;
  color: var(--gray);
  text-decoration: none;
}

.footer-legal li a:hover {
  text-decoration: underline;
}

.footer-language {
  padding-right: 10px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-baldwin img {
  height: 25px;
  width: auto;
  transform: rotate(-90deg);
}

/* Home */

body.home {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  min-height: 480px;
  padding-bottom: 70px;
  background-color: #000;
}

.home .site-header,
.home .nav-toggle,
.home .nav-collapse {
  background-color: #000;
}

.home .nav-menu a,
.home .nav-toggle,
.home .footer-language {
  color: #fff;
}

.home .nav-menu .nav-secondary a {
  color: var(--gray);
}

.home .wrap {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
}

.home .main > .page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding-top: 0;
  text-align: center;
}

.devices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 18px;
  width: min(480px, 100%);
  margin: 0 0 32px;
  flex: 0 0 auto;
}

.devices svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.devices :is(line, path, polyline, polygon, circle.ring) {
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.devices .ball {
  fill: #fff;
  stroke: none;
}

.swing,
.rotor,
.coil,
.spring-top,
.spring-bot,
.wave-arm,
.scale-beam,
.marble {
  transform-box: view-box;
}

.swing-left {
  transform-origin: 21.7% 20%;
  animation: cradle-left 2.8s linear infinite;
}

.swing-right {
  transform-origin: 68.3% 20%;
  animation: cradle-right 2.8s linear infinite;
}

.rotor {
  transform-origin: 50% 48.9%;
  animation: spin 10s linear infinite;
}

.coil {
  transform-origin: 53.3% 51.1%;
  animation: spring 2.4s ease-in-out infinite;
}

.spring-top,
.spring-bot {
  transform-origin: 0 0;
}

.spring-top { animation: spring-top 2.4s ease-in-out infinite; }
.spring-bot { animation: spring-bot 2.4s ease-in-out infinite; }

.wave-arm {
  transform-origin: var(--o) 20%;
  animation: wave 3.4s ease-in-out infinite;
  animation-delay: calc(var(--n) * -0.18s);
}

.scale-beam {
  transform-origin: 50% 55.6%;
  animation: tip 2.8s ease-in-out infinite;
}

.marble {
  transform-origin: center;
  animation: roll 3.2s linear infinite, roll-fade 3.2s linear infinite;
}

.marble-b { animation-delay: -1.07s; }
.marble-c { animation-delay: -2.13s; }

@keyframes cradle-right {
  0% { transform: rotate(-26deg); animation-timing-function: linear; }
  16% { transform: rotate(-26deg); animation-timing-function: cubic-bezier(0.45, 0, 0.85, 0.35); }
  34% { transform: rotate(0deg); animation-timing-function: linear; }
  84% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.15, 0.7, 0.45, 1); }
  100% { transform: rotate(-26deg); }
}

@keyframes cradle-left {
  0% { transform: rotate(0deg); animation-timing-function: linear; }
  34% { transform: rotate(0deg); animation-timing-function: cubic-bezier(0.15, 0.7, 0.45, 1); }
  52% { transform: rotate(26deg); animation-timing-function: linear; }
  66% { transform: rotate(26deg); animation-timing-function: cubic-bezier(0.45, 0, 0.85, 0.35); }
  84%, 100% { transform: rotate(0deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spring {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.72); }
}

@keyframes spring-top {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8.1%); }
}

@keyframes spring-bot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8.1%); }
}

@keyframes wave {
  0%, 100% { transform: rotate(14deg); }
  50% { transform: rotate(-14deg); }
}

@keyframes tip {
  0%, 100% { transform: rotate(-9deg); }
  50% { transform: rotate(9deg); }
}

@keyframes roll {
  0% { transform: translate(6.7%, 35.6%); }
  36% { transform: translate(38.3%, 44.4%); }
  72% { transform: translate(70%, 51.1%); }
  100% { transform: translate(93.3%, 62.2%); }
}

@keyframes roll-fade {
  0% { opacity: 0; animation-timing-function: step-end; }
  7% { opacity: 1; animation-timing-function: step-end; }
  93% { opacity: 1; animation-timing-function: step-end; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .swing-left,
  .swing-right,
  .rotor,
  .coil,
  .spring-top,
  .spring-bot,
  .wave-arm,
  .scale-beam,
  .marble {
    animation: none;
  }

  .swing-left { transform: rotate(26deg); }
  .scale-beam { transform: rotate(-9deg); }
  .marble { opacity: 1; transform: translate(16%, 38%); }
  .marble-b { transform: translate(48%, 46%); }
  .marble-c { transform: translate(82%, 56%); }
}

.home .page-header h1 {
  width: 264px;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 55px;
  color: #fff;
}

@media (min-width: 992px) {
  .home .wrap {
    padding: 0 40px;
  }

  .home .main > .page-header {
    flex-wrap: nowrap;
  }

  .devices {
    margin: 0 64px 0 0;
  }

  .home .page-header h1 {
    width: 340px;
    font-size: 58px;
    line-height: 66px;
  }
}

@media (min-width: 1100px) {
  .devices {
    width: 520px;
    gap: 22px 26px;
  }
}

/* Shared inner page widths */

.template-about,
.template-products,
.template-contact {
  min-height: 100vh;
}

@media (min-width: 768px) {
  .template-legal .wrap {
    padding: 0 90px;
  }
}

@media (min-width: 992px) {
  .template-legal .wrap,
  .template-products .wrap,
  .template-contact .wrap {
    padding: 0 220px;
  }

  .template-about .wrap {
    padding: 0 110px;
  }
}

@media (min-width: 1500px) {
  .template-about .wrap {
    padding: 0 220px;
  }
}

.template-legal .main {
  padding-bottom: 60px;
}

/* Tabs (about + products) */

.theme-content-area {
  margin-bottom: 60px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.template-products .tab-list {
  margin-bottom: 0;
}

.tab {
  padding: 0;
  margin-right: 30px;
  text-align: left;
}

.tab h3 {
  margin-bottom: 19px;
}

.tab:hover h3,
.tab[aria-selected="true"] h3 {
  text-decoration: underline;
}

.tab h3::after,
.team-name::after {
  content: "\e616";
  display: inline-block;
  margin-left: 12px;
  font-family: icomoon, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: inherit;
  vertical-align: middle;
  transform: rotate(45deg);
}

.tab[aria-selected="true"] h3::after {
  transform: none;
}

.tab-panel {
  animation: fade-in 0.15s linear;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@media (min-width: 768px) {
  .template-about .tab-panel {
    display: flex;
  }

  .template-about .tab-description {
    width: 80%;
  }
}

@media (max-width: 1199.98px) {
  .template-about .page-header {
    padding-top: 0;
  }

  .template-about .page-header h1 {
    font-size: 48px;
    line-height: 64px;
  }

  .template-about .tab {
    width: 100%;
  }

  .template-about .tab-description p,
  .template-about .tab-description li {
    font-size: 18px;
    line-height: 34px;
  }
}

@media (min-width: 1500px) {
  .template-about .tab-description {
    width: 55%;
  }
}

@media (max-width: 991.98px) {
  .template-products .page-header {
    padding-top: 0;
  }

  .template-products .page-header h1 {
    font-size: 48px;
    line-height: 64px;
  }

  .template-products .tab {
    width: 100%;
  }

  .template-products .tab-description p {
    font-size: 18px;
    line-height: 34px;
  }
}

@media (min-width: 992px) {
  .template-products .tab {
    margin-right: 40px;
  }

  .template-products .tab-panel {
    display: flex;
  }

  .template-products .tab-description {
    width: 50%;
    margin-right: 100px;
  }

  .template-products .tab-image {
    width: 40%;
  }
}

@media (min-width: 1500px) {
  .template-products .tab {
    margin-right: 100px;
  }

  .template-products .tab-description {
    margin-right: 140px;
  }
}

/* Team */

.team-items {
  position: relative;
}

.team-image {
  margin-bottom: 30px;
}

.team-name {
  display: inline-block;
  padding: 0;
  margin-bottom: 14px;
  font-size: 26px;
  line-height: 36px;
  font-weight: 700;
  text-align: left;
}

.team-description,
.close-team {
  display: none;
}

.team-item.active {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background-color: #fff;
}

.team-item.active .team-info {
  display: flex;
  flex-wrap: wrap;
}

.team-item.active .team-name {
  flex-basis: 80%;
  padding-bottom: 15px;
  line-height: 26px;
  cursor: auto;
}

.team-item.active .team-name::after {
  transform: none;
}

.team-item.active .team-description {
  display: block;
  flex-basis: 80%;
}

.team-item.active .close-team {
  display: block;
  font-size: 22px;
}

.close-team:hover {
  text-decoration: underline;
}

@media (max-width: 1199.98px) {
  .team-image {
    width: 80%;
  }
}

@media (max-width: 767.98px) {
  .team-item.active {
    position: static;
    height: auto;
  }

  .team-item.active .close-team {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) {
  .team-items {
    display: flex;
  }

  .team-item {
    display: flex;
    flex: 1 1 0;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-right: 30px;
  }

  .team-image {
    margin-bottom: 28px;
  }

  .team-item.active {
    flex-wrap: nowrap;
  }

  .team-item.active .team-image {
    flex: 0 0 30%;
    width: auto;
    padding-right: 30px;
  }

  .team-item.active .team-info {
    flex: 0 0 70%;
  }

  .team-item.active .close-team {
    position: absolute;
    top: 0;
    right: 0;
  }
}

@media (min-width: 1500px) {
  .team-item {
    margin-right: 115px;
  }
}

/* Contact */

.template-contact .theme-content-area > p {
  font-size: 18px;
}

.template-contact .theme-content-area a {
  text-decoration: none;
}
