/* =====================================================================
   صفحه «درباره ما» — معماری امیر
   فقط روی page-about.php لود می‌شود (بعد از app.css)
   همه‌ی کلاس‌ها با پیشوند ab- شروع می‌شوند تا با بقیه‌ی قالب تداخل نکنند.
   پالت: همان پالت صفحه اصلی (شرابی / طلایی / کاغذی / سبز تیره)
   ===================================================================== */

.ab-page {
    --ab-wine: #260508;
    --ab-wine-2: #0f0307;
    --ab-wine-3: #741b1b;
    --ab-red: #a81c22;
    --ab-red-2: #8b2626;
    --ab-gold: #c69a46;
    --ab-gold-2: #e2c08d;
    --ab-gold-3: #f3d7a8;
    --ab-gold-4: #b88e4c;
    --ab-gold-grad: linear-gradient(135deg, #f3d7a8 0%, #b88e4c 100%);
    --ab-cream: #f2e6d1;
    --ab-sand: #e5dccb;
    --ab-card: #f1e7d8;
    --ab-green: #071712;
    --ab-green-2: #08251b;
    --ab-green-3: #0f3d2e;
    --ab-orange: #d16928;
    --ab-ink: #1f140e;
    --ab-text: #3b2c1e;
    --ab-text-2: #524337;
    --ab-line: #8c7355;
    --ab-ease: cubic-bezier(.16, 1, .3, 1);
    --ab-motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%231b4d3e' stroke-width='1.2' opacity='0.4'%3E%3Cpath d='M70 0 C40 30 10 40 0 70 C10 100 40 110 70 140 C100 110 130 100 140 70 C130 40 100 30 70 0Z'/%3E%3Cpath d='M70 20 C50 40 25 50 15 70 C25 90 50 100 70 120 C90 100 115 90 125 70 C115 50 90 40 70 20Z' stroke-width='0.9' opacity='0.6'/%3E%3Ccircle cx='70' cy='70' r='15' stroke-width='0.8'/%3E%3Cpath d='M0 0 C30 12 40 35 70 35 C100 35 110 12 140 0' stroke-width='0.9'/%3E%3Cpath d='M0 140 C30 128 40 105 70 105 C100 105 110 128 140 140' stroke-width='0.9'/%3E%3C/g%3E%3C/svg%3E");

    font-family: Vazirmatn, sans-serif;
    direction: rtl;
    color: var(--ab-text);
    position: relative;
}

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

/* ریست با :where() تا ویژگی (specificity) صفر باشد و کلاس‌های خودمان همیشه برنده شوند */
.ab-page :where(img) { max-width: 100%; height: auto; display: block; }
.ab-page :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; padding: 0; }
.ab-page :where(ul, ol) { list-style: none; }

/* حاشیه‌ی پیش‌فرض مرورگر دور بدنه، کنار بخش‌های تمام‌عرض دیده می‌شود */
html.ab-js body,
body:has(.ab-page) { margin: 0; }

.ab-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.ab-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1250px;
    margin-inline: auto;
    padding-inline: 24px;
}

/* ---------- عنصرهای مشترک ---------- */
.ab-eyebrow {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--ab-gold);
    margin-bottom: 14px;
}
.ab-eyebrow--dark { color: #8e8071; }

.ab-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 230px;
    margin: 6px 0 26px;
}
.ab-divider span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #a3825e); }
.ab-divider span:last-child { background: linear-gradient(90deg, #a3825e, transparent); }
.ab-divider i { font-style: normal; font-size: 11px; color: #a3825e; line-height: 1; }
.ab-divider--gold span { background: linear-gradient(90deg, transparent, var(--ab-gold)); }
.ab-divider--gold span:last-child { background: linear-gradient(90deg, var(--ab-gold), transparent); }
.ab-divider--gold i { color: var(--ab-gold); }

.ab-head { text-align: center; margin-bottom: 56px; }
.ab-head .ab-divider { margin-inline: auto; }
.ab-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; line-height: 1.35; color: var(--ab-ink); letter-spacing: -.3px; }
.ab-process .ab-head h2 { color: var(--ab-cream); }
.ab-head p { color: #b9ada0; font-size: 1rem; line-height: 1.9; }

/* ---------- ظاهر شدن با اسکرول ---------- */
.ab-js .ab-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .9s var(--ab-ease), transform .9s var(--ab-ease);
    transition-delay: var(--d, 0s);
}
.ab-js .ab-reveal.is-in { opacity: 1; transform: none; }

/* انیمیشن‌های بی‌پایان تا وقتی سکشن دیده نشود متوقف می‌مانند (برای سبک ماندن صفحه) */
.ab-live-scope:not(.is-live) .ab-spin,
.ab-live-scope:not(.is-live) .ab-ribbon-track,
.ab-live-scope:not(.is-live) .ab-shot.is-active img { animation-play-state: paused; }

.ab-spin { animation: abSpin 160s linear infinite; }

@keyframes abSpin { to { transform: rotate(360deg); } }
@keyframes abHeroZoom { from { transform: scale(1.13); } to { transform: scale(1); } }
@keyframes abRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes abMarquee { to { transform: translateX(50%); } }
@keyframes abFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* =====================================================================
   ۱. هیرو
   ===================================================================== */
.ab-hero {
    position: relative;
    isolation: isolate;
    min-height: 680px;
    padding: 158px 0 205px;
    background: var(--ab-wine);
    color: #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ab-hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ab-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 20% center;
    transform-origin: 28% 50%;
    animation: abHeroZoom 16s var(--ab-ease) both;
}
.ab-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(to top, var(--ab-wine) 0, rgba(38, 5, 8, 0) 34%),
        linear-gradient(to left, var(--ab-wine) 0, var(--ab-wine) 34%, rgba(38, 5, 8, .84) 54%, rgba(38, 5, 8, .28) 80%, rgba(38, 5, 8, .06) 100%);
}

.ab-hero-star {
    position: absolute;
    z-index: 1;
    left: -210px;
    bottom: -250px;
    width: 600px;
    height: 600px;
    color: var(--ab-gold);
    opacity: .2;
    pointer-events: none;
}

.ab-hero-inner { z-index: 3; }
.ab-hero-inner > * { animation: abRise 1s var(--ab-ease) both; }
.ab-hero-inner > :nth-child(1) { animation-delay: .05s; }
.ab-hero-inner > :nth-child(2) { animation-delay: .15s; }
.ab-hero-inner > :nth-child(3) { animation-delay: .25s; }
.ab-hero-inner > :nth-child(4) { animation-delay: .38s; }
.ab-hero-inner > :nth-child(5) { animation-delay: .5s; }

.ab-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    margin-bottom: 30px;
    font-size: .84rem;
    color: rgba(242, 230, 209, .72);
    border: 1px solid rgba(198, 154, 70, .3);
    border-radius: 50px;
    background: rgba(15, 3, 7, .45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ab-crumbs a { color: var(--ab-gold-2); text-decoration: none; transition: color .3s; }
.ab-crumbs a:hover { color: #fff; }
.ab-crumbs i { font-style: normal; font-size: .5rem; color: var(--ab-gold); }

.ab-hero h1 { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.14; margin-bottom: 22px; }
.ab-t-cream { font-size: clamp(2.1rem, 4.2vw, 3.9rem); font-weight: 700; color: var(--ab-cream); }
.ab-t-red { font-size: clamp(2.6rem, 5.8vw, 5.2rem); font-weight: 900; color: var(--ab-red); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }

.ab-hero-desc {
    max-width: 540px;
    margin-bottom: 36px;
    font-size: clamp(.95rem, 1.4vw, 1.08rem);
    font-weight: 300;
    line-height: 2.05;
    color: #d1c2b5;
}
.ab-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* =====================================================================
   ۲. آمار
   ===================================================================== */
.ab-parch { display: flow-root; }

.ab-stats-wrap { margin-top: -120px; z-index: 6; }

.ab-stats {
    position: relative;
    padding: 46px 16px;
    border-radius: 26px;
    border: 1px solid rgba(198, 154, 70, .55);
    background:
        var(--ab-motif) 0 0 / 140px 140px repeat,
        radial-gradient(circle at 50% 0, var(--ab-green-3) 0, var(--ab-green-2) 100%);
    box-shadow:
        0 34px 60px -18px rgba(15, 3, 7, .5),
        inset 0 0 0 6px rgba(7, 23, 18, .55),
        inset 0 0 0 7px rgba(198, 154, 70, .2);
}
.ab-stats::before,
.ab-stats::after {
    content: '';
    position: absolute;
    width: 26px;
    height: 26px;
    border: 2px solid var(--ab-gold);
    pointer-events: none;
}
.ab-stats::before { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 14px; }
.ab-stats::after { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 14px; }

.ab-stats-list { display: grid; grid-template-columns: repeat(4, 1fr); }

.ab-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-align: center;
}
.ab-stat + .ab-stat::before {
    content: '';
    position: absolute;
    inset-block: 6%;
    inset-inline-start: 0;
    width: 1px;
    background: linear-gradient(transparent, rgba(198, 154, 70, .45), transparent);
}
.ab-stat + .ab-stat::after {
    content: '✦';
    position: absolute;
    top: 50%;
    inset-inline-start: 0;
    transform: translate(50%, -50%);
    font-size: .5rem;
    color: var(--ab-gold);
    opacity: .7;
}

.ab-stat-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 8px;
    color: var(--ab-gold-2);
    border: 1px solid rgba(198, 154, 70, .5);
    border-radius: 50%;
    background: rgba(198, 154, 70, .07);
    transition: transform .5s var(--ab-ease), background .4s, box-shadow .4s;
}
.ab-stat:hover .ab-stat-icon { transform: translateY(-4px) rotate(-6deg); background: rgba(198, 154, 70, .16); box-shadow: 0 8px 22px rgba(198, 154, 70, .25); }

.ab-stat strong {
    direction: ltr;
    unicode-bidi: isolate;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    background: var(--ab-gold-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
.ab-stat small { font-size: .88rem; color: #a5c0b8; }

/* =====================================================================
   ۳. داستان ما
   ===================================================================== */
.parchment-section.ab-story { padding: 90px 0 110px; text-align: right; }

.ab-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(44px, 6.5vw, 96px);
    align-items: center;
}

.ab-story-text h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.3; color: var(--ab-ink); letter-spacing: -.4px; }
.ab-story-text p { font-size: 1rem; line-height: 2.1; color: var(--ab-text); margin-bottom: 16px; text-align: right; }
.ab-story-text .ab-lead { font-size: 1.2rem; font-weight: 700; line-height: 2; color: var(--ab-ink); }

.ab-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 30px; }
.ab-pillar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 16px 16px;
    background: rgba(241, 231, 216, .75);
    border: 1px solid rgba(140, 115, 85, .35);
    border-radius: 18px;
    transition: transform .4s var(--ab-ease), border-color .4s, box-shadow .4s;
}
.ab-pillar:hover { transform: translateY(-5px); border-color: rgba(116, 27, 27, .45); box-shadow: 0 16px 30px rgba(60, 40, 20, .12); }
.ab-pillar-icon { color: var(--ab-wine-3); margin-bottom: 8px; display: block; }
.ab-pillar strong { font-size: .98rem; font-weight: 800; color: var(--ab-ink); }
.ab-pillar small { font-size: .8rem; line-height: 1.7; color: var(--ab-text-2); }

.ab-quote {
    position: relative;
    padding: 18px 26px 18px 18px;
    border-inline-start: 3px solid var(--ab-red);
    background: linear-gradient(to left, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0));
    border-radius: 0 16px 16px 0;
}
.ab-quote::before {
    content: '\201D';
    position: absolute;
    top: 2px;
    inset-inline-end: 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 4.2rem;
    line-height: 1;
    color: rgba(168, 28, 34, .25);
}
.ab-story-text .ab-quote p { margin: 0; font-size: 1.28rem; font-weight: 800; color: var(--ab-wine-3); line-height: 1.7; }

/* --- ترکیب طاق‌ها --- */
.ab-story-visual {
    position: relative;
    width: 100%;
    max-width: 540px;
    aspect-ratio: 1 / 1.13;
    margin-inline: auto;
}

.ab-blueprint {
    position: absolute;
    top: -4%;
    right: -9%;
    width: 68%;
    height: auto;
    z-index: 0;
    color: var(--ab-line);
    opacity: .55;
}
.ab-bp-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ab-bp-dash { opacity: 1; }
.ab-js .ab-bp-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 2.8s var(--ab-ease) .35s; }
.ab-js .ab-bp-dash { opacity: 0; transition: opacity 1.6s ease 1.6s; }
.ab-js .ab-story-visual.is-in .ab-bp-draw { stroke-dashoffset: 0; }
.ab-js .ab-story-visual.is-in .ab-bp-dash { opacity: 1; }

/* قاب طاق تیزه‌دار: لایه‌ی بیرونی طلایی، لایه‌ی داخلی عکس */
.ab-arch { position: absolute; z-index: 1; filter: drop-shadow(0 24px 28px rgba(60, 40, 20, .3)); }
.ab-arch-frame,
.ab-arch-clip { display: block; width: 100%; height: 100%; }
.ab-arch-frame {
    padding: 4px;
    background: var(--ab-gold-grad);
    -webkit-clip-path: url(#abArch);
    clip-path: url(#abArch);
    border-radius: 50% 50% 14px 14px / 30% 30% 14px 14px; /* اگر مرورگر کلیپ‌پث را نپذیرفت */
}
.ab-arch-clip { overflow: hidden; -webkit-clip-path: url(#abArch); clip-path: url(#abArch); background: var(--ab-card); }
.ab-arch img,
.ab-work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ab-ease); }
.ab-arch:hover img { transform: scale(1.06); }

.ab-arch--main { top: 0; left: 0; width: 67%; height: 86%; }
.ab-arch--sm { right: 0; bottom: 0; width: 46%; height: 55%; z-index: 2; filter: drop-shadow(0 22px 26px rgba(60, 40, 20, .34)); }
.ab-arch--sm .ab-arch-frame { padding: 5px; background: linear-gradient(135deg, #f7e2b8, #b88e4c); }
.ab-arch--sm::before {
    content: '';
    position: absolute;
    inset: -7px;
    z-index: -1;
    background: #e3d2b6;
    -webkit-clip-path: url(#abArch);
    clip-path: url(#abArch);
}

.ab-badge {
    position: absolute;
    z-index: 3;
    left: -3%;
    bottom: 10%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 16px;
    color: var(--ab-cream);
    background: rgba(15, 3, 7, .9);
    border: 1px solid rgba(198, 154, 70, .55);
    border-radius: 18px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.ab-badge-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    color: var(--ab-wine-2);
    background: var(--ab-gold-grad);
}
.ab-badge-text { display: flex; flex-direction: column; gap: 2px; }
.ab-badge-text strong { font-size: .98rem; font-weight: 800; color: var(--ab-gold-2); }
.ab-badge-text small { font-size: .76rem; color: #cbbba9; }

/* =====================================================================
   ۴. نوار ارزش‌ها
   ===================================================================== */
.ab-ribbon {
    position: relative;
    overflow: hidden;
    direction: rtl;
    padding: 24px 0;
    background: var(--ab-wine);
    border-block: 1px solid rgba(198, 154, 70, .35);
}
.ab-ribbon::before,
.ab-ribbon::after { content: ''; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 2; pointer-events: none; }
.ab-ribbon::before { left: 0; background: linear-gradient(to right, var(--ab-wine), transparent); }
.ab-ribbon::after { right: 0; background: linear-gradient(to left, var(--ab-wine), transparent); }

.ab-ribbon-track { display: flex; width: max-content; animation: abMarquee 46s linear infinite; }
.ab-ribbon:hover .ab-ribbon-track { animation-play-state: paused; }
.ab-ribbon-list { display: flex; align-items: center; flex-shrink: 0; }
.ab-ribbon-list li {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-inline: 26px;
    font-size: clamp(1.6rem, 3.2vw, 2.6rem);
    font-weight: 800;
    color: var(--ab-gold-2);
}
.ab-ribbon-list li:nth-child(even) { color: var(--ab-cream); }
.ab-ribbon-list li::after { content: '✦'; font-size: .5em; color: var(--ab-red); margin-inline-start: 52px; }

/* =====================================================================
   ۵. مسیر یک پروژه
   ===================================================================== */
.ab-process {
    position: relative;
    isolation: isolate;
    padding: 108px 0 118px;
    background: var(--ab-green);
    color: #fff;
    overflow: hidden;
}
.ab-process::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--ab-motif);
    background-size: 140px 140px;
    background-repeat: repeat;
}
.ab-process::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(16, 48, 38, .4) 10%, rgba(4, 12, 9, .85) 90%);
}

.ab-process-grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

.ab-steps { position: relative; }
.ab-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    bottom: 30px;
    right: 27px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(198, 154, 70, .5) 10%, rgba(198, 154, 70, .5) 90%, transparent);
}
.ab-step { position: relative; padding: 4px 82px 10px 0; }
.ab-step-num {
    position: absolute;
    top: 2px;
    right: 0;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--ab-gold-2);
    background: var(--ab-green-2);
    border: 1px solid rgba(198, 154, 70, .5);
    border-radius: 50%;
    transition: background .4s, color .4s, box-shadow .4s, border-color .4s;
}
.ab-step.is-active .ab-step-num {
    color: var(--ab-wine-2);
    background: var(--ab-gold-grad);
    border-color: transparent;
    box-shadow: 0 0 0 7px rgba(198, 154, 70, .14), 0 10px 26px rgba(198, 154, 70, .35);
}
.ab-step-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px 0;
    font: inherit;
    font-size: 1.3rem;
    font-weight: 800;
    text-align: right;
    color: rgba(242, 230, 209, .55);
    background: none;
    border: 0;
    cursor: pointer;
    transition: color .35s;
}
.ab-step-btn:hover,
.ab-step.is-active .ab-step-btn { color: var(--ab-cream); }
.ab-step-btn:focus-visible { outline: 2px solid var(--ab-gold); outline-offset: 4px; border-radius: 8px; }

.ab-step-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ab-ease); }
.ab-step.is-active .ab-step-body { grid-template-rows: 1fr; }
.ab-step-body > div { overflow: hidden; min-height: 0; }
.ab-step-body p { padding-top: 2px; font-size: .96rem; line-height: 2; color: #d1c5b4; margin-bottom: 12px; }
.ab-step-body ul { display: grid; gap: 8px; padding-bottom: 6px; }
.ab-step-body li { position: relative; padding-inline-start: 22px; font-size: .9rem; line-height: 1.8; color: #b9ada0; }
.ab-step-body li::before { content: '✦'; position: absolute; inset-inline-start: 0; top: 2px; font-size: .62rem; color: var(--ab-gold); }

.ab-stage { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / .94; margin-inline: auto; }
.ab-stage-star { position: absolute; inset: -6%; width: 112%; height: 112%; color: rgba(198, 154, 70, .3); pointer-events: none; }
.ab-stage-glow {
    position: absolute;
    inset: 8% 6%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 77, 62, .95) 0, rgba(15, 61, 46, .45) 55%, transparent 72%);
    border: 1px solid rgba(198, 154, 70, .18);
}
.ab-stage-num {
    position: absolute;
    left: 2%;
    bottom: 0;
    z-index: 0;
    font-size: clamp(5rem, 11vw, 9rem);
    font-weight: 900;
    line-height: 1;
    color: rgba(198, 154, 70, .13);
    direction: ltr;
    pointer-events: none;
}
.ab-shot {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    opacity: 0;
    transform: translateY(26px) scale(.95);
    transition: opacity .7s var(--ab-ease), transform .7s var(--ab-ease);
    pointer-events: none;
}
.ab-shot.is-active { opacity: 1; transform: none; }
.ab-shot img { max-width: 94%; max-height: 94%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .55)); }
.ab-shot.is-active img { animation: abFloat 7s ease-in-out infinite; }

/* =====================================================================
   ۶. نمونه‌کارها
   ===================================================================== */
.parchment-section.ab-works { padding: 100px 0 110px; }
.ab-works .ab-head { margin-bottom: 50px; }

.ab-works-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; align-items: start; }
.ab-work:nth-child(2) { margin-top: 46px; }
.ab-work-link { display: block; text-decoration: none; color: inherit; text-align: right; }
.ab-work-media { display: block; aspect-ratio: 3 / 3.9; filter: drop-shadow(0 22px 26px rgba(60, 40, 20, .28)); transition: transform .6s var(--ab-ease), filter .6s; }
.ab-work-link:hover .ab-work-media { transform: translateY(-8px); filter: drop-shadow(0 30px 32px rgba(60, 40, 20, .36)); }
.ab-work-link:hover .ab-work-media img { transform: scale(1.07); }
.ab-work-info { display: block; padding: 22px 6px 0; }
.ab-work-num { display: block; font-size: 1rem; font-weight: 800; color: var(--ab-orange); margin-bottom: 4px; }
.ab-work-info h3 { font-size: 1.25rem; font-weight: 800; line-height: 1.6; color: var(--ab-ink); margin-bottom: 6px; transition: color .3s; }
.ab-work-link:hover h3 { color: var(--ab-wine-3); }
.ab-work-cta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--ab-red); }
.ab-work-cta b { font-weight: 700; font-size: 1.1rem; transition: transform .3s; }
.ab-work-link:hover .ab-work-cta b { transform: translateX(-6px); }

.ab-more { display: flex; justify-content: center; margin-top: 60px; }
.ab-btn-dark { background: var(--ab-wine); color: var(--ab-cream); }
.ab-btn-dark:hover { background: var(--ab-wine-3); }

/* =====================================================================
   ۷. دعوت به همکاری
   ===================================================================== */
.ab-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 110px 0;
    background: var(--ab-wine);
    border-top: 1px solid rgba(198, 154, 70, .35);
}
.ab-cta-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ab-cta-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at center, rgba(38, 5, 8, .78) 0, rgba(38, 5, 8, .5) 55%, rgba(38, 5, 8, .18) 100%),
        linear-gradient(to bottom, rgba(38, 5, 8, .42), rgba(11, 2, 5, .55));
}
.ab-cta-frame {
    position: relative;
    max-width: 820px;
    margin-inline: auto;
    padding: 64px 40px;
    text-align: center;
    border: 1px solid rgba(198, 154, 70, .4);
    border-radius: 26px;
    background: rgba(15, 3, 7, .42);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.ab-cta-frame::before,
.ab-cta-frame::after { content: ''; position: absolute; width: 34px; height: 34px; border: 2px solid var(--ab-gold); pointer-events: none; }
.ab-cta-frame::before { top: 14px; right: 14px; border-width: 2px 2px 0 0; border-top-right-radius: 16px; }
.ab-cta-frame::after { bottom: 14px; left: 14px; border-width: 0 0 2px 2px; border-bottom-left-radius: 16px; }
.ab-cta-frame .ab-eyebrow { color: var(--ab-gold); }
.ab-cta-frame .ab-divider { margin-inline: auto; }
.ab-cta-frame h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); font-weight: 800; line-height: 1.5; color: var(--ab-cream); }
.ab-cta-frame p { max-width: 520px; margin: 0 auto 32px; font-size: 1.02rem; line-height: 2; color: #d1c2b5; }
.ab-btn-solid { padding: 13px 38px; font-size: 1rem; color: var(--ab-wine-2); background: var(--ab-gold-grad); border-color: transparent; }
.ab-btn-solid:hover { filter: brightness(1.08); }
.ab-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; }

/* =====================================================================
   ریسپانسیو
   ===================================================================== */
@media (max-width: 1100px) {
    .ab-story-grid { grid-template-columns: 1fr; gap: 64px; }
    .ab-story-visual { max-width: 500px; }
    .ab-process-grid { grid-template-columns: 1fr; gap: 44px; }
    .ab-stage { order: -1; max-width: 520px; }
    .ab-steps { max-width: 620px; margin-inline: auto; width: 100%; }
}

@media (max-width: 900px) {
    .ab-works-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-work:nth-child(2) { margin-top: 0; }
    .ab-work:nth-child(3) { grid-column: 1 / -1; max-width: 50%; justify-self: center; }
}

@media (max-width: 768px) {
    .ab-wrap { padding-inline: 16px; }

    .ab-hero { min-height: 0; padding: 130px 0 170px; align-items: flex-start; }
    .ab-hero-img { object-position: 14% center; }
    .ab-hero-shade {
        background:
            linear-gradient(to top, var(--ab-wine) 0, rgba(38, 5, 8, 0) 40%),
            linear-gradient(to bottom, rgba(38, 5, 8, .6) 0, rgba(38, 5, 8, .82) 55%, rgba(38, 5, 8, .92) 100%);
    }
    .ab-hero-star { width: 380px; height: 380px; left: -140px; bottom: -120px; }
    .ab-hero h1 { align-items: center; text-align: center; }
    .ab-hero-inner { text-align: center; }
    .ab-hero-desc { margin-inline: auto; }
    .ab-hero-actions { justify-content: center; }
    .ab-eyebrow { text-align: center; }

    .ab-stats-wrap { margin-top: -92px; }
    .ab-stats {
        padding: 34px 6px;
        border-radius: 22px;
    }
    .ab-stats-list { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
    .ab-stat + .ab-stat::after { display: none; }
    .ab-stat:nth-child(odd)::before { display: none; }
    .ab-stat-icon { width: 46px; height: 46px; }

    .parchment-section.ab-story { padding: 64px 0 80px; }
    .ab-story-text, .ab-story-text .ab-eyebrow { text-align: right; }
    .ab-eyebrow--dark { text-align: right; }
    .ab-head .ab-eyebrow { text-align: center; }
    .ab-pillars { grid-template-columns: 1fr; }
    .ab-pillar { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
    .ab-pillar-icon { margin: 0; grid-row: span 2; }
    .ab-pillar strong { flex: 1 1 calc(100% - 50px); }
    .ab-pillar small { flex: 0 0 100%; padding-inline-start: 40px; margin-top: -6px; }
    .ab-badge { left: 0; bottom: 6%; padding: 10px 16px 10px 12px; }
    .ab-blueprint { right: -4%; }

    .ab-ribbon { padding: 18px 0; }
    .ab-ribbon::before, .ab-ribbon::after { width: 60px; }

    .ab-process { padding: 76px 0 84px; }
    .ab-head { margin-bottom: 40px; }
    .ab-step { padding-right: 72px; }
    .ab-steps::before { right: 23px; }
    .ab-step-num { width: 46px; height: 46px; font-size: .9rem; }
    .ab-step-btn { font-size: 1.15rem; }

    .parchment-section.ab-works { padding: 70px 0 80px; }
    .ab-works-grid { grid-template-columns: 1fr; gap: 42px; }
    .ab-work { max-width: 360px; margin-inline: auto; width: 100%; }
    .ab-work:nth-child(3) { max-width: 360px; grid-column: auto; }
    .ab-more { margin-top: 44px; }

    .ab-cta { padding: 76px 0; }
    .ab-cta-frame { padding: 48px 20px; border-radius: 22px; }
}

@media (max-width: 480px) {
    .ab-hero-actions .button-ornate-gold { width: auto; padding: 10px 26px; }
    .ab-hero-actions .btn-ultra-luxury { padding: 10px 22px; font-size: .88rem; }
    .ab-stat strong { font-size: 1.8rem; }
    .ab-stat small { font-size: .78rem; }
    .ab-arch--sm { width: 48%; }
    .ab-cta-actions { flex-direction: column; }
    .ab-cta-actions > a { width: 100%; max-width: 280px; justify-content: center; }
    .ab-cta-actions .button-ornate-gold { width: 100%; max-width: 280px; justify-content: center; }
}

/* =====================================================================
   کاهش حرکت (تنظیم دسترس‌پذیری کاربر)
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
    .ab-page *,
    .ab-page *::before,
    .ab-page *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .ab-js .ab-reveal { opacity: 1; transform: none; }
    .ab-js .ab-bp-draw { stroke-dashoffset: 0; }
    .ab-js .ab-bp-dash { opacity: 1; }
    .ab-ribbon-track { width: 100%; flex-wrap: wrap; justify-content: center; }
    .ab-ribbon-list[aria-hidden="true"] { display: none; }
    .ab-ribbon-list { flex-wrap: wrap; justify-content: center; }
}
/* =====================================================================
   ۶.۱. استایل کارت‌ها و شبکه پروژه‌ها (Forma Project Cards)
   ===================================================================== */

.forma-related-section {
    padding: 60px 0 20px;
}

.forma-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 40px;
    direction: rtl;
    container-type: inline-size;
    container-name: forma-related-grid;
}

.forma-related-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, var(--ab-card) 100%);
    border: 1px solid rgba(140, 115, 85, .35);
    border-radius: 12cqw 12cqw 28px 28px;
    padding: 4px 4px 22px 4px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
    overflow: hidden;
    transition: transform .4s var(--ab-ease), box-shadow .4s var(--ab-ease), border-color .4s ease;
}

.forma-related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, rgba(198, 154, 70, .12), transparent);
    pointer-events: none;
    z-index: 1;
}

.forma-related-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: var(--ab-gold);
    box-shadow: 0 30px 60px rgba(38, 5, 8, .18), 0 0 20px rgba(198, 154, 70, .25);
}

.forma-related-frame-wrapper {
    position: relative;
    width: 100%;
    border-radius: 11.5cqw 11.5cqw 20px 20px;
    overflow: hidden;
    background-color: var(--ab-sand);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .06);
    z-index: 2;
}

.forma-related-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3.4;
    overflow: hidden;
    border-radius: inherit;
}

.forma-related-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.forma-related-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ab-ease), filter .5s ease;
    filter: brightness(.98);
}

.forma-related-card:hover .forma-related-image-link img {
    transform: scale(1.08);
    filter: brightness(1.04);
}

.forma-related-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--ab-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ab-green-2);
    font-weight: 700;
}

.forma-related-badge {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(38, 5, 8, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(198, 154, 70, .4);
    padding: 6px 18px;
    border-radius: 50px;
    color: var(--ab-cream);
    font-size: .82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    z-index: 5;
    white-space: nowrap;
    pointer-events: none;
    transition: all .3s var(--ab-ease);
    max-width: 90%;
}

.forma-related-badge span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.forma-related-badge svg {
    color: var(--ab-gold);
    flex-shrink: 0;
    transition: transform .3s ease;
}

.forma-related-card:hover .forma-related-badge {
    transform: translateX(-50%) translateY(-2px);
    background: rgba(38, 5, 8, .96);
    border-color: var(--ab-gold);
    box-shadow: 0 12px 25px rgba(38, 5, 8, .4);
}

.forma-related-info {
    padding: 18px 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    z-index: 2;
}

.forma-related-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--ab-ink);
    width: 100%;
    max-width: 100%;
    text-align: center;
    overflow: hidden;
}

.forma-related-title a {
    color: var(--ab-ink);
    text-decoration: none;
    transition: color .3s ease;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.forma-related-title a:hover {
    color: var(--ab-wine-3);
}

.forma-related-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    margin: 10px auto 14px;
    background: var(--ab-gold);
    border-radius: 2px;
    transition: width .4s var(--ab-ease), background-color .3s ease;
}

.forma-related-card:hover .forma-related-title::after {
    width: 75px;
}

.forma-related-excerpt {
    font-size: .8rem;
    color: var(--ab-text-2);
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 94%;
}

.forma-related-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: center;
}

.forma-related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--ab-wine);
    color: var(--ab-cream);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(38, 5, 8, .2);
    transition: all .35s var(--ab-ease);
    width: 100%;
    max-width: 200px;
    border: 1px solid transparent;
}

.forma-related-btn svg {
    color: var(--ab-gold);
    transition: transform .3s var(--ab-ease);
}

.forma-related-btn:hover {
    background: var(--ab-gold-grad);
    color: var(--ab-wine-2);
    box-shadow: 0 10px 25px rgba(198, 154, 70, .4);
    transform: translateY(-2px);
}

.forma-related-btn:hover svg {
    color: var(--ab-wine-2);
    transform: translateX(5px);
}

/* واکنش‌گرایی اختصاصی کارت‌های پروژه */
@media (max-width: 1400px) {
    .forma-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .forma-related-card {
        border-radius: 16cqw 16cqw 28px 28px;
    }
    .forma-related-frame-wrapper {
        border-radius: 15.5cqw 15.5cqw 20px 20px;
    }
}

@media (max-width: 1024px) {
    .forma-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .forma-related-card {
        border-radius: 24cqw 24cqw 28px 28px;
    }
    .forma-related-frame-wrapper {
        border-radius: 23cqw 23cqw 20px 20px;
    }
}

@media (max-width: 768px) {
    .forma-related-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .forma-related-card {
        border-radius: 47cqw 47cqw 28px 28px;
    }
    .forma-related-frame-wrapper {
        border-radius: 45cqw 45cqw 20px 20px;
    }
    .forma-related-info {
        padding: 16px 12px 8px;
    }
}

@media (max-width: 600px) {
    .forma-related-badge {
        font-size: .74rem;
        padding: 5px 14px;
        top: 12px;
    }
    .forma-related-title {
        font-size: 1.1rem;
    }
    .forma-related-excerpt {
        font-size: .78rem;
        max-width: 100%;
    }
    .forma-related-btn {
        max-width: 100%;
        padding: 10px 20px;
        font-size: .8rem;
    }
}

/* =====================================================================
   مسیر یک پروژه — نسخه‌ی موبایل (اسکرول پله‌ای)
   ---------------------------------------------------------------------
   روی دسکتاپ هیچ چیزی عوض نمی‌شود.
   روی موبایل کل سکشن در یک صفحه جا می‌شود و با اسکرول
   گام ۱ → ۲ → ۳ → ۴ می‌رود (و با اسکرول به بالا برعکس).
   ===================================================================== */

/* تصویر کوچک زیر شماره — فقط موبایل */
.ab-step-thumb { display: none; }

/* app.css روی html و body مقدار overflow-x: hidden می‌گذارد و همین
   position:sticky را در تمام مرورگرها از کار می‌اندازد.
   فقط روی همین صفحه آن را به clip تبدیل می‌کنیم؛ clip هم مثل hidden
   جلوی اسکرول افقی را می‌گیرد ولی scroll container نمی‌سازد. */
@supports (overflow-x: clip) {
    html.ab-about,
    html.ab-about body { overflow-x: clip !important; }
}

/* اگر مرورگر overflow:clip را نشناسد (سافاری قدیمی)، همان چیدمان قبلی
   نمایش داده می‌شود و چیزی خراب نمی‌شود. */
@supports (overflow-x: clip) {
@media (max-width: 768px) {

    /* --- سکشن بلند می‌شود تا فضای اسکرول برای چهار گام داشته باشیم --- */
    .ab-process {
        --ab-steps: 4;
        padding: 0;
        overflow: visible;           /* تا position:sticky کار کند */
        min-height: calc(var(--ab-steps) * 88svh);
    }
    .ab-process::before,
    .ab-process::after { position: absolute; inset: 0; }

    /* اگر جاوااسکریپت خاموش بود، سکشن بلند نشود */
    html:not(.ab-js) .ab-process { min-height: 0; padding: 60px 0 70px; }

    /* --- پنجره‌ی ثابت: دقیقاً یک صفحه‌ی گوشی --- */
    .ab-process .ab-wrap {
        position: sticky;
        top: 0;
        height: 100svh;
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding-top: 66px;           /* زیر هدر ثابت سایت */
        padding-bottom: 16px;
        overflow: hidden;
    }
    html:not(.ab-js) .ab-process .ab-wrap { position: static; height: auto; overflow: visible; }

    /* --- تیتر جمع‌وجور --- */
    .ab-process .ab-head {
        flex: 0 0 auto;
        margin-bottom: 0;
    }
    .ab-process .ab-head .ab-eyebrow { margin-bottom: 4px; font-size: .64rem; letter-spacing: .26em; }
    .ab-process .ab-head h2 { font-size: 1.35rem; }
    .ab-process .ab-head .ab-divider,
    .ab-process .ab-head p { display: none; }

    /* --- چیدمان: عکس بزرگ بالا، ریل گام‌ها پایین --- */
    .ab-process-grid {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex: 1 1 auto;
        min-height: 0;
    }

    .ab-stage {
        order: 1;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        max-width: none;
        aspect-ratio: auto;
    }
    .ab-stage-num { font-size: 4.2rem; left: 0; }
    .ab-shot img { max-width: 92%; max-height: 92%; }

    /* --- ریل افقی: شماره + عکس کوچک روی یک خط --- */
    .ab-steps {
        order: 2;
        position: relative;
        display: flex;
        gap: 2px;
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 0 122px;          /* جای متن توضیحات */
    }

    /* خط راهنما و خط پیشرفت */
    .ab-steps::before {
        top: 19px;
        bottom: auto;
        right: auto;
        inset-inline: 12.5%;
        width: auto;
        height: 1px;
        background: rgba(198, 154, 70, .28);
    }
    .ab-steps::after {
        content: '';
        position: absolute;
        top: 19px;
        inset-inline-start: 12.5%;
        width: calc(var(--p, 0) * 75%);
        height: 1px;
        background: var(--ab-gold-grad);
        transition: width .55s var(--ab-ease);
    }

    .ab-step {
        position: static;            /* تا متن توضیحات نسبت به کل ریل جا بگیرد */
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        padding: 0;
    }

    .ab-step-num {
        position: static;
        width: 38px;
        height: 38px;
        font-size: .78rem;
        flex: 0 0 auto;
    }
    .ab-step.is-active .ab-step-num { box-shadow: 0 0 0 5px rgba(198, 154, 70, .14), 0 6px 16px rgba(198, 154, 70, .3); }

    /* عکس کوچک گام — نشان می‌دهد گام بعدی چیست */
    .ab-step-thumb {
        display: block;
        width: 46px;
        height: 46px;
        border-radius: 50%;
        overflow: hidden;
        flex: 0 0 auto;
        border: 1px solid rgba(198, 154, 70, .3);
        background: var(--ab-green-2);
        opacity: .45;
        filter: grayscale(.55);
        transform: scale(.82);
        transition: transform .5s var(--ab-ease), opacity .5s, filter .5s, border-color .5s, box-shadow .5s;
    }
    .ab-step-thumb img { width: 100%; height: 100%; object-fit: cover; }

    .ab-step.is-active .ab-step-thumb {
        opacity: 1;
        filter: none;
        transform: scale(1.14);
        border-color: var(--ab-gold);
        box-shadow: 0 6px 18px rgba(198, 154, 70, .38);
    }

    .ab-step-btn {
        padding: 0;
        font-size: .72rem;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
    }

    /* --- متن توضیحات: زیر ریل، هم‌زمان با عکس بزرگ دیده می‌شود --- */
    .ab-step-body {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
    }
    .ab-step-body p {
        margin: 0;
        padding-top: 0;
        font-size: .87rem;
        line-height: 1.85;
        text-align: center;
        color: #d9cec0;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .ab-step-body ul { display: none; }   /* ریزنکته‌ها روی گوشی نمایش داده نمی‌شوند */
}

@media (max-width: 380px) {
    .ab-process .ab-wrap { padding-top: 60px; }
    .ab-step-num { width: 34px; height: 34px; font-size: .72rem; }
    .ab-step-thumb { width: 42px; height: 42px; }
    .ab-steps::before, .ab-steps::after { top: 17px; }
    .ab-step-btn { font-size: .66rem; }
    .ab-steps { padding-bottom: 112px; }
    .ab-step-body p { font-size: .8rem; line-height: 1.8; }
}

} /* پایان @supports (overflow-x: clip) */