:root {
    --maos-bg: #f4f2ee;
    --maos-text: #111111;
    --maos-accent: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--maos-bg);
    font-family: "Space Grotesk", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.admin-bar .maos-landing {
    min-height: calc(100dvh - 32px);
    height: calc(100dvh - 32px);
}

.elementor-widget-maos-landing,
.elementor-widget-maos-landing > .elementor-widget-container,
.elementor-widget-maos-landing .maos-landing {
    width: 100%;
    max-width: none;
}

.maos-landing {
    position: relative;
    display: flex;
    width: 100%;
    height: 100dvh;
    min-height: 620px;
    overflow: hidden;
    background: var(--maos-bg);
    color: var(--maos-text);
}

.maos-identity {
    position: relative;
    z-index: 10;
    display: flex;
    flex: 0 0 37%;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 34px 36px 36px;
    border-right: 1px solid color-mix(in srgb, var(--maos-text) 15%, transparent);
    background: var(--maos-bg);
}

.maos-identity-top {
    position: relative;
}

.maos-lang {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
    min-height: 16px;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.maos-lang button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: color-mix(in srgb, var(--maos-text) 40%, transparent);
    font: inherit;
    cursor: pointer;
}

.maos-lang button.is-active {
    color: var(--maos-text);
}

.maos-lang span {
    color: color-mix(in srgb, var(--maos-text) 30%, transparent);
}

.maos-wordmark {
    display: flex;
    align-items: flex-end;
    width: 100%;
    min-height: clamp(72px, 9.4vw, 156px);
    margin-top: 8px;
    padding: 4px 0 6px;
    overflow: visible;
}

.maos-wordmark img {
    display: block;
    width: min(100%, 520px);
    max-height: 132px;
    object-fit: contain;
    object-position: left bottom;
}

.maos-wordmark span {
    display: block;
    margin-left: 0;
    font-family: "Arial Black", "Space Grotesk", Arial, sans-serif;
    font-size: clamp(70px, 10.6vw, 168px);
    font-weight: 900;
    line-height: .84;
    letter-spacing: -.095em;
    text-transform: lowercase;
    white-space: nowrap;
}

.maos-rule {
    width: 100%;
    height: 1px;
    margin-top: 14px;
    background: color-mix(in srgb, var(--maos-text) 20%, transparent);
}

.maos-intro-wrap {
    position: relative;
    max-width: 410px;
    min-height: 116px;
}

.maos-intro {
    display: none;
    margin: 0;
    color: color-mix(in srgb, var(--maos-text) 80%, transparent);
    font-size: clamp(13px, 1.06vw, 16px);
    line-height: 1.65;
}

.maos-intro.is-active {
    display: block;
}

.maos-intro p {
    margin: 0 0 1em;
}

.maos-intro p:last-child {
    margin-bottom: 0;
}

.maos-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 18px;
    font-size: 10px;
    letter-spacing: .10em;
    text-transform: uppercase;
}

.maos-contact-item {
    min-width: 0;
}

.maos-label {
    margin-bottom: 6px;
    color: color-mix(in srgb, var(--maos-text) 40%, transparent);
    font-size: 9px;
    letter-spacing: .24em;
}

.maos-contact-link {
    display: inline;
    color: var(--maos-text);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .08em;
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--maos-text) 30%, transparent);
    transition: border-color .2s ease, color .2s ease;
}

.maos-contact-link:hover {
    border-color: var(--maos-text);
}

.maos-phone {
    border-bottom-color: transparent;
}

.maos-phone:hover {
    color: var(--maos-text);
    border-bottom-color: transparent;
}

.maos-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.maos-gallery {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    background: var(--maos-bg);
    outline: none;
    user-select: none;
    touch-action: pan-y;
}

.maos-slides,
.maos-slide-picture,
.maos-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.maos-slide-picture {
    display: block;
}

.maos-slide {
    display: block;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center !important;
    image-rendering: auto;
    opacity: 0;
    transform: translate3d(20px, 0, 0) scale(1.005);
    transition: opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
    pointer-events: none;
}

.maos-slide.is-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.maos-slide.is-prev-direction {
    transform: translate3d(-20px, 0, 0) scale(1.005);
}

.maos-gallery-label {
    position: absolute;
    z-index: 4;
    top: 24px;
    left: 24px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    letter-spacing: .28em;
    text-transform: uppercase;
    pointer-events: none;
}

.maos-counter {
    position: absolute;
    z-index: 4;
    right: 24px;
    bottom: 22px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #fff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    letter-spacing: .14em;
    pointer-events: none;
}

.maos-total {
    color: rgba(255,255,255,.5);
}

.maos-cursor {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-100px,-100px,0);
    will-change: transform;
}

.maos-cursor-inner {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--maos-text);
    box-shadow: 0 0 0 1px rgba(255,255,255,0);
    transition:
        width .2s ease,
        height .2s ease,
        margin .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.maos-cursor.is-visible {
    opacity: 1;
}

.maos-cursor.is-prev .maos-cursor-inner,
.maos-cursor.is-next .maos-cursor-inner {
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    background: var(--maos-accent);
    box-shadow: 0 2px 16px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06);
}

/* Contact, location, phone and social links: same compact size as the
   language cursor, while preserving the diagonal arrow. */
.maos-cursor.is-link .maos-cursor-inner {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    background: var(--maos-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
}

/* Language switch: smaller white cursor with a simple plus sign. */
.maos-cursor.is-lang .maos-cursor-inner {
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    background: var(--maos-accent);
    box-shadow: 0 2px 12px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.06);
}

.maos-cursor.is-lang .maos-cursor-inner::before {
    content: "";
    display: block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Complete, thin arrows like the reference: shaft + arrowhead. */
.maos-cursor.is-prev .maos-cursor-inner::before,
.maos-cursor.is-next .maos-cursor-inner::before,
.maos-cursor.is-link .maos-cursor-inner::before {
    content: "";
    display: block;
    width: 26px;
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' fill='none' stroke='%23111111' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13h18M15 6l7 7-7 7'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform-origin: 50% 50%;
}

.maos-cursor.is-prev .maos-cursor-inner::before {
    transform: rotate(180deg);
}

.maos-cursor.is-next .maos-cursor-inner::before {
    transform: rotate(0deg);
}

.maos-cursor.is-link .maos-cursor-inner::before {
    transform: rotate(-45deg);
}

@media (pointer: fine) {
    .studio-cursor-on,
    .studio-cursor-on * {
        cursor: none !important;
    }
}


/* Keep the landing stable on mobile browsers whose address bar changes height. */
@supports (height: 100svh) {
    .maos-landing {
        height: 100svh;
        min-height: 620px;
    }

    body.admin-bar .maos-landing {
        height: calc(100svh - 32px);
    }
}

/* Tablet only: preserve the desktop split layout, but let the page grow and scroll
   when the available height is insufficient. Desktop styles remain untouched. */
@media (min-width: 768px) and (max-width: 1024px) {
    body {
        overflow: auto;
    }

    .maos-landing {
        align-items: stretch;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .maos-identity {
        flex-basis: 42%;
        min-height: 100dvh;
        padding: 28px 28px 30px;
    }

    .maos-intro {
        font-size: 13px;
        line-height: 1.55;
    }

    .maos-contact-grid {
        gap: 14px;
    }

    .maos-gallery {
        min-height: 100dvh;
    }

    .maos-slides,
    .maos-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .maos-slide {
        object-fit: cover !important;
        object-position: center center !important;
    }

    @supports (height: 100svh) {
        .maos-landing,
        .maos-identity,
        .maos-gallery {
            min-height: 100svh;
        }
    }
}

@media (max-width: 782px) {
    body.admin-bar .maos-landing {
        height: auto;
        min-height: calc(100dvh - 46px);
    }
}

/* Mobile only: logo first, then image carousel, studio text, and finally
   contact/social links. The layout uses natural height and vertical scrolling. */
@media (max-width: 767px) {
    html,
    body {
        min-height: 100%;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .maos-landing {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    .maos-gallery {
        order: 2;
        flex: 0 0 auto;
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
    }

    .maos-slides,
    .maos-slide {
        width: 100% !important;
        height: 100% !important;
    }

    .maos-slide {
        object-fit: cover !important;
        object-position: center center !important;
    }

    .maos-identity {
        display: contents;
    }

    .maos-identity-top {
        order: 1;
        width: 100%;
        padding: 22px 22px 20px;
        background: var(--maos-bg);
    }

    .maos-lang {
        min-height: 14px;
        font-size: 9px;
    }

    .maos-wordmark {
        min-height: 62px;
        margin-top: 5px;
        padding: 4px 0 6px;
    }

    .maos-wordmark img {
        width: 100%;
        max-height: 102px;
    }

    .maos-wordmark span {
        font-size: clamp(60px, 23vw, 104px);
    }

    .maos-rule {
        margin-top: 10px;
    }

    .maos-intro-wrap {
        order: 3;
        width: 100%;
        min-height: 0;
        max-width: none;
        margin: 0;
        padding: 24px 22px 0;
        background: var(--maos-bg);
    }

    .maos-intro {
        font-size: 12px;
        line-height: 1.55;
    }

    .maos-contact-grid {
        order: 4;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 16px;
        margin: 0;
        padding: 34px 22px 30px;
        background: var(--maos-bg);
        font-size: 9px;
    }

    .maos-label {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .maos-contact-link {
        font-size: 9px;
        line-height: 1.45;
    }

    .maos-gallery-label {
        top: 14px;
        left: 16px;
        font-size: 8px;
    }

    .maos-counter {
        right: 16px;
        bottom: 14px;
        font-size: 10px;
    }

    @supports (height: 100svh) {
        .maos-landing {
            height: auto;
            min-height: 100svh;
        }
    }
}

@media (max-width: 420px) {
    .maos-identity-top {
        padding-right: 20px;
        padding-left: 20px;
    }

    .maos-intro-wrap {
        padding-right: 20px;
        padding-left: 20px;
    }

    .maos-contact-grid {
        gap: 18px 12px;
        padding-right: 20px;
        padding-left: 20px;
    }
}

@media (max-height: 700px) and (min-width: 768px) {
    .maos-identity {
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .maos-wordmark {
        min-height: 74px;
    }

    .maos-intro-wrap {
        min-height: 80px;
    }

    .maos-intro {
        font-size: 13px;
        line-height: 1.45;
    }

    .maos-contact-grid {
        gap: 12px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .maos-slide,
    .maos-cursor-inner {
        transition: none;
    }
}


/* Desktop: show the dedicated 4:3 images fully without cover zoom.
   The dark fallback belongs to the gallery, not to each overlapping slide. */
@media (min-width: 1025px) {
    .maos-gallery {
        background: var(--maos-bg);
    }

    .maos-slide-picture {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        pointer-events: none;
    }

    .maos-slide {
        position: relative;
        inset: auto;
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center !important;
    }
}


/* Desktop / laptop heights around 768px (especially with the WordPress admin
   bar) need a more resilient left column. Keep the split layout, but let the
   text panel scroll internally instead of overlapping the contact block. */
@media (min-width: 1025px) and (max-height: 860px) {
    body {
        overflow: hidden;
    }

    .maos-landing {
        height: 100dvh;
        min-height: 100dvh;
    }

    .maos-identity {
        justify-content: flex-start;
        gap: 20px;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 24px 28px 28px;
        scrollbar-width: thin;
    }

    .maos-identity-top {
        flex: 0 0 auto;
    }

    .maos-wordmark {
        min-height: 56px;
        margin-top: 4px;
        padding: 2px 0 4px;
    }

    .maos-wordmark img {
        max-height: 92px;
    }

    .maos-rule {
        margin-top: 10px;
    }

    .maos-intro-wrap {
        flex: 0 0 auto;
        max-width: 100%;
        min-height: 0;
    }

    .maos-intro {
        font-size: 12px;
        line-height: 1.5;
    }

    .maos-contact-grid {
        flex: 0 0 auto;
        margin-top: auto;
        gap: 14px 16px;
        font-size: 9px;
        padding-top: 10px;
    }

    .maos-label {
        margin-bottom: 4px;
        font-size: 8px;
    }

    .maos-contact-link {
        font-size: 9px;
        line-height: 1.4;
    }
}
