/* Global */
:root {
    --header-height: 100px;
}

body {
    padding-top: var(--header-height);
    overflow: visible;
}

.container {
    max-width: 2560px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 30px;
    padding-right: 30px;
}

.container .grid-container {
    padding-left: 0;
    padding-right: 0;
}

.global-padding {
    padding-left: 30px !important;
    padding-right: 30px !important;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio::before {
    content: "";
    display: block;
    padding-top: var(--aspect-ratio);
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ratio-1x1 {
    --aspect-ratio: 100%;
}

.ratio-3x4 {
    --aspect-ratio: calc(4 / 3 * 100%);
}

.ratio-5x4 {
    --aspect-ratio: calc(4 / 5 * 100%);
}

.ratio-9x8 {
    --aspect-ratio: calc(8 / 9 * 100%);
}

.ratio-3x2 {
    --aspect-ratio: calc(2 / 3 * 100%);
}

.filter-list {
    margin: 40px 0;
}

.filter-list .menu {
    display: flex;
    margin: 0;
}

.filter-list .menu li:last-child {
    margin-right: 0;
}

.filter-list .menu li {
    margin-right: 10px;
    margin-bottom: .25rem;
}

.filter-list .menu li + li {
    margin-left: 0;
}

.filter-list .menu li a {
    font-weight: 700;
    color: #c4c4c6;
}

.filter-list .menu li a::before {
    content: "→";
}

.archive-work.all .filter-list li.cat-item-all a,
.archive-work .filter-list li.current-cat a,
.archive-team.all .filter-list li.cat-item-all a,
.archive-team .filter-list li.current-cat a {
    color: #000;
    text-decoration: none;
}

/* Header */
.header {
    z-index: 14;
    transition: 200ms background ease-in-out;
}

.header.headroom--not-top,
.header.headroom--not-top .top-bar {
    background: #fff;
}

.header.headroom--not-top .sublogo {
    transform: translateY(-100%);
    opacity: 0;
}

.header .top-bar {
    position: relative;
    z-index: 1;
    padding: 20px 0;
    background: none;
    transition: 200ms background ease-in-out;
}

.header .top-bar-right {
    line-height: 1;
}

.header .custom-logo {
    height: 60px;
}

.header .sublogo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    left: auto;
    margin-top: 0;
    transition: 250ms all linear;
    overflow: hidden;
}

.header .sublogo img {
    height: 54px;
    margin: 2px 0;
}

.header .sublogo img:last-child {
    height: 67px;
}

.menu-open .header,
.menu-open .header .top-bar {
    background: transparent;
}

.menu-open .header .sublogo {
    opacity: 0;
    visibility: hidden;
}

.toggle-menu {
    position: relative;
    cursor: pointer;
    font-size: 40px;
    font-weight: 700;
    color: #000;
    -webkit-appearance: none;
    appearance: none;
}

.toggle-menu::before {
    opacity: 0;
    transition: 200ms opacity ease-in-out;
}

.toggle-menu:focus-visible {
    outline: 0;
}

.toggle-menu:hover::before,
.toggle-menu:focus-visible::before {
    opacity: 1;
}

.toggle-menu::before {
    content: "←";
}

.toggle-menu > span {
    transition: 200ms all ease-in-out;
}

.toggle-menu .close-label {
    position: absolute;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
}

.toggle-menu.open::before {
    content: "→";
}

.toggle-menu.open .open-label {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
}

.toggle-menu.open .close-label {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Sub Logo */
.sub-logo {
    position: absolute;
    z-index: 1;
    left: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    overflow: hidden;
    max-width: 720px;
}

.sub-logo img {
    height: 54px;
    margin: 2px 0;
}

.sub-logo img:last-child {
    height: 67px;
}

/* Offcanvas */
.off-canvas {
    text-align: right;
    width: 470px;
    background: #fff;
    padding: 30px;
}

.off-canvas-content .off-canvas.position-right {
    transform: translateX(470px);
}

.off-canvas.is-transition-overlap.is-open {
    box-shadow: none;
}

.off-canvas ul li a {
    font-size: 30px;
    line-height: 1.2;
    padding: 0;
    text-decoration: none;
}

.off-canvas ul li a::before {
    content: "→";
    opacity: 0;
    transition: 200ms all ease-in-out;
}

.off-canvas ul li a:hover::before,
.off-canvas ul li a:focus-visible::before {
    opacity: 1;
}

.off-canvas ul ul li {
    margin-top: 10px;
}

.off-canvas > ul {
    margin-top: 100px;
}

.off-canvas > ul > li:not(:first-child) {
    margin-top: 30px;
}

.off-canvas > ul > li > a {
    font-size: 40px;
    font-weight: 700;
}

.js-off-canvas-overlay {
    background: rgba(0,0,0,0.1);
}

/* Home page */
.home-grid .row {
    margin-bottom: 50px;
}

.home-grid .row-10 {
    margin-bottom: -15%;
}

.home-grid .item-0 {
    margin-top: 20%;
}

.home-grid .item-2 {
    margin-top: -15%;
}

.home-grid .item-3 {
    margin-top: 7%;
}

.home-grid .item-5 {
    margin-top: 10%;
}

.home-grid .item-7 {
    align-self: center;
}

.home-grid .item-8 {
    margin-top: -7%;
}

.home-grid .item-9 {
    margin-top: -5%;
}

.home-grid .item-10 {
    margin-top: 10%;
}

.home-grid .work-card {
    margin-bottom: 0;
}

.home-grid .quote blockquote {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    border: none;
    padding: 0;
    margin: 0;
}

/* Sub page */
.sub-page.extra-spacing {
    margin-top: 270px;
}

.sub-page .block {
    margin-bottom: 80px;
}

.sub-page .block h2 {
    font-size: 40px;
}

.sub-page .block h3 {
    font-size: 30px;
}

.sub-page .block h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.sub-page .block .text {
    font-size: 17px;
}

.sub-page .block .text p:last-child,
.sub-page .block .text ul:last-child,
.sub-page .block .text table:last-child {
    margin-bottom: 0;
}

.sub-page .block .image img {
    width: 100%;
}

.sub-page .block .intro {
    margin-bottom: 60px;
}

.sub-page .block-three-columns-image-text .image {
    margin: 15px 0 20px;
    overflow:hidden;
}

.sub-page .block-three-columns-image-text .image img {
    transition: 400ms ease-in-out all;
}

.sub-page .block-three-columns-image-text .image:hover img {
    transform: scale(1.115);
    transition: 400ms ease-in-out all;
}

.sub-page .block-link .page-link {
    font-size: 30px;
    font-weight: 700;
}

.sub-page .block-link .page-link::before {
    content: "→";
}

.sub-page .block-link .page-link:hover {
    text-decoration: none;
}

.sub-page .block.full-height .image  {
    height: calc(100vh - (var(--header-height) + 1.5rem));
}

.sub-page .block.full-height img {
    height: 100%;
    object-fit: cover;
}

/* Work - listing */
.archive-work {
    margin: 20px 0;
}

.work-card {
    display: block;
    margin-bottom: 30px;
}

.work-card.no-active {
    pointer-events: none;
}

.work-card .image,
.work-card .image img {
    transition: 400ms ease-in-out all;
}

.work-card .image {
    overflow: hidden;
}

.work-card .image img {
    object-fit: cover;
}

.work-card .content {
    padding-top: 10px;
    padding-bottom: 10px;
}

.work-card .content .title {
    font-size: 20px;
    margin-bottom: .25rem;
}

.work-card .content .title::before {
    content: "↑";
}

.work-card .content .category-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0;
    color: #C4C4C6;
    font-size: 18px;
    font-weight: 700;
}

.work-card .content .category-list li:not(:last-child)::after {
    content: "/";
    margin-left: 4px;
    margin-right: 4px;
}

.work-card:hover,
.work-card:focus {
    text-decoration: none;
}

/*.work-card:hover .image,
.work-card:focus .image {
    transform: scale(.975);
}*/

.work-card:hover .image img,
.work-card:focus .image img {
    transform: scale(1.115);
}

/* Work - single */
.work-single {
    margin-bottom: 150px;
}

.work-single-banner {
    height: calc(100vh - 194px);
}

.work-single-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-single-title {
    font-size: 40px;
    margin: 20px 0;
}

.work-single-info {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-column-gap: 10px;
    font-size: 18px;
    margin-bottom: 50px;
}

.work-single-info-value {
    font-weight: 700;
}

.work-single-info-value .separator {
    margin-left: -4px;
}

/* Team - listing */
.archive-team .filter-cell {
    align-self: flex-start;
}

.archive-team .filter-list {
    position: absolute;
    top: 300px;
    margin: 0;
    max-width: calc(41.6666666667% - 1.5rem);
}

.archive-team .filter-list.is--sticky {
    position: fixed;
    top: 100px;
}

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

.team-card .content {
    padding-top: 10px;
    padding-bottom: 10px;
}

.team-card .content .title {
    font-size: 20px;
}

.team-card .content .short-desc {
    font-size: 16px;
}

.team-card .content .short-desc ul {
    margin-left: 0;
    margin-bottom: 0;
    list-style: none;
}

/* Footer */
.footer {
    margin-bottom: 80px;
}

.footer .menu {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer p {
    font-size: 16px;
    margin-bottom: 0;
}

.footer .scrollup {
    bottom: 30px;
}

.footer .scrollup h2 {
    font-size: 40px;
    margin: 0;
}

.footer .scrollup h2 span::before {
    content: "↑";
}

@media only screen and (min-width: 476px) and (max-width: 1200px) {
    /* Team - listing */
    .archive-team .grid-margin-x > .large-4 {
        width: calc(50% - 1.5rem);
    }
}

@media only screen and (min-width: 769px) and (max-width: 1000px) {
    /* Team - listing */
    .post-type-archive-contact_team .sub-logo img,
    .tax-team_categories .sub-logo img {
        height: 40px;
    }

    .post-type-archive-contact_team .sub-logo img:last-child,
    .tax-team_categories .sub-logo img:last-child {
        height: 50px;
    }

    .archive-team .filter-list {
        top: 250px;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1200px) {
    /* Team - listing */
    .archive-team .grid-margin-x > .large-6 {
        margin-left: calc(8.3333333333% + 1.5rem / 2);
    }
}

@media only screen and (min-width: 476px) {
    .sub-page .block.mb-0 {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 768px) {
    /* Global */
    body {
        padding-top: 86px;
    }

    .filter-list {
        font-size: 18px;
    }

    .filter-list .menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-list .menu li,
    .filter-list .menu li + li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    /* Header */
    .header {
        z-index: 14;
    }

    .header .top-bar-left {
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        marign-right: auto;
    }

    .header .top-bar-right {
        display: block;
        -ms-flex: 0 1 auto;
        flex: 0 1 auto;
        margin-left: auto;

        transition: opacity .2s ease-in-out;
        transition-delay: .3s;
    }

    .header .custom-logo {
        height: 46px;
    }

    .header .custom-logo-link,
    body.home .headroom--top .custom-logo-link {
        float: none;
        max-width: none;
        position: static;
    }

    .header .sublogo {
        max-width: none;
    }

    .header .sublogo img {
        height: 46px;
    }

    .header .sublogo img:last-child {
        height: 58px;
    }

    .toggle-menu {
        font-size: 30px;
    }

    .toggle-menu::before {
        opacity: 1;
    }

    /* Sub Logo */
    .sub-logo {
        max-width: none;
    }

    body:not(.home) .sub-logo {
        display: none;
    }

    .sub-logo img {
        height: 46px;
    }

    .sub-logo img:last-child {
        height: 58px;
    }

    /* Offcanvas */
    .off-canvas {
        width: 100%;
    }

    .off-canvas-content .off-canvas.position-right {
        transform: translateX(100%);
    }

    .off-canvas > ul {
        margin-top: 80px;
    }

    .js-off-canvas-overlay {
        background: rgba(0,0,0,0);
    }

    /* Home page */
    .home-grid .row-0 {
        margin-top: 200px;
    }

    .home-grid .row-4 {
        margin-top: -20%;
    }

    .home-grid .row-8 {
        margin-top: -10%;
    }

    .home-grid .item-2 {
        margin-top: 5%;
    }

    .home-grid .item-3 {
        margin-top: 20%;
    }

    .home-grid .item-5 {
        margin-top: 0;
    }

    .home-grid .item-5 {
        margin-top: 5%;
    }

    .home-grid .item-7 {
        margin-top: 5%;
    }

    .home-grid .item-8 {
        margin-top: 10%;
    }

    .home-grid .item-9 {
        margin-top: -15%;
    }

    .home-grid .item-10 {
        margin-top: 5%;
    }

    .home-grid .quote blockquote {
        font-size: 25px;
    }

    /* Sub page */
    .sub-page.extra-spacing {
        margin-top: 0;
    }

    /* Work - listing */
    .work-card {
        margin-bottom: 10px;
    }

    .work-card .content .title {
        font-size: 18px;
    }

    .work-card .content .category-list {
        font-size: 16px;
    }

    /* Work - single */
    .work-single {
        margin-top: 30px;
    }

    .work-single-banner {
        height: calc(100vh - 332px);
    }

    .work-single-info {
        grid-template-columns: 90px 1fr;
        font-size: 16px;
        margin-bottom: 30px;
    }

    .work-single-desc {
        margin-bottom: 40px;
    }

    /* Team - listing */
    .archive-team .filter-cell {
        position: relative;
    }

    .archive-team .filter-list {
        top: 40px;
        max-width: 100%;
    }

    .archive-team .filter-list.is--sticky {
        position: absolute;
        top: 40px;
    }

    .archive-team .team-listing {
        margin-top: 192px;
    }

    /* Footer */
    body.home .footer {
        display: block;
    }

    .footer {
        margin-bottom: 30px;
    }

    .footer .menu {
        font-size: 20px;
    }

    .footer .scrollup h2 {
        font-size: 30px;
    }
}

@media only screen and (max-width: 475px) {
    /* Global */
    body {
        padding-top: 86px;
    }

    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .global-padding {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .filter-list {
        margin: 24px 0;
    }

    /* Header */
    .header .top-bar {
        padding-left: 0;
        padding-right: 0;
    }

    .header .custom-logo-link,
    body.home .headroom--top .custom-logo-link {
        max-width: none;
    }

    .header .sublogo img {
        height: 33px;
    }

    .header .sublogo img:last-child {
        height: 40px;
    }

    .toggle-menu {
        font-size: 20px;
    }

    /* Sub Logo */
    .sub-logo {
        left: 20px;
    }

    .sub-logo img {
        height: 33px;
    }

    .sub-logo img:last-child {
        height: 40px;
    }

    /* Offcanvas */
    .off-canvas {
        padding: 15px 20px;
    }

    .off-canvas ul li a {
        font-size: 24px;
    }

    .off-canvas > ul > li:not(:first-child) {
        margin-top: 20px;
    }

    .off-canvas > ul > li > a {
        font-size: 30px;
    }

    /* Home page */
    .home-grid .row {
        margin-bottom: 0;
    }

    .home-grid .row-0 {
        margin-top: 150px;
    }

    .home-grid .row-4 {
        margin-top: 0;
    }

    .home-grid .row-8 {
        margin-top: 0;
    }

    .home-grid .row-10 {
        margin-bottom: 0;
    }

    .home-grid .cell {
        margin-top: 0;
        margin-bottom: 25px;
    }

    .home-grid .quote blockquote {
        font-size: 20px;
    }

    /* Sub page */
    .sub-page .block h2 {
        font-size: 30px;
    }

    .sub-page .block h3 {
        font-size: 20px;
    }

    .sub-page .block-two-columns-text-text .text table td {
        display: block;
        width: 100% !important;
    }

    .sub-page .block-link .page-link {
        font-size: 20px;
    }

    /* Work - listing */
    .filter-list {
        font-size: 16px;
    }

    /* Work - single */
    .work-single {
        margin-bottom: 70px;
    }

    .work-single-banner {
        height: calc(100vh - 500px);
    }

    .work-single-title {
        font-size: 30px;
    }

    /* Team - listing */
    .archive-team .filter-list,
    .archive-team .filter-list.is--sticky {
        top: 24px;
    }

    .archive-team .team-listing {
        margin-top: 152px;
    }

    .team-card {
        max-width: 300px;
    }

    /* Footer */
    .footer .menu {
        font-size: 17px;
    }

    .footer p {
        font-size: 13px;
    }

    .footer .scrollup h2 {
        font-size: 20px;
    }
}

/* Remove mobile detect screen */
@media only screen and (min-device-width: 320px) and (max-device-width: 1023px) and (orientation: landscape) {
    html::before {
        content: none;
    }
}
