:where(*, *::before, *::after) { box-sizing: border-box; }
:where(body) { margin: 0; }
:where(img, svg, video) { max-inline-size: 100%; }
:where(img, video) { block-size: auto; }
:where(button, input, select, textarea) { font: inherit; }

.mentall-site,
.editor-styles-wrapper {
    color: var(--mentall-color-ink);
    background: var(--mentall-color-surface);
    font-family: var(--mentall-font-body);
    font-size: var(--mentall-size-body);
    font-weight: var(--mentall-weight-regular);
    line-height: var(--mentall-leading-body);
    font-synthesis: none;
}
.mentall-container {
    inline-size: calc(100% - var(--mentall-gutter) * 2);
    max-inline-size: none;
    margin-inline: auto;
    min-inline-size: 0;
}
.mentall-content { padding-block: 0; }
.home .mentall-content { padding-block: 0; }
.mentall-entry { min-inline-size: 0; }
.mentall-entry--summary + .mentall-entry--summary { margin-block-start: var(--mentall-space-48); }
/* Center desktop block content while allowing section backgrounds to bleed. */
@media (min-width: 102.5rem) {
    .mentall-content {
        --mentall-block-max-width: 1600px;
    }

    .mentall-content .mentall-container {
        max-inline-size: var(--mentall-block-max-width);
    }

    .mentall-content :is(
        .mentall-hero-stage,
        .mentall-block-hero,
        .mentall-block-case-slider,
        .mentall-block-contact-cta,
        .mentall-block-method,
        .mentall-block-portfolio,
        .mentall-block-testimonials,
        .mentall-block-text,
        .mentall-block-what-we-do,
        .mentall-block-why
    ):not(.alignfull) {
        padding-inline: max(40px, calc((100% - var(--mentall-block-max-width)) / 2));
    }

    .mentall-content .mentall-block-more-than-visible__content {
        max-inline-size: var(--mentall-block-max-width);
        margin-inline: auto;
    }

    /* The gallery spans the stage, including the space outside the hero columns. */
    .mentall-content .mentall-hero-stage {
        --mentall-hero-bleed: max(40px, (100vw - var(--mentall-block-max-width)) / 2);
    }

    .mentall-content .mentall-hero-stage .mentall-block-media-gallery__viewport {
        inline-size: auto;
        margin-inline: calc(-1 * var(--mentall-hero-bleed));
    }
}

.mentall-entry__header { margin-block-end: var(--mentall-space-24); }
.mentall-entry__header h1 { overflow-wrap: anywhere; font-family: var(--mentall-font-heading); }
@media (min-width: 64rem) {
    .single-mentall_case .mentall-case__title,
    .mentall-insight__header h1 {
        max-inline-size: 60%;
    }
}
.mentall-entry__content > :where(:not(.alignfull, .wp-block, .wp-block-group, [class*="mentall-block-"])) {
    max-inline-size: none;
    margin-inline: var(--mentall-gutter);
}
.mentall-header__inner,
.mentall-footer__inner { display: flex; flex-wrap: wrap; gap: var(--mentall-space-24); align-items: center; }
.mentall-header__inner { justify-content: space-between; padding-block: var(--mentall-space-16); }
.mentall-header__identity { min-inline-size: 0; }
.mentall-header__name { color: inherit; overflow-wrap: anywhere; }
.mentall-header .custom-logo { display: block; inline-size: auto; max-block-size: var(--mentall-space-40); }
.mentall-footer { padding-block: var(--mentall-space-64); }
.mentall-nav { min-inline-size: 0; }
.mentall-nav__list { display: flex; flex-wrap: wrap; gap: var(--mentall-space-16); padding: 0; margin: 0; list-style: none; }
.mentall-nav__list a { color: inherit; text-decoration: none; overflow-wrap: anywhere; transition: color var(--mentall-duration-color) ease; }
.mentall-nav__list a:is(:hover, :focus-visible) { color: var(--mentall-color-link-hover); text-decoration: none; }
.mentall-link { color: var(--mentall-color-ink); font-family: var(--mentall-font-heading); text-decoration: underline; text-underline-offset: 0.15em; overflow-wrap: anywhere; transition: color var(--mentall-duration-color) ease; }
.mentall-link--inverse { color: var(--mentall-color-inverse); }
.mentall-link:is(:hover, :focus-visible) { color: var(--mentall-color-action-hover); }
.mentall-link--body-arrow { display: inline-flex; align-items: flex-start; gap: var(--mentall-space-12); max-inline-size: 100%; font-family: var(--mentall-font-body); font-size: var(--mentall-text-responsive); font-weight: var(--mentall-weight-regular); line-height: var(--mentall-leading-responsive); text-decoration: none; transition: color var(--mentall-duration-color) ease; }
.mentall-link--body-arrow:is(:hover, :focus-visible) { color: var(--mentall-color-action-hover); }
.mentall-link__text { min-inline-size: 0; overflow-wrap: anywhere; }
.mentall-link__icon { display: block; flex: none; }
.mentall-site :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
.mentall-skip-link { position: fixed; inset-block-start: 0; inset-inline-start: var(--mentall-gutter); transform: translateY(-200%); padding: var(--mentall-space-12); background: var(--mentall-color-ink); color: var(--mentall-color-inverse); z-index: 100000; }
.mentall-skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    :where(html:not(.mentall-iphone-motion)) .mentall-site { scroll-behavior: auto; }
    :where(html:not(.mentall-iphone-motion)) .mentall-nav__list a { transition: none; }
    :where(html:not(.mentall-iphone-motion)) .mentall-link--body-arrow { transition: none; }
    :where(html:not(.mentall-iphone-motion)) .mentall-link { transition: none; }
}

/* Blog Query Loop */
.mentall-blog-index {
    padding-block: var(--mentall-space-32) var(--mentall-space-64);
    background: var(--mentall-color-inverse-muted);
}
.mentall-blog-index > .wp-block-post-template,
.mentall-blog-index > .wp-block-query-pagination {
    width: calc(100% - var(--mentall-gutter) * 2);
    margin-inline: auto;
}
.mentall-blog-index > .wp-block-post-template { display: grid; gap: var(--mentall-space-40); }
.mentall-blog-index .wp-block-post-featured-image { margin: 0; aspect-ratio: 2; }
.mentall-blog-index .wp-block-post-featured-image a,
.mentall-blog-index .wp-block-post-featured-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mentall-blog-index .wp-block-post-title {
    margin: var(--mentall-space-16) 0 var(--mentall-space-8);
    font: 400 var(--mentall-text-24)/var(--mentall-leading-30) var(--mentall-font-heading), sans-serif;
}
.mentall-blog-index .wp-block-post-title a { color: inherit; text-decoration: none; }
.mentall-blog-index .wp-block-post-title a:is(:hover, :focus-visible) { color: var(--mentall-color-action-hover); }
.mentall-blog-index .wp-block-post-excerpt__excerpt { margin: 0; color: var(--mentall-color-muted); }
.mentall-blog-index > .wp-block-query-pagination { margin-block-start: var(--mentall-space-48); }
@media (min-width: 64rem) {
    .mentall-blog-index > .wp-block-post-template {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: var(--mentall-space-48) var(--mentall-space-24);
        align-items: start;
    }
    .mentall-blog-index .wp-block-post { grid-column: span 6; min-width: 0; }
    .mentall-blog-index .wp-block-post:nth-child(6n + 1) { grid-column: 1 / span 7; }
    .mentall-blog-index .wp-block-post:nth-child(6n + 2) { grid-column: 10 / span 3; margin-top: var(--mentall-space-80); }
    .mentall-blog-index .wp-block-post:nth-child(6n + 3) { grid-column: 1 / span 3; }
    .mentall-blog-index .wp-block-post:nth-child(6n + 4) { grid-column: 6 / span 7; margin-top: var(--mentall-space-80); }
    .mentall-blog-index .wp-block-post:nth-child(6n + 5) { grid-column: 1 / span 4; }
    .mentall-blog-index .wp-block-post:nth-child(6n) { grid-column: 9 / span 4; margin-top: var(--mentall-space-80); }
    .mentall-blog-index .wp-block-post:is(:nth-child(6n + 2), :nth-child(6n + 3), :nth-child(6n + 5), :nth-child(6n)) .wp-block-post-featured-image { aspect-ratio: 4 / 5; }
}



.mentall-dot-cursor {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 9999;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: white;
    mix-blend-mode: difference;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.mentall-dot-cursor.is-visible { opacity: 1; }
.mentall-case-zoom-open .mentall-dot-cursor { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
    .mentall-dot-cursor { transition: none; }
}
