:root {
    --tw-about-bg: #03101a;
    --tw-about-bg-deep: #01070d;
    --tw-about-panel: rgba(4, 19, 31, 0.72);
    --tw-about-gold: #eab54c;
    --tw-about-gold-soft: #ffd57d;
    --tw-about-cyan: #19b9c8;
    --tw-about-text: #f6f8fb;
    --tw-about-muted: rgba(231, 239, 247, 0.78);
}

html { scroll-behavior: smooth; }
body.tehranweb-about-template {
    margin: 0;
    background: var(--tw-about-bg-deep);
    color: var(--tw-about-text);
}
body.tehranweb-about-template #page,
body.tehranweb-about-template .site,
body.tehranweb-about-template .site-content,
body.tehranweb-about-template .content-area {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
}

.tw-about-page,
.tw-about-page * { box-sizing: border-box; }
.tw-about-page {
    width: 100%;
    margin: 0;
    overflow: clip;
    background: var(--tw-about-bg-deep);
    color: var(--tw-about-text);
    text-align: right;
}
.tw-about-stage-anchor { height: 1px; background: #01070d; }

.tw-about-hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(680px, 88vh, 900px);
    overflow: hidden;
    background:
        radial-gradient(circle at 21% 42%, rgba(16, 99, 130, 0.20), transparent 34%),
        linear-gradient(180deg, #061521 0%, #020a11 100%);
}
.tw-about-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234,181,76,.72), rgba(25,185,200,.24), transparent);
    z-index: 8;
}
.tw-about-hero__visual,
.tw-about-hero__picture,
.tw-about-hero__background,
.tw-about-hero__veil,
.tw-about-hero__grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.tw-about-hero__visual {
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 23% 38%, rgba(8,54,74,.55), transparent 34%),
        linear-gradient(115deg, #061722 0%, #07121c 44%, #02070c 100%);
}
.tw-about-hero__picture { display: block; }
.tw-about-hero__background {
    object-fit: cover;
    object-position: center;
    filter: saturate(.98) contrast(1.04);
}
.tw-about-hero__fallback-visual {
    position: absolute;
    top: -1.5%;
    left: -1%;
    width: min(72vw, 1320px);
    height: auto;
    max-width: none;
    opacity: .98;
    filter: saturate(1.03) contrast(1.03) drop-shadow(0 25px 80px rgba(0,0,0,.28));
    transform: scale(1.01);
    transform-origin: left top;
}
.tw-about-hero__skyline {
    position: absolute;
    inset-inline: 0;
    top: 0;
    width: 100%;
    height: 40%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
}
.tw-about-hero__globe {
    position: absolute;
    left: clamp(-8rem, -4vw, -2rem);
    bottom: clamp(5rem, 9vw, 9rem);
    width: min(66vw, 1040px);
    height: auto;
    max-height: 80%;
    object-fit: contain;
    object-position: left bottom;
    filter: drop-shadow(0 0 55px rgba(221,160,48,.14));
    pointer-events: none;
}
.tw-about-hero__veil {
    background:
        linear-gradient(90deg, rgba(2,8,14,.05) 0%, rgba(2,9,15,.10) 44%, rgba(2,9,15,.68) 68%, rgba(2,8,14,.97) 100%),
        linear-gradient(180deg, rgba(1,7,12,.01) 0%, rgba(1,7,12,.03) 52%, rgba(1,7,12,.88) 100%);
}
.tw-about-hero__grid {
    opacity: .13;
    background-image:
        linear-gradient(rgba(83,141,164,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(83,141,164,.12) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(180deg, transparent 0, #000 35%, transparent 90%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 35%, transparent 90%);
}
.tw-about-hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(10px);
    opacity: .38;
}
.tw-about-hero__glow--one {
    width: 26rem;
    height: 26rem;
    right: -10rem;
    top: 11%;
    background: radial-gradient(circle, rgba(235,181,76,.20), transparent 68%);
    animation: tw-about-glow-drift 10s ease-in-out infinite alternate;
}
.tw-about-hero__glow--two {
    width: 34rem;
    height: 22rem;
    left: 24%;
    bottom: -14rem;
    background: radial-gradient(circle, rgba(18,163,182,.13), transparent 68%);
    animation: tw-about-glow-drift 13s ease-in-out infinite alternate-reverse;
}

.tw-about-hero__container {
    position: relative;
    z-index: 2;
    width: min(calc(100% - 72px), 1560px);
    min-height: clamp(680px, 88vh, 900px);
    margin-inline: auto;
    padding-block: clamp(4.5rem, 7vw, 7rem) clamp(2rem, 3.2vw, 3rem);
    display: grid;
    grid-template-rows: 1fr auto;
    gap: clamp(2.6rem, 4vw, 4.4rem);
}
.tw-about-hero__content {
    align-self: center;
    justify-self: start; /* RTL inline-start = visual right */
    width: min(100%, 660px);
    padding-top: clamp(.5rem, 2vh, 1.8rem);
}
.tw-about-hero__brand {
    display: flex;
    align-items: center;
    gap: .72rem;
    width: max-content;
    margin: 0 0 1.1rem;
    color: rgba(247,249,251,.90);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.tw-about-hero__brand i {
    width: 2.5rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tw-about-gold), rgba(234,181,76,.18));
    box-shadow: 0 0 16px rgba(234,181,76,.38);
}
.tw-about-hero__title {
    margin: 0 !important;
    max-width: none;
    color: var(--tw-about-text);
    font-size: clamp(3rem, 4.0vw, 4.65rem);
    font-weight: 900;
    line-height: 1.12;
    letter-spacing: -.03em;
    text-shadow: 0 8px 34px rgba(0,0,0,.36);
}
.tw-about-hero__title-line { display: block; white-space: nowrap; }
.tw-about-hero__title-line--secondary {
    margin-top: .16em;
    font-size: .70em;
    font-weight: 850;
}
.tw-about-hero__title em {
    color: var(--tw-about-gold);
    font-style: normal;
    text-shadow: 0 0 25px rgba(234,181,76,.16);
}
.tw-about-hero__description {
    max-width: 57ch;
    margin: 1.2rem 0 0;
    color: var(--tw-about-muted);
    font-size: clamp(.98rem, 1.04vw, 1.08rem);
    line-height: 2;
}
.tw-about-hero__description p { margin: 0; }
.tw-about-hero__description p + p { margin-top: .65rem; }
.tw-about-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .78rem;
    margin-top: 1.65rem;
}
.tw-about-hero__button {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .62rem;
    padding: .76rem 1.3rem;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: .9rem;
    font-weight: 800;
    line-height: 1;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.tw-about-hero__button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tw-about-hero__button--primary {
    color: #151007 !important;
    background: linear-gradient(135deg, #f8d47b, #e8ad38);
    border: 1px solid rgba(255,225,151,.75);
    box-shadow: 0 12px 35px rgba(213,150,36,.22), inset 0 1px 0 rgba(255,255,255,.35);
}
.tw-about-hero__button--secondary {
    color: #f4f6f8 !important;
    background: rgba(2,10,17,.52);
    border: 1px solid rgba(235,181,76,.56);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.tw-about-hero__button-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--tw-about-gold);
    box-shadow: 0 0 0 4px rgba(234,181,76,.08);
}
.tw-about-hero__button:hover,
.tw-about-hero__button:focus-visible { transform: translateY(-2px); }

.tw-about-hero__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 1.1rem;
}
.tw-about-hero__stats::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(234,181,76,.28), rgba(44,166,183,.2), transparent);
}
.tw-about-hero__stat {
    position: relative;
    min-height: 132px;
    padding: .56rem clamp(.65rem, 1.2vw, 1.25rem) .1rem;
    text-align: center;
    background: transparent;
    border: 0;
}
.tw-about-hero__stat + .tw-about-hero__stat::before {
    content: "";
    position: absolute;
    right: 0;
    top: 22%;
    width: 1px;
    height: 61%;
    background: linear-gradient(180deg, transparent, rgba(234,181,76,.50), transparent);
}
.tw-about-hero__stat-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    margin: 0 auto .42rem;
    border: 1px solid rgba(234,181,76,.42);
    border-radius: 50%;
    background: radial-gradient(circle at 45% 38%, rgba(244,197,96,.14), rgba(2,11,18,.70));
    box-shadow: 0 0 30px rgba(216,158,47,.12), inset 0 0 22px rgba(216,158,47,.07);
}
.tw-about-hero__stat-icon-image { width: 27px; height: 27px; object-fit: contain; }
.tw-about-hero__stat-symbol {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid var(--tw-about-gold);
    border-radius: 50%;
}
.tw-about-hero__stat-symbol::before,
.tw-about-hero__stat-symbol::after {
    content: "";
    position: absolute;
    background: var(--tw-about-gold);
    opacity: .9;
}
.tw-about-hero__stat-symbol::before { width: 2px; height: 16px; top: 2px; left: 9px; }
.tw-about-hero__stat-symbol::after { width: 16px; height: 2px; left: 2px; top: 9px; }
.tw-about-hero__stat-symbol--1 { border-radius: 5px; transform: rotate(45deg); }
.tw-about-hero__stat-symbol--2::before { transform: rotate(45deg); transform-origin:center; }
.tw-about-hero__stat-symbol--3 { border-style: double; border-width: 4px; }
.tw-about-hero__stat-value {
    color: #fff;
    font-size: clamp(1.5rem, 2vw, 2.15rem);
    font-weight: 900;
    line-height: 1;
    direction: ltr;
}
.tw-about-hero__stat-title {
    margin: .42rem 0 0 !important;
    color: #f3f6f9;
    font-size: clamp(.8rem, .92vw, .94rem);
    font-weight: 760;
    line-height: 1.45;
}
.tw-about-hero__stat-caption {
    margin: .22rem 0 0;
    color: rgba(224,233,240,.55);
    font-size: .7rem;
    line-height: 1.5;
}

[data-tw-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 650ms cubic-bezier(.2,.65,.25,1), transform 650ms cubic-bezier(.2,.65,.25,1);
}
[data-tw-reveal].is-visible { opacity: 1; transform: translateY(0); }
.tw-about-hero__stats[data-tw-reveal] { transition-delay: 120ms; }
@keyframes tw-about-glow-drift {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(1.4rem,-.8rem,0) scale(1.06); }
}

@media (max-width: 1180px) {
    .tw-about-hero__container { width: min(calc(100% - 44px), 1180px); }
    .tw-about-hero__content { width: min(100%, 585px); }
    .tw-about-hero__fallback-visual { width: 75vw; left: -8%; }
    .tw-about-hero__title { font-size: clamp(2.7rem, 4.4vw, 4rem); }
}
@media (max-width: 900px) {
    .tw-about-hero { min-height: 900px; }
    .tw-about-hero__container {
        min-height: 900px;
        grid-template-rows: auto auto;
        align-content: end;
        padding-top: 5rem;
    }
    .tw-about-hero__fallback-visual {
        top: 0;
        left: 50%;
        width: 120vw;
        transform: translateX(-50%);
        opacity: .93;
    }
    .tw-about-hero__veil {
        background:
            linear-gradient(180deg, rgba(2,8,14,.06) 0%, rgba(2,8,14,.24) 35%, rgba(2,8,14,.93) 67%, #02080e 100%);
    }
    .tw-about-hero__content {
        justify-self: stretch;
        width: 100%;
        padding-top: 25rem;
    }
    .tw-about-hero__title-line { white-space: normal; }
    .tw-about-hero__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; }
    .tw-about-hero__stat:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
    .tw-about-hero { min-height: 980px; }
    .tw-about-hero__container {
        min-height: 980px;
        width: min(calc(100% - 28px), 620px);
        padding-top: 4.4rem;
        padding-bottom: 1.8rem;
        gap: 2rem;
    }
    .tw-about-hero__fallback-visual { width: 150vw; left: 48%; }
    .tw-about-hero__content { padding-top: 20rem; }
    .tw-about-hero__title { font-size: clamp(2.25rem, 10.8vw, 3.4rem); }
    .tw-about-hero__title-line--secondary { font-size: .76em; }
    .tw-about-hero__description { font-size: .95rem; line-height: 1.9; }
    .tw-about-hero__actions { width: 100%; }
    .tw-about-hero__button { flex: 1 1 auto; min-width: 138px; }
    .tw-about-hero__stat { min-height: 126px; padding-inline: .38rem; }
    .tw-about-hero__stat:nth-child(even)::before { display: block; }
    .tw-about-hero__stat:nth-child(odd)::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .tw-about-hero__glow,
    [data-tw-reveal],
    .tw-about-hero__button {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    [data-tw-reveal] { opacity: 1 !important; }
}
/* v0.1.2 reference matching overrides */
@media (min-width: 901px) {
    .tw-about-hero {
        min-height: clamp(620px, 74vh, 700px);
        background: #02090f;
    }

    .tw-about-hero__visual {
        background: #02090f;
    }

    .tw-about-hero__fallback-visual {
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center top;
        opacity: 1;
        filter: saturate(1.04) contrast(1.04) brightness(.94);
        transform: none;
    }

    .tw-about-hero__veil {
        background:
            linear-gradient(90deg,
                rgba(1,7,12,.03) 0%,
                rgba(1,7,12,.05) 38%,
                rgba(1,7,12,.28) 54%,
                rgba(1,7,12,.78) 72%,
                rgba(1,7,12,.98) 100%),
            linear-gradient(180deg,
                rgba(1,7,12,.02) 0%,
                rgba(1,7,12,.03) 54%,
                rgba(1,7,12,.62) 76%,
                rgba(1,7,12,.94) 100%);
    }

    .tw-about-hero__grid {
        opacity: .08;
        background-size: 96px 96px;
    }

    .tw-about-hero__container {
        width: min(calc(100% - 96px), 1560px);
        min-height: clamp(620px, 74vh, 700px);
        padding-block: clamp(3rem, 5.4vh, 4.25rem) clamp(1.45rem, 2.4vh, 2rem);
        grid-template-rows: minmax(0, 1fr) auto;
        gap: clamp(1rem, 2.1vh, 1.6rem);
    }

    .tw-about-hero__content {
        align-self: start;
        justify-self: start;
        width: min(100%, 625px);
        padding-top: clamp(.2rem, 1.2vh, .8rem);
    }

    .tw-about-hero__brand {
        margin-bottom: .9rem;
        font-size: .76rem;
    }

    .tw-about-hero__brand i {
        width: 2.15rem;
    }

    .tw-about-hero__title {
        font-size: clamp(3rem, 3.65vw, 4.25rem);
        line-height: 1.08;
        letter-spacing: -.025em;
    }

    .tw-about-hero__title-line--secondary {
        margin-top: .14em;
        font-size: .66em;
        line-height: 1.25;
    }

    .tw-about-hero__description {
        max-width: 52ch;
        margin-top: 1rem;
        font-size: clamp(.92rem, .93vw, 1rem);
        line-height: 1.9;
    }

    .tw-about-hero__actions {
        margin-top: 1.25rem;
        gap: .7rem;
    }

    .tw-about-hero__button {
        min-height: 46px;
        padding: .69rem 1.18rem;
        font-size: .85rem;
    }

    .tw-about-hero__stats {
        padding-top: .25rem;
        align-self: end;
    }

    .tw-about-hero__stats::before {
        display: none;
    }

    .tw-about-hero__stat {
        min-height: 120px;
        padding: .25rem clamp(.65rem, 1.15vw, 1.15rem) 0;
    }

    .tw-about-hero__stat + .tw-about-hero__stat::before {
        top: 17%;
        height: 66%;
        background: linear-gradient(180deg, transparent, rgba(234,181,76,.58), transparent);
    }

    .tw-about-hero__stat-icon {
        width: 46px;
        height: 46px;
        margin-bottom: .34rem;
    }

    .tw-about-hero__stat-value {
        font-size: clamp(1.45rem, 1.65vw, 1.9rem);
    }

    .tw-about-hero__stat-title {
        margin-top: .34rem !important;
        font-size: clamp(.78rem, .82vw, .88rem);
    }

    .tw-about-hero__stat-caption {
        margin-top: .16rem;
        font-size: .66rem;
    }
}

@media (min-width: 1500px) and (min-height: 800px) {
    .tw-about-hero,
    .tw-about-hero__container {
        min-height: 675px;
    }
}


/* v0.1.3 exact-reference hero background + shorter hero height */
@media (min-width: 901px) {
    .tw-about-hero,
    .tw-about-hero__container {
        min-height: clamp(560px, 62vh, 620px);
    }

    .tw-about-hero__container {
        width: min(calc(100% - 72px), 1560px);
        padding-block: clamp(2.45rem, 3.7vw, 3.15rem) 1rem;
        gap: .55rem;
    }

    .tw-about-hero__visual {
        background: #02090f;
    }

    .tw-about-hero__background,
    .tw-about-hero__fallback-visual {
        object-fit: cover;
        object-position: center top;
        filter: saturate(1.02) contrast(1.02) brightness(.97);
    }

    .tw-about-hero__fallback-visual {
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        opacity: 1;
        transform: none;
    }

    .tw-about-hero__veil {
        background:
            linear-gradient(90deg,
                rgba(1,7,12,0) 0%,
                rgba(1,7,12,.03) 36%,
                rgba(1,7,12,.18) 52%,
                rgba(1,7,12,.60) 69%,
                rgba(1,7,12,.94) 100%),
            linear-gradient(180deg,
                rgba(1,7,12,0) 0%,
                rgba(1,7,12,.03) 58%,
                rgba(1,7,12,.36) 79%,
                rgba(1,7,12,.86) 100%);
    }

    .tw-about-hero__grid,
    .tw-about-hero__glow {
        display: none;
    }

    .tw-about-hero__content {
        width: min(100%, 610px);
        padding-top: 0;
    }

    .tw-about-hero__brand {
        margin-bottom: .8rem;
    }

    .tw-about-hero__title {
        font-size: clamp(2.8rem, 3.35vw, 3.95rem);
        line-height: 1.05;
    }

    .tw-about-hero__title-line--secondary {
        margin-top: .12em;
        font-size: .65em;
    }

    .tw-about-hero__description {
        max-width: 51ch;
        margin-top: .85rem;
        font-size: clamp(.9rem, .88vw, .98rem);
        line-height: 1.85;
    }

    .tw-about-hero__actions {
        margin-top: 1rem;
    }

    .tw-about-hero__button {
        min-height: 44px;
        padding: .67rem 1.14rem;
    }

    .tw-about-hero__stats {
        padding-top: 0;
        align-self: end;
    }

    .tw-about-hero__stat {
        min-height: 102px;
        padding: .15rem clamp(.55rem, 1vw, 1rem) 0;
    }

    .tw-about-hero__stat + .tw-about-hero__stat::before {
        top: 18%;
        height: 59%;
    }

    .tw-about-hero__stat-icon {
        width: 44px;
        height: 44px;
        margin-bottom: .25rem;
    }

    .tw-about-hero__stat-value {
        font-size: clamp(1.3rem, 1.45vw, 1.72rem);
    }

    .tw-about-hero__stat-title {
        margin-top: .28rem !important;
        font-size: clamp(.75rem, .78vw, .84rem);
    }

    .tw-about-hero__stat-caption {
        margin-top: .1rem;
        font-size: .63rem;
    }
}

@media (min-width: 1500px) and (min-height: 800px) {
    .tw-about-hero,
    .tw-about-hero__container {
        min-height: 610px;
    }
}
