:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --canvas: #f5f7fb;
  --navy: #0b1220;
  --navy-2: #16233a;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f9f8f;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .11);
  --radius-md: 16px;
  --radius-lg: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 3px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.scroll-progress { position: fixed; top: 0; left: 0; z-index: 200; width: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .1s linear; }
.skip-link { position: fixed; z-index: 1000; top: -80px; left: 18px; padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 0 0 10px 10px; }
.skip-link:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(228, 231, 236, .78); background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); }
.nav-shell { width: min(calc(100% - 48px), var(--max)); min-height: 76px; margin: auto; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; }
.brand-mark { display: grid; width: 36px; height: 36px; place-items: center; color: #fff; border-radius: 10px; background: var(--navy); font: 500 12px/1 "DM Mono", monospace; letter-spacing: -.08em; }
.brand-text { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.brand-text small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.primary-nav a { padding: 9px 10px; color: var(--ink-soft); border-radius: 8px; font-size: 12px; font-weight: 800; transition: color .2s ease, background .2s ease; }
.primary-nav a:hover, .primary-nav a.is-current { color: var(--blue); background: #eff6ff; }
.nav-resume { padding: 10px 15px; color: #fff; border-radius: 9px; background: var(--navy); font-size: 12px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.nav-resume:hover { background: #1c2e4b; transform: translateY(-1px); }
.menu-toggle { display: none; padding: 8px 11px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800; }
.nav-icon-btn { display: inline-grid; width: 34px; height: 34px; place-items: center; padding: 0; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.nav-icon-btn:hover { color: var(--blue); border-color: #b9cdf1; transform: translateY(-1px); }
.theme-icon-sun { display: none; }
.nav-cmdk { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; font: 700 10px/1 "DM Mono", monospace; letter-spacing: .04em; transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.nav-cmdk:hover { color: var(--blue); border-color: #b9cdf1; transform: translateY(-1px); }
.nav-cmdk kbd { padding: 3px 5px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-soft); font: inherit; }

.section-shell { width: min(calc(100% - 48px), var(--max)); margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font: 500 11px/1.2 "DM Mono", monospace; letter-spacing: .11em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 9px; font-size: clamp(43px, 5.5vw, 72px); font-weight: 800; letter-spacing: -.065em; line-height: .99; }
h2 { margin-bottom: 0; font-size: clamp(30px, 3.5vw, 45px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; }
h3 { font-size: 18px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-top: clamp(68px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.profile-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 31px; }
.profile-photo-frame { position: relative; display: grid; width: 142px; min-width: 142px; min-height: 178px; place-items: center; border: 1px solid #cbd8ea; border-radius: 14px; background: linear-gradient(145deg, #f1f6ff, #e1ebfb); box-shadow: var(--shadow-sm); }
.profile-photo-placeholder { display: grid; width: 62px; height: 62px; place-items: center; color: #fff; border-radius: 12px; background: var(--navy); font: 500 20px/1 "DM Mono", monospace; letter-spacing: -.11em; }
.profile-photo-frame img { width: 100%; height: auto; max-height: 236px; object-fit: contain; display: block; border-radius: 12px; }
.profile-photo-frame.is-loaded .profile-photo-placeholder { display: none; }
.profile-role { margin: 0 0 4px; color: var(--ink); font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.profile-location { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-statement { max-width: 680px; margin-bottom: 17px; color: var(--ink); font-size: clamp(22px, 2.7vw, 31px); font-weight: 700; letter-spacing: -.045em; line-height: 1.2; }
.hero-intro { max-width: 650px; margin-bottom: 30px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }
.hero-intro strong { color: var(--ink); }
.about-specialities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.about-specialities article { min-height: 138px; padding: 15px; border: 1px solid #dce5f2; border-radius: 11px; background: rgba(255, 255, 255, .72); }
.about-specialities article > p { margin: 0 0 17px; color: var(--blue); font: 500 10px/1 "DM Mono", monospace; }
.about-specialities h3 { margin: 0 0 6px; font-size: 13px; letter-spacing: -.025em; }
.about-specialities span { display: block; color: var(--muted); font-size: 11px; font-weight: 600; line-height: 1.55; }
.about-context { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 27px; }
.about-context article { padding: 11px 12px; border-left: 2px solid #c8d9f7; }
.about-context span { display: block; margin-bottom: 5px; color: var(--blue); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .065em; }
.about-context p { margin: 0; color: var(--ink-soft); font-size: 11px; font-weight: 700; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 12px 18px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: .68; transform: none; }
.button-primary { color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(37, 99, 235, .22); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--surface); }
.button-secondary:hover { border-color: #b9c4d3; background: #fff; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; max-width: 560px; margin: 0; }
.hero-facts div { min-width: 0; padding-left: 15px; border-left: 2px solid #dbe5f6; }
.hero-facts dt { color: var(--ink); font: 500 25px/1.1 "DM Mono", monospace; letter-spacing: -.07em; }
.hero-facts dd { margin: 5px 0 0; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.35; text-transform: uppercase; letter-spacing: .045em; }

.analytics-panel { position: relative; overflow: hidden; padding: 28px; color: #e7eefb; border: 1px solid rgba(255, 255, 255, .10); border-radius: var(--radius-lg); background: linear-gradient(145deg, #111d32, #0b1220 72%); box-shadow: var(--shadow-lg); }
.analytics-panel::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 250px; height: 250px; border-radius: 50%; background: rgba(37, 99, 235, .14); }
.panel-topline, .panel-main, .panel-breakdown, .panel-footnote { position: relative; z-index: 1; }
.panel-topline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, .11); color: #a9b9d3; font: 500 10px/1.2 "DM Mono", monospace; letter-spacing: .08em; }
.availability { padding: 7px 9px; color: #aef2e8; border: 1px solid rgba(81, 212, 194, .28); border-radius: 99px; background: rgba(15, 159, 143, .14); white-space: nowrap; }
.panel-main { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 30px 0 17px; }
.panel-stats-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 16px 0 2px; border-top: 1px solid rgba(255,255,255,.11); }
.panel-stats-row strong { display: block; color: #76a8ff; font: 500 19px/1 "DM Mono", monospace; letter-spacing: -.05em; }
.panel-stats-row span { display: block; margin-top: 5px; color: #94a7c7; font-size: 10px; font-weight: 700; line-height: 1.35; }
.panel-label { margin-bottom: 6px; color: #94a7c7; font-size: 12px; font-weight: 700; }
.panel-value { margin: 0; color: #fff; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.045em; line-height: 1.1; }
.panel-stat { display: flex; align-items: end; gap: 7px; }
.panel-stat strong { color: #76a8ff; font: 500 40px/.8 "DM Mono", monospace; letter-spacing: -.1em; }
.panel-stat span { color: #94a7c7; font-size: 11px; font-weight: 700; }
.mini-chart { position: relative; height: 150px; color: #4c86f7; }
.chart-grid { position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.1) 0 1px, transparent 1px 37px), repeating-linear-gradient(to right, rgba(255,255,255,.06) 0 1px, transparent 1px 70px); }
.mini-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.panel-breakdown { display: grid; gap: 10px; padding-top: 26px; }
.panel-breakdown div { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 11px; }
.panel-breakdown span { color: #a9b9d3; font-size: 11px; font-weight: 700; }
.panel-breakdown b { display: block; height: 6px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.11); }
.panel-breakdown b::after { content: ""; display: block; width: var(--bar); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2f73f7, #57d4c2); }
.panel-footnote { margin: 25px 0 0; color: #8292ad; font-size: 11px; }

.work-section, .process-section, .skills-section, .resume-section, .dataset-section { padding-top: clamp(65px, 9vw, 108px); padding-bottom: clamp(65px, 9vw, 108px); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 385px); gap: 36px; align-items: end; margin-bottom: 38px; }
.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.75; }

.project-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.project-search { position: relative; flex: 1 1 250px; max-width: 340px; }
.project-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.project-search input { width: 100%; min-height: 40px; padding: 10px 12px 10px 32px; color: var(--ink); border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12px; font-weight: 700; outline: 0; transition: border-color .2s ease, box-shadow .2s ease; }
.project-search input:focus { border-color: #94b4ed; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.project-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { min-height: 34px; padding: 7px 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 99px; background: #fff; font-size: 11px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.filter-chip:hover { color: var(--blue); border-color: #b9cdf1; }
.filter-chip.is-active { color: #fff; border-color: var(--navy); background: var(--navy); }
.project-count { width: 100%; margin: 0; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.project-empty { grid-column: 1 / -1; padding: 48px 20px; color: var(--muted); border: 1px dashed #cdd8e8; border-radius: var(--radius-md); background: rgba(255,255,255,.6); font-size: 13px; font-weight: 700; text-align: center; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.project-card:hover { border-color: #c7d6ef; box-shadow: 0 16px 35px rgba(32, 54, 86, .12); transform: translateY(-5px); }
.project-visual { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: radial-gradient(120% 90% at 20% 0%, rgba(37, 99, 235, .08), transparent 55%), linear-gradient(145deg, #eef2f9, #d9e2ef); }
.project-visual img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 10px 12px; transition: transform .45s ease; }
.project-card:hover .project-visual img { transform: scale(1.02); }
.project-visual.image-unavailable::before { content: "Dashboard preview unavailable"; position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #475467; font-size: 12px; font-weight: 800; }
.project-visual.is-loading::before { content: "Loading preview…"; position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; color: #8494ad; font: 500 11px/1 "DM Mono", monospace; letter-spacing: .05em; animation: pulse-soft 1.4s ease-in-out infinite; }
@keyframes pulse-soft { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.project-label { position: absolute; z-index: 1; top: 14px; left: 14px; padding: 6px 9px; color: #eff6ff; border: 1px solid rgba(255,255,255,.23); border-radius: 99px; background: rgba(11,18,32,.67); backdrop-filter: blur(6px); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .075em; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 21px; }
.project-body h3 { margin-bottom: 10px; font-size: 19px; }
.project-body > p { margin-bottom: 17px; color: var(--ink-soft); font-size: 12px; line-height: 1.68; }
.project-metric { margin: auto 0 15px; padding: 11px 0; color: var(--blue); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font: 500 11px/1.4 "DM Mono", monospace; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 16px; }
.project-tags span { padding: 5px 7px; color: var(--ink-soft); border: 1px solid #e7ebf0; border-radius: 6px; background: var(--surface-soft); font: 500 9px/1 "DM Mono", monospace; }
.card-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.card-embed-button, .card-link { min-height: 36px; padding: 8px 10px; border-radius: 7px; font-size: 11px; font-weight: 800; }
.card-embed-button { color: #fff; border: 1px solid var(--navy); background: var(--navy); transition: transform .2s ease, background .2s ease; }
.card-embed-button:hover { background: #1c2e4b; transform: translateY(-1px); }
.card-link { display: inline-flex; align-items: center; color: var(--blue); border: 1px solid #cedbf1; background: #f8fbff; }
.card-link:hover { color: var(--blue-dark); border-color: #adc4ed; }

.section-shell.process-section, .section-shell.dataset-section { width: 100%; max-width: none; margin-right: 0; margin-left: 0; padding-right: max(24px, calc((100vw - var(--max)) / 2)); padding-left: max(24px, calc((100vw - var(--max)) / 2)); }
.process-section { background: var(--surface); }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process-grid li { display: flex; flex-direction: column; min-height: 316px; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.process-grid li:hover { border-color: #c8d7ef; box-shadow: 0 16px 35px rgba(32, 54, 86, .1); transform: translateY(-4px); }
.process-grid li > span, .skill-index { display: inline-block; margin-bottom: 18px; color: var(--blue); font: 500 12px/1 "DM Mono", monospace; letter-spacing: -.03em; }
.process-phase { margin: 0 0 11px !important; color: var(--teal) !important; font: 500 9px/1 "DM Mono", monospace !important; letter-spacing: .09em; }
.process-grid h3 { margin-bottom: 11px; font-size: 17px; }
.process-grid > li > p:not(.process-phase) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.process-grid > li > p strong { color: var(--ink-soft); }
.process-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.process-tags b { padding: 5px 7px; color: var(--ink-soft); border: 1px solid #e3eaf4; border-radius: 6px; background: #f7f9fc; font: 500 9px/1.15 "DM Mono", monospace; }

.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.skill-card { min-height: 300px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .25s ease, box-shadow .25s ease; }
.skill-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.skill-index { margin-bottom: 36px; color: var(--teal); }
.skill-card h3 { margin-bottom: 10px; }
.skill-card > p:not(.skill-index) { min-height: 63px; margin-bottom: 20px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.skill-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.skill-card li { padding: 9px 0; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 700; }

.resume-section { background: #eff5ff; }
.resume-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr); gap: 20px; align-items: stretch; }
.resume-summary-card { display: flex; flex-direction: column; padding: 30px; color: #e6edf9; border-radius: var(--radius-lg); background: var(--navy); box-shadow: var(--shadow-lg); }
.resume-label { margin-bottom: 36px; color: #82aafd; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; }
.resume-summary-card h3 { max-width: 400px; margin-bottom: 14px; color: #fff; font-size: 24px; letter-spacing: -.05em; }
.resume-summary-card > p:not(.resume-label) { color: #b7c5dc; font-size: 13px; line-height: 1.8; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }
.resume-summary-card .button-secondary { color: #e7eefb; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.07); }
.resume-summary-card .button-secondary:hover { background: rgba(255,255,255,.12); }
.education-list { display: grid; gap: 12px; }
.education-list article { display: grid; grid-template-columns: 68px 1fr; gap: 16px; align-items: center; padding: 21px; border: 1px solid #d7e2f2; border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.education-list article.is-experience { border-color: #b9e4db; background: #f4fbf9; }
.education-list article.is-experience p { color: var(--teal); border-color: #b9e4db; background: #e9f7f4; }
.education-list p { display: grid; width: 54px; height: 42px; place-items: center; margin: 0; color: var(--blue); border: 1px solid #c7d8f7; border-radius: 8px; background: #eff5ff; font: 500 11px/1 "DM Mono", monospace; }
.education-list h3 { margin: 0 0 3px; font-size: 15px; }
.education-list span { color: var(--muted); font-size: 11px; font-weight: 700; }
.resume-skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.resume-skills span { padding: 7px 9px; color: var(--ink-soft); border: 1px solid #d4dfef; border-radius: 7px; background: rgba(255,255,255,.65); font: 500 10px/1 "DM Mono", monospace; }
.certificate-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 18px; padding: 24px 26px; border: 1px solid #ccdaef; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.certificate-label { margin: 0 0 9px; color: var(--teal); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .09em; }
.certificate-copy h3 { margin: 0 0 7px; font-size: 18px; }
.certificate-copy > p:not(.certificate-label) { max-width: 620px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.certificate-verify { display: inline-block; margin-top: 10px; color: var(--blue); font-size: 12px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.certificate-verify:hover { color: var(--blue-dark); }
.certificate-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; min-width: max-content; }
.certificate-actions .button { min-height: 40px; padding: 9px 13px; font-size: 11px; }

.dataset-section { color: #fff; border-top: 0; background: var(--navy); }
.dataset-section .section-heading { border: 0; }
.dataset-section .eyebrow { color: #70a2fd; }
.dataset-section .section-heading > p { color: #acbbd3; }
.dataset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dataset-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); background: rgba(255,255,255,.04); transition: transform .25s ease, background .25s ease; }
.dataset-card:hover { background: rgba(255,255,255,.08); transform: translateY(-4px); }
.dataset-cover { position: relative; aspect-ratio: 16 / 8; background: #0a1424; }
.dataset-cover img { width: 100%; height: 100%; display: block; object-fit: cover; }
.dataset-cover.cover-unavailable::before { content: "Cover image unavailable"; position: absolute; inset: 0; display: grid; place-items: center; color: #5b6c8a; font-size: 12px; font-weight: 800; }
.dataset-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.dataset-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.dataset-card .card-link { color: #cfe0ff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.07); }
.dataset-card .card-link:hover { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.12); }
.dataset-type { margin-bottom: 30px; color: #74cfc2; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .095em; }
.dataset-card h3 { margin-bottom: 12px; font-size: 19px; }
.dataset-card > p:not(.dataset-type) { margin-bottom: 20px; color: #b7c5dc; font-size: 13px; line-height: 1.7; }
.dataset-card dl { display: grid; gap: 10px; margin: auto 0 21px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); }
.dataset-card dl div { display: grid; grid-template-columns: 70px 1fr; gap: 10px; }
.dataset-card dt { color: #8ca0c0; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dataset-card dd { margin: 0; color: #e5ecf9; font-size: 11px; font-weight: 700; line-height: 1.45; }
.dataset-card a { color: #fff; font-size: 12px; font-weight: 800; }
.dataset-card a:hover { text-decoration: underline; text-underline-offset: 4px; }
.dataset-note { margin: 24px 0 0; color: #95a9c8; font-size: 11px; }

.contact-section { padding: clamp(65px, 9vw, 110px) 0; color: #fff; background: #0b1220; }
.contact-shell { width: min(calc(100% - 48px), var(--max)); margin: auto; display: grid; grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr); gap: clamp(36px, 8vw, 120px); align-items: start; }
.contact-copy .eyebrow { color: #79a9ff; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p:not(.eyebrow) { max-width: 450px; margin-bottom: 28px; color: #bdcae0; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links a, .copy-email { padding: 8px 10px; color: #d7e5fb; border: 1px solid rgba(255,255,255,.15); border-radius: 7px; font-size: 11px; font-weight: 700; transition: background .2s ease; }
.contact-links a:hover, .copy-email:hover { background: rgba(255,255,255,.09); }
.contact-form { padding: 25px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius-md); background: rgba(255,255,255,.05); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.contact-form label { display: block; margin-bottom: 15px; color: #dce7f7; font-size: 11px; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 7px; padding: 12px 13px; resize: vertical; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; outline: 0; background: rgba(7,13,25,.45); transition: border-color .2s, background .2s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: #77a6ff; background: rgba(7,13,25,.68); }
.contact-form .button { width: 100%; margin-top: 2px; border: 0; }
.form-status { min-height: 20px; margin: 13px 0 0; color: #aef2e8; font-size: 12px; font-weight: 700; }
.form-status.is-error { color: #fecaca; }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.site-footer { color: #aab8cd; background: #070d18; }
.footer-shell { width: min(calc(100% - 48px), var(--max)); min-height: 86px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-shell > p { margin: 0; font-size: 12px; font-weight: 800; }
.footer-shell > p span { margin-left: 7px; color: #70809a; font-weight: 500; }
.footer-shell > div { display: flex; gap: 17px; }
.footer-shell a { color: #d5e1f5; font-size: 11px; font-weight: 700; }
.footer-shell a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer-shell .copyright { color: #70809a; font: 400 10px/1 "DM Mono", monospace; }
.build-tag { margin-left: 6px; color: #70809a; font: 500 9px/1 "DM Mono", monospace; letter-spacing: .04em; }

.dashboard-dialog { display: grid; grid-template-rows: auto 1fr auto; width: min(1100px, calc(100vw - 30px)); max-height: min(860px, calc(100vh - 40px)); max-height: min(860px, calc(100dvh - 40px)); margin: auto; padding: 0; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 18px; background: #fff; box-shadow: 0 24px 90px rgba(0,0,0,.35); }
.dashboard-dialog::backdrop { background: rgba(5, 11, 22, .72); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 23px 25px 19px; border-bottom: 1px solid var(--line); }
.dialog-header .eyebrow { margin-bottom: 8px; }
.dialog-header h2 { font-size: 25px; }
.dialog-close { padding: 9px 11px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 11px; font-weight: 800; }
.dialog-close:hover { background: var(--surface-soft); }
.dashboard-frame { height: min(66vh, 650px); background: #f3f4f6; }
.dashboard-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.dialog-full-link { display: inline-block; margin: 16px 25px 22px; color: var(--blue); font-size: 12px; font-weight: 800; }
.dialog-full-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.assistant-widget { position: fixed; z-index: 90; right: 20px; bottom: 20px; }
.assistant-toggle { min-height: 42px; padding: 10px 14px; color: #fff; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: var(--navy); box-shadow: 0 10px 30px rgba(11,18,32,.28); font-size: 11px; font-weight: 800; transition: transform .2s ease, background .2s ease; }
.assistant-toggle:hover { background: #1a2b48; transform: translateY(-2px); }
.assistant-panel { position: absolute; right: 0; bottom: 54px; width: min(370px, calc(100vw - 34px)); padding: 18px; color: var(--ink); border: 1px solid #d9e1ec; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); }
.assistant-panel[hidden] { display: none; }
.assistant-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.assistant-header p { margin-bottom: 5px; color: var(--blue); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .09em; }
.assistant-header h2 { font-size: 19px; }
.assistant-header button { padding: 7px 8px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 800; }
.assistant-messages { max-height: 248px; overflow-y: auto; padding: 14px 0 8px; }
.assistant-message { max-width: 94%; margin: 0 0 10px; padding: 10px 11px; color: var(--ink-soft); border-radius: 9px; background: #f3f6fb; font-size: 12px; line-height: 1.55; white-space: pre-line; }
.assistant-message.is-user { margin-left: auto; color: #fff; background: var(--blue); }
.assistant-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px 0 13px; }
.assistant-prompts button { padding: 7px 8px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: 10px; font-weight: 800; }
.assistant-prompts button:hover { color: var(--blue); border-color: #b9cdf1; background: #f7faff; }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.assistant-form input { min-width: 0; padding: 9px 10px; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; outline: 0; font-size: 11px; }
.assistant-form input:focus { border-color: #94b4ed; }
.assistant-form button { padding: 9px 11px; color: #fff; border: 0; border-radius: 8px; background: var(--blue); font-size: 11px; font-weight: 800; }

.detail-dialog:not([open]), .dashboard-dialog:not([open]), .lightbox-dialog:not([open]) { display: none; }
.detail-dialog { display: grid; grid-template-rows: auto minmax(0, 1fr); width: min(1080px, calc(100vw - 30px)); max-height: min(880px, calc(100vh - 40px)); max-height: min(880px, calc(100dvh - 40px)); margin: auto; padding: 0; color: var(--ink); border: 1px solid #cbd5e1; border-radius: 18px; background: #fff; box-shadow: 0 24px 90px rgba(0,0,0,.35); }
.detail-dialog::backdrop { background: rgba(5, 11, 22, .72); backdrop-filter: blur(3px); }
.detail-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 26px 28px 30px; }
.detail-body:focus { outline: 0; }
.detail-tagline { margin: 0 0 10px; color: var(--teal); font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.detail-overview { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; line-height: 1.75; }
.detail-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.detail-tech span { padding: 5px 8px; color: var(--ink-soft); border: 1px solid #e0e7f1; border-radius: 6px; background: var(--surface-soft); font: 500 10px/1 "DM Mono", monospace; }
.detail-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.detail-section { margin-bottom: 26px; }
.detail-section h3 { margin-bottom: 12px; font-size: 15px; letter-spacing: -.01em; }
.detail-list { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 13px; line-height: 1.65; }
.detail-list li { margin-bottom: 8px; }
.detail-list li::marker { color: var(--blue); font-weight: 800; }
.detail-note { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.detail-note a { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.detail-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.detail-table th, .detail-table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.detail-table thead th { position: sticky; top: 0; background: var(--surface-soft); color: var(--ink-soft); font-weight: 800; }
.detail-table tbody tr:nth-child(even) { background: #f8fafc; }
.detail-table tbody tr:last-child td { border-bottom: 0; }
.detail-table code { color: var(--blue-dark); font: 500 10px/1.4 "DM Mono", monospace; }
.code-block { margin: 0; padding: 16px 18px; overflow-x: auto; border-radius: 12px; background: var(--navy); color: #d7e3f8; font: 400 11px/1.7 "DM Mono", monospace; }
.code-block code { white-space: pre; }
.file-group { margin-bottom: 14px; }
.file-group-label { margin: 0 0 8px; color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.file-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.file-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .2s ease, background .2s ease; }
.file-chip:hover { border-color: #b9cdf1; background: #f7faff; }
.file-chip-ext { padding: 3px 5px; color: #fff; border-radius: 5px; background: var(--navy); font: 500 8px/1 "DM Mono", monospace; letter-spacing: .05em; }
.file-chip-name { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; }
.file-chip-size { color: var(--muted); font: 500 9px/1 "DM Mono", monospace; }
.data-preview { margin-bottom: 20px; }
.data-preview-name { margin: 0 0 8px; color: var(--ink); font-size: 12px; font-weight: 800; }
.data-preview-name span { color: var(--muted); font-weight: 600; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gallery-thumb { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #eef2f9; }
.gallery-thumb img { width: 100%; aspect-ratio: 16 / 10; display: block; object-fit: cover; transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.04); }
.case-cover { width: 100%; max-height: 260px; margin-bottom: 22px; border-radius: 12px; object-fit: cover; }
.lightbox-dialog { position: relative; width: min(1180px, calc(100% - 30px)); max-height: calc(100% - 30px); margin: auto; padding: 18px; border: 0; border-radius: 16px; background: rgba(7, 13, 25, .97); }
.lightbox-dialog::backdrop { background: rgba(5, 11, 22, .86); backdrop-filter: blur(4px); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox-figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lightbox-figure img { display: block; max-width: 100%; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lightbox-caption { color: #b7c5dc; font-size: 12px; font-weight: 700; text-align: center; padding: 0 12px; }

.project-card-img, .gallery-thumb img, #profile-photo { cursor: zoom-in; }

.detail-footer-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-back-link { min-height: 48px; padding: 13px 18px; font-size: 13px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); font-size: 12px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.detail-back-link:hover { color: var(--blue); border-color: #b9cdf1; background: #f7faff; }
.detail-copy-link { margin-left: auto; min-height: 47px; padding: 12px 16px; color: var(--ink-soft); border: 1px dashed #b9c4d3; border-radius: 10px; background: #fff; font-size: 12px; font-weight: 800; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.detail-copy-link:hover { color: var(--blue); border-color: #94b4ed; border-style: solid; background: #f7faff; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }

@media (max-width: 1060px) {
  .primary-nav { gap: 0; }
  .primary-nav a { padding: 9px 8px; }
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .analytics-panel { max-width: 650px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resume-layout, .contact-shell { grid-template-columns: 1fr; gap: 30px; }
  .contact-copy > p:not(.eyebrow) { max-width: 620px; }
}

@media (max-width: 820px) {
  .nav-shell { width: min(calc(100% - 32px), var(--max)); min-height: 66px; gap: 10px; }
  .nav-resume { display: none; }
  .menu-toggle { display: inline-block; margin-left: auto; }
  .primary-nav { position: absolute; top: calc(100% + 1px); right: 16px; left: 16px; display: none; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: var(--shadow-lg); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 12px; }
  .section-shell, .contact-shell, .footer-shell { width: min(calc(100% - 32px), var(--max)); }
  .section-shell.process-section, .section-shell.dataset-section { width: 100%; padding-right: 16px; padding-left: 16px; }
  .hero { padding-top: 60px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; margin-bottom: 28px; }
  .dataset-grid { grid-template-columns: 1fr; }
  .project-search { max-width: none; }
  .detail-two-col { grid-template-columns: 1fr; }
  .detail-body { padding: 20px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-shell { min-height: 115px; flex-wrap: wrap; align-content: center; gap: 12px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .brand-mark { width: 33px; height: 33px; }
  .brand-text { font-size: 13px; }
  .profile-intro { align-items: flex-start; gap: 14px; }
  .profile-photo-frame { width: 112px; min-width: 112px; min-height: 140px; }
  .profile-photo-placeholder { width: 50px; height: 50px; font-size: 16px; }
  h1 { font-size: clamp(40px, 12vw, 54px); }
  .hero-actions .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 13px; }
  .hero-facts div { display: flex; align-items: baseline; gap: 10px; }
  .hero-facts dd { margin: 0; }
  .analytics-panel { padding: 21px; }
  .panel-topline { align-items: flex-start; flex-direction: column; }
  .panel-main { padding-top: 22px; }
  .mini-chart { height: 125px; }
  .about-specialities, .about-context { grid-template-columns: 1fr; }
  .about-context { gap: 5px; }
  .about-context article { padding: 10px 11px; }
  .project-grid, .process-grid, .skills-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; }
  .process-grid li > span, .skill-index { margin-bottom: 16px; }
  .skill-card { min-height: auto; }
  .skill-card > p:not(.skill-index) { min-height: auto; }
  .resume-summary-card { padding: 24px; }
  .resume-summary-card h3 { font-size: 21px; }
  .certificate-card { align-items: flex-start; flex-direction: column; gap: 18px; padding: 21px; }
  .certificate-actions { justify-content: flex-start; min-width: 0; }
  .education-list article { grid-template-columns: 55px 1fr; gap: 12px; padding: 17px; }
  .education-list p { width: 45px; height: 37px; font-size: 9px; }
  .contact-form { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-links a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
  .footer-shell > div { order: 3; width: 100%; }
  .dashboard-dialog, .detail-dialog, .lightbox-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .lightbox-dialog { padding: 12px; }
  .lightbox-figure img { max-height: calc(100vh - 110px); }
  .dialog-header { padding: 18px; }
  .dialog-header h2 { font-size: 21px; }
  .dashboard-frame { height: 56vh; }
  .dialog-full-link { margin: 13px 18px 18px; }
  .detail-footer-actions .button { flex: 1 1 auto; }
  .gallery-grid { grid-template-columns: 1fr; }
  .case-cover { max-height: 190px; }
  .assistant-widget { right: 14px; bottom: 14px; }
  .assistant-panel { right: 0; bottom: 51px; }
}

/* ---------- MY JOURNEY TIMELINE ---------- */
.journey-section { padding: clamp(65px, 9vw, 110px) 0; }
.journey-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr); gap: 24px; align-items: end; margin-bottom: 44px; }
.journey-heading h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.045em; line-height: 1.12; }
.journey-heading p { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.7; }
.timeline { position: relative; margin-left: 5px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--blue) 0%, var(--teal) 100%); }
.milestone { position: relative; margin-bottom: 22px; }
.milestone:last-child { margin-bottom: 0; }
.milestone::before { content: ""; position: absolute; left: -41px; top: 26px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--canvas); background: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.milestone.is-active::before { background: var(--teal); box-shadow: 0 0 0 2px var(--teal), 0 0 0 9px rgba(15, 159, 143, .15); }
.milestone-card { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.milestone-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7d6ef; }
.milestone-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.milestone-year { padding: 5px 9px; color: var(--blue); border: 1px solid #dbe7fb; border-radius: 6px; background: #eff6ff; font: 500 10px/1 "DM Mono", monospace; letter-spacing: .05em; }
.milestone.is-active .milestone-year { color: var(--teal); border-color: #c9efe7; background: #f0fbf8; }
.milestone-role { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.milestone-org { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; }
.milestone-card > p:last-of-type { margin: 0 0 14px; color: var(--ink-soft); font-size: 13px; line-height: 1.72; }
.milestone-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.milestone-tags span { padding: 5px 8px; color: var(--ink-soft); border: 1px solid #e7ebf0; border-radius: 6px; background: var(--surface-soft); font: 500 9px/1 "DM Mono", monospace; }
.milestone.is-active .milestone-card { border-color: #9fd9cd; }
.milestone-status { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(15, 159, 143, .1); font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--teal); }
.milestone-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 1.6s ease-in-out infinite; }
@media (max-width: 820px) {
  .journey-heading { grid-template-columns: 1fr; gap: 12px; }
  .journey-section { padding: 55px 0; }
}

/* ---------- COMMAND PALETTE (Ctrl+K) ---------- */
.cmdk-overlay { position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 18px 18px; background: rgba(7, 13, 25, .58); backdrop-filter: blur(6px); }
.cmdk-overlay[hidden] { display: none; }
.cmdk-panel { width: min(600px, 100%); overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); animation: cmdk-in .16s ease; }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.cmdk-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-head input { flex: 1; min-width: 0; padding: 6px 2px; color: var(--ink); border: 0; background: transparent; font-size: 14px; font-weight: 600; outline: 0; }
.cmdk-head kbd, .cmdk-foot kbd { padding: 3px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--muted); font: 500 9px/1 "DM Mono", monospace; }
.cmdk-list { max-height: 340px; margin: 0; padding: 8px; list-style: none; overflow-y: auto; }
.cmdk-list li { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; cursor: pointer; }
.cmdk-list li.is-active { color: var(--ink); background: rgba(37, 99, 235, .1); }
.cmdk-list li:not(.is-active) { color: var(--ink-soft); }
.cmdk-kind { flex: none; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-soft); color: var(--muted); font: 500 8px/1 "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.cmdk-label { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmdk-hint { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.cmdk-empty { color: var(--muted); font-size: 12px; font-weight: 600; cursor: default; }
.cmdk-foot { display: flex; align-items: center; gap: 14px; padding: 11px 17px; border-top: 1px solid var(--line); color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .05em; }
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }
.cmdk-brand { margin-left: auto; color: var(--blue); }
body.cmdk-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- DIALOG FALLBACK (top layer disabled environments) ---------- */
.dialog-fallback { position: fixed; inset: 0; margin: auto; z-index: 250; box-shadow: 0 0 0 9999px rgba(5, 11, 22, .72); }
.detail-body, .lightbox-figure { overscroll-behavior: contain; }
.dialog-close { min-height: 44px; min-width: 44px; padding: 10px 16px; font-size: 13px; transition: color .2s ease, border-color .2s ease, background .2s ease; }
.dialog-close:hover { color: var(--blue); border-color: #b9cdf1; background: #f7faff; }
.dialog-close, .detail-back-link, .detail-footer-actions button, .card-embed-button, .card-actions a { touch-action: manipulation; -webkit-tap-highlight-color: rgba(37, 99, 235, .15); }

/* ===== DARK MODE ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef2f8;
  --ink-soft: #c2ccdc;
  --muted: #8b99b0;
  --surface: #141f36;
  --surface-soft: #1b2942;
  --canvas: #0a101d;
  --line: #2c3c5c;
  --blue: #4d8dff;
  --blue-dark: #3b74d4;
  --teal: #21c9b4;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .3);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .55);
}
:root[data-theme="dark"] .site-header { border-bottom-color: rgba(38, 51, 77, .85); background: rgba(10, 17, 32, .88); }
:root[data-theme="dark"] .primary-nav a:hover, :root[data-theme="dark"] .primary-nav a.is-current { background: rgba(77, 141, 255, .14); }
:root[data-theme="dark"] .menu-toggle, :root[data-theme="dark"] .nav-icon-btn, :root[data-theme="dark"] .nav-cmdk { background: var(--surface); }
:root[data-theme="dark"] .nav-cmdk kbd { background: var(--surface-soft); }
:root[data-theme="dark"] .project-search input { background: var(--surface); }
:root[data-theme="dark"] .filter-chip { background: var(--surface); }
:root[data-theme="dark"] .filter-chip:hover { border-color: #35507e; }
:root[data-theme="dark"] .button-secondary:hover { border-color: var(--line); background: var(--surface-soft); }
:root[data-theme="dark"] .project-card:hover { border-color: #31446a; }
:root[data-theme="dark"] .project-visual { background: radial-gradient(120% 90% at 20% 0%, rgba(77, 141, 255, .14), transparent 55%), linear-gradient(145deg, #16233c, #101a2d); }
:root[data-theme="dark"] .project-visual.image-unavailable::before { color: #9fb0c9; }
:root[data-theme="dark"] .project-visual.is-loading::before { color: #9fb0c9; }
:root[data-theme="dark"] .project-tags span { border-color: var(--line); }
:root[data-theme="dark"] .card-link { border-color: var(--line); background: var(--surface-soft); }
:root[data-theme="dark"] .card-link:hover { border-color: #35507e; }
:root[data-theme="dark"] .process-grid li { background: var(--surface); }
:root[data-theme="dark"] .resume-section { background: #0d1526; }
:root[data-theme="dark"] .education-list article, :root[data-theme="dark"] .education-list article.is-experience { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .certificate-card { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .detail-dialog, :root[data-theme="dark"] .dashboard-dialog { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .dialog-close, :root[data-theme="dark"] .assistant-header button, :root[data-theme="dark"] .assistant-prompts button { background: var(--surface); }
:root[data-theme="dark"] .assistant-panel { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .assistant-message { background: var(--surface-soft); }
:root[data-theme="dark"] .assistant-prompts button:hover { border-color: #35507e; background: rgba(77, 141, 255, .1); }
:root[data-theme="dark"] .assistant-form input { background: var(--surface); }
:root[data-theme="dark"] .detail-table-wrap { background: var(--surface); }
:root[data-theme="dark"] .detail-table tbody tr:nth-child(even) { background: rgba(77, 141, 255, .06); }
:root[data-theme="dark"] .file-chip { background: var(--surface); }
:root[data-theme="dark"] .file-chip:hover { border-color: var(--line); background: var(--surface-soft); }
:root[data-theme="dark"] .detail-copy-link { border-color: var(--line); background: var(--surface); }
:root[data-theme="dark"] .detail-copy-link:hover { border-color: #35507e; background: rgba(77, 141, 255, .08); }
:root[data-theme="dark"] .gallery-thumb { background: #16233c; }
:root[data-theme="dark"] .process-tags b { background: var(--surface-soft); border-color: var(--line); }
:root[data-theme="dark"] .resume-skills span { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #c2ccdc; }
:root[data-theme="dark"] .detail-back-link:hover { border-color: #35507e; background: rgba(77, 141, 255, .08); }
:root[data-theme="dark"] .dialog-close:hover { border-color: #35507e; background: rgba(77, 141, 255, .08); }
:root[data-theme="dark"] .about-specialities article { border-color: #2c3c5c; background: rgba(20, 31, 54, .72); }
:root[data-theme="dark"] .profile-photo-frame { border-color: #2c3d5f; background: linear-gradient(145deg, #16233c, #101a2d); }
:root[data-theme="dark"] .cmdk-overlay { background: rgba(3, 7, 15, .7); }
:root[data-theme="dark"] .milestone-card:hover { border-color: #31446a; }
:root[data-theme="dark"] .milestone-year { background: rgba(77, 141, 255, .12); border-color: #35507e; }
:root[data-theme="dark"] .milestone.is-active .milestone-year { background: rgba(33, 201, 180, .12); border-color: #2c6b61; }
:root[data-theme="dark"] .milestone-tags span { border-color: var(--line); }
:root[data-theme="dark"] .milestone.is-active .milestone-card { border-color: #2c6b61; }
:root[data-theme="dark"] .milestone.is-active::before { box-shadow: 0 0 0 2px var(--teal), 0 0 0 9px rgba(33, 201, 180, .12); }
:root[data-theme="dark"] .theme-icon-moon { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
@media (max-width: 820px) {
  :root[data-theme="dark"] .primary-nav { background: rgba(13, 20, 36, .98); }
}
