:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #edf3fa; background: #0d1b2a; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; overscroll-behavior: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #a9cfff; outline-offset: 6px; }
.app { height: 100%; height: 100dvh; display: grid; place-items: center; padding: clamp(16px, 4vw, 56px); background: radial-gradient(ellipse at 50% 0%, #243c56 0%, #0d1b2a 65%); }
.view { grid-area: 1 / 1; width: min(100%, 880px); }
[hidden] { display: none !important; }
.heading { text-align: center; margin-bottom: clamp(20px, 5vh, 48px); }
.eyebrow { color: #adbed0; letter-spacing: .2em; text-transform: uppercase; font-size: .875rem; margin: 0 0 12px; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 500; letter-spacing: -.04em; margin: 0; }
.people { direction: ltr; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 3vw, 32px); max-width: 740px; margin: auto; }
.person { cursor: pointer; padding: 0; text-align: start; border: 1px solid #ffffff20; border-radius: 22px; background: #1b2d41; overflow: hidden; box-shadow: 0 20px 50px #0003; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
@media (hover: hover) { .person:hover { transform: translateY(-8px); border-color: #9bbbdc88; box-shadow: 0 28px 60px #0005; } }
.person img { display: block; width: 100%; height: clamp(140px, 36vh, 340px); object-fit: cover; object-position: center 30%; }
.person-label { display: block; padding: clamp(16px, 2.8vw, 26px); }
.name { display: block; font-size: clamp(1.1rem, 2.5vw, 1.65rem); font-weight: 500; letter-spacing: -.025em; }
.role { display: block; margin-top: 8px; color: #adbed0; font-size: .875rem; line-height: 1.4; }
.back { display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 0; padding: 10px 0; margin-bottom: 18px; cursor: pointer; color: #c0d0e1; }
.back:hover { color: white; }
.back svg { width: 20px; height: 20px; }
.profile { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; border: 1px solid #ffffff20; border-radius: 26px; background: #1b2d41; box-shadow: 0 30px 90px #0005; }
.portrait { width: 100%; height: 100%; min-height: 350px; max-height: 65dvh; object-fit: cover; object-position: center 30%; }
.bio { padding: clamp(24px, 4vw, 48px); align-self: center; }
h2 { font-size: clamp(1.7rem, 3.8vw, 2.8rem); font-weight: 500; letter-spacing: -.04em; margin: 0 0 10px; }
.bio .role { margin: 0 0 26px; }
.description { color: #d2deea; font-size: 1rem; line-height: 1.7; margin: 0 0 28px; }
.website { display: inline-flex; align-items: center; gap: 14px; border-radius: 10px; padding: 13px 18px; background: #e0eaf4; color: #14263a; font-size: 1rem; text-decoration: none; font-weight: 500; }
.website:hover { background: white; }
.linkedin { display: flex; align-items: center; gap: 10px; width: fit-content; margin-top: 12px; padding: 8px 0; color: #adbed0; font-size: .875rem; text-decoration: none; }
.linkedin:hover { color: white; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 580px) {
  .app { padding: 20px; }
  .person { border-radius: 16px; }
  .profile { grid-template-columns: 1fr; border-radius: 20px; }
  .portrait { height: 24dvh; min-height: 0; }
  .bio { padding: 22px; }
  .bio .role { margin-bottom: 14px; }
  .description { line-height: 1.5; margin-bottom: 18px; }
  .back { margin-bottom: 10px; }
}
@media (max-height: 650px) {
  .heading { margin-bottom: 18px; }
  .portrait { min-height: 0; }
  .bio { padding: 18px; }
  .bio .role, .description { margin-bottom: 12px; }
}
@media (max-height: 520px) {
  .profile { grid-template-columns: .6fr 1.4fr; }
  .portrait { height: 100%; max-height: 75dvh; }
  .bio { padding: 16px; }
  .back { margin-bottom: 6px; padding: 4px 0; }
  h2 { font-size: 1.5rem; }
  .description { line-height: 1.4; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.language-switch { position: fixed; top: 16px; inset-inline-end: 20px; z-index: 10; display: flex; direction: ltr; gap: 4px; padding: 4px; border: 1px solid #ffffff20; border-radius: 12px; background: #14263a; }
.language-switch button { border: 0; border-radius: 8px; padding: 8px 14px; min-height: 36px; background: transparent; color: #adbed0; font-size: .875rem; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: #e0eaf4; color: #14263a; }
.language-switch button:hover { box-shadow: inset 0 0 0 1px #adbed0; }
.app { padding-top: 80px; }
html[lang="fa"] { font-family: Tahoma, 'Segoe UI', sans-serif; }
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] .name { letter-spacing: normal; }
html[dir="rtl"] .back svg { transform: scaleX(-1); }
@media (max-width: 580px) { .portrait { height: 20dvh; } }
@media (max-height: 520px) { .language-switch { top: 8px; } .app { padding-top: 64px; } .portrait { height: 100%; } }

html[dir="rtl"] .person { direction: rtl; }
