@font-face {
    font-family: Manrope;
    src: url("fonts/manrope-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-display: swap;
}
@font-face {
    font-family: Inter;
    src: url("fonts/inter-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("fonts/vazirmatn-latin.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: Vazirmatn;
    src: url("fonts/vazirmatn-arabic.woff2") format("woff2");
    font-weight: 100 900;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF;
}
:root {
    color-scheme: light;
    --ink: #050b14;
    --navy: #10233e;
    --blue: #3276e8;
    --mist: #b8c5d6;
    --paper: #f5f7fa;
    --bg: var(--paper);
    --surface: #e8eef6;
    --text: var(--ink);
    --muted: #475b73;
    --accent: #205abd;
    --rule: #c9d4e1;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        color-scheme: dark;
        --bg: var(--ink);
        --surface: var(--navy);
        --text: var(--paper);
        --muted: var(--mist);
        --accent: #8eb6ff;
        --rule: #32465e;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: var(--ink);
    --surface: var(--navy);
    --text: var(--paper);
    --muted: var(--mist);
    --accent: #8eb6ff;
    --rule: #32465e;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 7rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.7 Inter, system-ui, sans-serif; }
:lang(fa) { font-family: Vazirmatn, Tahoma, sans-serif; }
body:lang(fa) { line-height: 1.8; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid #82acff; outline-offset: 5px; }
.shell { width: min(1320px, calc(100% - 2 * clamp(24px, 6vw, 112px))); margin-inline: auto; }
.skip { position: fixed; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 20; padding: .5rem 1rem; background: var(--bg); }
.skip:not(:focus) { clip-path: inset(50%); }
.site-header {
    position: absolute;
    z-index: 5;
    inset: 18px 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--paper);
    background: #050b14d9;
    backdrop-filter: blur(14px);
    padding: .7rem clamp(14px, 2.4vw, 32px);
}
nav, .controls { display: flex; align-items: center; gap: clamp(.55rem, 2vw, 2rem); }
nav { flex-wrap: wrap; }
nav a, .control { font-size: .875rem; font-weight: 550; }
nav a:hover, .control:hover { color: #a7c7ff; }
.controls { flex: 0 0 auto; gap: 1rem; }
.control { color: inherit; }
.theme { background: transparent; border: 0; cursor: pointer; font-family: inherit; font-size: 1.15rem; min-width: 44px; min-height: 44px; }
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    background: var(--ink);
    color: var(--paper);
    min-height: 100vh;
    min-height: 100svh;
}
.hero-image { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 61%; overflow: hidden; }
.hero-image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 76% center; transform: translateY(var(--portrait-offset, 0px)) scale(1.035); }
.hero-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), #050b1455 27%, transparent 58%); }
.hero-inner { direction: ltr; padding-block: 9rem 5rem; }
.hero-copy { width: min(46%, 600px); }
.eyebrow { color: #a5c3fb; font-size: clamp(.75rem, 1.1vw, .95rem); font-weight: 650; margin-block-end: 1.35rem; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .16em; }
h1 { font-size: clamp(2.4rem, 5.25vw, 5.65rem); line-height: 1.02; font-weight: 800; }
html[lang="en"] :is(h1, h2, h3) { font-family: Manrope, Inter, system-ui, sans-serif; }
html[lang="en"] :is(h1, h2) { letter-spacing: -.045em; }
.hero-name span { display: block; white-space: nowrap; }
html[lang="fa"] h1 { font-size: clamp(2.6rem, 5.6vw, 6.5rem); line-height: 1.25; }
.hero-role { margin-block-start: 1.4rem; color: var(--mist); font-size: clamp(1.05rem, 1.85vw, 1.5rem); }
.text-link { display: inline-flex; align-items: center; gap: .85rem; margin-block-start: clamp(1.5rem, 4vw, 3rem); padding-block: .4rem; border-block-end: 1px solid #82acff; font-size: .85rem; }
.text-link:hover { color: #a7c7ff; }
.chapter { padding-block: clamp(64px, 10vw, 150px); }
.editorial { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: clamp(32px, 10vw, 160px); align-items: start; }
h2 { font-size: clamp(2.15rem, 4.65vw, 5rem); font-weight: 730; line-height: 1.04; overflow-wrap: anywhere; }
html[lang="fa"] h2 { line-height: 1.3; }
.biography p { color: var(--muted); max-width: 62ch; }
.biography .lead { color: var(--text); font-size: clamp(1.5rem, 3vw, 3rem); font-weight: 620; line-height: 1.3; margin-block-end: 1.4rem; }
.highlights, .chapter-advisory, .chapter-education { background: var(--surface); }
.highlights-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 5vw, 72px); padding: 2.6rem 0 0; list-style: none; }
.highlights-list li { border-block-start: 2px solid var(--blue); padding-block-start: 1.1rem; }
.highlights-list p { font-size: clamp(1.15rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 650; }
.period { display: block; color: var(--accent); font-size: .82rem; font-weight: 700; margin-block-end: .38rem; }
.calendar-note { color: var(--muted); font-size: .88rem; margin-block-start: 1rem; }
.entries { padding: 0; list-style: none; }
.entries li { padding-block: 1.15rem; }
.entries li + li { border-block-start: 1px solid var(--rule); }
.entry-title { font-weight: 650; font-size: clamp(1.05rem, 1.5vw, 1.35rem); line-height: 1.45; }
.entry-detail { color: var(--muted); margin-block-start: .45rem; max-width: 63ch; }
.group-title { font-size: 1.2rem; color: var(--accent); }
.entry-group + .entry-group { margin-block-start: 2.6rem; }
.chapter-career .entries { border-inline-start: 1px solid var(--rule); padding-inline-start: clamp(18px, 3vw, 40px); }
.chapter-career .entries li { position: relative; }
.chapter-career .entries li::before { content: ""; position: absolute; width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); inset-block-start: 1.4rem; inset-inline-start: calc(-1 * clamp(18px, 3vw, 40px) - .3rem); }
.chapter-expertise { background: var(--navy); color: var(--paper); --rule: #3a526f; }
.chapter-expertise .entry-title { font-size: clamp(1.15rem, 2.25vw, 2rem); }
.chapter-projects .entry-title { font-size: clamp(1.2rem, 2.1vw, 1.8rem); }
.site-footer { background: var(--ink); color: var(--mist); padding-block: 2rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; }
.footer-inner span:last-child { margin-inline-start: auto; }
@media (max-width: 850px) {
    .editorial { grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); gap: 32px; }
    .hero-image { width: 63%; }
}
@media (max-width: 650px) {
    .site-header { inset-block-start: 0; width: 100%; flex-wrap: wrap; gap: .2rem .7rem; }
    .site-header nav { order: 1; width: 100%; gap: .25rem .95rem; }
    .site-header .controls { margin-inline-start: auto; }
    nav a { padding-block: .32rem; }
    .hero { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; padding-block-start: 6rem; }
    .hero-image { position: relative; width: 100%; aspect-ratio: 1.49; z-index: 0; }
    .hero-image img { transform: none; object-fit: contain; }
    .hero-image::after { background: linear-gradient(0deg, var(--ink), transparent 23%); }
    .hero-inner { padding-block: 0 2.8rem; position: relative; margin-block-start: -1rem; }
    .hero-copy { width: 100%; }
    h1 { font-size: clamp(1.7rem, 9.5vw, 3.65rem); }
    html[lang="fa"] h1 { font-size: clamp(2.1rem, 9vw, 3.85rem); }
    .editorial, .highlights-list { grid-template-columns: minmax(0, 1fr); }
    .highlights-list { gap: 1.4rem; }
}
@media (prefers-reduced-motion: no-preference) {
    .revealed { animation: reveal .65s ease-out both; }
    @keyframes reveal { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
}
