@font-face {
    font-family: 'Standard';
    src: url('fonts/standard-book-webfont.ttf');
}
@font-face {
    font-family: 'StandardBold';
    src: url('fonts/standard-bold-webfont.ttf');
}

:root {
    --yellow: #FEE17A;
    --blue: #3E5E9B;
    --white: #FFFCE9;
    --font-normal: 'Standard';
    --font-bold: 'StandardBold';
    --transition-duration: 300ms;
    --accordion-open-duration: 400ms;
    --accordion-close-duration: 300ms;
    --max-width: 1208px;
}

html, body {
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
* {
    box-sizing: border-box;
}
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--yellow);
    color: var(--blue);
    font-family: var(--font-normal);
    font-size: 0.875rem;
    line-height: 1.2;
    margin: 0;
}
img {
    width: 100%;
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 2.25rem;
    padding-right: 2.25rem;
}

a {
    text-decoration: none;
    color: var(--blue);
}
a:active {
    color: var(--blue);
}

h1, h2, h3 {
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.5625rem, 3.06vw, 2.375rem);
    line-height: 1.21;
    letter-spacing: -0.01em;
    margin: 0;
}
h4 {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-bold);
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
}
h5 {
    margin: 0;
    font-family: var(--font-normal);
    font-style: normal;
    font-weight: 400;
    font-size: clamp(1.25rem, calc(1.25rem + 0.33vw), 1.5rem);
}
h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-family: var(--font-bold);
    font-style: normal;
    font-weight: 400;
    font-size: 1rem;
}
p {
    font-size: 0.875rem;
    margin: 0;
}
.mt-8 {
    margin-top: 0.5rem;
}
.mt-16 {
    margin-top: 1rem;
}
.mt-24 {
    margin-top: 1.5rem;
}
.mb-16 {
    margin-bottom: 1rem;
}

/* Video wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* header */
header {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
}
header img {
    width: auto;
}

/* hero */
.hero {
    max-width: 910px;
}
.hero h1 {
    padding: 3.56rem 0 0 0;
}
.hero-description {
    display: flex;
    grid-gap: 8rem;
    padding-top: 2.25rem;
    padding-bottom: 3.75rem;
    padding-right: 12rem;
}
.hero-description-left,
.hero-description-right {
    width: 50%;
}

/* back to top */
.back-to-top {
    padding-top: 4.5rem;
    padding-bottom: 5.25rem;
    text-align: center;
    display: block;
    font-size: 1rem;
    font-family: var(--font-bold);
}

/* footer */
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 3rem;
    padding-bottom: 3rem;
    flex-wrap: wrap;
}
.footer-copyright {
    margin-left: auto;
}
.btn-contact {
    margin-right: 2rem;
    font-size: 1rem;
    font-family: var(--font-bold);
    position: relative;
    padding-right: 0.5rem;
}
.btn-contact:after {
    display: inline-block;
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translate(5px, -75%);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="9" fill="none"><path stroke="%233E5E9B" stroke-width="1.273" d="M8 6.303V1H2.697M7.894 1.106 1 8"/></svg>');
    background-repeat: no-repeat;
    width: 9px;
    height: 9px;
    transition: transform var(--transition-duration) ease-out;
}

/* projects */
.project {
    border-bottom: 1px solid var(--blue);
    transition: var(--transition-duration);
}
.project.open {
    background-color: var(--white);
}
.projects-heading {
    border-bottom: 1px solid var(--blue);
    padding-bottom: 5.6rem;
}
.project-content-inner,
.project-heading-inner {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    padding-top: 2.25rem;
    padding-bottom: 2.5rem;
}
.project-heading {
    cursor: pointer;
}
.project-heading-inner {
    gap: 5rem;
}
.project-heading-inner-title {
    width: 66.66%;
    flex-basis: 66.66%;
}
.project-heading-inner-desc {
    width: 33.33%;
    flex-basis: 33.33%;
    position: relative;
    padding-right: 2rem;
}
.project-heading-inner-desc:after {
    display: block;
    content: '';
    transition: transform var(--accordion-open-duration);
    width: 18px;
    height: 11px;
    margin-top: 0.5rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="11" fill="none"><path stroke="%233E5E9B" stroke-width="2" d="M16.467 9.767 8.7 2 1.23 9.47"/></svg>');
    background-repeat: no-repeat;
    position: absolute;
    right: 0;
    top: 0;
    transform: rotate(-180deg);
}
.open .project-heading-inner-desc:after {
    transform: rotate(0);
}
.project-content-inner > div {
    width: 33.33%;
    flex-basis: 33.33%;
}
.project-content-inner h5 {
    padding-right: 2rem;
}
.project-content-inner-2 {
    gap: 1.5rem;
}
.project-content-inner-2 > div:nth-child(1) {
    padding-right: 1.5rem;
}
.project-content-inner-2 > div:nth-child(2) {
    width: 66.66%;
    flex-basis: 66.66%;
}
.project-content {
    max-height: 0; /* Initially hide the content */
    overflow: hidden;
    transition: max-height var(--accordion-close-duration) cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-content.open {
    max-height: 500px; /* Arbitrary value; adjust based on content */
    transition: max-height var(--accordion-open-duration) cubic-bezier(0.25, 0.1, 0.25, 1);
}
.project-content a {
    text-decoration: underline;
}

@media only screen and (min-width: 1024px) {
    .btn-contact:hover:after {
        transform: translate(7px, calc(-75% - 2px)); 
    }
    .project:hover {
        background-color: var(--white);
        transition: var(--transition-duration);
    }
}

@media only screen and (max-width: 1024px) {
    .project-content-inner {
        flex-direction: column;
    }
    .project-content-inner > div {
        width: 100%;
        flex-basis: 100%;
    }
    .project-content-inner-2 > div:nth-child(1) {
        padding-left: 0;
        order: 2;
    }
    .project-content-inner-2 > div:nth-child(2) {
        width: 100%;
        flex-basis: 100%;
        order: 1;
    }
    .project-content-inner-2 > div:nth-child(1) {
        padding-right: 0;
    }
    footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 1.5rem;
        padding-top: 1.5rem;
        gap: 1.5rem;
    }
    .footer-copyright {
        margin-left: 0;
        margin-top: 3.5rem;
    }
    footer p {
        width: 75%;
    }
}

@media only screen and (max-width: 768px) {
    .wrapper {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    header {
        padding-top: 1.2rem;
        padding-bottom: 1rem;
    }
    header img {
        width: 143px;
    }
    .hero h1 {
        padding: 1rem 0 0 0;
    }
    .hero-description {
        flex-direction: column;
        grid-gap: 1.875rem;
        padding-right: 0;
        width: 90%;
    }
    .hero-description-left,
    .hero-description-right {
        width: 100%;
    }
    .hero-description-right {
        margin-top: 0;
        padding-left: 0;
    }
    .project-content-inner, .project-heading-inner {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    .project-heading-inner {
        gap: 1.25rem;
    }
    .project-heading-inner-desc,
    .project-heading-inner-title {
        width: 50%;
        flex-basis: 50%;
    }
    .project-content-inner > div:nth-child(2) {
        order: 3;
    }
    .project-content-inner > div:nth-child(3) {
        order: 2;
    }
    .project-content-inner-2 > div:nth-child(1) {
        order: 2;
    }
    .project-content-inner-2 > div:nth-child(2) {
        order: 1;
    }
    .project-content-inner, .project-heading-inner {
        gap: 1.25rem;
    }
    .project-content-inner {
        padding-top: 3.5rem;
        padding-bottom: 1.5rem;
    }
    .back-to-top {
        padding-top: 1.875rem;
        padding-bottom: 1.875rem;
    }
}
