/* =========================================================
   ALIREZA SARRAFI — PERSONAL / ARCHIVE WEBSITE
   Clean Editorial System
   ========================================================= */


/* =========================================================
   FONTS
   ========================================================= */

@font-face {
    font-family: "IRANSansX";
    src: url("/static/fonts/iransansx/IRANSansX-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IRANSansX";
    src: url("/static/fonts/iransansx/IRANSansX-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "EntezareZohoorB3";
    src: url("/static/site/fonts/entezar/EntezarB3_v2.0.1.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* ---------- Profile / Portrait ---------- */

.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
    gap: 100px;
    align-items: center;
}

.profile-content {
    grid-column: 1;
    grid-row: 1;
}

.profile-image-wrap {
    grid-column: 2;
    grid-row: 1;

    position: relative;
    width: 100%;
    max-width: 520px;
    margin-inline: auto;

    overflow: visible;
    background: transparent;

    opacity: 0;
    transform: translateY(180px);
    will-change: transform, opacity;

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

.profile-image-wrap::before,
.profile-image-wrap::after {
    display: none;
}

.profile-image {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin: 0 auto;

    object-fit: contain;
    object-position: center;
    filter: none;
}

.profile-image-wrap.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.profile-image-wrap:hover .profile-image {
    transform: scale(1.015);
}

.profile-image-label {
    display: none;
}

/* ---------- Social ---------- */

.profile-social {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 42px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.profile-social-label {
    color: var(--muted);
    font-size: .62rem;
}

.profile-social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-social-links a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    color: var(--ink-soft);
    font-family: Arial, sans-serif;
    font-size: .72rem;
    font-weight: 700;
    transition:
        color .25s ease,
        background .25s ease,
        border-color .25s ease,
        transform .3s var(--ease);
}

.profile-social-links a:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--gold-light);
    transform: translateY(-3px);
}


/* =========================================================
   PROFILE — TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .profile-section {
        padding: 115px 0;
    }

    .profile-grid {
        gap: 65px;
        grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr);
    }

    .profile-content h2 {
        font-size: clamp(2.5rem, 5vw, 4.2rem);
    }

}


/* =========================================================
   PROFILE — MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .profile-section {
        padding: 85px 0;
    }

    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 50px;
        align-items: stretch;
    }

    .profile-image-wrap {
        max-width: 100%;
    }

    .profile-image-wrap::before {
        inset: 12px;
    }

    .profile-image-label {
        right: 15px;
        bottom: 15px;
    }

    .profile-content {
        max-width: none;
    }

    .profile-content h2 {
        margin-top: 16px;
        font-size: 2.65rem;
    }

    .profile-divider {
        margin: 23px 0 21px;
    }

    .profile-lead {
        font-size: .94rem;
    }

    .profile-text {
        font-size: .76rem;
        line-height: 2.15;
    }

    .profile-actions {
        flex-wrap: wrap;
        gap: 22px;
        margin-top: 28px;
    }

    .profile-social {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-top: 34px;
        padding-top: 20px;
    }

}


/* =========================================================
   PROFILE — SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .profile-section {
        padding: 75px 0;
    }

    .profile-grid {
        gap: 42px;
    }

    .profile-content h2 {
        font-size: 2.35rem;
    }

    .profile-lead {
        font-size: .88rem;
    }

    .profile-image-wrap::before {
        inset: 10px;
    }

}

/* =========================================================
   DESIGN TOKENS
   ========================================================= */

:root {
    --paper: #f3efe6;
    --paper-light: #faf8f3;
    --paper-dark: #e9e3d7;

    --ink: #18232a;
    --ink-soft: #4d585d;
    --muted: #858982;

    --navy: #172b38;
    --navy-deep: #0e1c24;
    --navy-soft: #213b49;

    --gold: #a98549;
    --gold-light: #d2b77f;
    --gold-soft: rgba(169, 133, 73, 0.16);

    --white: #ffffff;

    --line: rgba(24, 35, 42, 0.12);
    --line-strong: rgba(24, 35, 42, 0.18);
    --line-light: rgba(255, 255, 255, 0.14);

    --container: 1280px;

    --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}


/* =========================================================
   RESET
   ========================================================= */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "IRANSansX", Tahoma, Arial, sans-serif;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea,
select {
    font-family: "IRANSansX", Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

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

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: var(--white);
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(var(--container), calc(100% - 64px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-label {
    display: block;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    margin-top: 27px;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.text-link span {
    color: var(--gold);
    font-size: 1.1rem;
    line-height: 1;
}

.text-link:hover {
    color: var(--gold);
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(243, 239, 230, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    flex: 0 0 auto;
    min-width: 225px;
    display: flex;
    align-items: center;
    gap: 13px;
}

.brand-logo-wrap {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--navy);
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.45;
}

.brand-text strong {
    color: var(--navy);
    font-size: 0.93rem;
    font-weight: 700;
    white-space: nowrap;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.62rem;
    white-space: nowrap;
}

.main-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.main-nav a {
    position: relative;
    padding: 8px 9px;
    color: var(--ink-soft);
    font-size: 0.71rem;
    white-space: nowrap;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    right: 9px;
    left: 9px;
    bottom: 2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s var(--ease);
}

.main-nav a:hover {
    color: var(--gold);
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.search-form {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-form input {
    width: 120px;
    height: 38px;
    padding: 5px 11px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    outline: none;
    font-size: 0.72rem;
    transition: border-color 0.25s ease;
}

.search-form input::placeholder {
    color: var(--muted);
}

.search-form input:focus {
    border-color: var(--gold);
}

.search-form button {
    height: 38px;
    padding: 0 13px;
    border: 0;
    background: var(--navy);
    color: var(--white);
    font-size: 0.69rem;
    transition:
        background 0.25s ease,
        transform 0.25s var(--ease);
}

.search-form button:hover {
    background: var(--gold);
    transform: translateY(-1px);
}


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

.home-hero {
    position: relative;
    min-height: calc(100vh - 82px);
    height: min(820px, calc(100vh - 82px));
    overflow: hidden;
    background: var(--navy-deep);
    color: var(--white);
}

/* ---------- Portrait ---------- */

.hero-portrait {
    position: absolute;
    inset: 0;
    z-index: 1;

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

    pointer-events: none;
}

.hero-portrait img {
    display: block;

    width: min(52vw, 590px);
    height: auto;

    max-height: 78%;
    object-fit: contain;

    filter:
        saturate(0.82)
        contrast(1.04);

    opacity: 0.96;

    transform: translateX(17%);
}

/* ---------- Overlay ---------- */

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(8, 17, 23, 0.96) 0%,
            rgba(8, 17, 23, 0.78) 34%,
            rgba(8, 17, 23, 0.35) 61%,
            rgba(8, 17, 23, 0.08) 100%
        ),
        linear-gradient(
            0deg,
            rgba(8, 17, 23, 0.72) 0%,
            rgba(8, 17, 23, 0.12) 42%,
            rgba(8, 17, 23, 0.20) 100%
        );
}

/* ---------- Editorial frame ---------- */

.hero-frame {
    position: absolute;
    inset: 22px;
    z-index: 3;

    border: 1px solid rgba(210, 183, 127, 0.28);

    pointer-events: none;
}

.hero-frame::before {
    content: "";
    position: absolute;
    inset: 14px;

    border: 1px solid rgba(255, 255, 255, 0.055);
}

/* ---------- Hero content ---------- */

.hero-content {
    position: relative;
    z-index: 5;

    width: min(var(--container), calc(100% - 64px));
    height: 100%;

    margin-inline: auto;

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

    padding: 70px 0 100px;
}

.hero-content::before {
    content: "";

    position: absolute;
    z-index: -1;

    top: 50%;
    left: -140px;

    width: 760px;
    height: 650px;

    transform: translateY(-50%);

    background:
        radial-gradient(
            ellipse at center,
            rgba(5, 13, 18, 0.82) 0%,
            rgba(5, 13, 18, 0.48) 45%,
            transparent 74%
        );

    pointer-events: none;
}

/* ---------- Kicker ---------- */

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--gold-light);

    font-size: 0.71rem;
    font-weight: 400;
}

.hero-kicker span {
    width: 45px;
    height: 1px;
    flex: 0 0 45px;

    background: var(--gold);
}

/* ---------- Persian identity ---------- */

.hero-name-fa {
    direction: rtl;
    text-align: right;

    margin-top: 27px;

    position: relative;
    z-index: 10;

    font-family: "EntezareZohoorB3", serif;
    line-height: 1;
}

.hero-title {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.78);

    font-family: "EntezareZohoorB3", serif;
    font-size: clamp(1rem, 1.5vw, 1.35rem);

    line-height: 1.4;
    font-weight: 400;
}

.hero-name-line {
    display: flex;

    direction: rtl;
    align-items: baseline;
    justify-content: flex-start;

    gap: 12px;

    white-space: nowrap;
    line-height: 0.95;
}

.hero-first-name,
.hero-last-name {
    display: inline-block;

    font-family: "EntezareZohoorB3", serif;
    font-size: clamp(4rem, 7vw, 7.2rem);

    line-height: 0.95;
    font-weight: 400;

    letter-spacing: -0.025em;
}

.hero-first-name {
    color: var(--white);
}

.hero-last-name {
    color: #d2b77f;
}

/* ---------- English identity ---------- */

.hero-name-en {
    direction: ltr;

    display: flex;
    align-items: baseline;

    gap: 12px;
    margin-top: 4px;

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

    font-size: clamp(2.3rem, 4.4vw, 4.8rem);
    font-weight: 400;

    line-height: 1;
    letter-spacing: 0.012em;
}

.hero-name-en .en-first {
    color: var(--white);
}

.hero-name-en .en-last {
    color: #d2b77f;
}

/* ---------- Divider ---------- */

.hero-divider {
    width: 90px;
    height: 1px;

    margin: 27px 0 21px;

    background: var(--gold);
}

/* ---------- Actions ---------- */

.hero-actions {
    display: flex;
    align-items: center;

    gap: 26px;
    margin-top: 32px;
}

.hero-primary {
    min-height: 52px;

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

    gap: 28px;

    padding: 0 22px 0 25px;

    background: var(--gold);
    color: var(--white);

    font-size: 0.77rem;
    font-weight: 700;

    transition:
        background 0.3s ease,
        transform 0.35s var(--ease);
}

.hero-primary:hover {
    background: #bd9659;
    transform: translateY(-3px);
}

.hero-arrow {
    font-size: 1.25rem;
    line-height: 1;
}

.hero-secondary {
    position: relative;

    color: rgba(255, 255, 255, 0.70);

    font-size: 0.75rem;

    transition: color 0.25s ease;
}

.hero-secondary::after {
    content: "";

    position: absolute;
    right: 0;
    left: 0;
    bottom: -6px;

    height: 1px;

    background: rgba(255, 255, 255, 0.28);

    transition: background 0.25s ease;
}

.hero-secondary:hover {
    color: var(--white);
}

.hero-secondary:hover::after {
    background: var(--gold);
}

/* ---------- Bottom ---------- */

.hero-bottom {
    position: absolute;

    z-index: 6;

    bottom: 25px;
    left: 50%;

    transform: translateX(-50%);

    width: min(var(--container), calc(100% - 64px));

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

    color: rgba(255, 255, 255, 0.43);

    font-size: 0.61rem;
}

.hero-scroll,
.hero-index {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-line {
    width: 35px;
    height: 1px;
    background: var(--gold);
}

.hero-index-line {
    width: 70px;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

/* ---------- Hero responsive ---------- */

@media (max-width: 1100px) {

    .home-hero {
        height: 760px;
        min-height: 0;
    }

    .hero-portrait img {
        width: min(50vw, 520px);
        max-height: 72%;
        transform: translateX(20%);
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 17, 23, 0.97) 0%,
                rgba(8, 17, 23, 0.84) 40%,
                rgba(8, 17, 23, 0.42) 68%,
                rgba(8, 17, 23, 0.12) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8, 17, 23, 0.82),
                transparent 55%
            );
    }
}

@media (max-width: 700px) {

    .home-hero {
        height: 720px;
    }

    .hero-portrait {
        align-items: flex-end;
        padding-bottom: 35px;
    }

    .hero-portrait img {
        width: min(72vw, 390px);
        max-height: 52%;
        transform: translateX(12%);
        opacity: 0.82;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 17, 23, 0.97) 0%,
                rgba(8, 17, 23, 0.88) 52%,
                rgba(8, 17, 23, 0.48) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8, 17, 23, 0.90) 0%,
                rgba(8, 17, 23, 0.25) 60%,
                rgba(8, 17, 23, 0.35) 100%
            );
    }

    .hero-frame {
        inset: 12px;
    }

    .hero-frame::before {
        inset: 9px;
    }

    .hero-content {
        width: calc(100% - 30px);
        padding: 50px 0 90px;
    }

    .hero-kicker {
        font-size: 0.62rem;
    }

    .hero-kicker span {
        width: 32px;
        flex-basis: 32px;
    }

    .hero-name-fa {
        margin-top: 20px;
    }

    .hero-title {
        margin-bottom: 7px;
        font-size: 1rem;
    }

    .hero-name-line {
        gap: 8px;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: clamp(3rem, 13vw, 4.8rem);
    }

    .hero-name-en {
        margin-top: 4px;
        gap: 8px;
        font-size: 1.7rem;
    }

    .hero-divider {
        width: 65px;
        margin: 22px 0 17px;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        margin-top: 26px;
    }

    .hero-primary {
        min-height: 48px;
    }

    .hero-bottom {
        bottom: 18px;
        width: calc(100% - 30px);
    }

    .hero-index {
        display: none;
    }
}

@media (max-width: 480px) {

    .home-hero {
        min-height: calc(100svh - 70px);
        height: auto;
    }

    .hero-portrait img {
        width: min(76vw, 350px);
        max-height: 48%;
        transform: translateX(8%);
    }

    .hero-content {
        padding: 80px 0 110px;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: 3rem;
    }

    .hero-name-en {
        font-size: 1.45rem;
    }
}

/* =========================================================
   INTRO
   ========================================================= */

.intro-section {
    padding: 150px 0;
    background: var(--paper-light);
}

.intro-grid {
    display: grid;
    grid-template-columns: 90px 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.intro-number {
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    padding-top: 10px;
}

.intro-heading h2 {
    margin: 18px 0 0;
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.18;
    letter-spacing: -0.055em;
}

.intro-text {
    padding-top: 38px;
}

.intro-text p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 2.25;
}


/* =========================================================
   EDITORIAL / FEATURED
   ========================================================= */

.editorial-section {
    padding: 125px 0;
    background: var(--paper);
}

.editorial-header,
.latest-header,
.domains-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 55px;
}

.editorial-header h2,
.latest-header h2,
.domains-header h2 {
    margin: 15px 0 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.05em;
    line-height: 1.2;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.view-all span {
    font-size: 1.2rem;
}


/* ---------- Featured layout ---------- */

.featured-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 70px;
}

.featured-lead {
    min-width: 0;
}

.featured-image {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ddd;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.featured-image:hover img {
    transform: scale(1.035);
}

.image-overlay {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 10px 15px;
    background: rgba(23, 43, 56, 0.93);
    color: var(--white);
    font-size: 0.67rem;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.35s ease,
        transform 0.35s var(--ease);
}

.image-overlay b {
    margin-right: 14px;
    color: var(--gold-light);
}

.featured-image:hover .image-overlay {
    opacity: 1;
    transform: translateY(0);
}

.featured-meta {
    display: flex;
    gap: 18px;
    margin-top: 22px;
    color: var(--gold);
    font-size: 0.66rem;
}

.featured-meta time {
    color: var(--muted);
}

.featured-lead h3 {
    max-width: 800px;
    margin: 12px 0;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.5;
    letter-spacing: -0.035em;
}

.featured-lead h3 a {
    transition: color 0.25s ease;
}

.featured-lead h3 a:hover {
    color: var(--gold);
}

.featured-lead > p {
    max-width: 700px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.83rem;
    line-height: 2.1;
}


/* ---------- Small featured ---------- */

.featured-small {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid var(--line);
    transition:
        padding 0.4s var(--ease),
        background 0.3s ease;
}

.featured-small:first-child {
    border-top: 1px solid var(--line);
}

.featured-small:hover {
    padding-inline: 12px;
    background: rgba(169, 133, 73, 0.035);
}

.featured-small-index {
    color: var(--gold);
    font-size: 0.7rem;
    padding-top: 4px;
}

.article-category {
    color: var(--gold);
    font-size: 0.64rem;
    font-weight: 700;
}

.featured-small h3 {
    margin: 8px 0;
    font-size: 1rem;
    line-height: 1.7;
}

.featured-small h3 a {
    transition: color 0.25s ease;
}

.featured-small h3 a:hover {
    color: var(--gold);
}

.featured-small p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.9;
}

.featured-small time {
    color: var(--muted);
    font-size: 0.6rem;
}


/* =========================================================
   DOMAINS
   ========================================================= */

.domains-section {
    padding: 135px 0;
    background: var(--navy);
    color: var(--white);
}

.domains-header {
    align-items: start;
}

.domains-header h2 {
    color: var(--white);
}

.domains-header p {
    max-width: 380px;
    margin: 36px 0 0;
    color: rgba(255, 255, 255, 0.50);
    font-size: 0.78rem;
    line-height: 2.2;
}

.domains-list {
    border-top: 1px solid var(--line-light);
}

.domain-item {
    min-height: 125px;
    display: grid;
    grid-template-columns: 100px 1fr 80px;
    align-items: center;
    gap: 30px;
    border-bottom: 1px solid var(--line-light);
    transition:
        padding 0.45s var(--ease),
        background 0.35s ease;
}

.domain-item:hover {
    padding-inline: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.domain-number {
    color: var(--gold-light);
    font-size: 0.68rem;
}

.domain-item h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2.6vw, 2rem);
    font-weight: 700;
    transition: color 0.3s ease;
}

.domain-item p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.66rem;
}

.domain-item:hover h3 {
    color: var(--gold-light);
}

.domain-arrow {
    justify-self: end;
    color: var(--gold-light);
    font-size: 1.5rem;
    transition: transform 0.35s var(--ease);
}

.domain-item:hover .domain-arrow {
    transform: translate(-5px, 5px);
}


/* =========================================================
   LATEST
   ========================================================= */

.latest-section {
    padding: 135px 0;
    background: var(--paper-light);
}

.latest-list {
    border-top: 1px solid var(--line);
}

.latest-item {
    display: grid;
    grid-template-columns: 80px 1fr 150px;
    gap: 35px;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    transition:
        padding 0.4s var(--ease),
        background 0.3s ease;
}

.latest-item:hover {
    padding-inline: 18px;
    background: rgba(169, 133, 73, 0.025);
}

.latest-number {
    color: var(--gold);
    font-size: 0.72rem;
    padding-top: 7px;
}

.latest-main h3 {
    margin: 8px 0;
    font-size: 1.3rem;
    line-height: 1.6;
}

.latest-main h3 a {
    transition: color 0.25s ease;
}

.latest-main h3 a:hover {
    color: var(--gold);
}

.latest-main p {
    max-width: 700px;
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 2;
}

.latest-date {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.63rem;
}

.latest-date span {
    color: var(--gold);
    font-size: 1.15rem;
    opacity: 0;
    transform: translate(7px, -7px);
    transition:
        opacity 0.3s ease,
        transform 0.3s var(--ease);
}

.latest-item:hover .latest-date span {
    opacity: 1;
    transform: translate(0, 0);
}

.empty-editorial {
    padding: 80px 0;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}


/* =========================================================
   LIBRARY
   ========================================================= */

.library-section {
    padding: 135px 0;
    background: var(--paper);
}

.library-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.library-block h2 {
    margin: 15px 0 40px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
}

.book-list,
.publication-stack {
    border-top: 1px solid var(--line);
}

.book-row {
    min-height: 105px;
    display: grid;
    grid-template-columns: 65px 1fr 30px;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid var(--line);
    transition:
        padding 0.35s var(--ease),
        background 0.3s ease;
}

.book-row:hover {
    padding-inline: 12px;
    background: rgba(169, 133, 73, 0.035);
}

.book-row img {
    width: 52px;
    height: 70px;
    object-fit: cover;
    background: var(--paper-light);
}

.book-row h3 {
    margin: 0 0 3px;
    font-size: 0.88rem;
}

.book-row span {
    color: var(--muted);
    font-size: 0.62rem;
}

.book-row > b {
    color: var(--gold);
}

.publication-row {
    min-height: 105px;
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition:
        padding 0.35s var(--ease),
        background 0.3s ease;
}

.publication-row:hover {
    padding-inline: 12px;
    background: rgba(169, 133, 73, 0.035);
}

.publication-index {
    color: var(--gold);
    font-size: 0.65rem;
}

.publication-row h3 {
    margin: 0;
    font-size: 0.9rem;
}

.publication-row p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.63rem;
}

.publication-row > span:last-child {
    color: var(--gold);
}


/* =========================================================
   CLOSING
   ========================================================= */

.closing-section {
    padding: 160px 0;
    background:
        radial-gradient(
            circle at 80% 40%,
            rgba(169, 133, 73, 0.13),
            transparent 30%
        ),
        var(--navy);
    color: var(--white);
    text-align: center;
}

.closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-section h2 {
    max-width: 900px;
    margin: 25px 0 45px;
    font-size: clamp(2.8rem, 6vw, 6.5rem);
    line-height: 1.2;
    letter-spacing: -0.065em;
}

.closing-section h2 em {
    color: var(--gold-light);
    font-style: normal;
}


/* =========================================================
   INNER PAGES
   ========================================================= */

.section {
    padding: 90px 0;
}

.section-muted {
    background: var(--paper-dark);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--paper-light);
    transition:
        transform 0.35s var(--ease),
        border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(169, 133, 73, 0.35);
}

.card-image {
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-body h2,
.card-body h3 {
    margin: 8px 0;
    font-size: 1.15rem;
}

.card-body p {
    color: var(--muted);
    font-size: 0.8rem;
}

.card-category {
    color: var(--gold);
    font-size: 0.67rem;
    font-weight: 700;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.simple-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    border: 1px solid var(--line);
    background: var(--paper-light);
    transition:
        transform 0.3s var(--ease),
        border-color 0.3s ease;
}

.simple-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
}

.simple-card h3 {
    margin: 0 0 7px;
}

.simple-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}


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

.site-footer {
    background: #101d25;
    color: #dce0df;
}

.footer-grid {
    padding: 75px 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    color: var(--white);
    font-size: 0.9rem;
}

.footer-brand span {
    display: block;
    color: #87939a;
    font-size: 0.63rem;
}

.footer-about p,
.footer-note p {
    max-width: 400px;
    color: #8e999f;
    font-size: 0.72rem;
    line-height: 2.1;
}

.footer-column h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 0.8rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #8e999f;
    font-size: 0.7rem;
    transition: color 0.25s ease;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    min-height: 68px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #66747b;
    font-size: 0.61rem;
}


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

@media (max-width: 1100px) {

    .container,
    .hero-content {
        width: min(var(--container), calc(100% - 44px));
    }

    .header-inner {
        flex-wrap: wrap;
        padding: 13px 0;
        gap: 12px 20px;
    }

    .brand {
        min-width: auto;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 3px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .search-form {
        margin-right: auto;
    }

    .home-hero {
        height: 760px;
        min-height: 0;
    }

    .hero-content {
        padding-top: 80px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 17, 23, 0.94) 0%,
                rgba(8, 17, 23, 0.70) 48%,
                rgba(8, 17, 23, 0.25) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8, 17, 23, 0.82),
                transparent 45%
            );
    }

    .intro-grid {
        grid-template-columns: 55px 1fr;
    }

    .intro-text {
        grid-column: 2;
        padding-top: 0;
        max-width: 650px;
    }

    .featured-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .library-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}


/* =========================================================
   TABLET / LARGE MOBILE — 900px
   ========================================================= */

@media (max-width: 900px) {

    .hero-name-en {
        font-size: clamp(2rem, 6vw, 3.8rem);
    }

    .hero-description {
        max-width: 430px;
    }

    .hero-caption {
        display: none;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }

    .card-grid,
    .simple-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE — 700px
   ========================================================= */

@media (max-width: 700px) {

    .container,
    .hero-content {
        width: calc(100% - 30px);
    }

    .header-inner {
        min-height: auto;
        gap: 10px;
    }

    .brand {
        max-width: calc(100% - 100px);
    }

    .brand-text {
        overflow: hidden;
    }

    .brand-text strong {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .brand-text small {
        display: none;
    }

    .search-form {
        order: 4;
        width: 100%;
        margin: 0;
    }

    .search-form input {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .home-hero {
        height: 720px;
        min-height: 0;
    }

    .hero-image img {
        object-position: center center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(8, 17, 23, 0.95) 0%,
                rgba(8, 17, 23, 0.76) 65%,
                rgba(8, 17, 23, 0.42) 100%
            ),
            linear-gradient(
                0deg,
                rgba(8, 17, 23, 0.88) 0%,
                rgba(8, 17, 23, 0.20) 60%,
                rgba(8, 17, 23, 0.30) 100%
            );
    }

    .hero-frame {
        inset: 12px;
    }

    .hero-frame::before {
        inset: 9px;
    }

    .hero-content {
        padding: 50px 0 90px;
        justify-content: center;
    }

    .hero-kicker {
        font-size: 0.62rem;
    }

    .hero-kicker span {
        width: 32px;
        flex-basis: 32px;
    }

    .hero-name-fa {
        margin-top: 20px;
    }

    .hero-title {
        margin-bottom: 7px;
        font-size: 1rem;
    }

    .hero-name-line {
        gap: 8px;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: clamp(3rem, 13vw, 4.8rem);
    }

    .hero-name-en {
        margin-top: 4px;
        gap: 8px;
        font-size: 1.7rem;
    }

    .hero-role {
        margin-top: 4px;
        font-size: 0.76rem;
    }

    .hero-divider {
        width: 65px;
        margin: 22px 0 17px;
    }

    .hero-description {
        max-width: 100%;
        font-size: 0.75rem;
        line-height: 2.1;
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 19px;
        margin-top: 26px;
    }

    .hero-primary {
        min-height: 48px;
    }

    .hero-bottom {
        bottom: 18px;
        width: calc(100% - 30px);
    }

    .hero-index {
        display: none;
    }

    .intro-section,
    .editorial-section,
    .domains-section,
    .latest-section,
    .library-section {
        padding: 85px 0;
    }

    .intro-grid {
        display: block;
    }

    .intro-number {
        margin-bottom: 30px;
    }

    .intro-heading h2 {
        font-size: 2.65rem;
    }

    .intro-text {
        margin-top: 35px;
    }

    .editorial-header,
    .latest-header,
    .domains-header {
        display: block;
        margin-bottom: 38px;
    }

    .editorial-header .view-all,
    .latest-header .view-all {
        margin-top: 20px;
    }

    .featured-image {
        aspect-ratio: 4 / 3;
    }

    .domains-header p {
        margin-top: 22px;
    }

    .domain-item {
        min-height: 105px;
        grid-template-columns: 42px 1fr 30px;
        gap: 13px;
    }

    .domain-item:hover {
        padding-inline: 8px;
    }

    .domain-item h3 {
        font-size: 1.2rem;
    }

    .domain-item p {
        font-size: 0.58rem;
    }

    .latest-item {
        grid-template-columns: 40px 1fr;
        gap: 15px;
        padding: 27px 0;
    }

    .latest-date {
        grid-column: 2;
        justify-content: flex-start;
        gap: 20px;
        margin-top: 3px;
    }

    .latest-main h3 {
        font-size: 1rem;
    }

    .library-grid {
        grid-template-columns: 1fr;
        gap: 80px;
    }

    .closing-section {
        padding: 110px 0;
    }

    .closing-section h2 {
        font-size: 3rem;
    }

    .card-grid,
    .simple-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 55px 0;
    }

    .footer-bottom-inner {
        min-height: auto;
        padding: 20px 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


/* =========================================================
   SMALL MOBILE — 480px
   ========================================================= */

@media (max-width: 480px) {

    .container,
    .hero-content {
        width: calc(100% - 30px);
    }

    .home-hero {
        min-height: calc(100svh - 70px);
        height: auto;
    }

    .hero-content {
        padding: 80px 0 110px;
    }

    .hero-name-line {
        gap: 6px;
    }

    .hero-first-name,
    .hero-last-name {
        font-size: 3rem;
    }

    .hero-name-en {
        font-size: 1.45rem;
        gap: 6px;
    }

    .hero-description {
        font-size: 0.74rem;
        line-height: 2;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-frame {
        inset: 10px;
    }

    .hero-frame::before {
        inset: 7px;
    }

    .hero-bottom {
        width: calc(100% - 30px);
    }

    .intro-heading h2 {
        font-size: 2.35rem;
    }

    .closing-section h2 {
        font-size: 2.45rem;
    }

    .book-row {
        grid-template-columns: 55px 1fr 25px;
        gap: 14px;
    }

    .publication-row {
        grid-template-columns: 40px 1fr 25px;
        gap: 14px;
    }
}


/* =========================================================
   VERY SMALL MOBILE — 380px
   ========================================================= */

@media (max-width: 380px) {

    .hero-first-name,
    .hero-last-name {
        font-size: 2.65rem;
    }

    .hero-name-en {
        font-size: 1.3rem;
    }

    .hero-primary {
        width: 100%;
        justify-content: space-between;
    }

    .intro-heading h2 {
        font-size: 2.1rem;
    }

    .closing-section h2 {
        font-size: 2.2rem;
    }
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================

/* =========================================================
   HERO FULL-BLEED — HEADER OVER IMAGE
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
}

.home-hero {
    position: relative;
    margin-top: 0;
    padding-top: 0;
    min-height: 100vh;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-frame {
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
}


/* =========================================================
   HERO — ORIGINAL IMAGE SIZE / CENTERED
   ========================================================= */

.home-hero {
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.hero-image img {
    display: block;
    width: 65%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}


/* =========================================================
   FINAL HERO IMAGE OVERRIDE
   ========================================================= */

.home-hero .hero-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: transparent !important;
    z-index: 1 !important;
}

.home-hero .hero-image img {
    display: block !important;
    width: 55% !important;
    max-width: 650px !important;
    height: auto !important;
    max-height: 90% !important;
    object-fit: contain !important;
    object-position: center center !important;
    margin: 0 auto !important;
    transform: none !important;
}


/* WHITE HERO BACKGROUND */
.home-hero {
    background: #fff !important;
    color: var(--ink) !important;
}

.hero-overlay {
    background: transparent !important;
}

.hero-portrait {
    background: #fff !important;
}

.hero-content {
    color: var(--ink) !important;
}

.hero-kicker,
.hero-name-fa,
.hero-name-en {
    color: var(--ink) !important;
}

.hero-divider {
    background: rgba(24, 35, 42, 0.18) !important;
}

