﻿/* ==========================================================================
   AlizDevelop public site — "studio" design system.
   Soft light surfaces, very round cards, wide display headings, floating 3D-style objects.
   Direction-agnostic: only logical properties, so the same sheet serves /fa (RTL) and /en (LTR).
   ========================================================================== */

:root {
    --bs-primary: #fa0000;
    --bs-primary-rgb: 250, 0, 0;
    --bs-link-color: #fa0000;
    --bs-link-hover-color: #c40000;
    --bs-focus-ring-color: rgba(250, 0, 0, .25);
    --st-bg: #e8edf2;
    --st-bg-2: #dfe6ed;
    --st-card: #f4f7fa;
    --st-card-2: #edf1f5;
    --st-ink: #2a3237;
    --st-muted: #66727c;
    --st-line: #dbe2e9;
    --st-accent: #fa0000;
    --st-accent-dark: #c40000;
    --st-radius-xl: 40px;
    --st-radius-lg: 28px;
    --st-radius-md: 20px;
    --st-shadow: 0 40px 70px -40px rgba(38, 60, 85, .35);
    --st-font-display: 'Syne', 'Vazirmatn', sans-serif;
    --st-font-body: 'Jost', 'Vazirmatn', sans-serif;
}

html[lang="fa"] {
    --st-font-display: 'Vazirmatn', sans-serif;
    --st-font-body: 'Vazirmatn', sans-serif;
}

* { box-sizing: border-box; }

body.st-body {
    margin: 0;
    background:
        radial-gradient(60rem 30rem at 10% -5%, #f7fafc 0%, transparent 60%),
        radial-gradient(50rem 30rem at 100% 40%, #f1f5f9 0%, transparent 60%),
        var(--st-bg);
    color: var(--st-ink);
    font-family: var(--st-font-body);
    font-size: 1rem;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

.st-body a { color: inherit; text-decoration: none; }
.st-body a:hover { color: var(--st-accent); }
.st-body h1, .st-body h2, .st-body h3 { color: var(--st-ink); margin: 0; }
.st-body p { margin: 0; }

/* ---------- Header ---------- */
.st-header {
    position: sticky;
    top: 14px;
    z-index: 50;
    max-width: 1240px;
    margin: 14px auto 0;
    padding-inline: 16px;
}

.st-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px 10px 24px;
    padding-inline: 26px 12px;
    background: rgba(244, 247, 250, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 999px;
    box-shadow: 0 18px 40px -26px rgba(38, 60, 85, .45);
}

.st-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    direction: ltr;
}
.st-logo { display: inline-flex; align-items: center; }

/* Brand logo: the supplied artwork has white letters, so on the light site it is shown inverted
   (white -> dark, red stays red) straight on the page — no dark tile behind it. Cropped above its
   caption; "AI" is the caption. */
.st-brand-chip { display: inline-flex; flex-direction: column; align-items: center; width: 132px; padding: 2px 0; }
.st-brand-art { position: relative; display: block; width: 100%; aspect-ratio: 2000 / 352; overflow: hidden; }
.st-brand-art img { display: block; width: 100%; height: auto; margin-top: -5%; max-width: none; filter: url(#logoOnLight); }
.st-brand-sub {
    margin-top: 4px; padding-inline-start: .85em;
    font-family: 'Jost', sans-serif; font-weight: 600; font-size: 9px; line-height: 1;
    letter-spacing: .85em; color: var(--st-ink); text-transform: uppercase; direction: ltr;
}
.st-logo-sm .st-brand-chip { width: 112px; }

/* Music link: stands out in the menu — red like the logo's bar, with a live equalizer. */
.st-nav .st-nav-sound {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 16px; margin-inline: 6px;
    border-radius: 999px; font-weight: 600; letter-spacing: .04em;
    color: #fff !important;
    background: linear-gradient(135deg, #ff2a2a, #c40000);
    box-shadow: 0 12px 22px -10px rgba(250, 0, 0, .75), inset 0 0 0 1px rgba(255, 255, 255, .25);
    transition: transform .15s, box-shadow .15s;
}
.st-nav .st-nav-sound:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -10px rgba(250, 0, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .35); background: linear-gradient(135deg, #ff4a4a, #d40000); }
html[lang="en"] .st-nav .st-nav-sound { text-transform: uppercase; font-size: .84rem; }

.st-eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.st-eq i { display: block; width: 3px; border-radius: 2px; background: #fff; animation: st-eq 1s ease-in-out infinite; }
.st-eq i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.st-eq i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.st-eq i:nth-child(3) { height: 45%; animation-delay: -.8s; }
.st-eq i:nth-child(4) { height: 80%; animation-delay: -.35s; }
@keyframes st-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.st-eq i { transform-origin: bottom; }
@media (prefers-reduced-motion: reduce) { .st-eq i { animation: none; } }

.st-nav { display: flex; align-items: center; gap: 4px; }
.st-nav a {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .92rem;
    color: var(--st-muted);
    transition: color .15s, background .15s;
}
.st-nav a:hover { color: var(--st-ink); background: var(--st-card-2); }
.st-nav a.active { color: var(--st-accent); font-weight: 600; }

.st-header-actions { display: flex; align-items: center; gap: 8px; }

.st-lang {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding-inline: 12px;
    border-radius: 999px;
    border: 1px solid var(--st-line);
    background: var(--st-card);
    font-weight: 600;
    font-size: .82rem;
    letter-spacing: .04em;
}

.st-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid var(--st-line);
    background: var(--st-card);
    font-size: 1.3rem;
    color: var(--st-ink);
}

/* ---------- Buttons ---------- */
.st-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, background .15s;
}
html[lang="fa"] .st-btn { text-transform: none; letter-spacing: 0; font-size: .95rem; }
.st-btn-primary { background: var(--st-accent); color: #fff !important; box-shadow: 0 14px 28px -12px rgba(250, 0, 0, .75); }
.st-btn-primary:hover { background: var(--st-accent-dark); transform: translateY(-1px); }
.st-btn-ghost { background: var(--st-card); border-color: var(--st-line); color: var(--st-ink); }
.st-btn-ghost:hover { background: var(--st-card-2); }
.st-btn-sm { padding: 8px 20px; font-size: .8rem; }

/* ---------- Page frames ---------- */
.st-main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 8px; }

.st-frame {
    position: relative;
    overflow: hidden;
    background: var(--st-card);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: var(--st-radius-xl);
    box-shadow: var(--st-shadow);
    padding: clamp(28px, 5vw, 64px);
    margin-bottom: 26px;
}
.st-frame-flush { padding: 0; }

.st-title {
    font-family: var(--st-font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .06em;
}
html[lang="fa"] .st-title { text-transform: none; letter-spacing: 0; }
.st-title-star { display: inline-flex; align-items: center; gap: .55em; justify-content: center; }
.st-title-star::before, .st-title-star::after { content: "✦"; font-size: .6em; color: var(--st-ink); }

.st-head { text-align: center; max-width: 760px; margin: 0 auto 44px; position: relative; z-index: 2; }
.st-head p { margin-top: 14px; color: var(--st-muted); }

.st-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--st-accent);
}
html[lang="fa"] .st-eyebrow { letter-spacing: 0; font-size: .9rem; }

/* ---------- Floating 3D-style objects ---------- */
.st-orb, .st-cube, .st-ring { position: absolute; pointer-events: none; z-index: 1; animation: st-float 9s ease-in-out infinite; }

.st-orb {
    width: var(--s, 28px);
    height: var(--s, 28px);
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #d6dce2 42%, #8f9aa5 100%);
    box-shadow: 0 10px 18px -6px rgba(40, 56, 72, .45), inset -4px -6px 10px rgba(60, 76, 92, .25);
}
.st-orb.red { background: radial-gradient(circle at 32% 28%, #ffd0d0 0%, #ff4a4a 45%, #b00000 100%); }

.st-cube {
    width: var(--s, 30px);
    height: var(--s, 30px);
    border-radius: 22%;
    background: linear-gradient(135deg, #f4f6f8 0%, #bcc4cc 55%, #8c97a2 100%);
    box-shadow: 0 12px 20px -8px rgba(40, 56, 72, .5), inset 2px 2px 4px rgba(255, 255, 255, .9);
    transform: rotate(28deg);
    animation-name: st-float-rot;
}

.st-ring {
    width: var(--s, 64px);
    height: var(--s, 64px);
    border-radius: 50%;
    border: calc(var(--s, 64px) * .16) solid transparent;
    background:
        linear-gradient(var(--st-card), var(--st-card)) padding-box,
        linear-gradient(135deg, #ffffff, #98a3ae 70%) border-box;
    box-shadow: 0 10px 18px -8px rgba(40, 56, 72, .4);
    animation-duration: 12s;
}

@keyframes st-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
@keyframes st-float-rot {
    0%, 100% { transform: translateY(0) rotate(28deg); }
    50% { transform: translateY(-12px) rotate(46deg); }
}

@media (prefers-reduced-motion: reduce) {
    .st-orb, .st-cube, .st-ring { animation: none; }
    .st-reveal { transition: none !important; }
}

/* ---------- Hero ---------- */
.st-hero { padding-block: clamp(36px, 5vw, 72px) 0; }
.st-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr .9fr;
    gap: 24px;
    align-items: end;
    min-height: 520px;
    position: relative;
    z-index: 2;
}
.st-hero-text { align-self: center; padding-bottom: 40px; }
.st-hello { font-size: 1.15rem; color: var(--st-ink); margin-bottom: 4px; }
.st-name {
    font-family: var(--st-font-display);
    font-weight: 800;
    font-size: clamp(1.9rem, 3.5vw, 3rem);
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: .04em;
    overflow-wrap: normal;
}
html[lang="fa"] .st-name { text-transform: none; letter-spacing: 0; line-height: 1.3; }
.st-hero-bio { margin-top: 16px; color: var(--st-muted); max-width: 30rem; font-size: .96rem; }
.st-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }

.st-socials { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.st-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--st-card-2); border: 1px solid var(--st-line);
    font-size: 1.05rem; color: var(--st-ink);
    transition: background .15s, color .15s, transform .15s;
}
.st-social:hover { background: var(--st-accent); color: #fff; transform: translateY(-2px); }

.st-portrait { position: relative; align-self: end; display: flex; justify-content: center; }
.st-portrait-disc {
    position: absolute; inset-inline: 8%; bottom: 0; height: 88%;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(180deg, #e6ecf2 0%, #d4dde6 100%);
}
.st-portrait img, .st-portrait-fallback {
    position: relative; z-index: 2;
    width: min(100%, 380px); aspect-ratio: 4 / 5; object-fit: cover; object-position: top;
    border-radius: 999px 999px 0 0;
}
.st-portrait-fallback {
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #d40000, #ff5a5a);
    color: #fff; font-family: 'Syne', sans-serif; font-weight: 800; font-size: 7rem;
}

/* Cut-out portrait (transparent PNG) standing on the arch disc, flush with the card's bottom edge. */
.st-portrait img.st-cutout {
    width: auto; max-width: 100%; height: min(560px, 74vh); aspect-ratio: auto;
    object-fit: contain; object-position: bottom; border-radius: 0;
    filter: drop-shadow(0 24px 24px rgba(20, 28, 40, .25));
}
@media (max-width: 991px) { .st-portrait img.st-cutout { height: min(460px, 66vh); } }

.st-poster {
    position: relative; z-index: 2;
    width: min(100%, 300px); aspect-ratio: 9 / 16;
    margin-block: 8px 36px;
    border-radius: 32px; overflow: hidden;
    box-shadow: 0 50px 60px -34px rgba(20, 26, 36, .7), 0 0 0 6px rgba(255, 255, 255, .75);
}
.st-poster img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; aspect-ratio: auto; }

.st-roles { display: flex; flex-direction: column; gap: 18px; align-self: center; padding-bottom: 40px; }
.st-role {
    display: flex; align-items: center; gap: 14px;
    background: var(--st-card); border: 1px solid rgba(255, 255, 255, .9);
    border-radius: var(--st-radius-md); padding: 12px 18px 12px 12px; padding-inline: 12px 18px;
    box-shadow: 0 22px 36px -24px rgba(38, 60, 85, .5);
    max-width: 260px;
}
.st-role:nth-child(2) { margin-inline-start: 32px; }
.st-role-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 16px; flex: none;
    background: linear-gradient(135deg, #ffe0e0, #ffb3b3); color: var(--st-accent-dark); font-size: 1.5rem;
}
.st-role strong { font-size: .86rem; font-weight: 600; line-height: 1.35; }

/* ---------- About ---------- */
.st-about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.st-about-photo { border-radius: 999px 999px var(--st-radius-lg) var(--st-radius-lg); overflow: hidden; background: linear-gradient(180deg, #e6ecf2, #d4dde6); max-width: 360px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 5; }
.st-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.st-label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--st-ink); margin-bottom: 10px; }
html[lang="fa"] .st-label { letter-spacing: 0; font-size: .9rem; }
.st-about-text p { color: var(--st-muted); margin-bottom: 14px; }

.st-rows { margin-top: 26px; }
.st-row {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 16px 0; border-bottom: 1px solid var(--st-line); font-size: .95rem;
}
.st-row:first-child { border-top: 1px solid var(--st-line); }
.st-row-period { font-weight: 600; letter-spacing: .04em; }
.st-row-title { color: var(--st-muted); text-align: end; }

/* ---------- Cards ---------- */
.st-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); position: relative; z-index: 2; }
.st-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.st-card {
    display: flex; flex-direction: column;
    background: var(--st-card-2); border: 1px solid var(--st-line);
    border-radius: var(--st-radius-lg); padding: 26px;
    transition: transform .2s, box-shadow .2s;
}
.st-card:hover { transform: translateY(-3px); box-shadow: 0 26px 40px -30px rgba(38, 60, 85, .5); }
.st-card h3 { font-family: var(--st-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 8px; }
html[lang="fa"] .st-card h3 { letter-spacing: 0; font-size: 1.15rem; }
.st-card p { color: var(--st-muted); font-size: .94rem; }

.st-tile {
    display: flex; align-items: center; justify-content: center;
    height: 150px; margin-bottom: 22px; border-radius: var(--st-radius-md);
    background: linear-gradient(145deg, #f8fafc 0%, #dde6ee 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 24px 30px -26px rgba(38, 60, 85, .55);
    font-size: 3.4rem; color: var(--st-accent);
}

.st-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: .92rem; color: var(--st-muted); }
.st-list i { color: var(--st-accent); margin-inline-end: 6px; }

.st-price { font-weight: 700; color: var(--st-accent-dark); }
.st-card-foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--st-line); }
.st-card-body-grow { flex: 1; }

.st-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; position: relative; z-index: 2; }
.st-pill { padding: 8px 18px; border-radius: 999px; background: var(--st-card-2); border: 1px solid var(--st-line); font-size: .9rem; }
.st-pill i { color: var(--st-accent); margin-inline-end: 6px; }

.st-meta { font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--st-accent); margin-bottom: 6px; }
html[lang="fa"] .st-meta { letter-spacing: 0; font-size: .85rem; }

/* ---------- Selected works ---------- */
.st-works { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 560px; }
.st-works-left { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; position: relative; z-index: 2; }
.st-works-tabs { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 18px; font-size: .92rem; }
.st-works-tab { background: none; border: 0; padding: 0; font: inherit; color: var(--st-ink); cursor: pointer; }
.st-works-tab.active { color: var(--st-accent); font-weight: 600; }
.st-works-info { margin-top: auto; padding-top: 40px; }
.st-works-info .st-label { margin-bottom: 4px; }
.st-works-name { font-size: 1.05rem; }
.st-works-desc { color: var(--st-muted); font-size: .92rem; margin-top: 6px; max-width: 28rem; }
.st-works-foot { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--st-line); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--st-muted); }
html[lang="fa"] .st-works-foot { letter-spacing: 0; font-size: .85rem; }

.st-works-stage {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #cfd4da 0%, #e4e7ea 100%);
    border-start-end-radius: var(--st-radius-xl); border-end-end-radius: var(--st-radius-xl);
    display: flex; align-items: center; justify-content: center; min-height: 360px;
}
.st-stage-arch { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .55); inset-inline-start: 12%; top: 10%; }
.st-stage-plinth { position: absolute; inset-inline: 10% 0; bottom: 0; height: 18%; background: linear-gradient(180deg, #eceef0, #d8dcdf); }
.st-works-card {
    position: relative; z-index: 2; width: min(66%, 340px); aspect-ratio: 4 / 5;
    background: linear-gradient(150deg, #ffffff 0%, #eef2f6 100%);
    border-radius: 30px; box-shadow: 0 50px 60px -30px rgba(30, 44, 58, .55), inset 0 0 0 1px rgba(255, 255, 255, .9);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
    padding: 26px; text-align: center;
}
.st-works-card i { font-size: 4.2rem; color: var(--st-accent); }
.st-works-card span { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--st-muted); }
html[lang="fa"] .st-works-card span { letter-spacing: 0; font-size: .9rem; }

.st-slider-ctrl { position: absolute; inset-inline: 22px; bottom: 22px; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.st-slider-btns { display: flex; gap: 10px; }
.st-slider-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .45);
    color: var(--st-ink); font-size: 1rem; cursor: pointer;
}
.st-slider-btn:hover { background: #fff; }
.st-slider-count { font-size: .85rem; color: var(--st-muted); letter-spacing: .08em; direction: ltr; }
.st-works-slide { display: none; }
.st-works-slide.active { display: block; }
.st-works-stage .st-works-slide.active { display: flex; justify-content: center; width: 100%; position: relative; z-index: 2; }

/* Project screenshots / banners (portfolio images) */
/* Works for transparent PNG cut-outs (phone mock-ups) and for ordinary screenshots alike. */
.st-works-shot { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; width: 100%; padding: 28px 24px 78px; }
.st-works-shot img {
    display: block; width: auto; height: auto; max-width: min(100%, 460px); max-height: 430px; object-fit: contain;
    border-radius: 14px; filter: drop-shadow(0 32px 28px rgba(30, 44, 58, .38));
}
.st-shot {
    display: flex; justify-content: center; align-items: center; height: 230px; padding: 14px; margin-bottom: 22px;
    border-radius: var(--st-radius-md); background: linear-gradient(145deg, #f8fafc 0%, #dde6ee 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 24px 30px -26px rgba(38, 60, 85, .55);
}
.st-shot img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(30, 44, 58, .3)); }

/* ---------- Team ---------- */
.st-team-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); position: relative; z-index: 2; }
.st-member {
    display: flex; flex-direction: column; align-items: center; text-align: center; padding: 28px 18px 22px;
    background: var(--st-card-2); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); color: var(--st-ink);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.st-member:hover { transform: translateY(-4px); border-color: rgba(250, 0, 0, .35); box-shadow: 0 28px 40px -30px rgba(250, 0, 0, .45); color: var(--st-ink); }
.st-member h3 { font-family: var(--st-font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; margin: 14px 0 2px; }
html[lang="fa"] .st-member h3 { letter-spacing: 0; font-size: 1.1rem; }
.st-member p { color: var(--st-muted); font-size: .88rem; min-height: 1.4em; }
.st-member-more { margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--st-accent); }
.st-avatar, .st-profile-photo {
    display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none;
    border-radius: 50%; background: linear-gradient(135deg, #ff5a5a, #c40000); color: #fff;
    box-shadow: 0 18px 26px -16px rgba(196, 0, 0, .7), 0 0 0 5px rgba(255, 255, 255, .8);
}
.st-avatar { width: 104px; height: 104px; font-size: 2.4rem; }
.st-avatar img, .st-profile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-avatar b, .st-profile-photo b { font-family: var(--st-font-display); font-weight: 800; }

.st-profile { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; position: relative; z-index: 2; margin-top: 18px; }
.st-profile-photo { width: min(100%, 260px); aspect-ratio: 1; font-size: 6rem; margin-inline: auto; }
.st-profile-name { font-family: var(--st-font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.2; margin: 4px 0 16px; letter-spacing: .02em; }
html[lang="fa"] .st-profile-name { letter-spacing: 0; line-height: 1.4; }
.st-profile-text p { color: var(--st-muted); line-height: 2; margin-bottom: 12px; }
@media (max-width: 767px) { .st-profile { grid-template-columns: 1fr; text-align: center; } .st-profile-text .st-socials { justify-content: center; } }

/* Featured project badge */
.st-featured {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    margin-bottom: 10px; padding: 4px 12px; border-radius: 999px;
    background: linear-gradient(135deg, #ff4a4a, #fa0000); color: #fff;
    font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    box-shadow: 0 10px 18px -10px rgba(250, 0, 0, .85);
}
html[lang="fa"] .st-featured { letter-spacing: 0; font-size: .8rem; text-transform: none; }
.st-card-featured { border-color: rgba(250, 0, 0, .45); box-shadow: 0 30px 46px -34px rgba(250, 0, 0, .6); background: linear-gradient(160deg, #fff, #fdf1f2); }
.st-card-featured .st-tile { color: #fa0000; }

/* ---------- CTA ---------- */
.st-cta { text-align: center; }
.st-cta .st-title { max-width: 16ch; margin-inline: auto; }
html[lang="fa"] .st-cta .st-title { max-width: none; }
.st-cta p { margin: 16px auto 28px; color: var(--st-muted); max-width: 34rem; }

/* ---------- Blog ---------- */
.st-post { padding: 0; overflow: hidden; }
.st-post-cover { height: 170px; background: linear-gradient(145deg, #f8fafc, #dde6ee); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--st-accent); }
.st-post-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-post-body { padding: 22px 24px 26px; }

.st-article { max-width: 760px; margin-inline: auto; position: relative; z-index: 2; }
.st-article p { line-height: 2.05; margin-bottom: 16px; }
.st-article-cover { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--st-radius-lg); margin-bottom: 28px; }
.st-source { margin-top: 28px; padding: 20px 22px; border-radius: var(--st-radius-md); background: var(--st-card-2); border: 1px solid var(--st-line); font-size: .92rem; }
.st-back { display: inline-flex; align-items: center; gap: 6px; color: var(--st-muted); font-size: .9rem; margin-bottom: 18px; }

/* ---------- Forms (consultation) ---------- */
.st-form-card { max-width: 640px; margin-inline: auto; position: relative; z-index: 2; background: var(--st-card-2); border: 1px solid var(--st-line); border-radius: var(--st-radius-lg); padding: clamp(22px, 4vw, 36px); }
.st-body .form-control, .st-body .form-select {
    border-radius: 16px; border: 1px solid var(--st-line); background: var(--st-card);
    padding: 12px 16px; font-family: inherit; box-shadow: none;
}
.st-body .form-control:focus, .st-body .form-select:focus { border-color: var(--st-accent); box-shadow: 0 0 0 4px rgba(250, 0, 0, .15); }
.st-body .form-label { font-weight: 600; font-size: .9rem; }

.st-empty { text-align: center; color: var(--st-muted); padding: 36px 16px; position: relative; z-index: 2; }
.st-empty i { font-size: 2.6rem; display: block; margin-bottom: 12px; color: var(--st-accent); }

/* ---------- Footer ---------- */
.st-footer { max-width: 1240px; margin: 0 auto; padding: 8px 16px 40px; color: var(--st-muted); font-size: .9rem; }
.st-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 6px 0; border-top: 1px solid var(--st-line); }
.st-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Reveal on scroll ---------- */
.st-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.st-reveal.in { opacity: 1; transform: none; }
.no-js .st-reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .st-hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .st-hero-text { padding-bottom: 0; order: 1; }
    /* Mobile order: text, role cards, then the portrait standing flush on the card's bottom edge —
       so the last role card never sits against the bottom of the frame. */
    .st-roles { flex-direction: row; flex-wrap: wrap; padding-bottom: 0; order: 2; }
    .st-portrait { order: 3; }
    .st-role:nth-child(2) { margin-inline-start: 0; }
    .st-about-grid { grid-template-columns: 1fr; }
    .st-works { grid-template-columns: 1fr; }
    .st-works-stage { border-radius: 0 0 var(--st-radius-xl) var(--st-radius-xl); min-height: 420px; }
    .st-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .st-nav {
        display: none; position: absolute; inset-inline: 16px; top: calc(100% + 8px);
        flex-direction: column; align-items: stretch; padding: 12px;
        background: rgba(244, 247, 250, .97); border: 1px solid var(--st-line);
        border-radius: var(--st-radius-lg); box-shadow: var(--st-shadow);
    }
    .st-nav.show { display: flex; }
    .st-nav a { padding: 10px 16px; }
    .st-header-cta { display: none; }
}

@media (max-width: 575px) {
    .st-frame { border-radius: 28px; }
    .st-main { padding-inline: 10px; }
    .st-header { padding-inline: 10px; }
    .st-grid, .st-grid-2 { grid-template-columns: 1fr; }
    .st-orb, .st-cube, .st-ring { opacity: .6; }
}


