/*
    Theme Name: blocksy-child
    Author: BY
    Description: magic here
    Version: 1.0
    Text Domain: blocksy
    Template:  blocksy
*/

@font-face {
    font-family: "Ucity";
    src: url("./font/UCity-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "Ucity";
    src: url("./font/UCity-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Ucity";
    src: url("./font/UCity-Semibold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
}

:root {
    --main-color: #60795C;
    --second-color: #C9AB6A;
    --dark-color: #000;
    --font-ucity: "Ucity", sans-serif;
}
body {
    font-family: var(--font-ucity) !important;
    color: var(--dark-color);
    background-color: transparent !important;
}
body,p,h1,h2,h3,h4,h5,h6,em,ol,ul,li,tr,th,td,dl,ins,sub,sup,big,cite,form,small,label,table,figure,button,legend,strike,address,caption,fieldset,blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font: inherit
}
html, body {    
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
	scroll-behavior: inherit !important;
}
body::-webkit-scrollbar {
    width: 8px;
}
body::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 10px;
    transition: background 0.3s ease;
}
body::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.45);
}
body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}
*,*::before,*::after {
    box-sizing: border-box
}
input,select,textarea {
    margin: 0
}

b,strong {
    font-weight: 600
}

em {
    font-style: italic
}

small {
    font-size: 80%
}

ins,mark {
    color: inherit;
    text-decoration: none;
    background: rgba(0,0,0,0)
}

del {
    opacity: .5
}

sup,sub {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sup {
    top: -0.5em
}

sub {
    bottom: -0.25em
}

hr {
    height: 1px;
    border: none
}

a {
    transition: var(--theme-transition)
}

a:focus,button:focus {
    transition: none;
    outline-width: 0
}

a:focus-visible,button:focus-visible {
    outline-width: 2px;
    outline-offset: var(--outline-offset, 3px);
    outline-color: var(--theme-palette-color-2)
}

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

figure,textarea {
    display: block
}

audio,canvas,progress,video {
    display: inline-block
}

embed,iframe,object,video {
    max-width: 100%
}

code,kbd,samp {
    padding: 3px 6px
}

pre,code,samp,kbd {
    tab-size: 4;
    border-radius: 3px;
    background: var(--theme-palette-color-6)
}

pre:focus,code:focus,samp:focus,kbd:focus {
    outline: none
}

pre {
    overflow: auto;
    padding: 15px 20px
}

pre code {
    padding: 0;
    background: rgba(0,0,0,0)
}

table {
    border-collapse: collapse;
    border-spacing: 0;
    empty-cells: show;
    width: 100%;
    max-width: 100%
}

table,th,td {
    font-size: var(--theme-table-font-size);
    border-width: var(--theme-table-border-width, 1px);
    border-style: var(--theme-table-border-style, solid);
    border-color: var(--theme-table-border-color, var(--theme-border-color))
}

th,td {
    padding: var(--theme-table-padding, 0.7em 1em)
}

th {
    font-weight: 600
}

caption {
    font-weight: 600;
    padding: .7rem
}

dl {
    --theme-description-list-indent: 1.5em;
    --theme-description-list-spacing: 0.5em
}

dl>*:last-child {
    margin-bottom: 0
}

dt {
    font-weight: 600
}

dd {
    margin-top: calc(var(--theme-description-list-spacing)/2);
    margin-left: var(--theme-description-list-indent);
    margin-bottom: calc(var(--theme-description-list-spacing)*2)
}

dd p {
    --theme-content-spacing: var(--theme-description-list-spacing)
}

dd p:last-child {
    margin-bottom: 0
}
div {
    color: var(--dark-color);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-ucity) !important;
}
.overflow-hidden {
    overflow: hidden;
}
.popup a {
    color: var(--dark-color);
}
.font-large {
    font-size: 36px;
    line-height: 42px;
    font-weight: 600;
}
.font-semi-large {
    font-size: 20px;
    line-height: 24px;
    font-weight: 600;
}
.font-regular {
    font-size: 16px;
    line-height: 20px;
    font-weight: 600;
}
.font-small {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
}
.scroll-section {
    position: relative;
    overflow: hidden;
    will-change: transform;
}
.logo-header {
    max-width: 450px;
    padding: 25px;
    margin: auto;
}
.logo-header img {
    width: 100%;
}
.cards-container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 50px;
    gap: 30px;
    position: relative;
}
.cards-container-bg {
    position: absolute;
    inset: 0;
    margin: auto;
    background-color: #fff;
    z-index: -1;
    pointer-events: none;
    height: 100vh;
    width: 100%;
}
.card {
  flex: 1 0 200px;
  /* opacity: 0; */
}
/* .homepage-wrapper .card {
    opacity: 0;
} */
/* .card.project-box.has-detail.open {
    flex: 1 0 740px;
} */
.card-heading-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}
.about-box .card-heading-wrapper.is-title {
    margin-bottom: 35px;
}
.card-heading-number {
    width: 100px;
}
.card.about-box .card-heading {
    text-transform: uppercase;
}
.card-heading {
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--dark-color);
    mix-blend-mode: normal;
    margin: 0;
}
.card-heading-project {
    position: relative;
}
.card-heading-long {
    position: absolute;
    top: 0;
    opacity: 0;
    white-space: nowrap;
}
.card-content {
    font-style: normal;
    letter-spacing: 0.02em;
    color: var(--dark-color);
    mix-blend-mode: normal;
}
.card-content-detail {
    max-height: 0;
    opacity: 0;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.card-content-detail::-webkit-scrollbar {
    display: none;
}
.project-box.open .card-heading-long {
    display: block;
}
.card-content-row,
.project-box.open .card-content-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
/* .project-box.open .card-content-summary::before */
.card-content-column:first-child{
    flex: 0 200px;
}
.card-content-column:last-child,
.card-content-inner-summary,
.figure-with-number .figure-number,
.project-box.open .card-heading-project{
    flex: 1;
}
.figure-number {
    text-transform: uppercase;
}
/* .card-content-column:last-child,
.card-content-inner-summary {
    max-width: 430px;
} */
.card-content-summary {
    margin-bottom: 25px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
/* .project-box.open .card-content-summary::before{
    content: "";
    position: relative;
    display: block;
} */
.figure-with-number {
    display: flex;
}
/* .figure-with-number .figure-caption {
    width: 145px;
} */
.card-content-double-figure .card-content-column.figure-with-number:last-child .figure-caption {
    width: 200px;
}
.figure-caption {
    margin: 0;
}
.card-content-project_detail {
    display: flex;
    flex-direction: column;
    gap: 70px;
}
.card-content-row.position-Bottom .card-content-column:last-child {
    flex: 100%;
    max-width: 100%;
}
.card-content-double-figure .card-content-column.figure-with-number {
    flex: 0 200px;
}
.card-content-double-figure .card-content-column.figure-with-number:last-child {
    flex: 0 255px;
}
.card-content-row-double-image {
    display: flex;
    justify-content: center;
    gap: 15px;
    max-width: 400px;
    margin: auto;
    margin-top: 30px;
}
.card-content-row-double-image .card-content-column:first-child {
    max-width: 160px;
}
.card-content-row-double-image .figure-image {
    height: 100%;
}
.card-content-row-double-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.card-content-row .figure-image {
    width: fit-content;
}
/* .card-content-project-team {
    max-width: 450px;
    margin: 30px 10% 30px auto;
} */
.card-content-project-team h3 {
    margin: 0;
}
.description-image {
    display: flex;
    gap: 15px;
    flex-direction: column;
}
.description-image img {
    width: 100%;
}
#timeline {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0 50px;
    background-color: white;
}
#timeline {
    font-family: var(--font-ucity);
    color: #000;
}
#timeline-progress {
    position: relative;
    height: 0.5px;
    width: 100%;
    background: var(--dark-color);
    transition: 0.3s linear;
}
#timeline-progress::before,
#timeline-progress::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 4.5px;
    width: 4px;
    border-radius: 50%;
    background-color: black;
    z-index: -1;
}
#timeline-progress::after {
    right: 0;
    left: auto;
}
#timeline-years {
    display: flex;
    justify-content: space-between;
    padding: 22px 10px 0;
}
.timeline-item {
    text-align: left;
    cursor: pointer;
}
.timeline-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}
.timeline-logo {
    max-width: 200px;
}
.timeline-logo img {
    width: 100%;
    height: fit-content;
}
.timeline-bar {
    flex: 1;
}
.timeline-inner {
    display: flex;
    align-items: center;
    gap: 10%;
}
.timeline-dots {
    width: 20px;
    height: fit-content;
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    /* border: 0.5px solid #000; */
    /* border-radius: 50%; */
    /* background-color: white; */
}
.timeline-dots.hty {
    width: 40px;
}
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.popup-wrapper {
    position: relative;    
}
.popup-content {
    padding: 50px 50px 15px 50px;
    max-width: 1600px;
    margin: auto;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.about-detail-content {
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    letter-spacing: 0.02em;
    color: var(--dark-color);
    mix-blend-mode: normal;
    max-width: 1260px;
    display: flex;
    gap: 7px;
}
[target-popup] {
    cursor: pointer;
}
.close-popup {
    background-color: transparent;
    position: absolute;
    right: 50px;
    top: 50px;
    cursor: pointer;
    z-index: 1;
}
.popup-content-about {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 50px;
    min-height: 100%;
}
.about-footer {
    display: flex;
    align-items: flex-end;
    gap: 50px;
    /* margin-bottom: 15px; */
}
.about-contact-column {
    /* flex: 0 400px; */
    flex: 1;
}
/* .about-contact-column:last-child {
    flex: 1;
} */
.about-contact-column-flex {
    display: flex;
    /* align-items: center; */
    gap: 20px;
}
/* .about-contact-current-team,
.about-contact-past-team {
    flex: 1;
} */
.about-contact-team-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
/* .about-footer .about-contact-column:nth-child(2) {
    text-align: center;
} */
.about-contact-column-flex.team-section {
    gap: 50px;
}
.team-section h3 {
    margin-bottom: 25px;
}
.about-contact-team-list .space-1 {
    display: block;
    margin-bottom: 25px;
}
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-color);
    z-index: 9999;
    overflow: hidden;
    display: flex;
    align-items: center;
}
#preloader-track {
    position: relative;
    padding: 30px;
    pointer-events: none;
}
#preloader-track .card-content-summary {
    max-height: fit-content !important;
}
.preloader-image,
.preloader-image-mobile {
    position: absolute;
    z-index: 10;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    pointer-events: none;
}
.preloader-image img,
.preloader-image-mobile img {
    width: 100%;
    height: auto;
}
.size-Full .image-column {
    flex: 100%;
}
.size-Full .image-column img {
    width: 100%;
}
.figure-image {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.card-content-location {
    margin-bottom: 40px;
}
/* .card-content-location, */
.size-Half.card-figure-image .image-column,
.card-figure-image .figure-with-number,
.card-content-project-team{
    padding-left: 0;
    transition: .3s ease-in-out;
}
/* .open .card-content-location, */
.detail-loaded .size-Half.card-figure-image .image-column,
.detail-loaded .card-figure-image .figure-with-number,
.detail-loaded .card-content-project-team{
    padding-left: 215px;
}
.size-Half.card-figure-image .image-column {
    flex: 100%;
}

.char {
    opacity: 0;
}
.type-cursor {
    display: inline-block;
    width: 0.5px;
    height: 20px;
    background: currentColor;
    vertical-align: bottom;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media only screen and (max-width: 1600px) {
    .font-semi-large,
    .about-detail-content,
    .font-regular {
        font-size: 14px;
        line-height: 18px;
    }
    .font-large {
        font-size: 30px;
        line-height: 35px;
    }
    .about-box .card-heading-wrapper.is-title {
        margin-bottom: 30px;
    }
}

@media only screen and (max-width: 1301px) {
    .about-footer .about-contact-column:nth-child(2) {
        text-align: left;
    }
    .about-contact-column-flex.team-section {
        justify-content: flex-end;
    }
}

/* desktop */
@media only screen and (min-width: 690px) {
    .card-header {
        display: none;
    }
    .card {
        width: 200px;
    }
    #cards-container,
    #timeline {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
    .scroll-section {
        --reveal-top: 1;
        --reveal-bottom: 1;
        position: relative;
        background-color: #fff;
    }
    .scroll-section::before,
    .scroll-section::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        width: 100%;
        height: var(--before-height, 51%);
        background-color: #fff;
        z-index: 11;
        pointer-events: none;
    }
    .scroll-section::before {
        top: var(--before-top, 0);
        transform-origin: top;
        transform: scaleY(var(--reveal-top));
    }
    .scroll-section::after {
        height: var(--after-height, 51%);
        bottom: var(--after-bottom, 0);
        transform-origin: bottom;
        transform: scaleY(var(--reveal-bottom));
    }
    #preloader {
        display: none;
    }
}

/* mobile */
@media only screen and (max-width: 689px) {
    .font-large {
        font-size: 30px;
        line-height: 34px;
    }
    .font-semi-large {
        font-size: 14px;
        line-height: 18px;
    }
    .font-regular{
        font-size: 14px;
        line-height: 18px;
    }
    .card-heading-number {
        width: 105px;
    }
    .cards-container {
        flex-direction: column;
        flex-wrap: wrap;
        height: fit-content;
        padding: 25px;
        padding-top: 0;
        gap: 84px;
        max-width: 450px;
        margin: auto;
    }
    .card {
        flex: auto;
    }
    .card.about-box {
        display: flex;
        gap: 15px;
        align-items: flex-end;
        min-height: 90vh;
    }
    .card-heading-wrapper,
    .card-about-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 23px;
    }
    .card-heading-wrapper {
        gap: 0;
        transition: .3s ease-in-out;
    }
    .open .card-heading-wrapper {
        gap: 15px;
        margin-bottom: 30px;
    }
    .card.about-box .card-heading-wrapper {
        min-width: 105px;
        margin: 0;
    }
    .card-heading-long {
        white-space: inherit;
    }
    #timeline {
        bottom: 0;
        padding: 30px 25px 10px;
        background-color: transparent;
    }
    .timeline-logo {
        display: none;
    }
    .card-content-location .card-content-column:first-child,
    /* .card-content-column:first-child, */
    .project-box.open .card-content-summary::before {
        flex: 0 105px;
    }
    .card-content-row.position-Bottom .card-content-column {
        flex: 1;
    }
    .position-Right .figure-with-number .figure-number {
        flex: none;
    }
    .card.project-box {
        flex: none;
        width: 100%;
    }
    .position-Right .figure-with-number .figure-caption {
        width: fit-content;
    }
    .position-Right .figure-with-number {
        flex-direction: column;
    }
    .figure-with-number {
        gap: 10px;
    }
    .figure-with-number .figure-number {
        flex: 0 40px;
    }
    .card-content-double-figure .card-content-row {
        align-items: baseline;
    }
    .card-content-double-figure .card-content-column.figure-with-number {
        flex: 0 calc(50% - 7.5px);
    }
    .card-content-project_detail .font-regular,
    .figure-caption {
        font-size: 14px;
        line-height: 18px;
    }
    .card-content-row-double-image {
        max-width: 100%;
        margin-top: 25px;
    }
    .card-content-row-double-image .card-content-column {
        max-width: calc(50% - 7.5px) !important;
        flex: auto;
    }
    /* .card-content-summary,
    .card-content-summary.half {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 15px;
    }    */
    /* .card-content-summary.half::before {
        content: "";
        position: relative;
        display: block;
        flex: 0 105px;
    } */
    .card-content-project-team {
        margin-top: 20px;
        margin-bottom: 0;
        margin-left: 120px;
    }
    .card-content-project-team .font-regular {
        font-size: 14px;
        line-height: 18px;
    }
    .card-content-project_detail {
        gap: 30px;
    }
    .card-content-location {
        margin-bottom: 30px;
    }
    .description-image img {
        width: 100%;
    }
    .half .description-image {
        max-width: 160px;
    }
    #timeline-years {
        padding: 13px 0 0;
        gap: 0px;
    }
    .timeline-item {
        font-size: 14px;
        line-height: 18px;
        padding: 0 5px;
    }
    #preloader {
        right: 0;
        background: white;
    }
    #preloader-track {
        width: 100%;
    }
    .preloader-image {
        display: none;
    }
    .preloader-image-mobile {
        inset: 0;
        width: calc(100% - 20px);
        height: fit-content;
        transform: translate(0, 0%);
        margin: auto;
    }
    .card-header {
        background-color: #ffffff;
        position: sticky;
        top: 0;
        z-index: 1;
    }
    .logo-header-wrapper {
        max-width: 217px;
    }
    .popup:not(.active-popup) .close-popup {
        display: none;
    }
    .close-popup {
        top: 10px;
        right: 40px;
    }
    .about-detail-content {
        gap: 15px;
        flex-direction: column;
    }
    .about-brand-name {
        width: 105px;
    }
    .about-brand-description {
        flex: 1;
    }
    .team-section h3 {
        margin-bottom: 10px;
    }
    .team-section a,
    .popup a {
        text-decoration: none;
    }
    .popup-wrapper {
        padding: 25px;
        max-width: 450px;
        margin: auto;
        height: fit-content;
    }
    .about-contact-column-flex.team-section,
    .about-footer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .about-contact-column-flex {
        flex-direction: column;
        gap: 0;
    }
    .popup-content {
        padding: 0;
        padding-bottom: 15px;
        height: calc(100vh - 118px);
    }
    .popup-content-about {
        /* min-height: calc(100vh - 193px); */
        min-height: fit-content;
        gap: 30px;
    }
    .timeline-dots {
        width: 15px;
        height: fit-content;
    }
    .timeline-dots.hty {
        width: 25px;
    }
    #timeline-progress::before, #timeline-progress::after {
        width: 2.5px;
        height: 2px;
    }
    .card-about-inner .card-content-summary {
        margin: 0;
    }
    .about-contact-column-flex .about-contact-item {
        max-width: 105px;
        width: 100%;
        text-align: center;
    }
    .about-contact-column-flex .about-contact-item:first-child {
        text-align: left;
    }
    .type-cursor {
        height: 16px;
    }
}