@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Ethiopic:wght@400;500;600&display=swap');

:root { --paper: #f8f5ff; --surface: #fff; --ink: #17131f; --muted: #6e6879; --line: #e3dcef; --accent: #6d28d9; --accent-dark: #4c1d95; --purple-wash: #e9ddff; --shadow: 0 16px 45px rgba(69, 35, 112, .11); --display: 'Manrope', 'DM Sans', sans-serif; --body: 'DM Sans', sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; transition: background .3s ease, color .3s ease; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.scroll-progress { background: transparent; height: 3px; left: 0; position: fixed; top: 0; width: 100%; z-index: 20; }
.scroll-progress span { background: var(--accent); display: block; height: 100%; transform-origin: left; width: 0; }
.code-field { inset: 0; overflow: hidden; pointer-events: none; position: fixed; z-index: 0; }
.code-line { color: var(--accent); font-family: 'DM Sans', monospace; font-size: clamp(.65rem, 1.2vw, .8rem); left: var(--left); opacity: .08; position: absolute; top: 105%; transform: rotate(var(--tilt)); white-space: nowrap; animation: code-drift var(--duration) linear var(--delay) infinite; }
.site-header, main, .site-footer { position: relative; z-index: 1; }
@keyframes code-drift { from { transform: translateY(0) rotate(var(--tilt)); } to { transform: translateY(-125vh) rotate(var(--tilt)); } }
.site-header { background: color-mix(in srgb, var(--paper) 87%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); position: sticky; top: 0; z-index: 10; }
.nav { align-items: center; display: flex; height: 74px; justify-content: space-between; }
.brand { color: var(--accent); font-family: var(--display); font-size: 1.35rem; font-weight: 800; letter-spacing: -.08em; }
.brand span { color: var(--ink); }
.nav-links { align-items: center; display: flex; gap: 27px; }
.nav-links a { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .04em; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--accent); }
.theme-toggle, .menu-toggle { background: none; border: 0; cursor: pointer; padding: 8px; }
.theme-toggle { color: var(--accent); font-size: 1.25rem; line-height: 1; }
.menu-toggle { display: none; }
.section { padding: 104px 0; }
.hero { align-items: center; display: grid; gap: 58px; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); min-height: calc(100vh - 74px); padding-bottom: 130px; padding-top: 122px; }
.eyebrow, .section-kicker, .card-meta, .card-date, .book-label { color: var(--accent); font-size: .69rem; font-weight: 700; letter-spacing: .16em; margin: 0; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.055em; }
h1 { font-size: clamp(4rem, 10vw, 8rem); line-height: .92; margin: 25px 0 32px; }
h1 em, h2 em { color: var(--accent); font-style: normal; }
.hero-intro { color: var(--muted); font-size: 1.12rem; max-width: 480px; }
.hero-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 25px; margin-top: 36px; }
.button { align-items: center; border-radius: 4px; display: inline-flex; font-size: .82rem; font-weight: 700; gap: 24px; justify-content: space-between; padding: 14px 18px; transition: background .2s ease, transform .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-dark); }
.button-light { background: #fff; color: var(--ink); }
.text-link { border-bottom: 1px solid var(--line); color: var(--ink); font-size: .82rem; font-weight: 600; padding-bottom: 4px; }
.text-link span { color: var(--accent); margin-left: 8px; }
.hero-aside { align-self: center; }
.orbit-mark { align-items: center; background: var(--purple-wash); border: 1px solid #d8c8f7; border-radius: 50%; color: var(--accent); display: flex; font-family: var(--display); font-size: 2rem; font-weight: 800; height: 190px; justify-content: center; margin: 0 0 48px auto; position: relative; width: 190px; }
.orbit-mark img { border-radius: inherit; height: 100%; object-fit: cover; object-position: 50% 35%; position: relative; width: 100%; z-index: 1; }
.orbit-mark::before, .orbit-mark::after { border: 1px solid var(--accent); border-radius: 50%; content: ''; height: 210px; left: -11px; opacity: .25; position: absolute; top: -11px; width: 210px; }
.orbit-mark::after { border-color: var(--ink); height: 230px; left: -21px; opacity: .08; top: -21px; width: 230px; }
.hero-facts { border-left: 1px solid var(--accent); display: grid; gap: 18px; padding-left: 25px; }
.hero-facts a, .hero-facts div { display: grid; gap: 2px; }
.hero-facts a:hover strong { color: var(--accent); }
.fact-label { color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-facts strong { font-size: .87rem; font-weight: 500; overflow-wrap: anywhere; transition: color .2s ease; }
.section-line { border-top: 1px solid var(--line); }
.about-grid, .publication-grid { display: grid; gap: 40px; grid-template-columns: minmax(130px, .35fr) minmax(0, 1.65fr); }
.about-content { max-width: 770px; }
h2 { font-size: clamp(2.4rem, 5vw, 4.3rem); line-height: 1.04; margin-bottom: 30px; }
.about-content > p { color: var(--muted); font-size: 1.16rem; max-width: 730px; }
.stat-row { border-top: 1px solid var(--line); display: flex; gap: clamp(28px, 7vw, 90px); margin-top: 48px; padding-top: 23px; }
.stat-row div { display: grid; gap: 2px; }
.stat-row strong { color: var(--accent); font-family: var(--display); font-size: 1.8rem; }
.stat-row span { color: var(--muted); font-size: .72rem; }
.section-heading { align-items: end; display: grid; gap: 20px; grid-template-columns: .35fr 1fr; margin-bottom: 50px; }
.section-heading h2 { margin: 0; }
.section-lead { color: var(--muted); font-size: .95rem; margin: 0; max-width: 320px; }
.education-list { display: grid; gap: 14px; margin-left: 25%; }
.education-card { align-items: center; background: var(--surface); border: 1px solid transparent; border-radius: 6px; box-shadow: var(--shadow); display: grid; gap: 27px; grid-template-columns: 45px 1fr 30px; padding: 28px 32px; transition: border-color .2s ease, transform .2s ease; }
.education-card:hover, .info-card:hover { border-color: #cdb7f1; transform: translateY(-4px); }
.card-index, .card-number { color: var(--accent); font-family: var(--display); font-size: .8rem; font-weight: 700; }
.education-card h3 { font-size: 1.35rem; margin: 3px 0 3px; }
.education-card p:last-child { color: var(--muted); font-size: .82rem; margin: 0; }
.dot-separator { color: var(--accent); padding: 0 5px; }
.card-arrow { color: var(--accent); font-size: 1.3rem; }
.tinted-section { background: var(--purple-wash); }
.card-grid { display: grid; gap: 15px; grid-template-columns: repeat(3, 1fr); }
.info-card { background: var(--surface); border: 1px solid transparent; border-radius: 6px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-height: 300px; padding: 28px; transition: border-color .2s ease, transform .2s ease; }
.card-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 45px; }
.category-tag { color: var(--accent); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.info-card h3 { font-size: 1.55rem; margin-bottom: 2px; }
.card-role { color: var(--accent); font-size: .8rem; font-weight: 600; }
.card-description { color: var(--muted); font-size: .9rem; margin-top: 20px; }
.card-date { margin-top: auto; padding-top: 28px; }
.activity-list { border-top: 1px solid var(--line); }
.activity-item { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 42px 1fr auto; padding: 24px 0; }
.activity-icon { align-items: center; border: 1px solid #cdb7f1; border-radius: 50%; color: var(--accent); display: flex; font-size: 1.05rem; height: 32px; justify-content: center; width: 32px; }
.activity-item h3 { font-size: 1.05rem; margin: 0 0 3px; letter-spacing: -.02em; }
.activity-item p, .activity-type { color: var(--muted); font-size: .76rem; margin: 0; }
.activity-type { color: var(--accent); font-weight: 600; text-align: right; }
.book-wrap { border-left: 1px solid var(--accent); padding-left: 42px; }
.book-mark { color: var(--accent); font-size: 1.2rem; margin-bottom: 30px; }
.book-wrap h2 { font-family: 'Noto Sans Ethiopic', var(--display); font-size: clamp(2rem, 5vw, 4rem); margin: 22px 0 5px; }
.book-subtitle { font-family: 'Noto Sans Ethiopic', var(--body); font-size: 1.3rem; }
.book-credit { color: var(--muted); font-size: .82rem; margin-top: 32px; }
.contact { background: var(--accent); color: #fff; padding: 100px 0 88px; }
.contact .section-kicker { color: #ddc8ff; }
.contact h2 { font-size: clamp(3rem, 8vw, 6.5rem); margin: 22px 0 38px; }
.contact-details { border-top: 1px solid rgba(255,255,255,.32); display: flex; flex-wrap: wrap; gap: 20px 45px; margin-top: 80px; padding-top: 18px; }
.contact-details a:hover { text-decoration: underline; }
.contact-details, .contact-details a { font-size: .8rem; }
.site-footer { background: var(--ink); color: #aeb7c0; font-size: .7rem; padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; }
.footer-inner a:hover { color: #fff; }
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal-ready .reveal { opacity: 0; transform: translateY(25px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }

body[data-theme='dark'] { --paper: #100a18; --surface: #1a1126; --ink: #f7f2ff; --muted: #b7adbf; --line: #382648; --purple-wash: #251336; --shadow: 0 16px 45px rgba(0, 0, 0, .25); }
body[data-theme='dark'] .site-header { background: color-mix(in srgb, var(--paper) 87%, transparent); }
body[data-theme='dark'] .orbit-mark { border-color: #7045aa; }
body[data-theme='dark'] .button-light { color: #111416; }
@media (max-width: 760px) {
  .container { width: min(100% - 32px, 560px); }
  .nav { height: 66px; }
  .menu-toggle { display: grid; gap: 5px; }
  .menu-toggle span { background: var(--ink); display: block; height: 1px; transition: transform .2s ease; width: 23px; }
  .nav-links { align-items: flex-start; background: var(--paper); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 0; left: 0; max-height: 0; overflow: hidden; padding: 0 16px; position: absolute; top: 66px; transition: max-height .3s ease, padding .3s ease; width: 100%; }
  .nav-links.is-open { max-height: 360px; padding: 12px 16px 20px; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .theme-toggle { padding: 10px 0; }
  .section { padding: 76px 0; }
  .hero { display: block; min-height: auto; padding-bottom: 96px; padding-top: 80px; }
  h1 { font-size: clamp(3.8rem, 19vw, 6.4rem); }
  .hero-aside { margin-top: 75px; }
  .orbit-mark { height: 140px; margin: 0 0 42px auto; width: 140px; }
  .orbit-mark::before { height: 160px; width: 160px; }
  .orbit-mark::after { height: 180px; width: 180px; }
  .about-grid, .publication-grid { display: block; }
  .about-content, .book-wrap { margin-top: 32px; }
  .stat-row { gap: 25px; justify-content: space-between; }
  .section-heading { display: block; margin-bottom: 35px; }
  .section-heading h2 { margin: 18px 0; }
  .education-list { margin-left: 0; }
  .card-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 260px; }
  .activity-item { align-items: start; grid-template-columns: 36px 1fr; }
  .activity-type { grid-column: 2; text-align: left; }
  .book-wrap { padding-left: 24px; }
  .contact-details { display: grid; gap: 11px; margin-top: 60px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } .reveal, .reveal-ready .reveal { opacity: 1; transform: none; } .code-line { animation: none; top: 18%; } }
