/* =========================================================
   SHEN STUDIOS
   BRAND NEW INDEX.CSS
   FOUNDATION + HEADER + HERO ONLY
========================================================= */


/* =========================================================
   01. ANURATI FONT
========================================================= */

@font-face {
    font-family: "Anurati";
    src: url("./ANURATI Free Font/Anurati-Regular.otf") format("opentype");

    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   02. THEME VARIABLES
========================================================= */

:root {
    --bg: #f7f5f1;
    --surface: #ffffff;

    --text: #111111;
    --text-soft: #565656;
    --text-muted: #8a8a8a;

    --border: #dedbd5;

    --accent: #8b5d38;

    --max-width: 1320px;
}


html[data-theme="dark"] {
    --bg: #080808;
    --surface: #111111;

    --text: #f7f7f5;
    --text-soft: #c5c5c0;
    --text-muted: #8f8f8b;

    --border: #2a2a28;

    --accent: #c89a70;
}


/* =========================================================
   03. CLEAN RESET
========================================================= */

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


html {
    width: 100%;

    margin: 0;
    padding: 0;

    scroll-behavior: smooth;
}


body {
    width: 100%;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;

    background: var(--bg);

    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    transition:
        background 0.25s ease,
        color 0.25s ease;
}


img {
    display: block;

    max-width: 100%;
}


a {
    color: inherit;
}


button {
    font: inherit;
}


/* =========================================================
   04. MAIN PAGE WRAPPER
========================================================= */

.page-background {
    width: min(calc(100% - 48px),
            var(--max-width));

    margin: 0 auto;

    padding-top: 24px;
}


/* =========================================================
   05. HEADER
========================================================= */

.site-header {
    width: 100%;

    min-height: 88px;

    padding: 14px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 22px;

    position: relative;

    z-index: 1000;
}


/* class may remain in HTML */
.glass-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}


/* =========================================================
   06. BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;

    text-decoration: none;
}


.brand-icon {
    width: 56px;
    height: 56px;

    flex: 0 0 56px;

    object-fit: contain;
}


.brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.brand-name {
    font-family: "Anurati", sans-serif;

    font-size: 25px;
    font-weight: 400;

    line-height: 1;

    letter-spacing: 0.07em;

    white-space: nowrap;
}


.brand-tagline {
    margin-top: 7px;

    color: var(--text-muted);

    font-size: 5.5px;
    font-weight: 500;

    line-height: 1;

    letter-spacing: 0.22em;

    white-space: nowrap;
}


/* =========================================================
   07. DESKTOP NAV
========================================================= */

.desktop-nav {
    display: flex;
    align-items: center;

    gap: 28px;

    flex-shrink: 0;
}


.desktop-nav>a,
.dropdown-button {
    position: relative;

    padding: 10px 0;

    border: 0;

    background: transparent;

    color: var(--text);

    font-size: 14px;
    font-weight: 400;

    line-height: 1;

    text-decoration: none;

    cursor: pointer;
}


.desktop-nav>a::after,
.dropdown-button::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 1px;

    width: 0;
    height: 1px;

    background: var(--accent);

    transition: width 0.2s ease;
}


.desktop-nav>a:hover::after,
.desktop-nav>a.active::after,
.nav-dropdown:hover .dropdown-button::after {
    width: 100%;
}


/* =========================================================
   08. DESKTOP DROPDOWNS
========================================================= */

.nav-dropdown {
    position: relative;
}


.dropdown-button {
    display: flex;
    align-items: center;

    gap: 6px;
}


.dropdown-menu {
    position: absolute;

    top: calc(100% + 12px);
    left: 50%;

    width: 230px;

    padding: 8px;

    display: flex;
    flex-direction: column;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 13px;

    opacity: 0;
    visibility: hidden;

    transform:
        translateX(-50%) translateY(7px);

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;

    z-index: 3000;
}


.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;

    transform:
        translateX(-50%) translateY(0);
}


.dropdown-menu a {
    padding: 12px;

    border-radius: 8px;

    color: var(--text-soft);

    font-size: 13px;

    text-decoration: none;
}


.dropdown-menu a:hover {
    background: var(--bg);

    color: var(--text);
}


/* =========================================================
   09. THEME TOGGLE
========================================================= */

.theme-toggle {
    width: 40px;
    height: 40px;

    flex: 0 0 40px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: transparent;

    color: var(--text);

    cursor: pointer;
}


.theme-toggle i {
    font-size: 13px;
}


html:not([data-theme="dark"]) .theme-sun {
    display: none;
}


html:not([data-theme="dark"]) .theme-moon {
    display: block;
}


html[data-theme="dark"] .theme-sun {
    display: block;
}


html[data-theme="dark"] .theme-moon {
    display: none;
}


/* =========================================================
   10. MOBILE HEADER CONTROLS
========================================================= */

.mobile-header-actions {
    display: none;
}


.menu-toggle {
    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}


.menu-toggle span {
    width: 20px;
    height: 1.5px;

    display: block;

    margin: 4px auto;

    border-radius: 99px;

    background: var(--text);
}


/* =========================================================
   11. MOBILE OVERLAY + MENU
========================================================= */

.mobile-overlay {
    position: fixed;

    inset: 0;

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

    opacity: 0;
    visibility: hidden;

    z-index: 8000;

    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}


.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}


.mobile-menu {
    position: fixed;

    top: 0;
    right: -100%;

    width: min(350px, 88vw);
    height: 100dvh;

    padding: 18px;

    overflow-y: auto;

    background: var(--surface);

    color: var(--text);

    border-left: 1px solid var(--border);

    z-index: 9000;

    transition: right 0.25s ease;
}


.mobile-menu.open {
    right: 0;
}


.mobile-menu-top {
    min-height: 62px;

    padding-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    border-bottom: 1px solid var(--border);
}


.mobile-menu-brand {
    display: flex;
    align-items: center;

    gap: 9px;

    min-width: 0;

    text-decoration: none;
}


.mobile-menu-brand img {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    object-fit: contain;
}


.mobile-brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;
}


.mobile-brand-name {
    font-family: "Anurati", sans-serif;

    font-size: 15px;

    white-space: nowrap;
}


.mobile-brand-tagline {
    margin-top: 4px;

    color: var(--text-muted);

    font-size: 4px;

    white-space: nowrap;
}


.mobile-close {
    width: 38px;
    height: 38px;

    flex-shrink: 0;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: transparent;

    color: var(--text);

    font-size: 22px;

    cursor: pointer;
}


.mobile-nav {
    padding-top: 18px;

    display: flex;
    flex-direction: column;
}


.mobile-nav>a,
.mobile-dropdown-toggle {
    width: 100%;

    min-height: 50px;

    padding: 0 4px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 0;
    border-bottom: 1px solid var(--border);

    background: transparent;

    color: var(--text);

    font-size: 14px;

    text-align: left;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   MOBILE SUBMENUS
========================================================= */

.mobile-submenu {
    display: none;

    width: 100%;

    padding: 6px 0 10px 14px;

    border-bottom: 1px solid var(--border);
}


/* OPEN WHEN JS ADDS .open */

.mobile-submenu.open {
    display: flex;

    flex-direction: column;

    align-items: flex-start;
}


/* LINKS INSIDE SERVICES / PRICING */

.mobile-submenu a {
    display: block;

    width: 100%;

    padding: 9px 4px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 400;

    line-height: 1.35;

    text-decoration: none;

    white-space: normal;
}


.mobile-submenu a:hover {
    color: var(--text);
}

/* =========================================================
   12. HERO — PC
========================================================= */

.hero {
    width: 100%;

    min-width: 0;

    margin-top: 34px;

    display: grid;

    grid-template-columns:
        minmax(0, 0.84fr) minmax(0, 1.16fr);

    align-items: center;

    gap: clamp(42px, 6vw, 82px);

    overflow: visible;
}


/* =========================================================
   13. HERO IMAGE
========================================================= */

.hero::after {
    content: "";

    grid-column: 2;
    grid-row: 1;

    width: 100%;
    max-width: 100%;

    aspect-ratio: 16 / 11;

    background-image:
        url("./photos/About5.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-radius: 22px;
}


/* =========================================================
   14. HERO CONTENT
========================================================= */

.hero-content,
.glass-hero {
    grid-column: 1;
    grid-row: 1;

    width: 100%;
    max-width: 100%;

    min-width: 0;

    margin: 0;
    padding: 20px 0;

    background: transparent;

    border: 0;
    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    overflow: visible;
}


/* =========================================================
   15. HERO LABEL
========================================================= */

.hero-label {
    width: 100%;

    margin: 0 0 18px;

    color: var(--accent);

    font-size: 12px;
    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.27em;

    white-space: normal;
}


/* =========================================================
   16. HERO TITLE
========================================================= */

.hero-title {
    width: 100%;
    max-width: 100%;

    margin: 0 0 24px;
    padding: 0;

    color: var(--text);

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(58px, 5.6vw, 84px);
    font-weight: 500;

    line-height: 0.98;

    letter-spacing: -0.04em;

    white-space: normal;
    overflow: visible;
    filter: contrast(0.94) saturate(0.92);
}

/* =========================================================
   17. HERO SUBTITLE
========================================================= */

.hero-subtitle {
    width: 100%;
    max-width: 100%;

    margin: 0 0 18px;

    color: var(--text);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(29px,
            2.7vw,
            40px);

    font-weight: 400;

    line-height: 1.15;

    white-space: normal;
}


/* =========================================================
   18. HERO DESCRIPTION
========================================================= */

.hero-description {
    width: 100%;
    max-width: 570px;

    margin: 0 0 28px;

    padding: 0;

    color: var(--text-soft);

    font-size: 15px;

    line-height: 1.72;

    white-space: normal;

    overflow: visible;

    overflow-wrap: break-word;

    word-break: normal;
}


/* =========================================================
   19. HERO BUTTONS
========================================================= */

.hero-buttons {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;
}


.hero-buttons .button {
    min-height: 50px;

    padding: 0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 6px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    letter-spacing: 0.05em;

    text-align: center;

    text-decoration: none;
}


.hero-buttons .button-dark {
    border: 1px solid var(--text);

    background: var(--text);

    color: var(--surface);
}


.hero-buttons .button-light {
    border: 1px solid var(--border);

    background: transparent;

    color: var(--text);
}


/* =========================================================
   TABLET
   721px — 1100px
========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .page-background {
        width: calc(100% - 32px);

        padding-top: 16px;
    }


    /* HEADER */

    .site-header {
        min-height: 72px;

        padding:
            10px 13px;

        border-radius: 18px;
    }


    .brand-icon {
        width: 46px;
        height: 46px;

        flex-basis: 46px;
    }


    .brand-name {
        font-size: 20px;
    }


    .brand-tagline {
        font-size: 4.5px;
    }


    .desktop-nav {
        display: none;
    }


    .mobile-header-actions {
        display: flex;

        align-items: center;

        gap: 5px;

        margin-left: auto;
    }


    .menu-toggle {
        display: flex;

        flex-direction: column;
        align-items: center;
        justify-content: center;
    }


    /* HERO */

    .hero {
        width: min(760px, 100%);

        margin:
            24px auto 0;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 0;
    }


    .hero::after {
        grid-column: 1;
        grid-row: 1;

        width: 100%;

        aspect-ratio: 16 / 9;

        border-radius: 18px;
    }


    .hero-content,
    .glass-hero {
        grid-column: 1;
        grid-row: 2;

        width: 100%;

        padding:
            30px 24px 20px;
    }


    .hero-title {
        font-size:
            clamp(60px,
                9vw,
                78px);

        line-height: 1;
    }


    .hero-subtitle {
        font-size:
            clamp(27px,
                4vw,
                34px);
    }


    .hero-description {
        max-width: 100%;

        font-size: 15px;
    }
}


/* =========================================================
   MOBILE
   <= 720px
========================================================= */

@media (max-width: 720px) {

    /* PAGE */

    .page-background {
        width: 100%;
        max-width: 100%;

        margin: 0;

        padding:
            10px 10px 0;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    .site-header {
        width: 100%;

        min-height: 60px;

        padding:
            7px 8px;

        gap: 5px;

        border-radius: 15px;
    }


    .brand {
        flex: 1 1 auto;

        min-width: 0;

        gap: 6px;

        overflow: hidden;
    }


    .brand-icon {
        width: 37px;
        height: 37px;

        flex:
            0 0 37px;
    }


    .brand-text {
        min-width: 0;

        overflow: hidden;
    }


    .brand-name {
        max-width: 100%;

        font-size: 13px;

        overflow: hidden;

        white-space: nowrap;
    }


    .brand-tagline {
        margin-top: 4px;

        font-size: 3px;

        letter-spacing: 0.08em;

        overflow: hidden;

        white-space: nowrap;
    }


    .desktop-nav {
        display: none;
    }


    .mobile-header-actions {
        display: flex;

        align-items: center;
        justify-content: flex-end;

        gap: 4px;

        flex: 0 0 auto;

        margin-left: auto;
    }


    .mobile-theme-toggle,
    .menu-toggle {
        width: 32px;
        height: 32px;

        flex:
            0 0 32px;
    }


    .menu-toggle {
        display: flex;

        flex-direction: column;
        align-items: center;
        justify-content: center;

        gap: 4px;

        margin: 0;
        padding: 0;
    }


    .menu-toggle span {
        width: 18px;
        height: 1.5px;

        margin: 0;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin:
            14px 0 0;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 0;

        overflow: visible;
    }


    /* IMAGE */

    .hero::after {
        grid-column: 1;
        grid-row: 1;

        width: 100%;
        max-width: 100%;

        min-width: 0;

        aspect-ratio: 16 / 11;

        border-radius: 13px;

        background-position: center;
    }


    /* =====================================================
       TEXT CONTAINER
    ===================================================== */

    .hero-content,
    .glass-hero {
        grid-column: 1;
        grid-row: 2;

        width: 100%;
        max-width: 100%;

        min-width: 0;

        margin: 0;

        padding:
            25px 14px 22px;

        overflow: visible;
    }


    .hero-content>* {
        max-width: 100%;

        min-width: 0;
    }


    /* LABEL */

    .hero-label {
        width: 100%;

        margin:
            0 0 12px;

        font-size: 7px;

        line-height: 1.4;

        letter-spacing: 0.14em;
    }


    /* SHEN STUDIOS */

    .hero-title {
        width: 100%;
        max-width: 100%;

        margin:
            0 0 14px;

        font-size:
            clamp(38px,
                11.5vw,
                46px);

        line-height: 1.08;

        white-space: normal;

        overflow: visible;
    }


    /* SUBTITLE */

    .hero-subtitle {
        width: 100%;
        max-width: 100%;

        margin:
            0 0 13px;

        font-size: 20px;

        line-height: 1.22;

        white-space: normal;
    }


    /* DESCRIPTION */

    .hero-description {
        display: block;

        width: 100%;
        max-width: 100%;

        min-width: 0;

        height: auto;

        margin:
            0 0 20px;

        padding: 0;

        font-size: 13px;

        line-height: 1.65;

        white-space: normal;

        overflow: visible;

        overflow-wrap: break-word;

        word-break: normal;
    }


    /* BUTTONS */

    .hero-buttons {
        width: 100%;

        display: flex;

        flex-direction: column;

        gap: 8px;
    }


    .hero-buttons .button {
        width: 100%;
        max-width: 100%;

        min-width: 0;

        min-height: 46px;

        padding:
            0 14px;

        font-size: 11px;
        font-weight: 700;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .page-background {
        padding-left: 8px;
        padding-right: 8px;
    }


    .hero-content,
    .glass-hero {
        padding-left: 12px;
        padding-right: 12px;
    }


    .hero-title {
        font-size: 37px;
    }


    .hero-subtitle {
        font-size: 19px;
    }


    .hero-description {
        font-size: 12.5px;
    }
}

/* =========================================================
   ABOUT PAGE — STATS ONLY
========================================================= */

.stats-card {
    width: min(1180px, calc(100% - 48px));
    margin: 42px auto 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    padding: 28px 18px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
}

.stat {
    position: relative;

    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 8px 20px;

    text-align: center;
}

/* vertical separators */
.stat:not(:last-child)::after {
    content: "";

    position: absolute;
    top: 10%;
    right: 0;

    width: 1px;
    height: 80%;

    background: var(--border);
}

.stat strong {
    display: block;

    margin-bottom: 9px;

    color: var(--text);

    font-size: clamp(32px, 3vw, 44px);
    font-weight: 500;

    line-height: 1;
}

.stat span {
    display: block;

    color: var(--text-soft);

    font-size: 9px;
    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.16em;
}


/* =========================================================
   TABLET — KEEP ALL FOUR IN ONE ROW
========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .stats-card {
        width: calc(100% - 36px);

        grid-template-columns: repeat(4, 1fr);

        padding: 24px 10px;

        border-radius: 20px;
    }

    .stat {
        padding: 7px 10px;
    }

    .stat strong {
        font-size: 30px;
    }

    .stat span {
        font-size: 7px;
        letter-spacing: 0.12em;
    }
}


/* =========================================================
   MOBILE — 2 × 2
========================================================= */

@media (max-width: 720px) {

    .stats-card {
        width: calc(100% - 32px);

        margin-top: 30px;

        grid-template-columns: repeat(2, 1fr);

        padding: 18px 12px;

        border-radius: 18px;
    }

    .stat {
        min-height: 108px;

        padding: 16px 8px;
    }

    .stat strong {
        margin-bottom: 8px;

        font-size: 28px;
    }

    .stat span {
        max-width: 120px;

        font-size: 7px;

        letter-spacing: 0.11em;
    }

    /* remove desktop separators */
    .stat::after {
        display: none;
    }

    /* middle vertical divider */
    .stat:nth-child(odd) {
        border-right: 1px solid var(--border);
    }

    /* horizontal divider between the two rows */
    .stat:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }
}

/* =========================================================
   ABOUT — PROJECT CTA ONLY
========================================================= */

.project-cta {
    width: min(1180px, calc(100% - 48px));
    margin: 36px auto 0;

    padding: 52px 56px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    background: var(--text);
    color: var(--surface);

    border-radius: 24px;
}


/* LEFT CONTENT */

.project-copy {
    max-width: 650px;
}


.project-label {
    display: block;

    margin-bottom: 12px;

    color: var(--accent);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.28em;
}


.project-copy h2 {
    margin: 0 0 16px;

    color: var(--surface);

    font-family: Arial, Helvetica, sans-serif;

    font-size: clamp(36px, 4vw, 58px);
    font-weight: 500;

    line-height: 0.98;
    letter-spacing: -0.035em;
}


.project-copy p {
    max-width: 560px;

    margin: 0;

    color: var(--surface);

    opacity: 0.72;

    font-size: 15px;
    line-height: 1.7;
}


/* START A PROJECT BUTTON */

.project-button {
    min-width: 220px;
    min-height: 58px;

    padding: 0 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    flex-shrink: 0;

    background: var(--surface);
    color: var(--text);

    border: 1px solid var(--surface);
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;

    cursor: pointer;

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


.project-arrow {
    font-size: 16px;

    transition: transform 0.25s ease;
}


@media (hover: hover) {

    .project-button:hover {
        transform: translateY(-2px);
    }

    .project-button:hover .project-arrow {
        transform: translate(3px, -3px);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .project-cta {
        width: calc(100% - 36px);

        padding: 40px 34px;

        gap: 28px;

        border-radius: 20px;
    }


    .project-copy h2 {
        font-size: 40px;
    }


    .project-button {
        min-width: 190px;
        min-height: 54px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .project-cta {
        width: calc(100% - 32px);

        margin-top: 28px;

        padding: 30px 22px;

        flex-direction: column;
        align-items: flex-start;

        gap: 26px;

        border-radius: 18px;
    }


    .project-label {
        font-size: 8px;

        margin-bottom: 10px;
    }


    .project-copy h2 {
        margin-bottom: 14px;

        font-size: 34px;

        line-height: 1;
    }


    .project-copy p {
        font-size: 13px;
        line-height: 1.65;
    }


    .project-button {
        width: 100%;

        min-width: 0;
        min-height: 50px;

        font-size: 10px;
    }

}

/* =========================================================
   START A PROJECT MODAL
   DOES NOT AFFECT HEADER / HERO / PAGE LAYOUT
========================================================= */


/* DARK OVERLAY BEHIND FORM */

.project-modal-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    padding: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

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

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.22s ease,
        visibility 0.22s ease;

    z-index: 20000;
}


/* JS OPENS THE FORM */

.project-modal-overlay.open,
.project-modal-overlay.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}


/* =========================================================
   MODAL BOX
========================================================= */

.project-modal {
    position: relative;

    width: min(720px, 100%);
    max-height: 88vh;
    max-height: 88dvh;

    padding: 38px;

    overflow-y: auto;
    overflow-x: hidden;

    background: var(--surface);

    color: var(--text);

    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.project-modal-close {
    position: absolute;

    top: 17px;
    right: 17px;

    width: 40px;
    height: 40px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: transparent;

    color: var(--text);

    font-size: 22px;
    line-height: 1;

    cursor: pointer;
}


/* =========================================================
   FORM HEADER
========================================================= */

.project-modal-header {
    margin-bottom: 28px;

    padding-right: 52px;
}


.project-modal-header>p {
    margin: 0 0 9px;

    color: var(--accent);

    font-size: 8px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.26em;

    text-transform: uppercase;
}


.project-modal-header h2 {
    margin: 0 0 8px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 38px;
    font-weight: 400;

    line-height: 1.05;
}


.project-modal-header>span,
.project-modal-header .project-modal-description {
    display: block;

    max-width: 580px;

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;

    line-height: 1.55;
}


/* =========================================================
   FORM
========================================================= */

.project-modal-form {
    width: 100%;
}


/* TWO COLUMNS ON PC */

.project-modal-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.project-field {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 7px;
}


.project-field label {
    color: var(--text);

    font-size: 11px;
    font-weight: 700;

    line-height: 1.3;
}


.project-field input,
.project-field select,
.project-field textarea {
    width: 100%;

    min-width: 0;

    min-height: 48px;

    padding:
        0 14px;

    border: 1px solid var(--border);
    border-radius: 9px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-size: 14px;

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


.project-field textarea {
    min-height: 120px;

    padding-top: 13px;
    padding-bottom: 13px;

    resize: vertical;
}


.project-field input::placeholder,
.project-field textarea::placeholder {
    color: var(--text-muted);
}


.project-field input:focus,
.project-field select:focus,
.project-field textarea:focus {
    border-color: var(--accent);
}


/* =========================================================
   DYNAMIC SERVICE SECTION
========================================================= */

#dynamicProjectFields {
    width: 100%;

    margin-top: 22px;
}


#dynamicProjectFields h3,
.dynamic-project-title {
    margin:
        0 0 16px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 22px;
    font-weight: 400;
}


/* =========================================================
   SERVICE OPTIONS / CHECKBOXES
========================================================= */

.project-options,
.service-options {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.project-option,
.service-option {
    min-height: 44px;

    padding:
        10px 12px;

    display: flex;
    align-items: center;

    gap: 9px;

    border: 1px solid var(--border);
    border-radius: 8px;

    color: var(--text);

    font-size: 12px;

    cursor: pointer;
}


/* =========================================================
   PRICE DISPLAY
========================================================= */

.project-price,
.service-price,
#projectPrice,
#servicePrice {
    margin-top: 18px;

    padding:
        14px 16px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: var(--bg);

    color: var(--text);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.project-submit-button {
    width: 100%;

    min-height: 50px;

    margin-top: 22px;

    padding:
        0 20px;

    border: 1px solid var(--text);
    border-radius: 7px;

    background: var(--text);

    color: var(--surface);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.06em;

    cursor: pointer;
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .project-modal {
        width: min(680px, 100%);

        padding: 34px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .project-modal-overlay {
        padding: 10px;
    }


    .project-modal {
        width: 100%;

        max-height: 92vh;
        max-height: 92dvh;

        padding:
            27px 18px 22px;

        border-radius: 17px;
    }


    .project-modal-close {
        top: 12px;
        right: 12px;

        width: 35px;
        height: 35px;

        font-size: 20px;
    }


    .project-modal-header {
        margin-bottom: 22px;

        padding-right: 38px;
    }


    .project-modal-header>p {
        font-size: 7px;
    }


    .project-modal-header h2 {
        font-size: 30px;
    }


    .project-modal-header>span,
    .project-modal-header .project-modal-description {
        font-size: 13px;

        line-height: 1.5;
    }


    /* ONE COLUMN ON PHONE */

    .project-modal-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }


    .project-field input,
    .project-field select {
        min-height: 46px;

        font-size: 13px;
    }


    .project-options,
    .service-options {
        grid-template-columns: 1fr;
    }


    .project-submit-button {
        min-height: 46px;

        font-size: 9px;
    }
}

/* =========================================================
   FOOTER ONLY
========================================================= */

.site-footer {
    width: 100%;

    margin-top: 28px;

    padding: 24px 20px 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    flex-wrap: wrap;

    background: var(--surface);

    color: var(--text);

    border-top: 1px solid var(--border);

    text-align: center;
}


/* COPYRIGHT */

.footer-copyright {
    margin: 0;

    color: var(--text-soft);

    font-size: 11px;

    line-height: 1.5;
}


/* =========================================================
   SOCIAL ICONS
========================================================= */

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;
}


.footer-socials a {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    border: 1px solid var(--border);
    border-radius: 50%;

    background: var(--surface);

    text-decoration: none;

    font-size: 15px;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease;
}


.footer-socials a:hover {
    transform: translateY(-2px);
}


/* =========================================================
   BRAND COLORS
========================================================= */

/* INSTAGRAM */

.footer-socials .fa-instagram {
    color: #e4405f;
}


/* FACEBOOK */

.footer-socials .fa-facebook,
.footer-socials .fa-facebook-f {
    color: #1877f2;
}


/* EMAIL */

.footer-socials .fa-envelope {
    color: #ea4335;
}


/* TIKTOK */

.footer-socials .fa-tiktok {
    color: var(--text);
}


/* X / TWITTER */

.footer-socials .fa-x-twitter,
.footer-socials .fa-twitter {
    color: var(--text);
}


/* WHATSAPP INSIDE FOOTER IF PRESENT */

.footer-socials .fa-whatsapp {
    color: #25d366;
}


/* =========================================================
   FLOATING WHATSAPP
   ALWAYS PRESENT ON SCREEN
========================================================= */

.floating-whatsapp {
    position: fixed;

    right: 20px;
    bottom: 20px;

    top: auto;
    left: auto;

    width: 54px;
    height: 54px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25d366;

    color: #ffffff;

    text-decoration: none;

    font-size: 25px;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.22);

    visibility: visible;
    opacity: 1;

    z-index: 99999;
}


.floating-whatsapp i {
    color: #ffffff;

    font-size: 25px;
}


/* subtle hover */

.floating-whatsapp:hover {
    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 721px) and (max-width: 1100px) {

    .site-footer {
        padding:
            23px 18px 28px;
    }


    .floating-whatsapp {
        right: 17px;
        bottom: 17px;

        width: 51px;
        height: 51px;

        font-size: 23px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

    .site-footer {
        margin-top: 24px;

        padding:
            22px 14px 26px;

        flex-direction: column;

        gap: 12px;
    }


    .footer-copyright {
        font-size: 10px;
    }


    .footer-socials {
        gap: 7px;
    }


    .footer-socials a {
        width: 33px;
        height: 33px;

        flex-basis: 33px;

        font-size: 14px;
    }


    /* FLOATING WHATSAPP REMAINS VISIBLE
       EVEN WHILE USER IS AT THE HERO */

    .floating-whatsapp {
        position: fixed;

        right: 13px;
        bottom: 13px;

        width: 48px;
        height: 48px;

        font-size: 22px;

        z-index: 99999;
    }


    .floating-whatsapp i {
        font-size: 22px;
    }

}

/* =========================================================
   ABOUT PAGE — PREMIUM MOTION ONLY
   DOES NOT CHANGE LAYOUT
========================================================= */


/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

@keyframes aboutHeaderIn {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-header {
    animation: aboutHeaderIn 0.65s cubic-bezier(.22, 1, .36, 1) both;
}


/* ---------------------------------------------------------
   HERO
--------------------------------------------------------- */

@keyframes aboutHeroTextIn {
    from {
        opacity: 0;
        transform: translateX(-26px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutHeroImageIn {
    from {
        opacity: 0;
        transform: translateX(26px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.hero-content {
    animation:
        aboutHeroTextIn 0.8s 0.12s cubic-bezier(.22, 1, .36, 1) both;
}


.hero::after {
    animation:
        aboutHeroImageIn 0.85s 0.2s cubic-bezier(.22, 1, .36, 1) both;
}


/* ---------------------------------------------------------
   SCROLL REVEALS
--------------------------------------------------------- */

body.motion-ready .stats-card,
body.motion-ready .project-cta,
body.motion-ready .site-footer {
    opacity: 0;
    transform: translateY(28px);

    transition:
        opacity 0.75s cubic-bezier(.22, 1, .36, 1),
        transform 0.75s cubic-bezier(.22, 1, .36, 1);
}


body.motion-ready .stats-card.is-visible,
body.motion-ready .project-cta.is-visible,
body.motion-ready .site-footer.is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ---------------------------------------------------------
   STATS — SMALL STAGGER
--------------------------------------------------------- */

body.motion-ready .stats-card .stat {
    opacity: 0;
    transform: translateY(14px);

    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1);
}


body.motion-ready .stats-card.is-visible .stat {
    opacity: 1;
    transform: translateY(0);
}


body.motion-ready .stats-card.is-visible .stat:nth-child(1) {
    transition-delay: 0.08s;
}

body.motion-ready .stats-card.is-visible .stat:nth-child(2) {
    transition-delay: 0.16s;
}

body.motion-ready .stats-card.is-visible .stat:nth-child(3) {
    transition-delay: 0.24s;
}

body.motion-ready .stats-card.is-visible .stat:nth-child(4) {
    transition-delay: 0.32s;
}


/* ---------------------------------------------------------
   CTA CONTENT
--------------------------------------------------------- */

body.motion-ready .project-cta .project-copy,
body.motion-ready .project-cta .project-button {
    opacity: 0;
    transform: translateY(14px);

    transition:
        opacity 0.55s ease,
        transform 0.55s cubic-bezier(.22, 1, .36, 1);
}


body.motion-ready .project-cta.is-visible .project-copy,
body.motion-ready .project-cta.is-visible .project-button {
    opacity: 1;
    transform: translateY(0);
}


body.motion-ready .project-cta.is-visible .project-button {
    transition-delay: 0.12s;
}


/* ---------------------------------------------------------
   WHATSAPP ENTRANCE
--------------------------------------------------------- */

@keyframes aboutWhatsappIn {
    0% {
        opacity: 0;
        transform: scale(0.72);
    }

    70% {
        opacity: 1;
        transform: scale(1.06);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}


.whatsapp-float {
    animation:
        aboutWhatsappIn 0.55s 0.7s cubic-bezier(.22, 1, .36, 1) both;
}


/* ---------------------------------------------------------
   ACCESSIBILITY
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .site-header,
    .hero-content,
    .hero::after,
    .whatsapp-float {
        animation: none !important;
    }

    body.motion-ready .stats-card,
    body.motion-ready .project-cta,
    body.motion-ready .site-footer,
    body.motion-ready .stats-card .stat,
    body.motion-ready .project-cta .project-copy,
    body.motion-ready .project-cta .project-button {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

}