/* =========================================================
   NIMA ZAHEDI — ABOUT PAGE
   Final Editorial Profile Layout
   ========================================================= */


/* =========================================================
   RESET / BASE
   ========================================================= */

html,
body {
    margin: 0;
    padding: 0;

    min-height: 100%;

    background: #090807 !important;
}

body.nz-about-preview {
    min-height: 100vh;

    overflow-x: hidden;

    direction: rtl;

    background:
        radial-gradient(
            circle at 22% 50%,
            rgba(145, 83, 58, 0.055),
            transparent 31%
        ),
        #090807 !important;

    color: #eee9e3;

    font-family: "fnum", Tahoma, Arial, sans-serif;
}

.nz-about-preview *,
.nz-about-preview *::before,
.nz-about-preview *::after {
    box-sizing: border-box;
}

.nz-about-preview a {
    color: inherit;
    text-decoration: none;
}

.nz-about-preview img {
    display: block;
}


/* =========================================================
   PAGE
   ========================================================= */

.nz-about-page {
    width: min(1320px, calc(100% - 52px));
    min-height: 100vh;

    margin-right: auto;
    margin-left: auto;

    display: grid;

    grid-template-rows:
        64px
        minmax(0, 1fr)
        44px;
}


/* =========================================================
   HEADER
   ========================================================= */

.nz-about-header {
    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 24px;

    direction: ltr;

    border-bottom: 1px solid rgba(238, 233, 227, 0.09);
}


/* =========================================================
   BRAND
   ========================================================= */

.nz-about-brand {
    min-width: 0;

    justify-self: start;

    display: flex;
    align-items: center;

    gap: 10px;

    direction: ltr;
}

.nz-about-brand-logo {
    display: block !important;

    width: 40px !important;
    max-width: 40px !important;

    height: 40px !important;
    max-height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 40px;

    object-fit: contain !important;
}

.nz-about-brand-divider {
    display: block;

    width: 1px;
    height: 22px;

    flex: 0 0 1px;

    background: rgba(158, 94, 69, 0.34);
}

.nz-about-brand-copy {
    display: flex;
    flex-direction: column;

    gap: 1px;
}

.nz-about-brand-copy strong {
    direction: rtl;

    font-size: 11px;
    font-weight: 400;
    line-height: 1.35;

    white-space: nowrap;

    color: #e8e2dc;
}

.nz-about-brand-copy small {
    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2.5px;

    white-space: nowrap;

    color: #766d66;
}


/* =========================================================
   HEADER META
   ========================================================= */

.nz-about-header-meta {
    justify-self: center;

    display: flex;
    align-items: center;

    gap: 9px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2.7px;

    color: #8f5843;
}

.nz-about-header-meta i {
    display: block;

    width: 24px;
    height: 1px;

    background: rgba(158, 94, 69, 0.4);
}


/* =========================================================
   LANGUAGE
   ========================================================= */

.nz-about-language {
    justify-self: end;

    display: flex;
    align-items: center;

    gap: 8px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 7px;
    line-height: 1;

    letter-spacing: 1.4px;

    color: #655e58;
}

.nz-about-language .is-active {
    color: #e8e2dc;
}

.nz-about-language i {
    display: block;

    width: 19px;
    height: 1px;

    background: rgba(238, 233, 227, 0.18);
}


/* =========================================================
   MAIN
   ========================================================= */

.nz-about-main {
    width: 100%;
    min-width: 0;
    min-height: 0;

    display: flex;
    align-items: center;

    padding: 22px 0;
}


/* =========================================================
   MASTER PANEL
   ========================================================= */

.nz-about-panel {
    position: relative;

    width: 100%;
    min-width: 0;

    display: grid;

    grid-template-columns:
        minmax(330px, 0.78fr)
        minmax(0, 1.22fr);

    align-items: stretch;

    direction: ltr;

    overflow: hidden;

    border: 1px solid rgba(238, 233, 227, 0.11);

    background:
        linear-gradient(
            115deg,
            rgba(158, 94, 69, 0.045),
            transparent 38%
        ),
        rgba(14, 12, 11, 0.82);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.15);
}

.nz-about-panel::before {
    content: "";

    position: absolute;
    z-index: 4;

    top: -1px;
    left: -1px;

    width: 76px;
    height: 2px;

    background: #9e5e45;
}

.nz-about-panel::after {
    content: "";

    position: absolute;
    z-index: 4;

    right: -1px;
    bottom: -1px;

    width: 76px;
    height: 2px;

    background: rgba(158, 94, 69, 0.65);
}


/* =========================================================
   VISUAL COLUMN
   ========================================================= */

.nz-about-visual {
    position: relative;

    min-width: 0;

    padding: 20px 22px;

    display: grid;

    grid-template-rows:
        22px
        minmax(0, 1fr)
        26px;

    direction: ltr;

    overflow: hidden;

    border-right: 1px solid rgba(238, 233, 227, 0.09);

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(158, 94, 69, 0.06),
            transparent 48%
        ),
        #0c0a09;
}


/* =========================================================
   VISUAL TOP
   ========================================================= */

.nz-about-visual-top {
    display: flex;
    align-items: center;

    gap: 9px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2.6px;

    color: #9e5e45;
}

.nz-about-visual-line {
    display: block;

    width: 30px;
    height: 1px;

    background: rgba(158, 94, 69, 0.45);
}


/* =========================================================
   ARTWORK CONTAINER
   ========================================================= */

.nz-about-artwork {
    position: relative;

    width: 100%;
    min-width: 0;
    min-height: 300px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}


/* =========================================================
   ARTWORK AXES
   ========================================================= */

.nz-about-artwork-axis {
    position: absolute;

    display: block;

    pointer-events: none;
}

.nz-about-artwork-axis-x {
    top: 50%;
    left: 9%;

    width: 82%;
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(158, 94, 69, 0.13),
        transparent
    );
}

.nz-about-artwork-axis-y {
    top: 9%;
    left: 50%;

    width: 1px;
    height: 82%;

    background: linear-gradient(
        180deg,
        transparent,
        rgba(158, 94, 69, 0.12),
        transparent
    );
}


/* =========================================================
   ORBITS
   ========================================================= */

.nz-about-orbit {
    position: absolute;

    top: 50%;
    left: 50%;

    display: block;

    aspect-ratio: 1;

    border-radius: 50%;

    transform: translate(-50%, -50%);

    pointer-events: none;
}

.nz-about-orbit-large {
    width: min(76%, 300px);

    border: 1px solid rgba(158, 94, 69, 0.23);
}

.nz-about-orbit-small {
    width: min(57%, 225px);

    border: 1px solid rgba(158, 94, 69, 0.11);
}


/* =========================================================
   ARTWORK LOGO
   Critical isolation from Elementor / theme image styles.
   ========================================================= */

body.nz-about-preview
.nz-about-artwork
> figure.nz-about-artwork-logo {
    position: relative;
    z-index: 2;

    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 210px !important;
    max-width: 56% !important;

    height: auto !important;
    max-height: 210px !important;

    margin: 0 !important;
    padding: 0 !important;

    flex: 0 0 auto;

    overflow: visible;
}

body.nz-about-preview
.nz-about-artwork
> figure.nz-about-artwork-logo::before {
    content: "";

    position: absolute;
    z-index: -1;

    inset: -28%;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(158, 94, 69, 0.1),
        transparent 68%
    );

    pointer-events: none;
}

body.nz-about-preview
.nz-about-artwork
> figure.nz-about-artwork-logo
> img {
    display: block !important;

    width: 100% !important;
    max-width: 210px !important;

    height: auto !important;
    max-height: 210px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    transform: none !important;
}


/* =========================================================
   ARTWORK CORNERS
   ========================================================= */

.nz-about-corner {
    position: absolute;

    display: block;

    width: 24px;
    height: 24px;

    pointer-events: none;
}

.nz-about-corner-top {
    top: 17px;
    left: 0;

    border-top: 1px solid rgba(158, 94, 69, 0.48);
    border-left: 1px solid rgba(158, 94, 69, 0.48);
}

.nz-about-corner-bottom {
    right: 0;
    bottom: 17px;

    border-right: 1px solid rgba(158, 94, 69, 0.48);
    border-bottom: 1px solid rgba(158, 94, 69, 0.48);
}


/* =========================================================
   ARTWORK CODE
   ========================================================= */

.nz-about-artwork-code {
    position: absolute;

    right: 2px;
    bottom: 22px;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2px;

    color: rgba(158, 94, 69, 0.64);
}


/* =========================================================
   VISUAL BOTTOM
   ========================================================= */

.nz-about-visual-bottom {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    white-space: nowrap;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 4px;
    line-height: 1;

    letter-spacing: 1.8px;

    color: #69615b;
}

.nz-about-visual-bottom i {
    display: block;

    width: 10px;
    height: 1px;

    background: rgba(158, 94, 69, 0.42);
}


/* =========================================================
   CONTENT COLUMN
   ========================================================= */

.nz-about-content {
    min-width: 0;

    padding:
        clamp(25px, 3.2vw, 42px)
        clamp(32px, 4vw, 54px);

    display: flex;
    flex-direction: column;
    justify-content: center;

    direction: rtl;
}


/* =========================================================
   INTRO
   ========================================================= */

.nz-about-intro {
    padding-bottom: 15px;

    border-bottom: 1px solid rgba(238, 233, 227, 0.09);
}


/* =========================================================
   KICKER
   ========================================================= */

.nz-about-kicker {
    margin-bottom: 7px;

    display: flex;
    align-items: center;

    gap: 9px;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 3px;

    color: #9e5e45;
}

.nz-about-kicker i {
    display: block;

    width: 25px;
    height: 1px;

    background: rgba(158, 94, 69, 0.45);
}


/* =========================================================
   TITLE
   ========================================================= */

.nz-about-title-group h1 {
    margin: 0;

    font-size: clamp(38px, 3.4vw, 50px);
    font-weight: 400;
    line-height: 1.28;

    color: #f2ede7;
}

.nz-about-title-group p {
    margin: 3px 0 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    font-size: 9px;
    line-height: 1.7;

    color: #928981;
}

.nz-about-title-group p span {
    color: #9e5e45;
}


/* =========================================================
   BIOGRAPHY
   ========================================================= */

.nz-about-biography {
    padding: 15px 0;

    border-bottom: 1px solid rgba(238, 233, 227, 0.09);
}


/* =========================================================
   BIOGRAPHY META
   ========================================================= */

.nz-about-section-meta {
    margin-bottom: 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2.6px;

    color: #83513f;
}


/* =========================================================
   BIOGRAPHY CARD
   ========================================================= */

.nz-about-biography-body {
    position: relative;

    padding: 12px 17px 12px 20px;

    overflow: hidden;

    border: 1px solid rgba(238, 233, 227, 0.075);
    border-right-color: rgba(158, 94, 69, 0.34);

    background:
        linear-gradient(
            270deg,
            rgba(158, 94, 69, 0.04),
            transparent 45%
        ),
        rgba(255, 255, 255, 0.008);
}

.nz-about-biography-accent {
    position: absolute;

    top: 12px;
    right: -1px;

    display: block;

    width: 2px;
    height: 38px;

    background: #9e5e45;
}

.nz-about-biography-copy {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.95;

    color: #aaa19a;
}

.nz-about-biography-copy p {
    margin: 0 0 6px;
}

.nz-about-biography-copy p:last-child {
    margin-bottom: 0;
}

.nz-about-biography-ending {
    color: #d2c9c1;
}


/* =========================================================
   RECOGNITION
   ========================================================= */

.nz-about-recognition {
    padding-top: 14px;
}


/* =========================================================
   RECOGNITION HEADER
   ========================================================= */

.nz-about-recognition-header {
    margin-bottom: 8px;

    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 24px;
}

.nz-about-recognition-header > div {
    display: flex;
    align-items: center;

    gap: 8px;
}

.nz-about-recognition-index {
    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;

    color: #9e5e45;
}

.nz-about-recognition-header h2 {
    margin: 0;

    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    color: #d9d2cb;
}

.nz-about-recognition-label {
    direction: ltr;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 5px;
    line-height: 1;

    letter-spacing: 2.7px;

    color: #765044;
}


/* =========================================================
   RECOGNITION LIST
   ========================================================= */

.nz-about-recognition-list {
    margin: 0;
    padding: 0;

    list-style: none;

    border-top: 1px solid rgba(238, 233, 227, 0.07);
}

.nz-about-recognition-list li {
    min-height: 37px;

    display: grid;

    grid-template-columns:
        30px
        minmax(20px, 1fr)
        minmax(0, auto);

    align-items: center;

    gap: 11px;

    direction: ltr;

    border-bottom: 1px solid rgba(238, 233, 227, 0.06);
}

.nz-about-recognition-number {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 7px;

    color: #9e5e45;
}

.nz-about-recognition-rule {
    display: block;

    width: 100%;
    height: 1px;

    background: linear-gradient(
        90deg,
        rgba(158, 94, 69, 0.32),
        rgba(158, 94, 69, 0.035)
    );
}

.nz-about-recognition-text {
    direction: rtl;

    font-size: 9px;
    line-height: 1.65;

    color: #a79e97;
}


/* =========================================================
   FOOTER
   ========================================================= */

.nz-about-footer {
    display: grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items: center;

    gap: 20px;

    direction: ltr;

    border-top: 1px solid rgba(238, 233, 227, 0.09);

    font-family: Georgia, "Times New Roman", serif;

    font-size: 6px;
    line-height: 1;

    letter-spacing: 1px;

    color: #625b56;
}

.nz-about-footer-signature {
    font-size: 5px;

    letter-spacing: 2.1px;

    color: #504a46;
}

.nz-about-footer a {
    justify-self: end;

    direction: rtl;

    font-family: "fnum", Tahoma, Arial, sans-serif;

    font-size: 7px;

    color: #817870;

    transition: color 0.2s ease;
}

.nz-about-footer a:hover {
    color: #eee9e3;
}


/* =========================================================
   WORDPRESS ADMIN BAR
   ========================================================= */

@media (min-width: 783px) {

    body.admin-bar.nz-about-preview {
        min-height: calc(100vh - 32px);
    }

    body.admin-bar.nz-about-preview .nz-about-page {
        min-height: calc(100vh - 32px);
    }

}


/* =========================================================
   DESKTOP — VIEWPORT FIT
   ========================================================= */

@media (min-width: 901px) {

    body.nz-about-preview {
        overflow-y: hidden;
    }

    .nz-about-page {
        height: 100vh;
    }

    body.admin-bar.nz-about-preview .nz-about-page {
        height: calc(100vh - 32px);
    }

}


/* =========================================================
   SHORT DESKTOP
   ========================================================= */

@media (min-width: 901px) and (max-height: 760px) {

    .nz-about-page {
        grid-template-rows:
            54px
            minmax(0, 1fr)
            36px;
    }

    .nz-about-main {
        padding: 13px 0;
    }

    .nz-about-panel {
        grid-template-columns:
            minmax(290px, 0.76fr)
            minmax(0, 1.24fr);
    }

    .nz-about-visual {
        padding: 14px 18px;

        grid-template-rows:
            20px
            minmax(0, 1fr)
            22px;
    }

    .nz-about-artwork {
        min-height: 230px;
    }

    body.nz-about-preview
    .nz-about-artwork
    > figure.nz-about-artwork-logo {
        width: 170px !important;
        max-width: 50% !important;
        max-height: 170px !important;
    }

    body.nz-about-preview
    .nz-about-artwork
    > figure.nz-about-artwork-logo
    > img {
        max-width: 170px !important;
        max-height: 170px !important;
    }

    .nz-about-content {
        padding:
            18px
            clamp(27px, 3.5vw, 44px);
    }

    .nz-about-intro {
        padding-bottom: 10px;
    }

    .nz-about-title-group h1 {
        font-size: 35px;
    }

    .nz-about-biography {
        padding: 10px 0;
    }

    .nz-about-biography-body {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nz-about-biography-accent {
        top: 8px;
        height: 30px;
    }

    .nz-about-biography-copy {
        font-size: 10px;
        line-height: 1.72;
    }

    .nz-about-biography-copy p {
        margin-bottom: 4px;
    }

    .nz-about-recognition {
        padding-top: 9px;
    }

    .nz-about-recognition-list li {
        min-height: 30px;
    }

}


/* =========================================================
   MEDIUM DESKTOP
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {

    .nz-about-page {
        width: min(1080px, calc(100% - 40px));
    }

    .nz-about-panel {
        grid-template-columns:
            minmax(290px, 0.8fr)
            minmax(0, 1.2fr);
    }

    .nz-about-content {
        padding-right: 32px;
        padding-left: 32px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    body.nz-about-preview {
        overflow-y: auto;
    }

    .nz-about-page {
        width: min(760px, calc(100% - 32px));

        min-height: 100svh;

        display: flex;
        flex-direction: column;
    }

    .nz-about-header {
        min-height: 62px;

        grid-template-columns:
            1fr
            auto;
    }

    .nz-about-header-meta {
        display: none;
    }

    .nz-about-main {
        display: block;

        padding: 25px 0;
    }

    .nz-about-panel {
        display: flex;
        flex-direction: column;

        direction: rtl;
    }

    .nz-about-content {
        order: 1;

        padding: 30px;
    }

    .nz-about-visual {
        order: 2;

        min-height: 410px;

        border-top: 1px solid rgba(238, 233, 227, 0.09);
        border-right: 0;
    }

    .nz-about-artwork {
        min-height: 320px;
    }

    .nz-about-footer {
        min-height: 48px;

        margin-top: auto;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .nz-about-page {
        width: calc(100% - 24px);
    }

    .nz-about-header {
        min-height: 56px;
    }

    .nz-about-brand-logo {
        width: 37px !important;
        max-width: 37px !important;

        height: 37px !important;
        max-height: 37px !important;

        flex-basis: 37px;
    }

    .nz-about-brand-divider {
        height: 18px;
    }

    .nz-about-brand-copy strong {
        font-size: 10px;
    }

    .nz-about-brand-copy small {
        display: none;
    }

    .nz-about-language {
        font-size: 6px;
    }

    .nz-about-main {
        padding: 18px 0 22px;
    }

    .nz-about-content {
        padding: 22px 17px;
    }

    .nz-about-kicker {
        font-size: 4px;

        letter-spacing: 2.5px;
    }

    .nz-about-title-group h1 {
        font-size: 29px;
    }

    .nz-about-title-group p {
        font-size: 8px;
    }

    .nz-about-biography {
        padding: 13px 0;
    }

    .nz-about-biography-body {
        padding:
            10px
            13px
            10px
            12px;
    }

    .nz-about-biography-copy {
        font-size: 10px;
        line-height: 1.88;
    }

    .nz-about-recognition-header {
        gap: 12px;
    }

    .nz-about-recognition-label {
        font-size: 4px;

        letter-spacing: 2px;
    }

    .nz-about-recognition-list li {
        min-height: 36px;

        grid-template-columns:
            26px
            minmax(0, 1fr);

        gap: 8px;
    }

    .nz-about-recognition-rule {
        display: none;
    }

    .nz-about-recognition-text {
        font-size: 9px;
        line-height: 1.65;
    }

    .nz-about-visual {
        min-height: 345px;

        padding: 15px;
    }

    .nz-about-artwork {
        min-height: 265px;
    }

    body.nz-about-preview
    .nz-about-artwork
    > figure.nz-about-artwork-logo {
        width: 165px !important;
        max-width: 52% !important;
        max-height: 165px !important;
    }

    body.nz-about-preview
    .nz-about-artwork
    > figure.nz-about-artwork-logo
    > img {
        max-width: 165px !important;
        max-height: 165px !important;
    }

    .nz-about-footer {
        min-height: 56px;

        grid-template-columns:
            1fr
            auto;
    }

    .nz-about-footer-signature {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .nz-about-page {
        width: calc(100% - 20px);
    }

    .nz-about-brand-divider,
    .nz-about-brand-copy {
        display: none;
    }

    .nz-about-title-group h1 {
        font-size: 27px;
    }

    .nz-about-recognition-label {
        display: none;
    }

    .nz-about-visual {
        min-height: 315px;
    }

    .nz-about-artwork {
        min-height: 235px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .nz-about-footer a {
        transition: none;
    }

}

/* =========================================================
   ENGLISH / LTR — scoped to the translated About page
   Keep the original Persian layout unchanged.
   ========================================================= */

.nz-about-page[lang="en"] .nz-about-content,
.nz-about-page[lang="en"] .nz-about-recognition-text,
.nz-about-page[lang="en"] .nz-about-footer a,
.nz-about-page[lang="en"] .nz-about-brand-copy strong {
    direction: ltr;
    text-align: left;
}

.nz-about-page[lang="en"] .nz-about-content {
    font-family: Georgia, "Times New Roman", serif;
}

.nz-about-page[lang="en"] .nz-about-title-group,
.nz-about-page[lang="en"] .nz-about-biography-copy,
.nz-about-page[lang="en"] .nz-about-recognition {
    text-align: left;
}

.nz-about-page[lang="en"] .nz-about-biography-body {
    direction: ltr;
}

.nz-about-page[lang="en"] .nz-about-biography-accent {
    flex-shrink: 0;
}

.nz-about-page[lang="en"] .nz-about-recognition-list li {
    direction: ltr;
}

.nz-about-page[lang="en"] .nz-about-footer a {
    font-family: Georgia, "Times New Roman", serif;
}

/* English labels may be longer than Persian equivalents. */
.nz-about-page[lang="en"] .nz-about-title-group h1,
.nz-about-page[lang="en"] .nz-about-recognition-text {
    overflow-wrap: anywhere;
}
