:root {
  --bg: #f7f9fc;
  --surface: #fff;
  --surface-subtle: #f8fafc;
  --text: #101828;
  --muted: #667085;
  --muted-dark: #475467;
  --border: #e4e7ec;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-pale: #eff6ff;
  --navy: #0f172a;
  --green: #16a34a;
  --green-pale: #f0fdf4;
  --sidebar: 276px;
  --sidebar-collapsed: 84px;
  --header: 72px;
  --radius: 18px;
  --shadow: 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: Inter, system-ui, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.drawer-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#i-grid path, #i-github path, #i-linkedin path { fill: currentColor; stroke: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 3px; }

.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border); transition: width .25s ease; }
.sidebar-top { min-height: 88px; display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px 20px; }
.identity { min-width: 0; display: flex; align-items: center; gap: 12px; flex: 1; }
.identity-copy, .mobile-identity > span:last-child { min-width: 0; display: grid; line-height: 1.3; }
.identity-copy strong { font-family: Manrope, sans-serif; font-size: .94rem; white-space: nowrap; }
.identity-copy small, .mobile-identity small { color: var(--muted); font-size: .77rem; }
.avatar { position: relative; flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; background: linear-gradient(145deg, #172554, #2563eb); color: #fff; border-radius: 13px; font-family: Manrope, sans-serif; font-size: .88rem; font-weight: 800; box-shadow: 0 7px 16px rgba(37, 99, 235, .2); }
.avatar.small { width: 40px; height: 40px; border-radius: 11px; }
.avatar-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #22c55e; }
.collapse-button { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; background: #fff; cursor: pointer; transform: rotate(180deg); transition: transform .25s ease, background .2s; }
.collapse-button:hover { background: var(--surface-subtle); }
.collapse-button svg { width: 15px; height: 15px; }
.location-line { display: flex; align-items: center; gap: 9px; margin: 0 20px 16px; padding: 10px 12px; color: var(--muted-dark); background: var(--surface-subtle); border: 1px solid var(--border); border-radius: 10px; font-size: .78rem; white-space: nowrap; overflow: hidden; }
.location-line svg { width: 15px; height: 15px; color: var(--blue); flex: 0 0 auto; }
.sidebar-nav { padding: 0 12px; overflow: auto; }
.nav-label { margin: 4px 12px 9px; color: #98a2b3; text-transform: uppercase; letter-spacing: .12em; font-size: .65rem; font-weight: 700; }
.nav-item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 3px 0; padding: 0 12px; border-radius: 10px; color: var(--muted-dark); font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .2s, color .2s; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 auto; }
.nav-item:hover { background: #f8fafc; color: var(--text); }
.nav-item.active { background: var(--blue-pale); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 3px; background: var(--blue); border-radius: 0 3px 3px 0; }
.nav-item.active svg { color: var(--blue); }
.sidebar-footer { margin-top: auto; padding: 14px 16px 18px; border-top: 1px solid var(--border); }
.availability { display: flex; gap: 10px; align-items: flex-start; padding: 10px 4px 14px; }
.availability > span, .status-pill > span, .availability-badge > span { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 5px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 0 4px #dcfce7; }
.availability p, .sidebar-socials p { display: grid; margin: 0; line-height: 1.35; }
.availability strong { font-size: .78rem; }
.availability small, .sidebar-socials small { color: var(--muted); font-size: .69rem; }
.sidebar-socials { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.sidebar-socials > a, .profile-links a { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--muted-dark); }
.sidebar-socials svg, .profile-links svg { width: 15px; height: 15px; }
.sidebar-socials p { margin-left: 3px; }
.sidebar-socials strong { font-size: .7rem; }

.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-weight: 700; font-size: .84rem; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.button:hover { transform: translateY(-1px); }
.button svg { width: 17px; height: 17px; }
.button-primary { background: var(--blue); color: #fff; box-shadow: 0 5px 12px rgba(37, 99, 235, .2); }
.button-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 18px rgba(37, 99, 235, .24); }
.button-secondary { color: #344054; background: #fff; border-color: #d0d5dd; }
.button-secondary:hover { border-color: #98a2b3; background: #f9fafb; }
.button-full { width: 100%; }
.button.compact { min-height: 38px; padding: 7px 13px; }
.text-button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 5px; color: var(--blue); font-size: .86rem; font-weight: 700; }

.page-shell { margin-left: var(--sidebar); transition: margin-left .25s ease; }
.top-header { position: sticky; top: 0; z-index: 30; height: var(--header); display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 0 clamp(24px, 3.4vw, 52px); background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.eyebrow { margin: 0; color: var(--muted); font-size: .72rem; }
.eyebrow span { color: var(--text); font-weight: 700; }
.header-role { margin: 2px 0 0; font-family: Manrope, sans-serif; font-size: .9rem; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; margin-right: 3px; padding: 7px 12px; color: #166534; background: var(--green-pale); border: 1px solid #bbf7d0; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.status-pill > span { margin: 0; width: 7px; height: 7px; box-shadow: none; }
.mobile-bar, .mobile-drawer, .drawer-backdrop { display: none; }

main { width: min(100%, 1510px); margin: 0 auto; }
.section { padding: 82px clamp(24px, 4vw, 62px); scroll-margin-top: 68px; }
.hero-section { padding-top: 38px; }
.hero-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr); gap: clamp(28px, 5vw, 74px); align-items: stretch; padding: clamp(34px, 4.8vw, 72px); overflow: hidden; color: #fff; background: var(--navy); border-radius: 24px; box-shadow: 0 18px 45px rgba(15, 23, 42, .16); }
.hero-card::after { content: ""; position: absolute; width: 580px; height: 580px; right: -280px; top: -360px; background: radial-gradient(circle, rgba(59,130,246,.35), rgba(37,99,235,0) 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.availability-badge { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: 28px; padding: 8px 13px; color: #dbeafe; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; font-size: .73rem; font-weight: 600; }
.availability-badge > span { margin: 0; box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.overline { margin: 0 0 12px; color: var(--blue); text-transform: uppercase; letter-spacing: .15em; font-size: .69rem; font-weight: 800; }
.hero-copy .overline { color: #93c5fd; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { font-family: Manrope, sans-serif; letter-spacing: -.035em; }
h1 { max-width: 20ch; margin: 0; font-size: clamp(2.05rem, 3.7vw, 3.75rem); line-height: 1.1; }
.hero-lede { max-width: 76ch; margin: 25px 0 0; color: #cbd5e1; font-size: clamp(.9rem, 1.25vw, 1.02rem); line-height: 1.82; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hero-card .button-secondary { color: #fff; background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.hero-card .text-button { color: #bfdbfe; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 16px 25px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #cbd5e1; font-size: .76rem; }
.hero-contact a, .hero-contact span { display: inline-flex; align-items: center; gap: 7px; }
.hero-contact svg { width: 15px; height: 15px; color: #60a5fa; }
.profile-panel { position: relative; z-index: 1; align-self: center; overflow: hidden; background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.22); }
.profile-photo-wrap { position: relative; aspect-ratio: 4/4.3; overflow: hidden; background: #dbeafe; }
.profile-photo-wrap::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, rgba(15,23,42,.35)); }
.profile-photo-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 21%; }
.profile-status { position: absolute; z-index: 2; right: 15px; bottom: 14px; width: 15px; height: 15px; background: #22c55e; border: 3px solid #fff; border-radius: 50%; }
.profile-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 17px; color: var(--text); }
.profile-meta > span { color: var(--muted-dark); font-size: .7rem; font-weight: 700; }
.profile-links { display: flex; gap: 6px; }
.profile-focus { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 17px 16px; }
.profile-focus span { padding: 4px 7px; color: #344054; background: #f2f4f7; border-radius: 6px; font-size: .63rem; font-weight: 600; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.stat-card { min-width: 0; display: grid; grid-template-columns: 40px 1fr; gap: 13px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 3px 10px rgba(16,24,40,.025); }
.stat-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-icon.blue { color: #2563eb; background: #eff6ff; }.stat-icon.violet { color: #7c3aed; background: #f5f3ff; }.stat-icon.green { color: #16a34a; background: #f0fdf4; }.stat-icon.amber { color: #d97706; background: #fffbeb; }
.stat-card strong { display: block; margin-bottom: 1px; font-family: Manrope, sans-serif; font-size: .96rem; line-height: 1.3; }
.stat-card p { margin: 0; color: var(--muted-dark); font-size: .73rem; font-weight: 700; }

.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 34px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.section-heading h2 { max-width: 21ch; margin: 0; font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.13; }
.section-intro { max-width: 64ch; margin: 15px 0 0; color: var(--muted); font-size: .9rem; }
.section-number { color: #d0d5dd; font-family: Manrope, sans-serif; font-size: .78rem; font-weight: 700; }
.content-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 18px; }
.about-copy { padding: clamp(28px, 4vw, 48px); }
.about-copy p { margin: 0 0 18px; color: var(--muted-dark); font-size: .91rem; line-height: 1.85; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .lead { color: var(--text); font-size: clamp(1.05rem, 1.6vw, 1.23rem); font-weight: 600; }
.bring-card { padding: 30px; background: var(--blue-pale); border-color: #dbeafe; box-shadow: none; }
.card-label { margin: 0 0 13px; color: var(--blue); text-transform: uppercase; letter-spacing: .11em; font-size: .65rem; font-weight: 800; }
.bring-card ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.bring-card li { position: relative; padding: 13px 0 13px 25px; border-bottom: 1px solid #dbeafe; color: #344054; font-size: .83rem; font-weight: 600; }
.bring-card li:last-child { border: 0; }
.bring-card li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

.experience-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 28px; }
.timeline-rail { position: sticky; top: 100px; align-self: start; }
.timeline-rail > p { margin: 0 0 12px; color: #98a2b3; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; font-weight: 800; }
#experience-tabs { position: relative; display: grid; gap: 4px; padding-left: 15px; }
#experience-tabs::before { content: ""; position: absolute; left: 3px; top: 13px; bottom: 13px; width: 1px; background: var(--border); }
.timeline-tab { position: relative; display: grid; padding: 8px 10px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; text-align: left; cursor: pointer; }
.timeline-tab::before { content: ""; position: absolute; left: -15px; top: 14px; width: 7px; height: 7px; background: #d0d5dd; border: 3px solid var(--bg); border-radius: 50%; }
.timeline-tab strong { font-size: .71rem; line-height: 1.35; }
.timeline-tab small { font-size: .61rem; }
.timeline-tab:hover, .timeline-tab.active { color: var(--blue); background: var(--blue-pale); }
.timeline-tab.active::before { background: var(--blue); }
.experience-list { display: grid; gap: 14px; }
.experience-card { position: relative; min-width: 0; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 4px 15px rgba(16,24,40,.035); transition: border-color .2s, box-shadow .2s; }
.experience-card:hover { border-color: #cbd5e1; box-shadow: var(--shadow); }
.experience-meta { padding-right: 20px; border-right: 1px solid var(--border); }
.experience-meta .date { margin: 0 0 12px; color: var(--blue); font-size: .72rem; font-weight: 700; }
.experience-meta .type { display: inline-block; margin-top: 10px; padding: 4px 7px; color: var(--muted-dark); background: #f2f4f7; border-radius: 5px; font-size: .61rem; font-weight: 600; }
.experience-body { min-width: 0; }
.experience-body h3 { margin: 0; font-size: 1.15rem; }
.experience-role { margin: 3px 0 13px; color: var(--muted-dark); font-size: .79rem; font-weight: 700; }
.experience-description { margin: 0 0 15px; color: var(--muted); font-size: .8rem; }
.experience-body ul { margin: 0; padding-left: 17px; }
.experience-body li { margin: 7px 0; color: var(--muted-dark); font-size: .78rem; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tag { padding: 5px 8px; color: #344054; background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; font-size: .61rem; font-weight: 600; }
.inline-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 17px; }
.inline-links a { display: inline-flex; align-items: center; gap: 5px; color: var(--blue); font-size: .7rem; font-weight: 700; }
.inline-links svg { width: 13px; height: 13px; }

.project-list { display: grid; gap: 24px; }
.project-card { display: grid; grid-template-columns: minmax(310px, .9fr) minmax(0, 1.1fr); overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 19px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(16,24,40,.09); }
.project-card:nth-child(even) .project-visual { order: 2; }
.project-visual { position: relative; min-height: 420px; display: grid; place-items: center; overflow: hidden; padding: 40px; background: var(--project-bg, #eef2ff); }
.project-visual::before { content: ""; position: absolute; width: 280px; height: 280px; top: -100px; right: -80px; background: rgba(255,255,255,.34); border-radius: 50%; }
.project-browser { position: relative; z-index: 1; width: 100%; max-width: 490px; overflow: hidden; background: #fff; border: 5px solid rgba(255,255,255,.38); border-radius: 12px; box-shadow: 0 22px 45px rgba(15,23,42,.18); transform: rotate(-1deg); }
.browser-bar { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px; background: #f8fafc; border-bottom: 1px solid var(--border); }
.browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #d0d5dd; }
.browser-url { width: 45%; height: 7px; margin-left: 7px; background: #eaecf0; border-radius: 10px; }
.preview-screen { min-height: 255px; display: grid; grid-template-columns: 58px 1fr; background: #fff; }
.preview-nav { padding: 14px 9px; background: var(--preview-dark, #111827); }
.preview-nav b { display: block; width: 28px; height: 7px; margin-bottom: 22px; background: var(--project-accent, #60a5fa); border-radius: 4px; }
.preview-nav i { display: block; width: 100%; height: 5px; margin: 11px 0; background: rgba(255,255,255,.2); border-radius: 4px; }
.preview-main { padding: 20px; }
.preview-title { width: 55%; height: 13px; background: #1f2937; border-radius: 4px; }
.preview-subtitle { width: 75%; height: 7px; margin-top: 9px; background: #d0d5dd; border-radius: 4px; }
.preview-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }
.preview-cards i { height: 58px; background: var(--project-soft, #eff6ff); border: 1px solid var(--project-line, #dbeafe); border-radius: 7px; }
.preview-lines { display: grid; gap: 8px; margin-top: 17px; }
.preview-lines i { height: 8px; background: #f2f4f7; border-radius: 3px; }
.mobile-preview { display: grid; grid-template-columns: repeat(2, 138px); gap: 17px; }
.phone { position: relative; z-index: 1; aspect-ratio: 9/18; overflow: hidden; padding: 10px; background: #111827; border: 4px solid rgba(255,255,255,.55); border-radius: 25px; box-shadow: 0 22px 40px rgba(15,23,42,.22); }
.phone:nth-child(2) { transform: translateY(25px); }
.phone-screen { position: relative; height: 100%; padding: 18px 10px; overflow: hidden; background: linear-gradient(165deg, #fff, var(--project-soft, #eff6ff)); border-radius: 15px; }
.phone-screen::before { content: ""; position: absolute; top: 5px; left: 50%; width: 35px; height: 5px; background: #111827; border-radius: 10px; transform: translateX(-50%); }
.call-avatar { width: 55px; height: 55px; margin: 22px auto 12px; display: grid; place-items: center; color: #fff; background: var(--project-accent, #2563eb); border-radius: 50%; font-family: Manrope; font-size: .72rem; font-weight: 800; }
.call-line { width: 65%; height: 6px; margin: 7px auto; background: #cbd5e1; border-radius: 5px; }
.call-controls { display: flex; justify-content: center; gap: 7px; margin-top: 45px; }
.call-controls i { width: 25px; height: 25px; background: #e2e8f0; border-radius: 50%; }.call-controls i:last-child { background: #ef4444; }
.project-content { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 56px); }
.project-index { display: flex; align-items: center; gap: 12px; color: #98a2b3; text-transform: uppercase; letter-spacing: .13em; font-size: .62rem; font-weight: 800; }
.project-index::after { content: ""; width: 42px; height: 1px; background: var(--border); }
.project-content h3 { margin: 14px 0 3px; font-size: clamp(1.6rem, 2.5vw, 2.35rem); }
.project-category { margin: 0 0 18px; color: var(--blue); font-size: .73rem; font-weight: 700; }
.project-objective { margin: 0; color: var(--muted-dark); font-size: .84rem; line-height: 1.75; }
.contribution { margin: 19px 0 0; padding: 14px 16px; color: #344054; background: #f8fafc; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; font-size: .77rem; }
.contribution strong { display: block; margin-bottom: 3px; font-size: .68rem; }
.feature-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; }
.feature-list li { padding: 5px 8px; color: var(--muted-dark); background: #fff; border: 1px solid var(--border); border-radius: 6px; font-size: .62rem; }
.project-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.project-actions .button { min-height: 40px; padding: 8px 12px; font-size: .72rem; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.skill-card { position: relative; padding: 28px; overflow: hidden; background: #fff; border: 1px solid var(--border); border-radius: 15px; }
.skill-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--skill-color, var(--blue)); }
.skill-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.skill-head span { width: 40px; height: 40px; display: grid; place-items: center; color: var(--skill-color, var(--blue)); background: var(--skill-bg, var(--blue-pale)); border-radius: 10px; }
.skill-head h3 { margin: 0; font-size: 1rem; }
.skill-card ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 0; padding: 0; list-style: none; }
.skill-card li { position: relative; padding-left: 13px; color: var(--muted-dark); font-size: .74rem; }
.skill-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 4px; height: 4px; background: var(--skill-color, var(--blue)); border-radius: 50%; }

.education-card { display: grid; grid-template-columns: 72px minmax(260px, .8fr) minmax(300px, 1.2fr); gap: 28px; align-items: center; padding: 34px; }
.education-mark { width: 64px; height: 64px; display: grid; place-items: center; color: var(--blue); background: var(--blue-pale); border-radius: 16px; }
.education-mark svg { width: 29px; height: 29px; }
.education-card h3, .recognition-card h3 { margin: 0; font-size: 1.35rem; }
.education-card .institution { margin: 5px 0 0; color: var(--muted-dark); font-size: .83rem; font-weight: 600; }
.education-card .date { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.coursework { padding-left: 28px; border-left: 1px solid var(--border); }
.coursework > div { display: flex; flex-wrap: wrap; gap: 7px; }
.coursework span { padding: 6px 9px; color: var(--muted-dark); background: #f8fafc; border: 1px solid var(--border); border-radius: 6px; font-size: .68rem; }
.recognition-card { display: grid; grid-template-columns: 68px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 33px; background: linear-gradient(115deg, #fffbeb, #fff 55%); border: 1px solid #fde68a; border-radius: var(--radius); }
.award-icon { width: 60px; height: 60px; display: grid; place-items: center; color: #d97706; background: #fef3c7; border-radius: 15px; }
.award-icon svg { width: 28px; height: 28px; }
.recognition-card p:not(.card-label) { margin: 8px 0 0; color: var(--muted-dark); font-size: .81rem; }
.recognition-type { padding: 6px 10px; color: #92400e; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 999px; font-size: .64rem; font-weight: 700; }

.contact-section { padding-bottom: 46px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(35px, 6vw, 86px); padding: clamp(34px, 5vw, 68px); color: #fff; background: #0f172a; border-radius: 22px; }
.contact-copy { max-width: 760px; }
.overline.light { color: #93c5fd; }
.contact-copy h2 { max-width: 12ch; margin: 0; font-size: clamp(2.1rem, 3.8vw, 3.55rem); line-height: 1.12; }
.contact-copy > p:not(.overline) { max-width: 58ch; color: #cbd5e1; font-size: .87rem; }
.contact-details { display: grid; gap: 13px; margin-top: 28px; }
.contact-details > *, .contact-details a { display: flex; align-items: center; gap: 11px; }
.contact-details > * > span { width: 36px; height: 36px; display: grid; place-items: center; color: #93c5fd; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; }
.contact-details svg { width: 16px; height: 16px; }
.contact-details div > div, .contact-details a > div { display: grid; }
.contact-details small { color: #94a3b8; font-size: .64rem; }
.contact-details strong { font-size: .76rem; }
.contact-socials { display: flex; gap: 9px; margin-top: 27px; }
.contact-socials a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; color: #e2e8f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 8px; font-size: .7rem; font-weight: 700; }
.contact-socials svg { width: 15px; height: 15px; }
.contact-form { padding: 28px; color: var(--text); background: #fff; border-radius: 16px; }
.form-heading h3 { margin: 0; font-size: 1.25rem; }
.form-heading p { margin: 4px 0 20px; color: var(--muted); font-size: .72rem; }
.contact-form label { display: grid; gap: 6px; margin-bottom: 13px; color: #344054; font-size: .69rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.contact-form input, .contact-form textarea { width: 100%; color: var(--text); background: #fff; border: 1px solid #d0d5dd; border-radius: 8px; padding: 10px 11px; font-size: .76rem; outline: none; transition: border-color .2s, box-shadow .2s; }
.contact-form textarea { resize: vertical; min-height: 112px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.contact-form [aria-invalid="true"] { border-color: #dc2626; box-shadow: 0 0 0 3px rgba(220,38,38,.08); }
.field-error { min-height: 0; color: #b42318; font-size: .61rem; font-weight: 500; }
.honeypot { position: absolute !important; left: -9999px !important; }
.form-submit[disabled] { opacity: .7; cursor: wait; transform: none; }
.form-status { margin: 10px 0 0; color: var(--muted); font-size: .62rem; text-align: center; }
.form-status.error { color: #b42318; }
.form-status.success { color: #166534; }
.page-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px clamp(24px, 4vw, 62px) 38px; color: var(--muted); border-top: 1px solid var(--border); font-size: .68rem; }
.page-footer p { margin: 0; }
.page-footer a { color: var(--blue); font-weight: 700; }

.case-dialog { width: min(850px, calc(100% - 30px)); max-height: calc(100vh - 30px); padding: 0; color: var(--text); background: #fff; border: 0; border-radius: 18px; box-shadow: 0 30px 80px rgba(15,23,42,.3); }
.case-dialog::backdrop { background: rgba(15,23,42,.68); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; }
.dialog-close { position: sticky; z-index: 2; top: 14px; float: right; width: 38px; height: 38px; display: grid; place-items: center; margin: 14px; background: #fff; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; box-shadow: var(--shadow); }
.case-header { padding: 54px 48px 34px; color: #fff; background: var(--navy); }
.case-header p { margin: 0 0 8px; color: #93c5fd; text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; font-weight: 700; }
.case-header h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); }
.case-header span { display: inline-block; margin-top: 12px; color: #cbd5e1; font-size: .79rem; }
.case-body { display: grid; gap: 27px; padding: 38px 48px 48px; }
.case-block h3 { margin: 0 0 8px; font-size: .9rem; }
.case-block p, .case-block li { color: var(--muted-dark); font-size: .78rem; }
.case-block p { margin: 0; }
.case-block ul { margin: 0; padding-left: 18px; columns: 2; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: none; }

body.sidebar-collapsed { --sidebar: var(--sidebar-collapsed); }
body.sidebar-collapsed .identity-copy, body.sidebar-collapsed .location-line span, body.sidebar-collapsed .nav-label, body.sidebar-collapsed .nav-item span, body.sidebar-collapsed .availability p, body.sidebar-collapsed .sidebar-footer .button span, body.sidebar-collapsed .sidebar-socials p { display: none; }
body.sidebar-collapsed .sidebar-top { justify-content: center; padding-inline: 12px; flex-wrap: wrap; }
body.sidebar-collapsed .identity { flex: 0 0 auto; }
body.sidebar-collapsed .collapse-button { position: absolute; right: -14px; top: 69px; transform: rotate(0); box-shadow: var(--shadow); }
body.sidebar-collapsed .location-line { justify-content: center; margin-inline: 15px; padding-inline: 0; }
body.sidebar-collapsed .nav-item { justify-content: center; padding-inline: 0; }
body.sidebar-collapsed .nav-item::after { content: attr(data-tooltip); position: absolute; left: 60px; z-index: 10; padding: 6px 9px; color: #fff; background: var(--navy); border-radius: 6px; font-size: .65rem; opacity: 0; visibility: hidden; transform: translateX(-4px); transition: .18s; pointer-events: none; }
body.sidebar-collapsed .nav-item:hover::after, body.sidebar-collapsed .nav-item:focus-visible::after { opacity: 1; visibility: visible; transform: translateX(0); }
body.sidebar-collapsed .availability { justify-content: center; }
body.sidebar-collapsed .sidebar-footer .button { padding-inline: 0; }
body.sidebar-collapsed .sidebar-socials { display: grid; justify-content: center; }

@media (max-width: 1180px) {
  .status-pill { display: none; }
  .hero-card { grid-template-columns: minmax(0, 1.4fr) minmax(225px, .6fr); padding: 40px; gap: 36px; }
  h1 { font-size: clamp(2rem, 4vw, 3.15rem); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card { grid-template-columns: minmax(280px, .85fr) minmax(0, 1.15fr); }
  .project-visual { min-height: 380px; padding: 28px; }
}

@media (max-width: 920px) {
  :root { --header: 64px; }
  .sidebar, .top-header { display: none; }
  .page-shell { margin-left: 0; padding-top: var(--header); }
  .mobile-bar { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header); display: flex; align-items: center; justify-content: space-between; padding: 0 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); backdrop-filter: blur(12px); }
  .mobile-identity { display: flex; align-items: center; gap: 10px; }
  .mobile-identity strong { font-family: Manrope; font-size: .82rem; }
  .menu-button, .drawer-header button { width: 40px; height: 40px; display: grid; place-items: center; background: #fff; border: 1px solid var(--border); border-radius: 9px; }
  .drawer-backdrop { position: fixed; inset: 0; z-index: 58; display: block; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: .25s; }
  .mobile-drawer { position: fixed; inset: 0 0 0 auto; z-index: 60; width: min(340px, 88vw); display: flex; flex-direction: column; gap: 18px; padding: 20px; background: #fff; box-shadow: -20px 0 50px rgba(15,23,42,.18); transform: translateX(105%); transition: transform .25s ease; }
  body.drawer-open .mobile-drawer { transform: none; }
  body.drawer-open .drawer-backdrop { opacity: 1; visibility: visible; }
  .drawer-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--border); font-family: Manrope; font-size: .9rem; }
  #mobile-nav { display: grid; gap: 3px; overflow: auto; }
  #mobile-nav .nav-item.active::before { left: -20px; }
  .hero-card { grid-template-columns: 1fr; }
  .profile-panel { display: grid; grid-template-columns: 150px 1fr; max-width: 420px; align-items: center; }
  .profile-photo-wrap { grid-row: auto; aspect-ratio: .85; }
  .profile-meta { align-self: end; }
  .about-grid { grid-template-columns: 1fr; }
  .experience-layout { grid-template-columns: 1fr; }
  .timeline-rail { position: static; }
  #experience-tabs { display: flex; overflow-x: auto; padding: 0 0 8px; }
  #experience-tabs::before, .timeline-tab::before { display: none; }
  .timeline-tab { min-width: max-content; }
  .experience-card { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .experience-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .experience-meta .date, .experience-meta .type { margin: 0; }
  .project-card, .project-card:nth-child(even) { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-visual { order: 0; }
  .project-visual { min-height: 350px; }
  .education-card { grid-template-columns: 64px 1fr; }
  .coursework { grid-column: 1 / -1; padding: 22px 0 0; border-top: 1px solid var(--border); border-left: 0; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 72px; }
  .section { padding: 54px 16px; }
  .hero-section { padding-top: 16px; }
  .hero-card { padding: 28px 22px; border-radius: 18px; }
  .availability-badge { align-items: flex-start; border-radius: 10px; line-height: 1.45; }
  h1 { font-size: clamp(1.85rem, 8.5vw, 2.55rem); }
  .hero-lede { font-size: .84rem; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { width: 100%; }
  .hero-actions .text-button { justify-content: center; width: 100%; }
  .profile-panel { grid-template-columns: 1fr; width: 100%; max-width: none; }
  .profile-photo-wrap { min-height: 0; aspect-ratio: 4 / 3; }
  .profile-photo-wrap img { object-position: 50% 24%; }
  .profile-meta { padding: 13px 15px; }
  .profile-links { display: flex; }
  .stats-grid { grid-template-columns: 1fr; }
  .section-heading h2 { font-size: 2rem; }
  .section-number { display: none; }
  .about-copy, .bring-card { padding: 24px; }
  .timeline-rail { display: none; }
  .experience-list { gap: 12px; }
  .experience-card { gap: 13px; padding: 19px; }
  .experience-meta { padding-bottom: 12px; }
  .experience-body h3 { font-size: 1rem; line-height: 1.3; }
  .experience-role { margin-bottom: 10px; font-size: .75rem; }
  .experience-body ul { padding-left: 16px; }
  .experience-body li { margin: 6px 0; font-size: .73rem; line-height: 1.55; }
  .tag-list { margin-top: 13px; }
  .inline-links { margin-top: 14px; }
  .project-visual { min-height: 285px; padding: 22px; }
  .preview-screen { min-height: 190px; }
  .mobile-preview { grid-template-columns: repeat(2, 105px); gap: 10px; }
  .phone { border-width: 3px; border-radius: 19px; }
  .call-controls { margin-top: 26px; }
  .project-content { padding: 26px 22px 30px; }
  .project-actions .button { width: 100%; }
  .skills-grid { grid-template-columns: 1fr; }
  .skill-card { padding: 23px; }
  .skill-card ul { grid-template-columns: 1fr; }
  .education-card { grid-template-columns: 1fr; padding: 25px; }
  .education-mark { width: 52px; height: 52px; }
  .coursework { grid-column: auto; }
  .recognition-card { grid-template-columns: 54px 1fr; padding: 25px; }
  .award-icon { width: 50px; height: 50px; }
  .recognition-type { grid-column: 1 / -1; justify-self: start; }
  .contact-panel { grid-template-columns: 1fr; padding: 29px 20px; border-radius: 18px; }
  .contact-copy h2 { font-size: 2.25rem; }
  .contact-form { padding: 22px 17px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .page-footer { flex-direction: column; align-items: flex-start; padding-inline: 16px; }
  .case-header, .case-body { padding-left: 24px; padding-right: 24px; }
  .case-block ul { columns: 1; }
}

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