@media (min-width: 1400px) {
  .past-1400 {
    display: flex;
  }
  .under-1400 {
    display: none;
  }
}

@media (max-width: 1400px) {
  .past-1400 {
    display: none;
  }
  .under-1400 {
    display: flex;
  }
  .sections #history .country {
    flex-direction: column;
    align-items: center;
  }
  .sections #history .jobs {
    flex-direction: column;
    width: 33.85em;
    margin: auto 0 0 0;
  }

  .sections #history .jobs li {
    text-align: center;
  }
  .sections #history .jobs li > div:last-of-type {
    text-indent: unset;
  }
  .sections #history .jobs li > div a::before,
  .sections #history .jobs li > div p::before {
    content: "";
    margin: unset;
  }
}

@media (pointer: coarse) {
  :root {
    --device: m;
    --height-menu-bar: 4.7em;
  }

  @media not all and (min-resolution: 0.001dpcm) {
    @supports (-webkit-appearance: none) {
      a,
      button,
      p,
      h1 {
        letter-spacing: -0.02em;
      }
    }
  }

  html,
  body {
    position: relative;
  }

  .shadow-bar {
    position: absolute;
    width: 150%;
    height: 6em;
    left: 50%;
    top: calc(100% - 3.5em);
    transform: translateX(-50%);
    background: radial-gradient(rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0) 63%);
  }

  header {
    height: var(--height-menu-bar);
    z-index: 2;
  }

  header > div {
    height: 100%;
  }

  header > div > div:nth-of-type(3) {
    display: flex;
    height: 100%;
    flex-direction: row;
    justify-content: space-between;
  }

  .web-content-fx {
    z-index: 1;
    transition: unset;
  }

  .web-content-fx.shrink {
    transform: unset !important;
    filter: unset;
    opacity: unset !important;
  }

  .sections #works .section-container .single-col {
    display: flex;
  }

  .sections #works .section-container .single-col,
  .sections #works .section-container .single-col > ul {
    width: 100%;
  }

  .sections #works .section-container > div > ul > li {
    display: flex;
    width: 100%;
    cursor: unset;
    color: var(--alt-color);
  }

  .sections #works .section-container > div > ul > li > div > div {
    transform: rotateZ(0);
    perspective: unset;
  }

  .sections #works .just-front {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    border-radius: 2.8em;
    display: flex;
    flex-direction: column;
    box-shadow: -7px 13px 20px 2px rgb(0 0 0 / 6%);
  }

  .sections #works .just-front > .imgcont {
    position: absolute;
  }

  .sections #works .just-front > .imgcont img {
    object-fit: cover;
    object-position: center center;
  }

  .sections #works .just-front > .infocont {
    opacity: 0;
    transition: opacity 0.4s 0.3s ease-in-out;
    position: relative;
  }
  .sections #works .just-front > .infocont > ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: 1.2em;
    row-gap: 0.6em;
  }

  .sections #works .just-front > .infocont > ul li {
    height: 2.6em;
  }

  .sections #works .just-front > .infocont > ul li img {
    height: 100%;
    width: auto;
  }

  .sections #works a img,
  .sections #works button img {
    filter: contrast(2) brightness(10);
  }

  .sections #history p,
  .sections #history a {
    line-height: var(--base-line-height);
  }

  .sections section#history a {
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.2em;
  }

  .modals {
    height: 100%;
    z-index: 3;
  }

  .modals .skills {
    width: inherit;
    height: inherit;
    transform: translateY(0);
    transform-origin: unset;
    background-color: var(--base-bg-color);
    pointer-events: all;
  }

  .modals .skills div {
    padding: unset;
    transform: unset;
    align-items: center;
  }

  .modals .skills div img {
    margin: 0 auto auto auto;
  }

  .modals .skills div ul {
    justify-content: center;
    column-gap: 1.25em;
    margin: 0 0 3.3em 0;
  }

  .modals .skills div ul li {
    width: 2.18em;
    height: 2.18em;
  }

  .modals .sample {
    pointer-events: none;
    display: flex;
    opacity: 1;
    filter: unset;
    transform: unset;
    transition: unset;
  }

  .modals .sample > div {
    pointer-events: all;
    border-radius: unset;
    box-shadow: unset;
    overflow: unset;
    isolation: unset;
    transform: translateY(-110%);
    transition: filter 0.3s cubic-bezier(0.77, 0, 0.175, 1),
      transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .modals .sample > div.focus {
    filter: blur(0) saturate(1);
    transform: translateY(0);
  }

  .modals .sample .controls {
    margin: auto auto 2.2em auto;
    width: calc(100% - 5em);
  }

  .modals .sample .controls button {
    transform: scale(0.85);
  }

  .menu button,
  .modals .sample button.close,
  .modals .skills .close {
    transition: none;
  }

  .menu button {
    margin: 1.35em 1.95em 0 0;
  }

  .modals .sample button.close {
    margin: 1.35em 1.95em 0 0;
    filter: contrast(0) brightness(2);
    z-index: 4;
  }

  .skillsison {
    transform: translateY(0) !important;
    filter: blur(0) saturate(1) !important;
  }

  .web-content-fx:not(.shrink) + .modals .skills,
  .web-content-fx:not(.shrink) + .modals .skills *,
  .web-content-fx:not(.shrink) + .modals .sample,
  .web-content-fx:not(.shrink) + .modals .sample * {
    pointer-events: none;
  }

  @media (min-width: 541px) {
    :root {
      --under-540: false;
    }
    .past-540 {
      display: flex;
    }
    .under-540 {
      display: none;
    }

    header {
      z-index: 2;
    }

    .bar,
    .shadow-bar {
      display: none;
    }

    header a[name="home"] {
      position: absolute;
      display: flex;
      margin: 5.1em 5.05em;
      font-size: 0.8em;
    }

    .hamburger {
      margin: 4.63em 3.95em auto auto;
      transform: scale(1.17);
    }

    header .menu {
      position: absolute;
      top: 0;
      background-color: var(--base-bg-color);
      transform: translateY(-110%);
      filter: blur(0.4em) saturate(0);
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
        filter 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }

    header.ismenuexpanded .menu {
      transform: translateY(0) !important;
      filter: blur(0) saturate(1) !important;
    }

    .menu .mobile .items {
      position: absolute;
      display: flex;
      flex-direction: column;
      height: calc(var(--h) - 8.8em);
      right: 0;
      text-align: right;
      margin: 4.4em 3.5em 4.4em 6.4em;
      justify-content: center;
      pointer-events: all;
      line-height: var(--menu-line-height);
    }

    .menu .mobile button {
      position: absolute;
      right: 0;
      margin: 4em 3.42em 0 0;
      transform: scale(1.1);
    }

    .web-content-fx {
      filter: blur(0);
      transition: filter 0.7s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.7s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .web-content-fx.shrink {
      transform: scale(0.93) !important;
      filter: blur(0.8em);
      opacity: 0 !important;
    }

    .sections {
      transition: none;
    }

    .web-content.ismenuexpanded .sections {
      width: unset;
      filter: unset;
    }

    .sections section .section-container {
      width: unset;
    }

    .sections section:not(:last-of-type) {
      padding: 3.99em 0 0 0;
    }

    .sections #works .just-front {
      border-radius: 2.5em;
    }

    .sections #works .just-front > .infocont {
      padding: 4.13em 4.2em;
    }

    .sections #works .just-front > .infocont > h1 {
      margin: 0 0 1.32em 0;
    }

    .sections #works .just-front > .infocont > ul {
      margin: 0 0 7.24em 0;
    }

    .sections #works .just-front > .infocont > p:not(:last-of-type),
    .sections #works .just-front > .infocont > p:only-of-type {
      margin: 0 0 2.4em 0;
    }

    .sections #skills ul li button div {
      transition: none;
      filter: unset;
    }

    .sections #skills .major li {
      height: 9.6em;
      width: 6.732467532467532em;
    }

    .sections #skills .major {
      column-gap: 6.76em;
      row-gap: 5.28em;
      margin: 0 0 11em 0;
    }

    .sections #skills .lesser {
      column-gap: 5.8em;
    }

    .sections #skills .lesser li {
      height: 4.1em;
    }

    .sections #clients ul {
      column-gap: 5.53em;
    }

    .sections #clients ul li {
      width: 13.16em;
    }

    .sections #history .country:not(:last-of-type) {
      margin: 0 0 calc(var(--h) / 2) 0;
    }

    .sections #history .jobs {
      row-gap: 11.7em;
    }

    .sections #history .jobs li > div:first-of-type {
      margin: 0 0 0.75em 0;
    }

    .sections #history .under-1400 .job-divider {
      margin: 9.4em auto 0 auto;
    }

    .sections #contact p {
      margin: 0 auto 4em auto;
      padding: 0px 4em;
    }

    .modals {
      z-index: 3;
    }

    .modals .sample > div,
    .modals .skills {
      pointer-events: none;
      transform: scale(0.9);
      filter: blur(0.3em) saturate(0);
      transition: filter 0.3s cubic-bezier(0.77, 0, 0.175, 1),
        transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
        opacity 0.3s cubic-bezier(0.77, 0, 0.175, 1);
      opacity: 0;
    }

    .modals .skills.skillsison {
      pointer-events: all;
      filter: blur(0) saturate(1);
      transform: scale(1);
      opacity: 1;
    }
    .modals .skills div ul {
      justify-content: center;
      column-gap: 1.25em;
      margin: 0 0 2.6em 0;
    }

    .modals .skills div ul li {
      width: 2.78em;
      height: 2.78em;
    }

    .modals .skills div img {
      width: 11.8em;
      height: calc(11.8em * 1.416666666666667);
      object-fit: contain;
    }

    .modals .skills .close {
      position: absolute;
      margin: 4.3em 3.7em 0 0;
      transform: scale(0.83);
      right: 0;
    }

    .modals .sample .controls {
      margin: auto auto 3.3em auto;
      width: calc(100% - 7.4em);
    }

    .modals .sample > div.focus {
      pointer-events: all;
      filter: blur(0) saturate(1);
      transform: translateY(0);
      opacity: 1;
    }

    .modals .sample button.close {
      top: 0;
      bottom: unset;
      margin: 2.9em 3.26em 0 0;
    }
  }

  @media (min-width: 768px) {
    .menu {
      font-size: var(--base-font-size);
    }

    .sections #skills .section-container,
    .sections #history .section-container {
      width: 21em;
    }

    .sections #clients .section-container,
    .sections #works .section-container .single-col {
      width: 25.8em;
    }

    .sections #clients ul {
      column-gap: 3em;
    }

    .sections #clients ul li {
      width: 11.4em;
      height: calc(14.4em / 1.074074074074074);
    }

    .sections #history .job-divider lottie-player.horiz {
      width: 100%;
    }
  }

  @media (min-width: 1024px) {
    .sections #skills .section-container,
    .sections #clients .section-container,
    .sections #history .section-container {
      width: 34.5em;
    }

    .sections #works .section-container .single-col {
      width: 31.4em;
    }

    .sections #clients ul {
      row-gap: 6.33em;
    }

    .sections #clients ul li {
      height: calc(13.16em / 1.074074074074074);
    }

    .sections #history .job-divider lottie-player.horiz {
      width: 33.8em;
    }
  }

  @media (max-width: 540px) {
    :root {
      --base-font-size: 1.5em;
      --small-font-size: 1.5em;
      --titling-font-size: 2.33em;
      --disclaimer-font-size: 0.8em;

      --under-540: true;
    }

    .past-540 {
      display: none;
    }
    .under-540 {
      display: flex;
    }

    header {
      transition: height 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }

    header.ismenuexpanded,
    header.ismodalexpanded {
      height: var(--h);
    }

    header a[name="home"] {
      font-size: 0.6em;
      margin: 2.2em 3.5em;
      z-index: 1;
    }

    .hamburger {
      height: -moz-fit-content;
      height: fit-content;
      margin: 1.3em 1.65em 0 auto;
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .ismenuexpanded .hamburger,
    .ismodalexpanded .hamburger {
      transform: translateX(200%);
    }

    .hamburger lottie-player {
      transform: scale(0.75, 1);
      width: 2.3em;
    }

    .close {
      position: absolute;
      right: 0;
      margin: 0 1.97em 1.6em 0;
    }

    .modals .skills .close {
      margin: 2.4em 3.24em 0 0;
      transform: scale(1.45);
    }

    lottie-player[name="closeMenu"],
    lottie-player[name="closeModalSkills"],
    lottie-player[name="closeModalVideo"] {
      width: 1.15em;
      height: -moz-fit-content;
      height: fit-content;
    }

    header .bar {
      position: absolute;
      background-color: var(--base-bg-color);
    }

    .web-content .sections {
      transition: unset;
    }

    .web-content.ismenuexpanded .sections {
      width: unset;
      filter: unset;
    }

    .menu {
      position: absolute;
      top: 0;
    }

    .menu .mobile {
      display: flex;
      height: 100%;
      flex-direction: column;
      transform: translateY(-100%);
      filter: blur(0.4em) saturate(0);
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
        filter 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .ismenuexpanded .menu .mobile {
      filter: blur(0) saturate(1);
      transform: translateY(0);
    }

    .menu .mobile .items {
      margin: auto;
      display: flex;
      height: 100%;
      row-gap: 2.18em;
      margin: auto 2.1em auto auto;
      flex-direction: column;
      flex-wrap: wrap;
      align-content: flex-end;
      text-align: right;
    }

    .menu .mobile .items li:first-of-type {
      margin: auto 0 0 0;
    }
    .menu .mobile .items li:last-of-type {
      margin: 0 0 auto 0;
    }

    .sections section:not(:last-of-type) {
      padding: unset;
    }

    .sections section .section-container,
    .sections #skills .section-container,
    .sections #clients .section-container {
      width: 100%;
    }

    .sections #clients .section-container,
    .sections #works .section-container .single-col {
      padding: 0 2.1em;
    }

    .sections #works .section-container .single-col > ul {
      row-gap: 4.7em;
    }

    .sections #works .just-front > .infocont {
      padding: 3.55em 3.3em;
    }

    .sections #works .just-front > .infocont > ul {
      margin: 0 0 3.9em 0;
    }
    .sections #works .just-front > .infocont > h1 {
      margin: 0 0 0.75em 0;
    }

    .sections #works .just-front > .infocont > p {
      display: -webkit-box;
      text-overflow: ellipsis;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 6;
      overflow: hidden;
    }

    .sections #works .just-front > .infocont > p:not(:last-of-type),
    .sections #works .just-front > .infocont > p:only-of-type {
      margin: 0 0 1.52em 0;
    }

    .sections #skills ul li button > div {
      filter: unset;
      transition: unset;
    }

    .sections #skills .major {
      row-gap: 3.45em;
      column-gap: 100%;
    }

    .sections #skills .major {
      margin: 0 0 6em 0;
    }

    .sections #skills .lesser {
      column-gap: 3.5em;
      padding: 0 2.1em;
      row-gap: 6.9em;
    }

    .sections #skills .lesser li {
      height: 6.3em;
      min-width: 6.3em;
      margin: unset;
    }

    .sections #skills .lesser li button {
      margin: auto;
    }

    .sections #skills .major li {
      height: 13.9em;
    }

    .sections #clients ul li {
      width: 9.4em;
      height: calc(9.4em / 1.074074074074074);
    }

    .sections #clients ul {
      column-gap: 2em;
    }

    .sections #history .section-container {
      display: flex;
      flex-direction: column;
      row-gap: calc(var(--h) / 2);
    }

    .sections #history .jobs {
      width: unset;
      row-gap: 13.9em;
    }

    .sections #history .country {
      min-height: unset;
      padding: 0 2.2em;
    }

    .sections #history .job-divider lottie-player.horiz {
      width: unset;
    }

    .sections #history .under-1400 .job-divider {
      margin: 10.5em auto 0 auto;
    }
    .sections #history .under-1400 .job-divider img {
      width: 100%;
    }

    .sections #contact ul {
      row-gap: 4.5em;
      flex-direction: column;
      align-items: center;
    }
    .sections #contact h1 {
      margin: auto auto 0 auto;
    }

    .sections #contact ul {
      margin: 0 auto auto auto;
    }

    .sections #contact ul li a img {
      height: 4.06em;
    }

    .sections #contact p {
      margin: auto auto var(--height-menu-bar) auto;
      padding: 0px 2em;
    }

    .sections section .section-container {
      padding: calc(var(--height-menu-bar) + 2.1em) 0 0 0;
    }

    @media (max-height: 896px) {
      .sections #contact ul {
        row-gap: unset;
        width: unset;
        column-gap: 10vw;
        flex-direction: row;
      }

      .sections #contact ul li a img {
        height: 23vw;
      }
    }

    @media (max-height: 552px) {
      .sections #contact h1 {
        margin: 0 auto;
      }
      .sections #contact p {
        margin: auto auto 0.8em auto;
      }
    }

    .modals .skills {
      transform: translateY(-100%);
      filter: blur(0.3em) saturate(0);
      transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1),
        filter 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    }
    .modals .skills div img {
      width: 11.25em;
      height: calc(11.25em * 1.416666666666667);
      object-fit: contain;
    }

    .spacer.a {
      height: 2.6em;
    }
    .spacer.b {
      height: unset;
      margin: 0 auto auto auto;
    }
    .spacer.c {
      height: var(--h);
    }

    .c-scrollbar_thumb {
      width: 0.16em !important;
      left: 0.26em !important;
    }
  }

  @media (max-width: 375px) {
    .wrapper {
      font-size: 4vw;
    }
  }

  @media (max-width: 240px) {
    .menu .mobile .items {
      margin: 0 2.1em 1.43em auto;
    }
  }

  .landscape-msg {
    display: none;
  }

  @media (orientation: landscape) {
    @media (max-height: 415px) {
      .landscape-msg {
        display: flex;
      }
    }
  }
}

@media (pointer: fine) {
  :root {
    --device: d;
  }

  .sections section:not(#contact) a,
  .sections section:not(#contact) button {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out,
      filter 0.2s ease-in-out;
  }

  a[name] {
    transition: color 0.3s ease-in-out;
  }
  a[name="works"]:hover {
    color: var(--works-section-color);
  }
  a[name="skills"]:hover {
    color: var(--skills-section-color);
  }
  a[name="clients"]:hover {
    color: var(--clients-section-color);
  }
  a[name="history"]:hover {
    color: var(--history-section-color);
  }
  a[name="contact"]:hover {
    color: var(--contact-section-color);
  }

  .sections section#works a:hover,
  .sections section#works button:hover {
    color: var(--works-section-color);
  }

  .sections section#works a:hover img,
  .sections section#works button:hover img {
    transform: translate(0.05em, 0.35em);
  }
  .sections section#skills a:hover,
  .sections section#skills button:hover {
    color: var(--skills-section-color);
  }
  .sections section#clients a:hover,
  .sections section#clients button:hover {
    color: var(--clients-section-color);
  }
  .sections section#history a:hover,
  .sections section#history button:hover {
    color: var(--history-section-color);
  }
  .sections section#contact a:hover,
  .sections section#contact button:hover {
    color: var(--contact-section-color);
  }

  @supports (contain: paint) {
    /* FOR FF/CHR -------------------- */
    .sections #works .section-container > div > ul > li > div > div {
      transition: unset;
    }
    .sections #works .back,
    .sections #works .front {
      transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    }
    .sections #works .back {
      -webkit-transform: rotateY(180deg);
      transform: rotateY(180deg);
    }
    .sections #works .front {
      -webkit-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }
  }

  @supports (contain: paint) {
    /* FOR FF/CHR -------------------- */
    .sections
      #works
      .section-container
      > div
      > ul
      > li
      > div:hover
      > div
      .back {
      -webkit-transform: rotateY(0deg);
      transform: rotateY(0deg);
    }

    .sections
      #works
      .section-container
      > div
      > ul
      > li
      > div:hover
      > div
      .front {
      position: absolute;
      -webkit-transform: rotateY(180deg);
      transform: rotateY(180deg);
    }
  }

  .sections #skills ul li button:hover div {
    filter: saturate(1) contrast(1) brightness(1);
  }
  @media (max-width: 1465px) {
    .menu .desktop .deployed {
      transform: translateX(var(--width-expanded-desktop-menu));
      transition-delay: 0s;
    }
    .menu .desktop .compressed {
      transform: translateX(0);
      transition-delay: 0.3s;
    }

    .sections #works .section-container .single-col {
      display: flex;
    }
    .sections #works .section-container .double-col {
      display: none;
    }
  }

  @media (max-width: 1400px) {
    .sections #skills .section-container,
    .sections #clients .section-container {
      width: 32.4em;
    }

    .sections #clients ul {
      column-gap: 3.47em;
    }

    .sections #skills .major {
      column-gap: 8.15em;
    }
    .sections #skills .lesser {
      column-gap: 6em;
    }

    .past-1400 {
      display: none;
    }
    .under-1400 {
      display: flex;
    }
  }
  @media (max-width: 1024px) {
    .wrapper {
      font-size: 1.563vw;
    }
  }

  .landscape-msg {
    display: none;
  }
}
