/* ─── About Page (ap-) — Light + Dark + bilingual ─── */

.page-about {
    --ap-bg: #f9f7f2;
    --ap-bg-soft: #f3efe8;
    --ap-bg-ripple: #ece8e2;
    --ap-text: #2c302e;
    --ap-text-soft: rgba(44, 48, 46, 0.62);
    --ap-accent: #b08d57;
    --ap-accent-bright: #c4872a;
    --ap-line: rgba(176, 141, 87, 0.35);
    --ap-card: rgba(255, 255, 255, 0.72);
    --ap-shadow: rgba(44, 48, 46, 0.08);
}

html[data-theme="dark"] .page-about {
    --ap-bg: #0a0b0a;
    --ap-bg-soft: #121411;
    --ap-bg-ripple: #161715;
    --ap-text: #eae6df;
    --ap-text-soft: rgba(234, 230, 223, 0.58);
    --ap-accent: #e8942a;
    --ap-accent-bright: #f0a840;
    --ap-line: rgba(232, 148, 42, 0.35);
    --ap-card: rgba(22, 23, 21, 0.88);
    --ap-shadow: rgba(0, 0, 0, 0.35);
}

.page-about .site-main--about {
    padding: 0;
    min-height: auto;
}

.ap {
    background: var(--ap-bg);
    color: var(--ap-text);
}

.ap-wrap {
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}

.ap-eyebrow {
    display: block;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--ap-accent);
    margin-bottom: 16px;
}

.ap-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 20px;
    color: var(--ap-text);
}

html[lang="fa"] .ap-heading {
    font-family: var(--font-display);
    font-style: normal;
}

.ap-heading--center {
    text-align: center;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.ap-body {
    font-size: 15px;
    line-height: 1.75;
    color: var(--ap-text-soft);
    margin: 0 0 24px;
    max-width: 560px;
}

html[lang="fa"] .ap-body {
    font-family: var(--font-body);
    font-weight: 300;
}

/* Hero */
.ap-hero {
    position: relative;
    min-height: clamp(560px, 88vh, 920px);
    display: flex;
    align-items: center;
    margin-top: 0;
    padding: calc(96px + env(safe-area-inset-top, 0px)) 0 88px;
    overflow: hidden;
    isolation: isolate;
}

.ap-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--ap-bg-soft);
    background-image: var(--ap-hero-bg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 72% center;
    transform: scale(1.04);
    transform-origin: 72% center;
}

html[dir="rtl"] .ap-hero__bg {
    background-position: 28% center;
    transform-origin: 28% center;
}

.ap-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(249, 247, 242, 0.96) 0%,
        rgba(249, 247, 242, 0.9) 22%,
        rgba(249, 247, 242, 0.62) 42%,
        rgba(249, 247, 242, 0.22) 58%,
        rgba(249, 247, 242, 0.04) 72%,
        transparent 100%
    );
}

html[dir="rtl"] .ap-hero__overlay {
    background: linear-gradient(
        270deg,
        rgba(249, 247, 242, 0.96) 0%,
        rgba(249, 247, 242, 0.9) 22%,
        rgba(249, 247, 242, 0.62) 42%,
        rgba(249, 247, 242, 0.22) 58%,
        rgba(249, 247, 242, 0.04) 72%,
        transparent 100%
    );
}

html[data-theme="dark"] .ap-hero__overlay {
    background: linear-gradient(
        90deg,
        rgba(10, 11, 10, 0.94) 0%,
        rgba(10, 11, 10, 0.88) 22%,
        rgba(10, 11, 10, 0.58) 42%,
        rgba(10, 11, 10, 0.24) 58%,
        rgba(10, 11, 10, 0.06) 72%,
        transparent 100%
    );
}

html[data-theme="dark"][dir="rtl"] .ap-hero__overlay {
    background: linear-gradient(
        270deg,
        rgba(10, 11, 10, 0.94) 0%,
        rgba(10, 11, 10, 0.88) 22%,
        rgba(10, 11, 10, 0.58) 42%,
        rgba(10, 11, 10, 0.24) 58%,
        rgba(10, 11, 10, 0.06) 72%,
        transparent 100%
    );
}

.ap-hero__inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 80px));
    margin: 0 auto;
}

.ap-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
}

.ap-hero__content {
    max-width: 480px;
}

.ap-hero__aside {
    min-height: 1px;
}

.ap-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 400;
    margin: 0 0 12px;
    line-height: 1.05;
}

html[lang="fa"] .ap-hero__title {
    font-family: var(--font-display);
}

.ap-hero__subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(22px, 2.5vw, 28px);
    color: var(--ap-accent);
    margin: 0 0 20px;
}

html[lang="fa"] .ap-hero__subtitle {
    font-family: var(--font-display);
    font-style: normal;
}

.ap-hero__desc {
    max-width: 480px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--ap-text-soft);
    margin: 0 0 28px;
}

.ap-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--ap-text);
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

.ap-hero__cta--scroll:focus-visible {
    outline: 2px solid var(--ap-accent);
    outline-offset: 4px;
    border-radius: 999px;
}

.ap-hero__play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--ap-line);
    background: var(--ap-card);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ap-accent);
    box-shadow: 0 8px 28px var(--ap-shadow);
    transition: transform 0.35s ease, border-color 0.35s ease;
}

.ap-hero__cta:hover .ap-hero__play {
    transform: scale(1.06);
    border-color: var(--ap-accent);
}

.ap-hero__play svg {
    width: 18px;
    height: 18px;
    margin-inline-start: 2px;
}

.ap-hero__cta-label {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

/* Story */
.ap-story {
    padding: 96px 0;
}

.ap-story__grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.ap-features {
    list-style: none;
    margin: 36px 0 0;
    padding: 0;
    display: grid;
    gap: 24px;
}

.ap-features__item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    align-items: start;
}

.ap-features__icon {
    color: var(--ap-accent);
}

.ap-features__icon svg {
    width: 32px;
    height: 32px;
}

.ap-features__title {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.ap-features__text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ap-text-soft);
    margin: 0;
}

.ap-story__visual {
    position: relative;
}

.ap-story__frame {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 64px var(--ap-shadow);
}

.ap-story__frame img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 480px;
    object-fit: cover;
}

.ap-story__badge {
    position: absolute;
    top: 24px;
    left: -20px;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--ap-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--ap-line);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    box-shadow: 0 12px 40px var(--ap-shadow);
    font-size: 11px;
    line-height: 1.35;
}

.ap-story__badge strong {
    display: block;
    font-size: 12px;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.ap-story__badge span {
    color: var(--ap-text-soft);
    font-size: 10px;
}

/* Values */
.ap-values {
    padding: 88px 0;
    background: var(--ap-bg-ripple);
    background-image: radial-gradient(circle at 20% 30%, rgba(176, 141, 87, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(176, 141, 87, 0.04) 0%, transparent 45%);
}

.ap-values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.ap-values__item {
    text-align: center;
    padding: 28px 20px;
}

.ap-values__icon {
    display: inline-flex;
    color: var(--ap-accent);
    margin-bottom: 16px;
}

.ap-values__icon svg {
    width: 36px;
    height: 36px;
}

.ap-values__title {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 10px;
}

.ap-values__text {
    font-size: 13px;
    line-height: 1.65;
    color: var(--ap-text-soft);
    margin: 0;
}

/* Journey */
.ap-journey {
    padding: 96px 0;
}

.ap-journey__grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
}

.ap-journey__visual img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 1;
    object-fit: cover;
    box-shadow: 0 20px 56px var(--ap-shadow);
}

.ap-timeline {
    position: relative;
    display: grid;
    gap: 28px;
    margin-top: 32px;
    padding-top: 8px;
}

.ap-timeline__line {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--ap-line);
    transform-origin: left center;
}

html[dir="rtl"] .ap-timeline__line {
    transform-origin: right center;
}

.ap-timeline__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
}

.ap-timeline__num {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--ap-accent);
    font-weight: 600;
}

.ap-timeline__title {
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.ap-timeline__text {
    font-size: 13px;
    color: var(--ap-text-soft);
    margin: 0;
    line-height: 1.6;
}

/* Team */
.ap-team {
    padding: 96px 0;
}

.ap-team__intro {
    max-width: 520px;
    margin-bottom: 48px;
}

.ap-link-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ap-accent);
    text-decoration: none;
}

.ap-team__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.ap-team__photo {
    border-radius: 16px;
    overflow: hidden;
    background: var(--ap-bg-soft);
    aspect-ratio: 3/4;
    margin-bottom: 16px;
}

.ap-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(12%);
}

.ap-team__name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    margin: 0 0 4px;
}

html[lang="fa"] .ap-team__name {
    font-family: var(--font-display);
}

.ap-team__role {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ap-accent);
    margin: 0;
}

/* Banner */
.ap-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 0;
    overflow: hidden;
}

.ap-banner__bg {
    position: absolute;
    inset: -12% 0;
    z-index: 0;
    background: center/cover no-repeat;
    background-image: var(--ap-banner-bg);
}

.ap-banner__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(8, 8, 8, 0.45) 0%, rgba(8, 8, 8, 0.65) 100%);
}

.ap-banner__inner {
    position: relative;
    z-index: 2;
    color: #fff;
}

.ap-banner__divider {
    width: 48px;
    height: 1px;
    background: var(--ap-accent-bright);
    margin: 0 auto 24px;
    transform-origin: center center;
}

.ap-banner__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 400;
    margin: 0 0 16px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

html[lang="fa"] .ap-banner__title {
    font-family: var(--font-display);
}

.ap-banner__desc {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.88;
    max-width: 520px;
    margin: 0 auto;
}

/* Stats */
.ap-stats {
    padding: 96px 0 120px;
}

.ap-stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.ap-stats__item {
    text-align: center;
    padding: 24px 16px;
}

.ap-stats__icon {
    display: inline-flex;
    color: var(--ap-accent);
    margin-bottom: 12px;
}

.ap-stats__icon svg {
    width: 32px;
    height: 32px;
}

.ap-stats__value {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 4vw, 48px);
    line-height: 1;
    margin-bottom: 8px;
}

html[lang="fa"] .ap-stats__value {
    font-family: var(--font-display);
}

.ap-stats__label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 6px;
}

.ap-stats__caption {
    font-size: 12px;
    color: var(--ap-text-soft);
    margin: 0;
}

/* Header readability on About hero */
.page-about .site-header:not(.site-header--scrolled) .site-header__logo-text,
.page-about .site-header:not(.site-header--scrolled) .site-header__nav-link {
    color: var(--header-text, rgba(44, 48, 46, 0.92));
}

.page-about .site-header:not(.site-header--scrolled) .site-header__nav-link {
    color: var(--header-nav, rgba(44, 48, 46, 0.72));
}

html[data-theme="dark"] .page-about .site-header:not(.site-header--scrolled) .site-header__logo-text,
html[data-theme="dark"] .page-about .site-header:not(.site-header--scrolled) .site-header__nav-link {
    color: rgba(234, 230, 223, 0.92);
}

html[data-theme="dark"] .page-about .site-header:not(.site-header--scrolled) .site-header__nav-link {
    color: rgba(234, 230, 223, 0.68);
}
