@import url("./variables.css");
@import url("./typography.css");
@import url("./utilities.css");
@import url("./components.css");

/* ----------------------------------------
   Global Reset / Base
---------------------------------------- */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 1024px) {
    html,
    body {
        overscroll-behavior: none;
    }
}


body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--color-text);
    background: var(--color-background-dark);
    line-height: 1.6;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.18em;
}

button,
input,
textarea,
select {
    font: inherit;
}

/* ----------------------------------------
   Accessibility
---------------------------------------- */

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 9999;
    padding: 8px 12px;
    background: var(--color-white);
    color: var(--color-black);
}

.skip-link:focus {
    left: 16px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   Site Shell
---------------------------------------- */

.site-main {
    min-height: 60vh;
    z-index: 1 !important;
}

/* ----------------------------------------
   Header
---------------------------------------- */

.site-header {
    width: 100%;
    position: sticky;
    top: 0;
    background: var(--color-background-dark);
    z-index: 1000;
    /* background: rgb(0 0 0 / 75%); */
    /* backdrop-filter: blur(25px); */
    /* -webkit-backdrop-filter: blur(25px); */
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: 20px 40px;
}

.site-logo {
    display: none;
    font-weight: 700;
    text-decoration: none;
}

.custom-logo {
    max-height: 55px;
    width: auto;
}

.nav,
.site-nav {
    display: flex;
    align-items: center;
}

.site-nav__menu,
.footer-nav__menu {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__menu a,
.footer-nav__menu a {
    color: var(--color-text);
    text-decoration: none;
}

.site-nav__menu a {
    font-size: 18px;
    margin-right: 40px;
    font-weight: 500;
}

.nav-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
    background-color: var(--color-white);
    text-align: center;
    text-decoration: none;
    padding: 8px 30px;
    border-radius: 999px;
}

.site-nav__menu .button__contact a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    background-color: var(--color-white);
    padding: 12px 45px;
    border: 2px solid var(--color-white);
    border-radius: 999px;
    margin-right: 0px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    color: var(--color-softblack);
    text-align: center;
    text-decoration: none;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.site-nav__menu .button__contact a:hover {
    background-color: transparent;
    color: var(--color-white);
}

/* ----------------------------------------
   Mobile Navigation
---------------------------------------- */

.menu-toggle {
    display: none;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle__lines {
    position: relative;
    display: block;
    width: 28px;
    height: 20px;
    margin: 0 auto;
}

.menu-toggle__lines span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    transform-origin: center;
    transition:
        transform 180ms ease,
        opacity 180ms ease,
        top 180ms ease;
}

.menu-toggle__lines span:nth-child(1) {
    top: 0;
}

.menu-toggle__lines span:nth-child(2) {
    top: 9px;
}

.menu-toggle__lines span:nth-child(3) {
    top: 18px;
}

.site-header.is-menu-open .menu-toggle__lines span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.site-header.is-menu-open .menu-toggle__lines span:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .menu-toggle__lines span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

@media (max-width: 1023px) {
    body.has-open-menu {
        overflow: hidden;
    }

    .site-header__inner {
        padding-block: 18px;
        padding: 15px 30px;
    }

    .custom-logo {
        max-height: 45px;
        width: auto;
        position: relative;
        z-index: 1002;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 96px var(--site-margin) 48px;
        background: var(--color-background-dark);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition:
            opacity 180ms ease,
            visibility 180ms ease,
            transform 180ms ease;
    }

    .site-header.is-menu-open .site-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav__menu {
        flex-direction: column;
        gap: 24px;
        font-size: clamp(2rem, 12vw, 5rem);
        line-height: 1;
        text-align: center;
    }

    .site-nav__menu a,
    .site-nav__menu .button__contact a {
        font-size: var(--heading-4)
    }

    .site-nav__menu .button__contact a {
        margin-top: 48px;
    }
    

    .nav {
        position: fixed;
    }

}



/* .site-header {
    z-index: 9999;
}

.menu-toggle {
    z-index: 10000;
}

.site-nav {
    z-index: 9998;
} */

/* #smooth-wrapper,
#smooth-content {
    z-index: 1;
} */

/* ----------------------------------------
   Footer
---------------------------------------- */

.site-footer {
    background: var(--color-background-dark);
    padding-block: 80px 0;
}

.site-footer__grid {
    margin-top: 40px;
}

.site-footer__group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.site-footer__group h6,
.site-footer__group a,
.site-footer__group p {
    color: var(--color-text);
    font-weight: 300;
    font-size: 14px;
    margin: 0 0 8px;
}

.site-footer__group h6 {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.site-footer__group a:hover {
    text-decoration: none;
}


.site-footer__branding {
    margin-top: 25px;
}

.site-footer__branding img {
    width: 100%;
    opacity: 0.5;
}

@media (min-width: 768px) {
    .site-footer__group {
        margin-bottom: 20px;
    }
}

@media (min-width: 1024px) {
    .site-footer__group {
        margin-bottom: 25px;
    }
}

/* ----------------------------------------
   Generic Page / Post Layouts
---------------------------------------- */

.page-layout,
.post-layout,
.page-content {
    padding-block: var(--space-lg);
}

.page-content>*:first-child,
.single-post__content>*:first-child {
    margin-top: 0;
}

.post-list {
    display: grid;
    gap: var(--space-md);
    padding-block: var(--space-lg);
}

.post-card {
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.post-card__title,
.single-post h1,
.page-content h1 {
    margin: 0 0 12px;
    line-height: 1.1;
}

.post-meta {
    margin: 0 0 20px;
    color: var(--color-muted);
    font-size: 0.925rem;
}

.single-post__image {
    margin-block: var(--space-md);
}

/* ----------------------------------------
   Archive / Work / Career Layouts
---------------------------------------- */

.archive-hero {
    padding-block: var(--space-xl) var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.archive-hero h1,
.case-study__header h1 {
    max-width: 900px;
    margin: 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--color-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.archive-listing,
.case-study-layout,
.career-layout {
    padding-block: var(--space-xl);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

.work-card__link {
    display: block;
    text-decoration: none;
}

.work-card__image {
    margin-bottom: 20px;
    background: var(--color-border);
}

.work-card__title,
.career-card__title {
    margin: 0 0 12px;
    line-height: 1.1;
}

.work-card__excerpt,
.career-card__excerpt,
.case-study__dek,
.career-post__dek {
    color: var(--color-muted);
}

.career-list {
    display: grid;
    gap: 24px;
}

.career-card {
    padding-block: 24px;
    border-bottom: 1px solid var(--color-border);
}

.case-study__header {
    margin-bottom: 40px;
}

.case-study__image {
    margin-bottom: 40px;
}

.case-study__content {
    max-width: 760px;
}

@media (max-width: 767px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}


/* ----------------------------------------
  Article Category Page
---------------------------------------- */


.category-pagination,
.nav-links {
    display: flex;
    justify-content: center;
    gap: 12px;

    margin-top: var(--space-lg);
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 44px;
    height: 44px;

    border: 1px solid var(--color-border);
    border-radius: 999px;

    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-black);
    color: var(--color-white);
}


/* ----------------------------------------
   Flexible Content Defaults
---------------------------------------- */

.section--hero {
    border-bottom: 1px solid var(--color-border);
}

.flex-hero h1 {
    max-width: 900px;
    margin: 0 0 24px;
}

.section-intro {
    max-width: 680px;
    margin: 0;
    color: var(--color-muted);
    font-size: var(--text-lg);
}

.section-narrow,
.image-text-grid__content {
    max-width: 760px;
}

.flex-text-block h2,
.flex-image-text h2,
.flex-selected-work h2 {
    margin-top: 0;
    line-height: 1.1;
}

.image-text-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
    align-items: center;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0 0 10px;
    padding-block: 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    text-align: right;
}

.meta-grid dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.meta-grid dd {
    margin: 0;
}

@media (max-width: 767px) {

    .image-text-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------
   Single Pagination
---------------------------------------- */

.single-pagination {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--color-background);
    color: var(--color-text-dark);
}

.single-pagination__prev,
.single-pagination__next {
    flex: 1;
}

.single-pagination__next {
    text-align: right;
}

.single-pagination a {
    text-decoration: none;
}

.single-pagination a:hover,
.single-pagination a:focus {
    text-decoration: underline;
}

/* ----------------------------------------
   Article Post Detail
---------------------------------------- */

.article-post-details {
    padding-block: var(--space-xl) var(--space-lg) !important;
}

.article-post-content.container {
    background: var(--color-white);
    color: var(--color-black);
    padding-block: var(--space-lg);
}

.post-category-tag {
    display: inline-flex;
    padding: 10px 20px;
    border-radius: 99px;
    /* background: var(--color-white); */
    color: var(--color-white);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1;
    border: 1px solid var(--color-white);
    text-decoration: none;
    margin-bottom: var(--space-md);
}

.post-categories li a {
    text-decoration: none;
}
ul.post-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-post-headline {
    grid-column: span 2;
    margin-bottom: 25px;
    color: var(--color-text);
    font-size: 2.5em;
    line-height: 1;
}

.article-post-date {
    grid-column: span 2;
    margin-top: var(--space-md);
    color: var(--color-text);
    font-size: var(--text-base);
    font-weight: 400;
}

.article-back {
    text-decoration: none;
    font-size: var(--text-sm);
    color: var(--color-white);
    opacity: .5;
    transition: .5s ease;
}

.article-back:hover {
    opacity: .8;
}

.article-post-hero {
    grid-column: span 2;
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 15px;
}

.article-post-body {
    grid-column-start: 1;
    grid-column-end: span 2;
    max-width: 850px;
    margin-inline: auto;
    color: var(--color-text-dark);
}

.article-rich-text a {
    position: relative;
    display: inline;
    color: currentColor;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
}

.article-rich-text a:hover,
.article-rich-text a:focus {
    animation: article-link-underline 0.45s ease forwards;
}

@keyframes article-link-underline {
    0% {
        background-size: 100% 2px;
        background-position: 100% 100%;
    }

    49% {
        background-size: 0 2px;
        background-position: 100% 100%;
    }

    50% {
        background-size: 0 2px;
        background-position: 0 100%;
    }

    100% {
        background-size: 100% 2px;
        background-position: 0 100%;
    }
}

.article-post-body h2 {
    font-size: 1.8em;
    font-weight: 600;
    line-height: 1.1;
    margin-block: var(--space-md);
    color: var(--color-text-dark);
}

.article-post-body h3 {
    font-size: var(--heading-4);
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.article-post-body p {
    font-size: var(--text-base);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    color: var(--color-text-dark);
}

.article-rich-text p:last-of-type {
    margin-bottom: var(--space-lg);
}

.article-post-body ul {
    margin-bottom: var(--space-sm);
}


@media (min-width: 768px) {
    .article-post-details {
            padding-block: 16rem var(--space-xl) !important;
    }
    .article-post-headline {
        grid-column: span 4;
        font-size: 2.8em;
        margin-bottom: 50px;
    }

    .article-post-date {
        display: flex;
        align-items: end;
        font-size: var(--text-base);
    }

    .article-post-hero {
        grid-column: span 6;
        height: 525px;
        margin-bottom: 50px;
    }

    .article-post-body {
        max-width: 575px;
        grid-column-start: 1;
        grid-column-end: span 6;
    }

    /* to update */

        .article-post-body h2 {
            line-height: 1.1;
            margin-block: var(--space-lg);
        }
    
        .article-post-body h3 {
            font-size: 1.5em;
            margin-bottom: var(--space-md);
            color: var(--color-text-dark);
        }
    
        .article-post-body p {
            font-size: var(--text-base);
            line-height: 1.3;
            margin-bottom: var(--space-md);
            color: var(--color-text-dark);
        }
    
        .article-rich-text p:last-of-type {
            margin-bottom: var(--space-lg);
        }
    
        .article-post-body ul {
            margin-bottom: var(--space-md);
        }

    /* end */
}

@media (min-width: 1024px) {

    .article-post-headline {
        grid-column-start: 2;
        grid-column-end: 10;
        font-size: 3em;
        margin-bottom: 100px;
    }

    .article-post-date {
        font-size: var(--text-base);
        margin-bottom: var(--space-md);
    }

    .article-post-hero {
        grid-column: span 12;
        height: 750px;
        margin-bottom: 90px;
    }

    .article-post-content.container {
        margin-block: var(--space-lg);
    }

    .article-post-body {
        grid-column-start: 3;
        grid-column-end: span 8;
        max-width: 675px;
    }

    .article-post-body h2 {
        font-size: 2.2em;
        line-height: 1.1;
    }

    .article-post-body h3 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .article-post-body p {
        font-size: var(--text-base);
        line-height: 1.5;
    }
}

@media (min-width: 1440px) {
    .article-post-headline {
        font-size: 4em;
    }

    .article-post-hero {
        height: 925px;
    }

    .article-post-body {
        max-width: 750px;
    }
}

@media (min-width: 2560px) {
    .article-post-headline {
        grid-column-end: span 7;
        font-size: 5.5em;
    }

    .article-post-date {
        grid-column: span 3;
    }

    .article-post-hero {
        /* height: 1150px; */
    }

    .article-post-body {
        max-width: 950px;
    }
}

.article-video {
    margin-block: var(--space-lg);
}

.article-video__embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.article-video__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .article-related-card p {
        display: none;
    }

    .article-related-card {
        aspect-ratio: 5 / 4;
    }
    
}


/* ----------------------------------------
   Work Single
---------------------------------------- */
.work-single {
    padding-block: var(--space-xl);
}

.work-single__header {
    max-height: 75vh;
    /* position: sticky; */
    /* top: var(--space-xl); */
    padding-block-start: var(--space-xl);
}

.case-study-builder {
    padding-block: var(--space-lg);
}
.work-single__title h1 {
    margin: 0;
    margin-right: 50px;
    font-size: var(--ultra-2);
}

.work-single__meta {
    display: grid;
    gap: var(--space-md);
    margin-block: var(--space-lg);
}

.work-single__meta-group h6 {
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.work-single__meta-group p,
.work-single__meta-group ul {
    margin: 0;
    color: var(--color-white);
    opacity: .5;
}

.work-single__meta-group ul {
    list-style: none;
    padding: 0;
}

.work-single__meta-group a {
    color: currentColor;
    text-decoration: none;
}

.work-single__meta-group a:hover,
.work-single__meta-group a:focus {
    text-decoration: underline;
}

.work-module img {
    width: 100%;
    object-fit: cover;
}

.work-hero-image__image {
    aspect-ratio: 16 / 9;
}

.work-full-image__image {
    aspect-ratio: 16 / 9;
}

.work-two-images__image {
    aspect-ratio: 1 / 1;
}

.work-video__embed {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.work-video__embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.work-section-intro h2,
.work-section-content h3 {
    margin-top: 0;
}

.work-section-intro__text p,
.work-section-content__text p {
    font-size: var(--text-md);
    margin-block: var(--space-lg);
}

@media (min-width: 1250px) {
    .work-single__title h1 {
        margin-right: 25px;
        font-size: var(--ultra-3);
    }
}

/* ----------------------------------------
   Work Archive Page
---------------------------------------- */
/* ----------------------------------------
   Work Archive
---------------------------------------- */

.work-archive {
    background: var(--color-background-dark);
    color: var(--color-text);
}

.work-showcase {
    padding-block: var(--space-md) var(--space-xl);
}

.work-showcase__header {
    margin-bottom: var(--space-lg);
}

.work-showcase__header h1 {
    margin: 0;
    font-size: var(--heading-1);
    line-height: 0.95;
}

.work-showcase__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    grid-auto-rows: 220px;
    gap: var(--grid-gap);
}

.work-grid-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 15px;
    color: var(--color-white);
    text-decoration: none;
    background: var(--color-border);

    transition:
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.work-grid-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;

    background: rgba(0, 0, 0, 0.15);

    opacity: 0;
    transition: opacity 0.3s ease;
}

.work-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 1s ease;
}

.work-grid-item__content {
    position: absolute;
    display: inline-flex;
    left: var(--space-sm);
    right: var(--space-sm);
    top: var(--space-sm);
    z-index: 2;

    opacity: 0;
    transform: translateY(-5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.work-grid-item__content h2 {
    margin: 0;
    font-size: var(--heading-6);
    font-weight: 500;
    line-height: 1;
    background-color: var(--color-softblack);
    padding: 8px 25px;
    border-radius: 99px;
}

/* .work-grid-item:hover {
    box-shadow: 0 0 25px #f1f2f170;
    /* transform: translateY(-2px);
} */

.work-grid-item:hover::before {
    opacity: 1;
}

.work-grid-item:hover img {
    transform: scale(1.01);
}

.work-grid-item:hover .work-grid-item__content {
    opacity: 1;
    transform: translateY(0);
}


.wg-type-1-1 {
    grid-column: span 1;
    grid-row: span 1;
}
    
.wg-type-1-2 {
    grid-column: span 1;
    grid-row: span 2;
}
    
.wg-type-2-2 {
    grid-column: span 1;
    grid-row: span 2;
}

@media (min-width: 768px) {
    .work-showcase__grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-rows: 350px;
    }

    .wg-type-1-1 {
        grid-column: span 3;
        grid-row: span 1;
    }

    .wg-type-1-2 {
        grid-column: span 3;
        grid-row: span 2;
    }

    .wg-type-2-2 {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (min-width: 1024px) {
    .work-showcase__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        grid-auto-rows: 225px;
    }

    .wg-type-1-1 {
        grid-column: span 4;
        grid-row: span 1;
    }

    .wg-type-1-2 {
        grid-column: span 4;
        grid-row: span 2;
    }

    .wg-type-2-2 {
        grid-column: span 8;
        grid-row: span 2;
    }
}



@media (min-width: 1280px) {
    .work-showcase__grid {
        grid-auto-rows: 250px;
    }
}

@media (min-width: 1440px) {
    .work-showcase__grid {
        grid-auto-rows: 300px;
    }
}


@media (min-width: 1920px) {
    .work-showcase__grid {
        grid-auto-rows: 450px;
    }
}