/* Adeeba Begum portfolio: one stylesheet for the main site and the project dashboards. */
:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f2f1ed;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #6f6d68;
  --line: #e1e0d9;
  --axis: #c3c2b7;
  --accent: #2a78d6;
  --accent-ink: #1c5cab;
  --accent-soft: #e6f0fc;
  --good: #0ca30c;
  --good-ink: #006300;
  --warn: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --shadow: 0 1px 2px rgba(11, 11, 11, .04), 0 8px 24px rgba(11, 11, 11, .06);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
    --ink: #f0efec; --ink-2: #c3c2b7; --muted: #9a988f; --line: #2c2c2a; --axis: #383835;
    --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #14233a; --good-ink: #0ca30c;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d0d0d; --surface: #1a1a19; --surface-2: #232321;
  --ink: #f0efec; --ink-2: #c3c2b7; --muted: #9a988f; --line: #2c2c2a; --axis: #383835;
  --accent: #3987e5; --accent-ink: #86b6ef; --accent-soft: #14233a; --good-ink: #0ca30c;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--font); }
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--s1), var(--s7)); font-size: 15px; font-weight: 700;
}
.nav-links { display: none; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--surface-2); }
.nav-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
@media (min-width: 900px) { .nav-links { display: flex; } .nav-actions { margin-left: 8px; } .icon-btn.menu-btn { display: none; } }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { border-color: var(--axis); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-dark-icon { display: none; }
:root[data-theme="dark"] .theme-dark-icon { display: block; }
:root[data-theme="dark"] .theme-light-icon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon { display: block; }
  :root:not([data-theme="light"]) .theme-light-icon { display: none; }
}
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 8px 0 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600;
  font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
:root[data-theme="dark"] .btn-primary:hover { background: #256abf; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--axis); color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: 14px; }
.chip {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 12.5px; font-weight: 700; color: var(--accent-ink); margin-bottom: 10px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 40px; }
@media (min-width: 900px) { .hero { padding: 96px 0 64px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.25fr .9fr; } }
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 14px; }
.hero h1 .accent { color: var(--accent); }
.hero .role { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-2); margin-bottom: 18px; }
.hero .lede { color: var(--ink-2); max-width: 620px; font-size: 17px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14.5px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.impact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.impact div { background: var(--surface-2); border-radius: 12px; padding: 14px; }
.impact b { display: block; font-size: 28px; line-height: 1.1; color: var(--ink); }
.impact small { color: var(--ink-2); font-size: 13.5px; line-height: 1.35; display: block; margin-top: 4px; }
.pipeline-strip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; font-size: 13px; color: var(--ink-2); }
.pipeline-strip .arrow { color: var(--muted); }

/* ---------------------------------------------------------------- sections */
section { padding: 56px 0; }
@media (min-width: 900px) { section { padding: 80px 0; } }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 36px); }
.section-head p { color: var(--ink-2); font-size: 17px; }
.alt { background: var(--surface); border-block: 1px solid var(--line); }

.about-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.3fr 1fr; } }
.about-grid p { color: var(--ink-2); font-size: 17px; }
.services { display: grid; gap: 12px; }
.service { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.alt .service { background: var(--bg); }
.service svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.service h4 { margin: 0 0 4px; font-size: 16px; }
.service p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------------------------------------------------------------- projects */
.project-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .project-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, 1fr); } }
.project-card {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.project-card:hover { transform: translateY(-3px); border-color: var(--accent); color: inherit; }
.project-thumb { aspect-ratio: 16 / 8.5; background: var(--surface-2); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.project-thumb svg { width: 100%; height: 100%; }
.project-thumb .badge { position: absolute; top: 12px; left: 12px; }
.project-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.project-body h3 { font-size: 20px; margin: 0; }
.project-body .problem { color: var(--ink-2); font-size: 15px; margin: 0; }
.project-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-block: 1px solid var(--line); padding: 12px 0; }
.project-kpis b { display: block; font-size: 18px; }
.project-kpis small { color: var(--muted); font-size: 12px; line-height: 1.3; display: block; }
.project-cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: var(--accent-ink); }
.project-cta svg { width: 18px; height: 18px; transition: transform .2s ease; }
.project-card:hover .project-cta svg { transform: translateX(4px); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); }
.badge.live .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .badge.live .dot { animation: none; } html { scroll-behavior: auto; } }

/* ---------------------------------------------------------------- experience */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.job { display: grid; gap: 6px 24px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 860px) { .job { grid-template-columns: 220px 1fr; } }
.job-when { color: var(--muted); font-size: 14px; }
.job-when b { display: block; color: var(--ink); font-size: 16px; }
.job h3 { font-size: 18px; margin-bottom: 4px; }
.job .org { color: var(--ink-2); margin-bottom: 10px; font-size: 15px; }
.job ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.job li { margin-bottom: 6px; }
.job li b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------- skills, education */
.skill-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .skill-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .skill-grid { grid-template-columns: repeat(3, 1fr); } }
.skill-group { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.alt .skill-group { background: var(--bg); }
.skill-group h4 { font-size: 15px; margin-bottom: 10px; }
.edu { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 760px) { .edu { grid-template-columns: 1fr 1fr; } }
.edu div { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.edu b { display: block; }
.edu span { color: var(--ink-2); font-size: 15px; }

/* ---------------------------------------------------------------- contact */
.contact-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.contact-list a { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent); }
.contact-list svg { width: 18px; height: 18px; color: var(--accent); }
form.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
label { font-size: 14px; font-weight: 600; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 14.5px; min-height: 1.4em; margin: 0; }
.form-status.ok { color: var(--good-ink); }
.form-status.err { color: var(--critical); }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }

/* ================================================================ dashboards */
.dash-header { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.dash-header .nav { height: 60px; }
.dash-header .nav-actions { margin-left: auto; }
.dash-title { display: flex; flex-direction: column; min-width: 0; }
.dash-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-title small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); text-decoration: none; font-size: 14px; flex: none; }
.back svg { width: 16px; height: 16px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 12px 14px; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.dash-main { padding: 24px 0 64px; }
.view { display: none; padding: 0; }
.view.active { display: block; }
.view > h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.view > .sub { color: var(--ink-2); margin-bottom: 20px; max-width: 820px; }
.notice {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); font-size: 14.5px; margin-bottom: 18px; align-items: flex-start;
}
.notice svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.notice.warn svg { color: var(--serious); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 18px; }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(var(--kpi-cols, 5), 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.kpi small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
.kpi b { display: block; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.2; margin-top: 6px; overflow-wrap: anywhere; }
.kpi span { display: block; color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 960px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2.wide-left { grid-template-columns: 1.4fr 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; min-width: 0; margin-bottom: 16px; }
.panel h3 { font-size: 15.5px; margin-bottom: 2px; }
.panel .hint { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.chart { width: 100%; min-height: 300px; }
.chart.tall { min-height: 420px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-bottom: 14px; }
.filters label { font-weight: 600; font-size: 13px; color: var(--ink-2); min-width: 150px; flex: 1 1 160px; }
.filters .toggle { flex: 0 0 auto; display: flex; flex-direction: row; align-items: center; gap: 8px; padding-bottom: 10px; }
.filters .toggle input { width: 18px; height: 18px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 10px; max-height: 460px; background: var(--surface); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
table.data th, table.data td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--ink-2); font-size: 13px; z-index: 1; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.wrap-cell { white-space: normal; min-width: 260px; }
table.data tbody tr { cursor: default; }
table.data.selectable tbody tr { cursor: pointer; }
table.data.selectable tbody tr:hover { background: var(--accent-soft); }
table.data tbody tr.selected { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.scorebar { display: inline-flex; align-items: center; gap: 8px; }
.scorebar i { display: block; width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.scorebar i::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--critical); border-radius: 3px; }
.detail { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; scroll-margin-top: 120px; }
.detail h3 { font-size: 20px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); }
pre.code {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; overflow: auto;
  font: 12.5px/1.55 var(--mono); color: var(--ink); max-height: 260px; white-space: pre; margin: 0;
}
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); color: var(--ink-2); padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.arch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arch .node { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.arch .node b { display: block; font-size: 14px; }
.arch .node small { color: var(--muted); font-size: 12px; }
.arch .to { color: var(--muted); }
.prose { color: var(--ink-2); max-width: 820px; }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--ink); }
.loading { color: var(--muted); padding: 30px 0; text-align: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.progress { height: 8px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin: 6px 0 14px; }
.progress i { display: block; height: 100%; background: var(--accent); width: var(--w, 0%); }
