/* maryamhonari.github.io | generated by _scripts/build_v2.py; edit there, not here. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --text: #0f1222;
  --muted: #4b5163;
  --faint: #5f6578;
  --border: #e6e6eb;
  --accent: #4338ca;
  --accent-strong: #3730a3;
  --accent-soft: #eef0ff;
  --accent-ink: #ffffff;
  --teal: #0f766e;
  --violet: #6d28d9;
  --shadow: 0 1px 2px rgba(15, 18, 34, .04), 0 8px 24px -12px rgba(15, 18, 34, .12);
  --shadow-hover: 0 2px 4px rgba(15, 18, 34, .05), 0 18px 40px -16px rgba(15, 18, 34, .22);
  --radius: 16px;
  --radius-sm: 10px;
  --ph-l1: 93%;
  --ph-l2: 84%;
  --ph-ink: rgba(30, 27, 75, .55);
  --font: "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d12;
    --surface: #12151d;
    --surface-2: #181c26;
    --text: #e8eaf0;
    --muted: #a6acbb;
    --faint: #8d93a3;
    --border: #252a36;
    --accent: #a5b4fc;
    --accent-strong: #c7d2fe;
    --accent-soft: #1d2140;
    --accent-ink: #0b0d12;
    --teal: #5eead4;
    --violet: #c4b5fd;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .5);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px -16px rgba(0, 0, 0, .7);
    --ph-l1: 22%;
    --ph-l2: 14%;
    --ph-ink: rgba(224, 231, 255, .6);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.icon { width: 1em; height: 1em; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.container { width: min(1120px, 100% - 3rem); margin-inline: auto; }
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: .5rem .9rem; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 3.75rem; }
.brand { font-weight: 650; letter-spacing: -0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: .25rem; list-style: none; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: block; padding: .4rem .7rem; border-radius: 999px; font-size: .9rem;
  color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.nav-cta { color: var(--accent); background: var(--accent-soft); font-weight: 600; margin-right: .35rem; }
.nav-links a.nav-cta:hover { color: var(--accent-strong); }
.nav-links a.nav-cta[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas: "text photo" "chips chips";
  gap: 2.5rem 4rem; align-items: center;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero-text { grid-area: text; }
.hero-photo { grid-area: photo; justify-self: end; width: min(100%, 360px); position: relative; }
.hero-photo::before {
  content: ""; position: absolute; inset: -14px -14px 14px 14px; border-radius: 28px; z-index: -1;
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--teal) 18%, transparent));
}
.hero-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero-chips { grid-area: chips; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; }
.tagline { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45; color: var(--text); margin-top: 1.1rem; max-width: 38ch; letter-spacing: -0.01em; }
.summary { color: var(--muted); margin-top: 1rem; max-width: 62ch; }
.summary strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin-top: 1.25rem; color: var(--faint); font-size: .9rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: .45rem; }
.email { font-family: var(--mono); font-size: .85em; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: 999px; font-size: .92rem; font-weight: 550; line-height: 1.2;
  color: var(--text); background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-sm { padding: .42rem .8rem; font-size: .84rem; }
.btn-lg { padding: .8rem 1.4rem; font-size: 1rem; }
.btn-ghost { background: transparent; color: var(--accent); border-color: transparent; }
.btn-ghost:hover { color: var(--accent-strong); background: var(--accent-soft); border-color: transparent; box-shadow: none; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .85rem; padding: .38rem .8rem; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
}

/* ---------- sections ---------- */
.section { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--border); }
.section-head { margin-bottom: 2.25rem; max-width: 60ch; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .5rem; }
.section-head h2 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); font-weight: 700; letter-spacing: -0.03em; }
.lede { color: var(--muted); margin-top: .6rem; font-size: 1.05rem; }
.section-head h1 { font-size: clamp(2.2rem, 5vw, 3.25rem); font-weight: 700; letter-spacing: -0.035em; }
.section-first { border-top: 0; padding-top: clamp(2rem, 5vw, 3.5rem); }
.crumb { font-size: .9rem; margin-bottom: 1.25rem; }
.notfound { min-height: calc(100vh - 3.75rem - 11rem); }
.crumb a { text-decoration: none; font-weight: 550; }
.crumb a:hover { text-decoration: underline; }
.meta { color: var(--faint); font-size: .88rem; }

/* ---------- covers ---------- */
.cover {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(120% 90% at 100% 0%, hsl(calc(var(--h) + 40) 80% var(--ph-l2) / .9), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, hsl(calc(var(--h) - 30) 70% var(--ph-l2) / .8), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 70% var(--ph-l1)), hsl(calc(var(--h) + 20) 65% var(--ph-l2)));
}
.cover-ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem 1.15rem; z-index: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--ph-ink) 35%, transparent) 1px, transparent 1px);
  background-size: 18px 18px;
}
.cover-ph span { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-ink); }
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; color: transparent; font-size: 0; }
.cover-img.is-missing { display: none; }

/* ---------- featured ---------- */
.feature-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
.feature-card article {
  height: 100%; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.feature-card article:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.feature-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.feature-body h3 { font-size: 1.3rem; font-weight: 650; }
.feature-body > p:not(.meta) { color: var(--muted); }
.link-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: .6rem; }
.see-all { display: flex; justify-content: center; margin-top: 2.5rem; }

.badge {
  align-self: flex-start; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .18rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--muted);
}
.badge-industry { color: var(--accent); background: var(--accent-soft); }
.badge-research { color: var(--teal); background: color-mix(in srgb, var(--teal) 12%, transparent); }
.badge-academic { color: var(--violet); background: color-mix(in srgb, var(--violet) 12%, transparent); }

/* ---------- all projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.filter {
  font: inherit; font-size: .88rem; font-weight: 550; cursor: pointer;
  padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); transition: all .15s;
}
.filter:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter .count { font-variant-numeric: tabular-nums; margin-left: .2rem; font-weight: 500; }
.project-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.25rem; align-items: start; }
.project-card article {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: box-shadow .2s, border-color .2s;
}
.project-card article:hover { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 25%, var(--border)); }
.project-card:target article { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card-body { padding: 1.1rem 1.2rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; }
.card-body h3 { font-size: 1.05rem; font-weight: 650; }
.blurb { color: var(--muted); font-size: .93rem; }
.card-details { margin-top: .35rem; border-top: 1px solid var(--border); padding-top: .55rem; }
.card-details summary {
  cursor: pointer; list-style: none; font-size: .88rem; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: .35rem; padding: .15rem 0; border-radius: 6px;
}
.card-details summary::-webkit-details-marker { display: none; }
.card-details summary::before {
  content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .15s; margin-right: .15rem;
}
.card-details[open] summary::before { transform: rotate(45deg); }
.details-body { padding-top: .65rem; display: flex; flex-direction: column; gap: .8rem; font-size: .92rem; color: var(--muted); }
.details-body .link-row { padding-top: 0; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li { font-size: .76rem; padding: .16rem .55rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }

/* ---------- publications ---------- */
.pub-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.pub {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1.4rem; align-items: start;
  padding: 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.cover-thumb { border-radius: var(--radius-sm); }
.cover-thumb .cover-ph { padding: .5rem .65rem; }
.cover-thumb .cover-ph span { font-size: .62rem; }
.pub-body { display: flex; flex-direction: column; gap: .3rem; }
.pub-title { font-weight: 650; font-size: 1.05rem; line-height: 1.4; letter-spacing: -0.01em; }
.authors { color: var(--muted); font-size: .93rem; }
.authors strong { color: var(--text); font-weight: 650; }
.venue { font-size: .93rem; }
.note { font-size: .85rem; color: var(--faint); }
.pub-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .4rem; margin-top: .35rem; }
.bracket {
  font-family: var(--mono); font-size: .78rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  padding: .2rem .55rem; border-radius: 6px; border: 1px solid var(--border); color: var(--accent);
  text-decoration: none; background: var(--surface); cursor: pointer; list-style: none;
}
.bracket::before { content: "["; opacity: .55; }
.bracket::after { content: "]"; opacity: .55; }
.bracket:hover { border-color: var(--accent); background: var(--accent-soft); }
.abstract[open] { flex-basis: 100%; }
.abstract summary::-webkit-details-marker { display: none; }
.abstract[open] summary { background: var(--accent-soft); border-color: var(--accent); }
.abstract p {
  flex-basis: 100%; margin-top: .5rem; font-size: .9rem; color: var(--muted); line-height: 1.7;
  padding: .9rem 1rem; background: var(--surface-2); border-radius: var(--radius-sm);
}

/* ---------- experience ---------- */
.timeline { list-style: none; position: relative; }
.tl-item { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 2rem; position: relative; padding-bottom: 2.25rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-body { position: relative; padding-left: 2rem; border-left: 1px solid var(--border); padding-bottom: .25rem; }
.tl-item:last-child .tl-body { border-left-color: transparent; }
.tl-body::before {
  content: ""; position: absolute; left: -6px; top: .45rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.tl-item:first-child .tl-body::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-when { display: flex; flex-direction: column; text-align: right; font-size: .88rem; color: var(--muted); padding-top: .1rem; font-variant-numeric: tabular-nums; }
.tl-loc { color: var(--faint); font-size: .82rem; }
.tl-body h3 { font-size: 1.12rem; font-weight: 650; }
.at { color: var(--accent); font-weight: 600; }
.team { color: var(--faint); font-size: .9rem; margin-top: .15rem; }
.bullets { margin-top: .6rem; padding-left: 1.1rem; color: var(--muted); font-size: .95rem; display: flex; flex-direction: column; gap: .3rem; }
.bullets li::marker { color: color-mix(in srgb, var(--accent) 60%, transparent); }
.exp-links { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin-top: .7rem; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .87rem; font-weight: 550; text-decoration: none; }
.text-link:hover span { text-decoration: underline; }

/* ---------- education ---------- */
.edu-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.edu-list { list-style: none; display: grid; gap: 1rem; }
.edu-card { padding: 1.35rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.edu-years { font-size: .82rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.edu-card h3 { font-size: 1.1rem; font-weight: 650; margin-top: .2rem; }
.edu-school { margin-top: .2rem; font-size: .95rem; color: var(--muted); }
.edu-detail { margin-top: .55rem; font-size: .9rem; color: var(--muted); }
.skills { padding: 1.35rem 1.5rem; background: var(--surface-2); border-radius: var(--radius); display: flex; flex-direction: column; gap: 1.1rem; }
.skill-group h3 { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.skills .tags li { background: var(--surface); }

/* ---------- honors ---------- */
.honors { list-style: none; border-top: 1px solid var(--border); }
.honors li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.25rem; padding: .95rem 0; border-bottom: 1px solid var(--border); }
.h-year { font-variant-numeric: tabular-nums; color: var(--faint); font-size: .9rem; padding-top: .05rem; }
.h-text { color: var(--text); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem 3rem; background: var(--surface-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.footer-name { font-weight: 650; }
.footer-mail { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.social { list-style: none; display: flex; gap: .4rem; }
.social a {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  color: var(--muted); border: 1px solid var(--border); background: var(--surface);
}
.social a:hover { color: var(--accent); border-color: var(--accent); }
.updated { color: var(--faint); font-size: .85rem; width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "photo" "text" "chips"; gap: 2rem; }
  .hero-photo { justify-self: start; width: 132px; }
  .hero-photo::before { inset: -8px -8px 8px 8px; border-radius: 22px; }
  .hero-photo img { aspect-ratio: 1; border-radius: 20px; object-position: 50% 28%; }
  .feature-grid { grid-template-columns: 1fr; }
  .edu-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(1120px, 100% - 2.25rem); }
  .brand { display: none; }
  .nav-inner { justify-content: flex-start; }
  .nav-links { margin-inline: -.5rem; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 2rem; }
  .pub { grid-template-columns: 1fr; gap: 1rem; }
  .cover-thumb { display: none; }
  .tl-item { grid-template-columns: 1fr; gap: .3rem; padding-bottom: 0; }
  .tl-when { flex-direction: row; gap: .6rem; text-align: left; padding-left: 2rem; border-left: 1px solid var(--border); }
  .tl-item:first-child .tl-when { border-left-color: transparent; }
  .tl-body { padding-bottom: 2rem; }
  .tl-item:last-child .tl-body { padding-bottom: 0; }
  .honors li { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; }
  .feature-body { padding: 1.15rem 1.2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
  .btn:hover, .feature-card article:hover { transform: none; }
}

@media print {
  .site-nav, .filters, .skip-link { display: none !important; }
  .section { border: 0; padding-block: 1.5rem; }
  details > *:not(summary) { display: block; }
}
