:root {
  --bg: #edf1f8;
  --panel: rgba(255, 255, 255, 0.54);
  --card: rgba(255, 255, 255, 0.68);
  --ink: #162033;
  --muted: #677189;
  --line: rgba(255, 255, 255, 0.72);
  --line-soft: rgba(38, 52, 82, 0.1);
  --accent: #ff642e;
  --accent-dark: #e84713;
  --cream: rgba(255, 255, 255, 0.48);
  --sidebar-width: 248px;
  --sidebar-collapsed-width: 72px;
  --shadow: 0 24px 65px rgba(48, 61, 92, 0.12);
  --shadow-soft: 0 12px 34px rgba(48, 61, 92, 0.08);
  --glass-surface: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: blur(3px);
  --glass-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 0 0 rgba(255, 255, 255, 0);
  --radius: 22px;
}

html[data-theme="dark"] {
  --bg: #030303;
  --panel: rgba(5, 5, 5, 0.8);
  --card: rgba(14, 14, 14, 0.76);
  --ink: #f7f7f7;
  --muted: #a1a1a1;
  --line: rgba(255, 255, 255, 0.17);
  --line-soft: rgba(255, 255, 255, 0.09);
  --cream: rgba(255, 255, 255, 0.065);
  --accent: #ff642e;
  --accent-dark: #e84713;
  --glass-surface: rgba(10, 10, 10, 0.46);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.52);
  --shadow-soft: 0 14px 36px rgba(0, 0, 0, 0.36);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 8%, rgba(137, 116, 255, 0.2), transparent 28%),
    radial-gradient(circle at 32% 34%, rgba(77, 211, 197, 0.16), transparent 27%),
    radial-gradient(circle at 82% 75%, rgba(255, 100, 46, 0.15), transparent 27%),
    linear-gradient(140deg, #f7f9fd 0%, var(--bg) 48%, #f6eef9 100%);
  background-attachment: fixed;
  font-family: "Plus Jakarta Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 76% 8%, rgba(255, 255, 255, 0.075), transparent 27%),
    radial-gradient(circle at 30% 38%, rgba(255, 255, 255, 0.045), transparent 29%),
    radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.035), transparent 26%),
    linear-gradient(145deg, #080808 0%, var(--bg) 58%, #090909 100%);
}
html[data-theme="dark"] body::before,
html[data-theme="dark"] body::after {
  content: "";
  position: fixed;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
}
html[data-theme="dark"] body::before {
  opacity: .5;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.38) 0 1px, transparent 1.4px),
    radial-gradient(circle, rgba(255,255,255,.13) 0 1px, transparent 1.5px);
  background-position: 0 0, 13px 17px;
  background-size: 31px 31px, 67px 67px;
  -webkit-mask-image: radial-gradient(ellipse at 58% 36%, #000 8%, rgba(0,0,0,.78) 54%, transparent 92%);
  mask-image: radial-gradient(ellipse at 58% 36%, #000 8%, rgba(0,0,0,.78) 54%, transparent 92%);
  animation: ai-dot-drift 24s linear infinite, ai-dot-breathe 3.8s ease-in-out infinite alternate;
}
html[data-theme="dark"] body::after {
  opacity: .65;
  background:
    radial-gradient(circle at 18% 19%, rgba(255,255,255,.9) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 72% 13%, rgba(255,255,255,.72) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 88% 46%, rgba(255,255,255,.82) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 43% 64%, rgba(255,255,255,.68) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 16% 82%, rgba(255,255,255,.78) 0 1.5px, transparent 2.8px),
    radial-gradient(circle at 69% 88%, rgba(255,255,255,.8) 0 1.5px, transparent 2.8px);
  animation: ai-node-pulse 4.6s ease-in-out infinite alternate;
}
@keyframes ai-dot-drift { to { transform: translate3d(31px, 31px, 0); } }
@keyframes ai-dot-breathe { from { opacity: .28; } to { opacity: .58; } }
@keyframes ai-node-pulse { from { opacity: .25; filter: blur(.2px); } to { opacity: .8; filter: blur(0); } }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-icon { width: 17px; height: 17px; flex: 0 0 17px; display: inline-block; object-fit: contain; }
html:not([data-theme="dark"]) .brand-icon-github { filter: invert(1); }
.whatsapp-button .brand-icon-whatsapp,
.primary-button .brand-icon-whatsapp { filter: brightness(0) invert(1); }
.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--sidebar-width);
  padding: 24px 18px 18px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: white; background: var(--accent); border-radius: 12px 12px 12px 4px;
  font-size: 13px; font-weight: 850; letter-spacing: -.4px; box-shadow: 0 8px 22px rgba(255,91,36,.22);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: -.2px; }
.brand small { color: var(--muted); margin-top: 3px; font-size: 11px; }
.quick-search {
  width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.quick-search svg { width: 17px; }
.quick-search span { flex: 1; text-align: left; font-size: 13px; }
kbd { padding: 2px 5px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; font-size: 10px; box-shadow: 0 1px 0 var(--line); }
.side-nav { margin-top: 18px; }
.nav-link {
  min-height: 44px; padding: 0 12px; margin: 3px 0; display: flex; align-items: center; gap: 12px;
  color: var(--muted); border-radius: 10px; font-size: 13px; font-weight: 550; transition: .2s ease;
}
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover { color: var(--ink); background: var(--cream); }
.nav-link.active { color: var(--ink); background: var(--cream); }
.nav-link.active svg { color: var(--accent); }
.nav-count { margin-left: auto; padding: 2px 7px; color: var(--muted); background: var(--card); border-radius: 999px; font-size: 10px; }
.nav-label { margin: 24px 12px 8px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 1.4px; text-transform: uppercase; }
.availability-card { margin-top: auto; padding: 16px; background: var(--ink); color: var(--bg); border-radius: 15px; }
.status-line { display: flex; gap: 7px; align-items: center; font-size: 9px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; opacity: .8; }
.status-line i, .top-status i { width: 7px; height: 7px; background: #4cdd86; border-radius: 50%; box-shadow: 0 0 0 4px rgba(76,221,134,.12); }
.availability-card p { margin: 11px 0 16px; font-size: 14px; line-height: 1.45; }
.availability-card a { font-size: 12px; color: var(--accent); font-weight: 750; }
.availability-card a { display: inline-flex; align-items: center; gap: 7px; }
.availability-card .brand-icon { width: 14px; height: 14px; flex-basis: 14px; }
.availability-card a span { margin-left: 3px; }
.sidebar-foot { margin: 14px 6px 0; color: var(--muted); font-size: 10px; }
.sidebar-close, .menu-button { display: none; }

.content-shell { margin-left: var(--sidebar-width); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: 70px; padding: 0 38px; display: flex; align-items: center;
  justify-content: space-between; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.breadcrumb b { opacity: .45; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-status { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--muted); font-size: 11px; }
.icon-button, .print-button { display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); cursor: pointer; }
.icon-button { width: 38px; height: 38px; border-radius: 10px; }
.sidebar .sidebar-close { display: none; }
.topbar .menu-button { display: none; }
.icon-button svg { width: 17px; height: 17px; }
.print-button { height: 38px; padding: 0 13px; gap: 8px; border-radius: 10px; font-size: 11px; font-weight: 650; }
.print-button svg { width: 16px; }
.moon-icon { display: none; }
html[data-theme="dark"] .moon-icon { display: block; }
html[data-theme="dark"] .sun-icon { display: none; }

main { padding: 0 4.5vw 70px; overflow: hidden; }
.hero-section { width: 100%; min-width: 0; padding: clamp(72px, 9vw, 140px) 0 54px; text-align: center; max-width: 1100px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.6px; }
.eyebrow i { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.hero-section h1 { margin: 0; font-size: clamp(45px, 6vw, 88px); line-height: .98; letter-spacing: clamp(-4px, -.05em, -1.5px); font-weight: 720; }
.hero-section h1 em { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.hero-line { max-width: 100%; }
.hero-copy { max-width: 650px; margin: 27px auto 36px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); line-height: 1.7; }
.hero-search {
  max-width: 900px; height: 66px; margin: 0 auto; padding: 6px 9px 6px 20px; display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s;
}
.hero-search:focus-within { border-color: var(--accent); box-shadow: 0 18px 55px rgba(255,91,36,.12); }
.hero-search svg { color: var(--muted); }
.hero-search input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; }
.hero-search input::placeholder { color: var(--muted); }
.search-shortcut { display: flex; gap: 4px; }
.search-feedback { height: 15px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.summary-block { padding: 26px 28px 28px; min-width: 0; }
.summary-block + .summary-block { border-left: 1px solid var(--line); }
.block-heading { min-height: 22px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.more-button { border: 0; background: none; color: var(--muted); cursor: default; letter-spacing: 2px; }
.soft-label { padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; font-size: 8px; }
.profile-row { display: flex; align-items: center; gap: 14px; }
.avatar { position: relative; width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; color: white; background: #21211f; border-radius: 50%; font-size: 14px; font-weight: 800; }
.avatar span { position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; background: #4cdd86; border: 3px solid var(--card); border-radius: 50%; }
.profile-row h2 { margin: 0 0 5px; font-size: 15px; letter-spacing: -.2px; }
.profile-row p, .about-copy { margin: 0; color: var(--muted); font-size: 11px; }
.about-copy { margin: 18px 0; max-width: 360px; line-height: 1.65; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
.text-link svg { width: 14px; transition: transform .2s; }
.text-link:hover svg { transform: translateX(4px); }
.skill-list > div, .timeline-mini > div { display: flex; align-items: center; padding: 10px 0; }
.skill-list > div + div, .timeline-mini > div + div { border-top: 1px solid var(--line-soft); }
.skill-icon { width: 33px; height: 33px; flex: 0 0 auto; display: grid; place-items: center; margin-right: 11px; border-radius: 8px; font-size: 9px; font-weight: 850; }
.skill-icon.orange { color: white; background: var(--accent); }
.skill-icon.dark { color: var(--bg); background: var(--ink); }
.skill-icon.cream { background: var(--cream); }
.skill-list p, .timeline-mini p { min-width: 0; flex: 1; margin: 0; }
.skill-list strong, .skill-list small, .timeline-mini strong, .timeline-mini small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skill-list strong, .timeline-mini strong { font-size: 11px; }
.skill-list small, .timeline-mini small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.skill-list b { color: var(--muted); font-size: 9px; font-weight: 500; }
.timeline-mini > div > span { width: 44px; flex: 0 0 auto; color: var(--accent); font-family: Georgia, serif; font-size: 14px; }

.spotlight { min-height: 156px; margin: 56px 0 70px; padding: 16px 25px 16px 16px; display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 25px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.spotlight-art { position: relative; align-self: stretch; min-height: 122px; overflow: hidden; background: var(--accent); border-radius: 13px; }
.spotlight-art span { position: absolute; width: 120px; height: 120px; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.spotlight-art span:nth-child(1) { left: -32px; top: 30px; }
.spotlight-art span:nth-child(2) { left: 20px; top: 2px; }
.spotlight-art span:nth-child(3) { left: 74px; top: 32px; }
.spotlight-art span:nth-child(4) { left: 28px; top: 64px; background: rgba(255,255,255,.08); }
.tiny-label, .section-kicker, .project-number { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1.4px; }
.spotlight-copy h2 { margin: 7px 0 5px; font-size: 22px; letter-spacing: -.6px; }
.spotlight-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.primary-button { height: 48px; padding: 0 19px; display: inline-flex; align-items: center; gap: 11px; color: white; background: var(--accent); border-radius: 11px; font-size: 11px; font-weight: 750; box-shadow: 0 10px 25px rgba(255,91,36,.2); transition: transform .2s, background .2s; }
.primary-button:hover { transform: translateY(-2px); background: var(--accent-dark); }
.primary-button svg { width: 15px; }

.projects-section { padding-top: 20px; }
.section-heading { margin-bottom: 30px; display: flex; align-items: end; justify-content: space-between; }
.section-heading h1,
.section-heading h2 { margin: 7px 0 0; font-size: clamp(31px, 4vw, 52px); line-height: 1; letter-spacing: -2px; }
.project-total { display: flex; align-items: center; gap: 11px; }
.project-total strong { color: var(--accent); font-family: Georgia, serif; font-size: 39px; font-weight: 400; }
.project-total span { color: var(--muted); font-size: 9px; line-height: 1.35; text-transform: uppercase; letter-spacing: .7px; }
.projects-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-card { min-width: 0; background: var(--card); }
.project-card:nth-child(even) { border-left: 1px solid var(--line); }
.project-card:nth-child(n+3) { border-top: 1px solid var(--line); }
.project-visual { position: relative; min-height: 275px; margin: 14px 14px 0; overflow: hidden; border-radius: 12px; }
.visual-label { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 5px 8px; color: white; background: rgba(18,18,16,.78); border-radius: 5px; font-size: 8px; font-weight: 750; letter-spacing: .8px; }
.visual-edusima { background: #202322; }
.mock-window { position: absolute; left: 10%; right: -5%; top: 25%; bottom: -10%; padding: 14px; background: #f4f0e8; border-radius: 13px 13px 0 0; transform: rotate(-2deg); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.mock-window > i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; background: #d2cec4; border-radius: 50%; }
.mock-layout { margin-top: 14px; display: grid; grid-template-columns: 25% 1fr; gap: 9px; }
.mock-layout b { grid-row: span 3; height: 170px; background: var(--accent); border-radius: 7px; }
.mock-layout span { height: 42px; background: #ddd8cd; border-radius: 6px; }
.visual-warung { background: #f0c24a; }
.phone-mock { position: absolute; width: 138px; height: 245px; left: 50%; top: 48px; padding: 24px 13px; background: #fffdf5; border: 6px solid #24231f; border-radius: 25px; transform: translateX(-50%) rotate(5deg); box-shadow: 14px 18px 0 rgba(28,27,23,.15); }
.phone-mock b { font-size: 14px; }
.phone-mock i { display: block; height: 35px; margin-top: 13px; background: #eee8d8; border-radius: 7px; }
.phone-mock i:nth-of-type(1) { height: 60px; background: var(--accent); }
.visual-xr { background: #ccc5ff; }
.orbital { position: absolute; left: 50%; top: 52%; width: 152px; height: 152px; display: grid; place-items: center; border: 1px solid rgba(28,27,23,.38); border-radius: 50%; transform: translate(-50%,-50%); }
.orbital::before, .orbital::after { content: ""; position: absolute; inset: 21px -40px; border: 1px solid rgba(28,27,23,.3); border-radius: 50%; transform: rotate(50deg); }
.orbital::after { transform: rotate(-50deg); }
.orbital b { width: 75px; height: 75px; display: grid; place-items: center; color: white; background: #28262f; border-radius: 24px; font-size: 20px; box-shadow: 0 18px 38px rgba(56,42,130,.25); }
.orbital i { position: absolute; width: 13px; height: 13px; background: var(--accent); border-radius: 50%; }
.orbital i:nth-child(1) { top: 5px; left: 17px; }
.orbital i:nth-child(2) { right: 4px; bottom: 30px; background: white; }
.visual-data { background: #bce9da; }
.chart-mock { position: absolute; left: 10%; right: 10%; bottom: 0; height: 80%; padding: 30px 25px 0; display: flex; align-items: end; gap: 10px; background: #f8f7f2; border-radius: 16px 16px 0 0; box-shadow: 0 20px 50px rgba(40,70,60,.18); }
.chart-mock i { flex: 1; height: var(--h); background: #272823; border-radius: 5px 5px 0 0; }
.chart-mock i:nth-child(2), .chart-mock i:nth-child(4) { background: var(--accent); }
.project-info { padding: 23px 27px 29px; }
.project-info h2,
.project-info h3 { margin: 8px 0 8px; font-size: 22px; letter-spacing: -.6px; }
.project-info > p { min-height: 46px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.tag-row span { padding: 5px 8px; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 5px; font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.project-link { margin-top: 23px; padding: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); background: transparent; border: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; cursor: pointer; }
.project-link svg { width: 14px; }
.project-card[hidden] { display: none; }
.empty-state { padding: 60px 20px; text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.empty-state svg { width: 28px; height: 28px; color: var(--muted); }
.empty-state h3 { margin: 14px 0 6px; }
.empty-state p { color: var(--muted); font-size: 12px; }
.empty-state button { padding: 9px 13px; color: white; background: var(--accent); border: 0; border-radius: 8px; cursor: pointer; }

.contact-section { margin-top: 90px; padding: 60px 0; display: grid; grid-template-columns: 1fr .8fr; align-items: end; gap: 50px; border-top: 1px solid var(--line); }
.contact-section h1,
.contact-section h2 { margin: 12px 0 0; font-size: clamp(39px, 5vw, 70px); line-height: .98; letter-spacing: -3px; }
.contact-copy p { max-width: 460px; margin: 0 0 26px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.contact-copy a { padding-bottom: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
.contact-copy svg { width: 17px; }
footer { min-height: 85px; padding: 0 4.5vw; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: var(--muted); border-top: 1px solid var(--line); font-size: 9px; letter-spacing: .8px; }
footer span { color: var(--ink); font-weight: 850; }
footer a { color: var(--ink); }

.project-dialog { width: min(600px, calc(100% - 32px)); padding: 34px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.project-dialog::backdrop { background: rgba(18,18,16,.62); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.dialog-close svg { width: 16px; }
.dialog-kicker { color: var(--accent); font-size: 9px; font-weight: 850; letter-spacing: 1.2px; }
.project-dialog h2 { margin: 9px 45px 12px 0; font-size: 31px; letter-spacing: -1px; }
.project-dialog > p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialog-points { margin: 22px 0; display: grid; gap: 10px; }
.dialog-points div { display: flex; gap: 10px; align-items: start; padding: 12px; background: var(--panel); border-radius: 9px; font-size: 11px; line-height: 1.5; }
.dialog-points svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--accent); }
.project-dialog .demo-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 10px; }
.backdrop { display: none; }

/* Glass dashboard direction */
.sidebar,
.topbar,
.quick-search,
.availability-card,
.hero-status-pill,
.hero-search,
.dashboard-grid,
.spotlight,
.projects-grid,
.empty-state,
.project-dialog,
.icon-button,
.print-button {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.sidebar {
  margin: 12px 0 12px 12px;
  height: calc(100vh - 24px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}
.content-shell { margin-left: calc(var(--sidebar-width) + 12px); }
.topbar {
  top: 12px;
  margin: 12px 18px 0;
  height: 62px;
  padding-inline: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.quick-search,
.icon-button,
.print-button {
  background: var(--card);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.brand-mark {
  background: linear-gradient(145deg, #ff7a48, var(--accent));
  box-shadow: 0 12px 30px rgba(255, 100, 46, 0.28), inset 0 1px 0 rgba(255,255,255,.35);
}
.nav-link { border: 1px solid transparent; }
.nav-link:hover {
  background: var(--cream);
  border-color: var(--line);
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(56, 69, 100, 0.08), inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-theme="dark"] .nav-link.active { background: rgba(255, 255, 255, 0.08); }
.availability-card {
  color: var(--ink);
  background: linear-gradient(145deg, rgba(255,255,255,.62), rgba(255,255,255,.28));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
html[data-theme="dark"] .availability-card { background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.04)); }
.availability-card a { color: var(--accent); }

main { padding-inline: clamp(26px, 4vw, 68px); }
.hero-section { padding-top: clamp(76px, 8vw, 122px); padding-bottom: 48px; }
.hero-status-pill {
  width: max-content;
  max-width: 100%;
  min-height: 46px;
  margin: 0 auto 28px;
  padding: 7px 9px 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
}
.status-spark { color: var(--accent); font-size: 16px; }
.mini-stack { display: flex; padding-left: 6px; }
.mini-stack i {
  width: 29px;
  height: 29px;
  margin-left: -6px;
  display: grid;
  place-items: center;
  color: white;
  background: #1d2740;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  font-size: 7px;
  font-style: normal;
  font-weight: 800;
}
.mini-stack i:nth-child(2) { background: var(--accent); }
.mini-stack i:nth-child(3) { background: #7161ef; }
.hero-section h1 {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -1.9px;
  word-spacing: 0.08em;
  font-weight: 700;
}
.hero-section h1 em {
  color: var(--ink);
  font-family: inherit;
  font-style: normal;
  font-weight: 700;
}
.hero-copy {
  max-width: 620px;
  margin-top: 20px;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.75;
}
.hero-search {
  height: 66px;
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(255,255,255,.82);
  box-shadow: 0 24px 60px rgba(49, 62, 94, 0.14), inset 0 1px 0 rgba(255,255,255,.75);
}
html[data-theme="dark"] .hero-search { background: rgba(25, 34, 56, 0.65); border-color: rgba(255,255,255,.14); }
.hero-search:focus-within {
  border-color: rgba(255,100,46,.62);
  box-shadow: 0 24px 65px rgba(255,100,46,.14), inset 0 1px 0 rgba(255,255,255,.72);
}

.dashboard-grid {
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
  overflow: hidden;
}
html[data-theme="dark"] .dashboard-grid { background: rgba(20, 29, 49, 0.48); }
.summary-block { background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.04)); }
.summary-block + .summary-block { border-color: var(--line-soft); }
.avatar { box-shadow: 0 10px 24px rgba(30,40,65,.16), inset 0 1px 0 rgba(255,255,255,.25); }
.skill-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }

.spotlight {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .spotlight { background: rgba(22, 31, 52, 0.58); }
.spotlight-art {
  background:
    radial-gradient(circle at 65% 22%, rgba(255,255,255,.35), transparent 20%),
    linear-gradient(145deg, #ff875d, var(--accent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4);
}
.primary-button {
  background: linear-gradient(145deg, #ff7a48, var(--accent));
  box-shadow: 0 14px 32px rgba(255,100,46,.25), inset 0 1px 0 rgba(255,255,255,.35);
}

.projects-section { padding-top: 22px; }
.section-heading {
  min-height: 82px;
  padding: 0 4px;
}
.section-heading h1,
.section-heading h2 { letter-spacing: -1.8px; }
.project-total {
  padding: 9px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.project-total strong { font-family: inherit; font-size: 28px; font-weight: 700; }
.projects-grid {
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,.32);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
html[data-theme="dark"] .projects-grid { background: rgba(20,29,49,.42); }
.project-card {
  border: 1px solid var(--line) !important;
  border-radius: 15px;
  background: rgba(255,255,255,.46);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
html[data-theme="dark"] .project-card { background: rgba(25,34,56,.58); }
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.project-visual { margin: 10px 10px 0; }
.tag-row span { background: var(--cream); border-color: var(--line); }

.contact-section {
  margin-bottom: 20px;
  padding: 54px 42px;
  background: rgba(255,255,255,.38);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255,255,255,.55);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
html[data-theme="dark"] .contact-section { background: rgba(20,29,49,.45); }
footer { margin: 0 18px 18px; background: rgba(255,255,255,.26); border: 1px solid var(--line); border-radius: 16px; }

.project-dialog { background: var(--card); }
.dialog-close { background: var(--cream); }

/* Reference glass: blur 5 / refraction .28 / depth 0 */
.sidebar,
.topbar,
.quick-search,
.availability-card,
.hero-status-pill,
.hero-search,
.dashboard-grid,
.spotlight,
.projects-grid,
.project-card,
.project-total,
.empty-state,
.contact-section,
.project-dialog,
.icon-button,
.print-button {
  overflow: hidden;
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

.quick-search,
.availability-card,
.hero-status-pill,
.hero-search,
.dashboard-grid,
.spotlight,
.projects-grid,
.project-card,
.project-total,
.empty-state,
.contact-section,
.project-dialog,
.icon-button,
.print-button {
  position: relative;
}

.sidebar::before,
.topbar::before,
.quick-search::before,
.availability-card::before,
.hero-status-pill::before,
.hero-search::before,
.dashboard-grid::before,
.spotlight::before,
.projects-grid::before,
.project-card::before,
.project-total::before,
.empty-state::before,
.contact-section::before,
.project-dialog::before,
.icon-button::before,
.print-button::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.sidebar::after,
.topbar::after,
.quick-search::after,
.availability-card::after,
.hero-status-pill::after,
.hero-search::after,
.dashboard-grid::after,
.spotlight::after,
.projects-grid::after,
.project-card::after,
.project-total::after,
.empty-state::after,
.contact-section::after,
.project-dialog::after,
.icon-button::after,
.print-button::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent, rgba(255, 255, 255, 0.3));
}

/* Portfolio content */
.hero-actions {
  margin: 0 auto 26px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.secondary-button,
.whatsapp-button,
.github-contact,
.filter-button,
.glass-panel,
.info-card,
.tech-card,
.toast {
  background: var(--glass-surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.secondary-button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  transition: transform .2s ease, border-color .2s ease;
}
.secondary-button:hover { transform: translateY(-2px); border-color: rgba(255,100,46,.5); }
.secondary-button svg { width: 16px; }
.dashboard-grid { margin-top: 54px; text-align: left; }
.avatar-photo { overflow: visible; background: var(--cream); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

.content-section { padding-top: 108px; scroll-margin-top: 90px; }
.section-heading-wide { align-items: end; gap: 40px; }
.section-heading-wide > p { max-width: 470px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.glass-panel,
.info-card,
.tech-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.about-layout {
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(220px, .68fr) 1.32fr;
  gap: 34px;
}
.about-portrait {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, #20283b, #0e1321);
}
.about-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(5,8,16,.82)); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-portrait span { position: absolute; z-index: 2; left: 18px; bottom: 17px; color: white; font-size: 11px; font-weight: 800; letter-spacing: 1px; }
.about-story { padding: clamp(20px, 4vw, 58px) clamp(10px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; }
.about-story p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-story p + p { margin-top: 18px; }
.about-story strong { color: var(--ink); }
.about-story blockquote { margin: 30px 0 0; padding: 20px 0 20px 24px; color: var(--ink); border-left: 3px solid var(--accent); font-size: clamp(17px, 2vw, 23px); font-weight: 700; line-height: 1.45; }
.info-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.info-card { min-height: 142px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.info-card svg { width: 20px; color: var(--accent); }
.info-card span { margin-top: auto; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.info-card strong { margin-top: 6px; font-size: 11px; line-height: 1.5; }

.skill-group { margin-top: 30px; }
.group-heading { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.group-heading h2,
.group-heading h3 { margin: 0; font-size: 14px; }
.group-heading span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.tech-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tech-card {
  min-height: 142px;
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tech-card::before { content: ""; position: absolute; inset: auto 18% -45% 18%; height: 75%; background: var(--tech, var(--accent)); filter: blur(34px); opacity: 0; transition: opacity .25s ease; }
.tech-card:hover { transform: translateY(-7px); border-color: color-mix(in srgb, var(--tech, var(--accent)) 52%, transparent); box-shadow: 0 18px 45px color-mix(in srgb, var(--tech, var(--accent)) 23%, transparent); }
.tech-card:hover::before { opacity: .3; }
.tech-card img { position: relative; width: 48px; height: 48px; object-fit: contain; }
.tech-card strong { position: relative; font-size: 10px; line-height: 1.35; }
html[data-theme="dark"] .tech-card[data-tech="github"] img { filter: invert(1); }
html[data-theme="dark"] .tech-card .invert-on-dark { filter: invert(1); }
.learning-group { margin-top: 34px; }
.tech-grid-learning { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tech-card-learning { opacity: .58; border-style: dashed; }
.placeholder-tech { width: 48px; height: 48px; display: grid; place-items: center; border: 1px dashed var(--muted); border-radius: 13px; color: var(--muted); font-size: 20px; }
.logo-ticker { margin-top: 36px; overflow: hidden; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.ticker-track { width: max-content; padding: 16px 0; display: flex; gap: 42px; animation: ticker 30s linear infinite; }
.ticker-track span { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.ticker-track img { width: 23px; height: 23px; }
html[data-theme="dark"] .ticker-track span:nth-child(5n) img { filter: invert(1); }
@keyframes ticker { to { transform: translateX(-50%); } }

.project-filters { margin: -8px 0 18px; display: flex; gap: 7px; }
.filter-button { min-height: 37px; padding: 0 14px; color: var(--muted); border-radius: 999px; font-size: 10px; font-weight: 750; cursor: pointer; }
.filter-button:hover, .filter-button.active { color: white; background: var(--accent); border-color: var(--accent); }
.project-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr .95fr; }
.project-card-featured .project-visual { min-height: 360px; }
.project-card-featured .project-info { align-self: center; }
.project-info > p { min-height: 0; }
.visual-flutter { background: linear-gradient(135deg, #1677ff 0%, #7358f7 50%, #ec4f9b 100%); }
.flutter-phone { position: absolute; width: 175px; height: 290px; left: 50%; top: 46px; padding: 23px 16px; background: rgba(255,255,255,.9); border: 7px solid #171b2a; border-radius: 30px; transform: translateX(-50%) rotate(5deg); box-shadow: 18px 22px 0 rgba(13,19,42,.2); }
.flutter-phone > i { display: block; width: 48px; height: 6px; margin: -10px auto 22px; background: #1c2030; border-radius: 20px; }
.flutter-phone > b { width: 70px; height: 70px; margin: auto; display: grid; place-items: center; color: white; background: linear-gradient(135deg,#168cff,#ef4e9b); border: 5px solid #e8e7ff; border-radius: 50%; }
.flutter-phone > span { display: block; height: 32px; margin-top: 13px; background: #e8e9f4; border-radius: 9px; }
.visual-python { background: linear-gradient(145deg, #0d2b45, #153f60); }
.code-window { position: absolute; inset: 58px 8% -20px; padding: 22px; color: #d8f0ff; background: #101722; border: 1px solid rgba(255,255,255,.15); border-radius: 15px 15px 0 0; transform: rotate(-2deg); box-shadow: 0 22px 50px rgba(0,0,0,.3); }
.code-window > i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; background: #ff6b4a; border-radius: 50%; }
.code-window > i:nth-child(2) { background: #ffd343; }
.code-window > i:nth-child(3) { background: #4bd37b; }
.code-window code { margin-top: 32px; display: block; color: #f3d35c; font-size: 12px; line-height: 2; }
.visual-notes { background: linear-gradient(145deg, #f0c94d, #ff9e42); }
.notes-sheet { position: absolute; inset: 44px 12% -25px; padding: 26px; background: #fffcf1; border-radius: 10px 10px 0 0; transform: rotate(3deg); box-shadow: 15px 22px 0 rgba(113,67,15,.15); }
.notes-sheet b { color: #20263a; }
.notes-sheet i { display: block; height: 7px; margin-top: 17px; background: #e3dfd2; border-radius: 10px; }
.notes-sheet i:nth-of-type(2) { width: 70%; }
.notes-sheet span { margin-top: 22px; padding: 9px; display: block; color: #3675a5; background: #edf4f8; border-radius: 7px; font: 10px monospace; }

.visual-web { background: linear-gradient(145deg, #14253d, #1c5e78); }
.web-window { position: absolute; inset: 50px 7% -24px; padding: 18px; background: rgba(247,250,252,.96); border: 1px solid rgba(255,255,255,.6); border-radius: 12px 12px 0 0; box-shadow: 0 22px 52px rgba(0,0,0,.32); transform: rotate(-1.5deg); }
.web-window > div { height: 18px; margin: -4px -4px 20px; display: flex; align-items: center; gap: 5px; }
.web-window > div i { width: 7px; height: 7px; background: #ff6240; border-radius: 50%; }
.web-window > div i:nth-child(2) { background: #ffc642; }
.web-window > div i:nth-child(3) { background: #4dcc7b; }
.web-window > span { width: 100%; height: 36px; margin-top: 10px; display: block; background: #dce5ec; border-radius: 7px; }
.web-window > span:nth-of-type(1) { height: 68px; background: linear-gradient(115deg, #ff642e, #ff9a59); }
.web-window > span:nth-of-type(2) { width: 73%; }
.web-window > span:nth-of-type(3) { width: 88%; }
.web-window > span:nth-of-type(4) { width: 58%; }

.visual-ai { background: radial-gradient(circle at 50% 48%, #4a2d73 0, #171225 42%, #090a11 100%); }
.ai-orbit { position: absolute; left: 50%; top: 54%; width: 178px; height: 178px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; transform: translate(-50%,-50%); }
.ai-orbit::before,
.ai-orbit::after { content: ""; position: absolute; inset: 26px -42px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; transform: rotate(48deg); }
.ai-orbit::after { transform: rotate(-48deg); }
.ai-orbit b { position: relative; z-index: 2; width: 76px; height: 76px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, #ff642e, #8e4df5); border: 1px solid rgba(255,255,255,.35); border-radius: 22px; box-shadow: 0 18px 45px rgba(119,69,210,.42); font-size: 20px; }
.ai-orbit i { position: absolute; z-index: 3; width: 11px; height: 11px; background: white; border-radius: 50%; box-shadow: 0 0 18px rgba(255,255,255,.8); }
.ai-orbit i:nth-child(1) { left: 12px; top: 30px; }
.ai-orbit i:nth-child(2) { right: -18px; top: 77px; background: #ff642e; }
.ai-orbit i:nth-child(3) { left: 48px; bottom: -7px; background: #9d73ff; }
.ai-orbit i:nth-child(4) { right: 34px; top: 4px; background: #58ddc2; }

.visual-security { background: linear-gradient(145deg, #071a17, #123c31); }
.security-visual { position: absolute; left: 50%; top: 56%; width: 210px; min-height: 150px; padding: 52px 22px 20px; color: #d9fff1; background: rgba(5,17,14,.78); border: 1px solid rgba(111,255,199,.35); border-radius: 13px; box-shadow: 0 24px 55px rgba(0,0,0,.36); transform: translate(-50%,-50%) rotate(-2deg); text-align: center; }
.security-visual > i { position: absolute; left: 50%; top: -38px; width: 78px; height: 76px; border: 8px solid #75e9ba; border-bottom: 0; border-radius: 42px 42px 0 0; transform: translateX(-50%); }
.security-visual > b { font: 12px/1.5 monospace; letter-spacing: .7px; }
.security-visual > span { height: 7px; margin: 17px auto 0; display: block; background: rgba(117,233,186,.27); border-radius: 20px; }
.security-visual > span:last-child { width: 66%; margin-top: 8px; }
.repository-link { width: max-content; margin: 24px auto 0; }

.journey-layout { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; align-items: start; }
.journey-timeline { padding: 30px; }
.journey-timeline article { position: relative; padding: 8px 0 34px 74px; display: grid; min-height: 126px; }
.journey-timeline article:last-child { padding-bottom: 8px; }
.journey-timeline article::before { content: ""; position: absolute; top: 49px; bottom: -4px; left: 25px; width: 1px; background: var(--line-soft); }
.journey-timeline article:last-child::before { display: none; }
.journey-timeline article > span { position: absolute; top: 4px; left: 0; width: 50px; height: 50px; display: grid; place-items: center; color: var(--accent); background: var(--cream); border: 1px solid var(--line); border-radius: 50%; font-size: 10px; font-weight: 800; }
.journey-timeline small, .next-card small { color: var(--accent); font-size: 8px; font-weight: 800; letter-spacing: 1px; }
.journey-timeline h2,
.journey-timeline h3 { margin: 7px 0; font-size: 17px; }
.journey-timeline p, .next-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.next-card { position: sticky; top: 96px; padding: 30px; }
.next-card .status-spark { display: block; margin-bottom: 30px; font-size: 30px; }
.next-card h2,
.next-card h3 { margin: 11px 0; font-size: 23px; line-height: 1.25; }

.contact-placeholder { margin: 16px 0 0; color: var(--muted); font-size: 10px; }
.whatsapp-button, .github-contact { min-height: 50px; padding: 0 16px; display: flex; align-items: center; gap: 10px; border-radius: 12px; font-size: 11px; font-weight: 750; }
.whatsapp-button { color: #071d11; background: #5be285; border-color: rgba(255,255,255,.35); }
.whatsapp-button svg:last-child, .github-contact svg:last-child { margin-left: auto; }
.github-contact { margin-top: 9px; }
.toast { position: fixed; z-index: 100; right: 22px; bottom: 22px; max-width: 390px; padding: 15px 18px; color: var(--ink); border-radius: 13px; font-size: 11px; line-height: 1.5; opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.project-card[hidden], .tech-card[hidden], [data-search-item][hidden] { display: none !important; }

/* Monochrome AI surface: tighter corners and high-contrast black/white UI */
:root { --radius: 12px; }
.sidebar { border-radius: 14px; }
.topbar,
.hero-search,
.dashboard-grid,
.spotlight,
.projects-grid,
.empty-state,
.contact-section,
.project-dialog,
.glass-panel,
.info-card,
.tech-card { border-radius: 10px; }
.availability-card,
.quick-search,
.icon-button,
.print-button,
.primary-button,
.secondary-button,
.whatsapp-button,
.github-contact,
.toast { border-radius: 7px; }
.nav-link { border-radius: 6px; }
.brand-mark { border-radius: 8px 8px 8px 3px; }
.hero-status-pill,
.filter-button { border-radius: 7px; }
.project-total { border-radius: 8px; }
.project-visual,
.about-portrait,
.placeholder-tech { border-radius: 8px; }
footer { border-radius: 9px; }

html[data-theme="dark"] .sidebar,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .hero-search,
html[data-theme="dark"] .dashboard-grid,
html[data-theme="dark"] .spotlight,
html[data-theme="dark"] .projects-grid,
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .contact-section {
  background: rgba(8, 8, 8, .64);
}
html[data-theme="dark"] .sidebar { background: rgba(8, 8, 8, .52); }
html[data-theme="dark"] .summary-block {
  background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
html[data-theme="dark"] .brand-mark {
  color: white;
  background: linear-gradient(145deg, #ff7a48, var(--accent));
  box-shadow: 0 10px 28px rgba(255,100,46,.18), inset 0 1px 0 rgba(255,255,255,.35);
}
html[data-theme="dark"] .nav-link.active {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(0,0,0,.16);
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}
html[data-theme="dark"] .nav-link:hover {
  background: rgba(255,255,255,.025);
  border-color: rgba(255,255,255,.1);
  box-shadow: none;
}
html[data-theme="dark"] .status-line i,
html[data-theme="dark"] .top-status i {
  background: #4cdd86;
  box-shadow: 0 0 0 4px rgba(76,221,134,.11), 0 0 15px rgba(76,221,134,.28);
}
html[data-theme="dark"] .mini-stack i { background: #111; }
html[data-theme="dark"] .mini-stack i:nth-child(2) { color: #050505; background: #f5f5f5; }
html[data-theme="dark"] .mini-stack i:nth-child(3) { background: #5b5b5b; }
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .empty-state button,
html[data-theme="dark"] .filter-button:hover,
html[data-theme="dark"] .filter-button.active,
html[data-theme="dark"] .whatsapp-button {
  color: white;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 12px 34px rgba(255,100,46,.2), inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-theme="dark"] .primary-button:hover { background: var(--accent-dark); }
html[data-theme="dark"] .secondary-button:hover { border-color: rgba(255,255,255,.48); }
html[data-theme="dark"] .hero-search:focus-within {
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 20px 60px rgba(255,255,255,.07), inset 0 1px 0 rgba(255,255,255,.2);
}
html[data-theme="dark"] .skill-icon.orange { color: white; }
html[data-theme="dark"] .spotlight-art {
  background:
    radial-gradient(circle at 72% 22%, rgba(255,255,255,.22), transparent 28%),
    linear-gradient(145deg, #202020, #050505);
}
html[data-theme="dark"] footer { background: rgba(255,255,255,.055); }

/* Dedicated page layout */
.page-main { min-height: calc(100vh - 88px); }
.page-section { padding-top: 76px; padding-bottom: 96px; }
.page-search { max-width: none; margin: 24px 0 8px; }
.projects-section.page-section .project-filters { margin: 0 0 18px; }
.projects-section.page-section .search-feedback { margin-bottom: 18px; }
.contact-page-main { display: flex; align-items: center; }
.page-contact { width: 100%; margin-top: 72px; margin-bottom: 72px; }
.empty-state h2 { margin: 14px 0 6px; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 250px; }
  main { padding-inline: 3.5vw; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .summary-block:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
  .timeline-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .timeline-mini > div + div { border-top: 0; }
  .spotlight { grid-template-columns: 140px 1fr; }
  .spotlight .primary-button { grid-column: 2; width: max-content; }
  .tech-grid, .tech-grid-learning { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .sidebar { width: min(320px, 88vw); transform: translateX(-105%); transition: transform .28s ease; box-shadow: 20px 0 60px rgba(0,0,0,.16); }
  body.menu-open .sidebar { transform: translateX(0); }
  .sidebar .sidebar-close, .topbar .menu-button { display: inline-flex; }
  .backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(18,18,16,.48); }
  body.menu-open .backdrop { display: block; }
  .content-shell { margin-left: 0; }
  .topbar { height: 64px; padding: 0 20px; }
  .breadcrumb { margin-right: auto; margin-left: 12px; }
  .top-status { display: none; }
  main { padding-inline: 24px; }
  .hero-section { padding-top: 80px; }
  .spotlight { grid-template-columns: 120px 1fr; gap: 18px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card:nth-child(even) { border-left: 0; }
  .project-card:nth-child(n+2) { border-top: 1px solid var(--line); }
  .project-card-featured { display: block; }
  .project-card-featured .project-visual { min-height: 300px; }
  .about-layout, .journey-layout { grid-template-columns: 1fr; }
  .about-portrait { min-height: 440px; }
  .next-card { position: relative; top: auto; }
  .section-heading-wide { align-items: flex-start; flex-direction: column; gap: 14px; }
}

@media (max-width: 620px) {
  .print-button, .search-shortcut { display: none; }
  main { padding-inline: 16px; }
  .hero-section { padding: 65px 0 40px; }
  .hero-section h1 { font-size: clamp(37px, 11vw, 46px); line-height: .96; letter-spacing: -2px; overflow-wrap: anywhere; }
  .hero-section h1 em { display: block; margin-top: 5px; }
  .hero-copy { font-size: 14px; line-height: 1.65; }
  .hero-copy { margin: 20px auto 28px; font-size: 14px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { width: 100%; }
  .hero-search { height: 58px; padding-left: 15px; }
  .dashboard-grid { display: block; }
  .summary-block { padding: 24px 5px; }
  .summary-block + .summary-block { border-left: 0; border-top: 1px solid var(--line); }
  .timeline-mini { display: block; }
  .timeline-mini > div + div { border-top: 1px solid var(--line-soft); }
  .spotlight { margin: 40px 0 58px; padding: 12px; display: block; }
  .spotlight-art { height: 130px; margin-bottom: 20px; }
  .spotlight-copy { padding: 0 7px; }
  .spotlight-copy h2 { font-size: 20px; }
  .spotlight .primary-button { margin: 20px 7px 7px; }
  .section-heading { align-items: center; }
  .project-total span { display: none; }
  .project-total strong { font-size: 30px; }
  .project-visual { min-height: 230px; }
  .project-info { padding: 20px; }
  .content-section { padding-top: 76px; }
  .about-layout { padding: 10px; }
  .about-portrait { min-height: 340px; }
  .about-story { padding: 24px 12px; }
  .about-story p { font-size: 12px; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card { min-height: 130px; padding: 16px; }
  .tech-grid, .tech-grid-learning { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tech-card { min-height: 116px; padding: 15px 7px 12px; gap: 12px; }
  .tech-card img, .placeholder-tech { width: 38px; height: 38px; }
  .ticker-track { gap: 28px; }
  .journey-timeline { padding: 22px 16px; }
  .journey-timeline article { padding-left: 62px; }
  .journey-timeline article > span { width: 42px; height: 42px; }
  .journey-timeline article::before { left: 21px; top: 42px; }
  .project-filters { flex-wrap: wrap; }
  .repository-link { width: 100%; }
  .contact-section { margin-top: 60px; padding: 38px 22px; display: block; }
  .contact-section h1,
  .contact-section h2 { margin-bottom: 35px; letter-spacing: -2px; }
  .contact-copy a { font-size: 11px; }
  footer { padding: 25px 16px; align-items: start; flex-direction: column; gap: 10px; }
  footer p { margin: 0; }
  .project-dialog { padding: 27px 22px; }
  .toast { right: 14px; bottom: 14px; left: 14px; max-width: none; }
  .page-section { padding-top: 58px; padding-bottom: 70px; }
  .page-contact { margin-top: 48px; margin-bottom: 48px; }
}

/* Data-driven portfolio shell and dashboard */
[hidden] { display: none !important; }

.sidebar {
  inset: 12px auto 12px 12px;
  width: var(--sidebar-width);
  height: auto;
  margin: 0;
  padding: 14px 12px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  transition: width 250ms ease, transform 250ms ease;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.sidebar-brand {
  width: 100%;
  min-height: 54px;
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.sidebar-brand:hover {
  background: rgba(255, 255, 255, .035);
  border-color: var(--line-soft);
}

.sidebar-brand-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px 8px 8px 3px;
}

.sidebar-copy {
  min-width: 0;
  flex: 1;
}

.sidebar-copy strong,
.sidebar-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sidebar-copy strong { font-size: 13px; letter-spacing: -.2px; }
.sidebar-copy small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sidebar-fold-icon { width: 15px; height: 15px; flex: 0 0 auto; color: var(--muted); transition: transform 250ms ease; }

.sidebar-search-wrap {
  position: relative;
  height: 44px;
  margin: 12px 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-radius: 7px;
  -webkit-backdrop-filter: blur(1.5px);
  backdrop-filter: blur(1.5px);
}

.sidebar-search-button {
  width: 26px;
  height: 32px;
  flex: 0 0 26px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sidebar-search-button svg { width: 17px; height: 17px; }
.sidebar-search-input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.sidebar-search-input::placeholder { color: var(--muted); }
.sidebar-search-shortcut { flex: 0 0 auto; }

.search-results-panel {
  position: fixed;
  z-index: 90;
  left: 24px;
  top: 126px;
  width: 224px;
  max-height: min(420px, calc(100vh - 150px));
  padding: 6px;
  overflow: auto;
  color: var(--ink);
  background: rgba(12, 12, 12, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}

.search-results-panel a,
.search-results-panel p {
  margin: 0;
  padding: 10px;
  display: block;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.45;
}

.search-results-panel a:hover,
.search-results-panel a:focus-visible { background: rgba(255, 255, 255, .07); }
.search-results-panel small { margin-top: 3px; display: block; color: var(--muted); }

.side-nav { margin-top: 10px; }
.nav-link { position: relative; min-height: 40px; padding: 0 10px; margin: 2px 0; gap: 10px; }
.nav-link svg { width: 17px; height: 17px; flex: 0 0 17px; }
.nav-text { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-label { margin: 17px 10px 7px; }
.nav-count { min-width: 21px; text-align: center; }
.availability-card { margin-top: auto; padding: 13px; }
.availability-card p { margin: 9px 0 12px; font-size: 11px; }
.availability-card a { font-size: 10px; }
.sidebar-foot { margin-top: 11px; }

.content-shell {
  margin-left: calc(var(--sidebar-width) + 12px);
  transition: margin-left 250ms ease;
}

.topbar,
main,
footer {
  width: calc(100% - 36px);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.topbar { margin-top: 12px; }
main { padding-inline: clamp(18px, 3.4vw, 48px); }
footer { padding-inline: clamp(18px, 3.4vw, 48px); }
.page-main { min-height: calc(100vh - 98px); }

body.sidebar-collapsed .sidebar {
  width: var(--sidebar-collapsed-width);
  padding-inline: 9px;
  overflow: visible;
}

body.sidebar-collapsed .content-shell { margin-left: calc(var(--sidebar-collapsed-width) + 12px); }
body.sidebar-collapsed .sidebar-brand { justify-content: center; padding-inline: 5px; }
body.sidebar-collapsed .sidebar-copy,
body.sidebar-collapsed .sidebar-fold-icon,
body.sidebar-collapsed .sidebar-search-input,
body.sidebar-collapsed .sidebar-search-shortcut,
body.sidebar-collapsed .nav-text,
body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .availability-card,
body.sidebar-collapsed .sidebar-foot { display: none; }
body.sidebar-collapsed .sidebar-search-wrap { width: 44px; margin-inline: auto; padding: 0; justify-content: center; }
body.sidebar-collapsed .sidebar-search-button { width: 42px; height: 42px; flex-basis: 42px; }
body.sidebar-collapsed .nav-link { width: 44px; justify-content: center; padding: 0; margin: 3px auto; overflow: visible; }
body.sidebar-collapsed .nav-count { position: absolute; top: 7px; right: 6px; width: 6px; min-width: 6px; height: 6px; padding: 0; overflow: hidden; color: transparent; background: var(--accent); }
body.sidebar-collapsed .nav-link::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 100;
  left: calc(100% + 11px);
  top: 50%;
  padding: 7px 9px;
  color: #fff;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  font-size: 9px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .16s ease, transform .16s ease;
}
body.sidebar-collapsed .nav-link:hover::after,
body.sidebar-collapsed .nav-link:focus-visible::after { opacity: 1; transform: translate(0, -50%); }

.hero-section { padding-top: clamp(64px, 7vw, 100px); padding-bottom: 42px; }
.hero-status-pill { font-size: 10px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; }

.overview-grid {
  padding-bottom: 90px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-card {
  grid-column: span 4;
  min-width: 0;
  min-height: 190px;
  padding: 21px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  border-radius: 10px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.dashboard-card:hover,
.dashboard-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 100, 46, .4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .28);
}

.card-eyebrow { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.dashboard-card h2 { margin: 14px 0 8px; font-size: 18px; line-height: 1.25; letter-spacing: -.5px; }
.dashboard-card > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.dashboard-profile { margin-top: 17px; display: flex; align-items: center; gap: 12px; }
.dashboard-profile img { width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.dashboard-profile h2 { margin: 0 0 4px; font-size: 14px; }
.dashboard-profile p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.collaboration-badge { width: max-content; margin-top: auto; padding: 5px 8px; color: #84edaa; background: rgba(76, 221, 134, .08); border: 1px solid rgba(76, 221, 134, .22); border-radius: 5px; font-size: 8px; font-weight: 750; }
.stack-logos { margin: 24px 0 16px; display: flex; flex-wrap: wrap; gap: 9px; }
.stack-logos img { width: 30px; height: 30px; padding: 5px; object-fit: contain; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); border-radius: 6px; }
.stack-logos img[src*="/github/"] { filter: invert(1); }
.interests-dashboard-card h2 { max-width: 260px; }
.interests-dashboard-card .tag-row { margin-top: auto; padding-top: 20px; }
.dashboard-projects { grid-column: span 8; }
.compact-projects { margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; list-style: none; }
.compact-projects li { min-width: 0; padding: 13px; display: flex; align-items: flex-start; gap: 8px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 7px; }
.compact-projects li > span { color: var(--accent); font-size: 9px; }
.compact-projects li > div { min-width: 0; }
.compact-projects strong,
.compact-projects small { display: block; }
.compact-projects strong { overflow: hidden; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.compact-projects small { margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.dashboard-project-footer { margin-top: auto; padding-top: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.dashboard-project-footer p { max-width: 360px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.dashboard-project-footer p strong { display: inline; margin-right: 3px; color: var(--ink); font-size: 15px; }
.dashboard-project-footer > span { flex: 0 0 auto; color: var(--accent); font-size: 9px; font-weight: 800; }
.statistics-card { grid-column: span 4; }
.statistics-list { margin-top: 15px; display: grid; gap: 7px; }
.statistics-list div { padding: 9px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.statistics-list span { color: var(--muted); font-size: 9px; }
.statistics-list strong { color: var(--accent); font-size: 12px; text-align: right; }
.statistics-note { margin-top: auto !important; padding-top: 14px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 8px !important; line-height: 1.55 !important; }
.compact-list,
.status-list { margin: 14px 0 0; padding: 0; list-style: none; }
.compact-list li,
.status-list li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); }
.compact-list li:last-child,
.status-list li:last-child { border-bottom: 0; }
.compact-list span,
.compact-list strong,
.compact-list small { display: block; }
.compact-list span { margin-bottom: 4px; color: var(--accent); font-size: 8px; }
.compact-list strong { font-size: 10px; line-height: 1.45; }
.compact-list small { margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.status-list li { display: flex; justify-content: space-between; align-items: start; gap: 15px; }
.status-list strong { font-size: 10px; line-height: 1.4; }
.status-list span { color: var(--muted); font-size: 8px; text-align: right; line-height: 1.4; }
.capability-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.capability-list > div { padding: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 7px; }
.capability-list strong,
.capability-list small { display: block; }
.capability-list strong { font-size: 10px; }
.capability-list small { margin-top: 6px; color: var(--muted); font-size: 8px; line-height: 1.45; }
.github-card { grid-column: span 8; min-height: 225px; }
.github-card img { width: 100%; max-height: 165px; margin: 14px auto 0; object-fit: contain; border-radius: 6px; }
.github-fallback { margin: auto 0; color: var(--muted); font-size: 11px; }
.contact-dashboard-card { grid-column: span 4; justify-content: flex-end; background: linear-gradient(145deg, rgba(255, 100, 46, .13), rgba(255, 255, 255, .025)); }
.contact-dashboard-card > span:last-child { margin-top: auto; color: var(--accent); font-size: 10px; font-weight: 750; }

.about-info-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.about-detail-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.about-detail-card { min-height: 150px; padding: 21px; }
.about-detail-card > p { margin: 21px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.about-story .secondary-button { width: max-content; margin-top: 24px; }

.tech-card {
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
}
.tech-card span { position: relative; color: var(--muted); font-size: 8px; line-height: 1.35; }
.placeholder-tech-icon { position: relative; width: 42px; height: 42px; padding: 10px; color: var(--muted); border: 1px dashed var(--line); border-radius: 8px; }
.inline-empty-state { margin-top: 18px; padding: 22px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 8px; text-align: center; font-size: 11px; }

.project-toolbar { margin-bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.project-toolbar .project-filters { margin: 0; }
.project-actions { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.project-actions .project-link { margin: 0; }
.project-link .brand-icon { width: 14px; height: 14px; flex-basis: 14px; }
.project-local-label { padding: 6px 9px; color: var(--muted); background: rgba(255,255,255,.025); border: 1px dashed var(--line); border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase; }
.project-local-label-dialog { width: max-content; display: inline-flex; margin-top: 3px; }
.project-detail-button { padding: 0; display: inline-flex; align-items: center; gap: 7px; color: var(--accent); background: transparent; border: 0; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; text-decoration: none; cursor: pointer; }
.project-detail-button svg { width: 14px; }
.repository-link { justify-content: center; }

.project-detail-grid { margin: 22px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-detail-grid section { padding: 14px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 7px; }
.project-detail-grid h3 { margin: 0 0 7px; color: var(--muted); font-size: 8px; letter-spacing: .9px; text-transform: uppercase; }
.project-detail-grid p,
.project-detail-grid li { color: var(--ink); font-size: 10px; line-height: 1.65; }
.project-detail-grid p { margin: 0; }
.project-detail-grid ul { margin: 0; padding-left: 17px; }
.detail-screenshots { grid-column: 1 / -1; }
.screenshot-placeholder { min-height: 72px; display: grid; place-items: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; font-size: 9px; }

.project-detail-page { padding-bottom: 92px; }
.detail-back-link { width: max-content; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; font-weight: 750; text-decoration: none; }
.detail-back-link:hover { color: var(--accent); }
.detail-back-link svg { width: 14px; transform: rotate(180deg); }
.project-detail-hero { min-height: 430px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr); overflow: hidden; }
.project-detail-intro { padding: clamp(34px, 5vw, 64px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.project-detail-intro h1 { max-width: 720px; margin: 12px 0 16px; font-size: clamp(40px, 5vw, 70px); line-height: .98; letter-spacing: -3.5px; }
.project-detail-intro > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-detail-intro .tag-row { margin-top: 23px; }
.project-detail-actions { margin-top: 27px; display: flex; align-items: center; gap: 12px; }
.project-local-label-detail { padding: 10px 13px; }
.project-detail-cover { min-width: 0; padding: 12px; }
.project-detail-cover .project-visual { height: 100%; min-height: 406px; margin: 0; }
.project-overview-section,
.project-gallery-section { margin-top: 68px; }
.detail-section-heading { max-width: 680px; }
.detail-section-heading h2 { margin: 9px 0 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.05; letter-spacing: -2px; }
.detail-section-heading > p { margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.project-detail-grid-page { margin-top: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.project-detail-grid-page section { min-height: 150px; padding: 20px; background: var(--card); border-color: var(--line); }
.project-detail-grid-page section:nth-child(2) { grid-column: span 2; }
.project-detail-grid-page h3 { font-size: 9px; }
.project-detail-grid-page p,
.project-detail-grid-page li { font-size: 11px; }
.project-gallery { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-gallery figure { min-width: 0; margin: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.project-gallery figure img { width: 100%; min-height: 280px; display: block; object-fit: cover; }
.project-gallery figcaption { padding: 13px 16px; color: var(--muted); border-top: 1px solid var(--line-soft); font-size: 9px; }
.project-gallery-generated { grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); grid-template-rows: repeat(2, minmax(190px, auto)); }
.gallery-visual-card { grid-row: 1 / 3; }
.gallery-visual-card .project-visual { height: calc(100% - 42px); min-height: 430px; margin: 0; border-radius: 0; }
.gallery-feature-card,
.gallery-stack-card { min-width: 0; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.gallery-feature-card > span,
.gallery-stack-card > span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.gallery-feature-card ol { margin: 17px 0 0; padding: 0; list-style: none; }
.gallery-feature-card li { padding: 9px 0; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.gallery-feature-card li:last-child { border-bottom: 0; }
.gallery-feature-card li b { color: var(--accent); font-size: 8px; }
.gallery-feature-card li strong { font-size: 10px; line-height: 1.4; }
.gallery-stack-card > div { margin-top: 17px; display: flex; flex-wrap: wrap; gap: 7px; }
.gallery-stack-card b { padding: 7px 9px; color: var(--ink); background: rgba(255, 255, 255, .035); border: 1px solid var(--line-soft); border-radius: 5px; font-size: 8px; }
.gallery-stack-card small { margin-top: 18px; display: block; color: var(--muted); font-size: 9px; line-height: 1.6; }
.project-detail-navigation { margin-top: 68px; padding-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border-top: 1px solid var(--line); }
.project-detail-navigation a { min-width: 0; padding: 19px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 9px; text-decoration: none; transition: transform .2s ease, border-color .2s ease; }
.project-detail-navigation a:hover { border-color: rgba(255, 100, 46, .45); transform: translateY(-3px); }
.project-detail-navigation a:last-child { text-align: right; }
.project-detail-navigation small,
.project-detail-navigation strong { display: block; }
.project-detail-navigation small { margin-bottom: 7px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.project-detail-navigation strong { overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }

.journey-block { margin-top: 12px; padding: 26px; }
.journey-block > h2 { margin: 0 0 19px; font-size: 17px; }
.journey-block article { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.journey-block article strong,
.journey-block article span { display: block; }
.journey-block article span { margin-top: 4px; color: var(--accent); font-size: 9px; }
.journey-block article p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.education-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.education-grid > div { padding: 15px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 7px; }
.education-grid span,
.education-grid strong { display: block; }
.education-grid span { color: var(--muted); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.education-grid strong { margin-top: 7px; font-size: 10px; line-height: 1.55; }

.certificate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.certificate-card,
.note-card { padding: 23px; }
.certificate-card h2,
.note-card h2 { margin: 12px 0 8px; font-size: 18px; }
.certificate-card p,
.note-card p { color: var(--muted); font-size: 11px; line-height: 1.7; }
.certificate-card .secondary-button { margin-top: 15px; }
.notes-list { display: grid; gap: 12px; }
.note-card > div { display: flex; gap: 8px; color: var(--accent); font-size: 8px; font-weight: 750; }

.contact-page-main { display: block; }
.page-contact { margin-top: 76px; margin-bottom: 76px; padding: clamp(32px, 5vw, 60px); border: 1px solid var(--line); border-radius: 10px; }
.contact-actions { max-width: 420px; margin-top: 28px; }
.page-contact .contact-copy h2 { margin: 0 0 11px; font-size: 13px; letter-spacing: -.2px; }
.page-contact .contact-copy h2:not(:first-child) { margin-top: 27px; }
.page-contact .contact-copy ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.9; }
.page-contact .contact-copy dl { margin: 0; }
.page-contact .contact-copy dl > div { padding: 11px 0; display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line-soft); }
.page-contact dt { color: var(--muted); font-size: 9px; }
.page-contact dd { margin: 0; font-size: 10px; text-align: right; }

.glass-panel,
.dashboard-card,
.info-card,
.tech-card,
.journey-block,
.certificate-card,
.note-card {
  background: rgba(255, 255, 255, .28);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .1), inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

html[data-theme="dark"] .glass-panel,
html[data-theme="dark"] .dashboard-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .tech-card,
html[data-theme="dark"] .journey-block,
html[data-theme="dark"] .certificate-card,
html[data-theme="dark"] .note-card { background: rgba(10, 10, 10, .42); border-color: rgba(255, 255, 255, .13); }

.glass-panel::before,
.dashboard-card::before,
.info-card::before,
.journey-block::before,
.certificate-card::before,
.note-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
  pointer-events: none;
}

.dashboard-card > *,
.journey-block > *,
.certificate-card > *,
.note-card > * { position: relative; }

html[data-theme="dark"] .brand-mark,
html[data-theme="dark"] .primary-button,
html[data-theme="dark"] .whatsapp-button,
html[data-theme="dark"] .filter-button.active { background: var(--accent); color: #fff; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
dialog:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 1050px) {
  :root { --sidebar-width: 248px; }
  .dashboard-card { grid-column: span 6; }
  .interests-dashboard-card,
  .dashboard-projects,
  .github-card { grid-column: span 12; }
  .about-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .education-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .sidebar,
  body.sidebar-collapsed .sidebar {
    inset: 12px auto 12px 12px;
    width: min(300px, calc(100vw - 24px));
    padding: 14px 12px 12px;
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(calc(-100% - 24px));
    box-shadow: 20px 0 60px rgba(0, 0, 0, .35);
  }
  body.menu-open .sidebar { transform: translateX(0); }
  body.sidebar-collapsed .sidebar-copy,
  body.sidebar-collapsed .sidebar-fold-icon,
  body.sidebar-collapsed .sidebar-search-input,
  body.sidebar-collapsed .sidebar-search-shortcut,
  body.sidebar-collapsed .nav-text,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .availability-card,
  body.sidebar-collapsed .sidebar-foot { display: block; }
  body.sidebar-collapsed .sidebar-search-wrap { width: auto; margin: 12px 0 4px; padding: 0 8px; justify-content: flex-start; }
  body.sidebar-collapsed .sidebar-search-input { display: block; }
  body.sidebar-collapsed .sidebar-search-shortcut { display: inline; }
  body.sidebar-collapsed .nav-label { display: block; }
  body.sidebar-collapsed .sidebar-brand { justify-content: flex-start; padding-inline: 6px; }
  body.sidebar-collapsed .nav-link { width: auto; justify-content: flex-start; padding: 0 10px; margin: 2px 0; }
  body.sidebar-collapsed .nav-count { position: static; width: auto; min-width: 21px; height: auto; margin-left: auto; padding: 2px 7px; overflow: visible; color: var(--muted); background: var(--card); }
  body.sidebar-collapsed .nav-link::after { display: none; }
  .content-shell,
  body.sidebar-collapsed .content-shell { margin-left: 0; }
  .topbar,
  main,
  footer { width: calc(100% - 24px); }
  .topbar { height: 60px; padding: 0 14px; }
  .topbar .menu-button { display: inline-flex; }
  .breadcrumb { margin-left: 10px; }
  .backdrop { position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .62); }
  body.menu-open .backdrop { display: block; }
  .search-results-panel { left: 24px; top: 126px; width: min(276px, calc(100vw - 48px)); }
  .overview-grid { padding-bottom: 65px; }
  .project-detail-hero { grid-template-columns: 1fr; }
  .project-detail-cover { padding-top: 0; }
  .project-detail-cover .project-visual { min-height: 340px; }
  .project-gallery-generated { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-visual-card { grid-row: auto; }
  .gallery-visual-card .project-visual { min-height: 380px; }
  .about-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certificate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .topbar,
  main,
  footer { width: calc(100% - 20px); }
  .topbar .print-button { display: none; }
  main { padding-inline: 10px; }
  .dashboard-card,
  .dashboard-projects,
  .statistics-card,
  .github-card,
  .contact-dashboard-card { grid-column: 1 / -1; }
  .compact-projects { grid-template-columns: 1fr; }
  .about-info-grid,
  .about-detail-grid,
  .education-grid,
  .certificate-grid,
  .project-detail-grid { grid-template-columns: 1fr; }
  .project-detail-grid-page section:nth-child(2) { grid-column: auto; }
  .project-detail-intro { padding: 34px 24px; }
  .project-detail-intro h1 { font-size: 38px; letter-spacing: -2px; }
  .project-overview-section,
  .project-gallery-section { margin-top: 48px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-detail-navigation { grid-template-columns: 1fr; }
  .project-detail-navigation a:last-child { text-align: left; }
  .dashboard-project-footer { align-items: flex-start; flex-direction: column; gap: 10px; }
  .detail-screenshots { grid-column: auto; }
  .project-toolbar { align-items: flex-start; flex-direction: column; }
  .page-contact { padding: 28px 20px; }
  .page-contact .contact-copy { margin-top: 34px; }
  .page-contact .contact-copy dl > div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .page-contact dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html[data-theme="dark"] body::before,
  html[data-theme="dark"] body::after { animation: none !important; }
}

@media print {
  :root { --bg: #fff; --panel: #fff; --card: #fff; --ink: #111; --muted: #555; --line: #ddd; }
  .sidebar, .topbar, .hero-search, .search-feedback, .spotlight, .project-link, footer, .demo-note { display: none !important; }
  .content-shell { margin: 0; }
  main { padding: 0 24px; }
  .hero-section { padding: 35px 0; }
  .hero-section h1 { font-size: 48px; }
  .dashboard-grid { grid-template-columns: repeat(3, 1fr); }
  .projects-grid { break-inside: avoid; }
  .project-visual { min-height: 155px; }
  .contact-section { margin-top: 35px; }
}

/* Interaction and layout refinements */
:root { --accent-rgb: 255, 100, 46; }
html[data-accent="orange"] { --accent: #ff642e; --accent-dark: #e84713; --accent-rgb: 255, 100, 46; }
html[data-accent="blue"] { --accent: #4d8dff; --accent-dark: #2367dc; --accent-rgb: 77, 141, 255; }
html[data-accent="green"] { --accent: #35c978; --accent-dark: #1d9e58; --accent-rgb: 53, 201, 120; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

:where(div, button, a, p, span, small, strong, b, label, input, kbd, li, dt, dd, blockquote, h3, h4, h5, h6) { letter-spacing: normal !important; }

.hero-section,
.overview-grid { width: 100%; max-width: 1120px; margin-left: auto; margin-right: auto; }
.hero-section { padding-top: clamp(34px, 4.4vw, 58px); padding-bottom: 32px; }
.hero-section h1 { max-width: 1030px; margin-inline: auto; text-wrap: balance; }
.hero-copy { margin-top: 20px; margin-bottom: 27px; }
.typing-caret { width: 2px; height: 1em; margin: 0 3px; display: inline-block; vertical-align: -.12em; background: var(--accent); animation: typing-caret 800ms steps(1) infinite; }
@keyframes typing-caret { 50% { opacity: 0; } }

.sidebar-fold-icon { transform: rotate(180deg); }
body.sidebar-collapsed .sidebar-fold-icon { display: block; transform: rotate(0deg); }
body.sidebar-collapsed .sidebar-brand { justify-content: space-between; }

.accent-picker { height: 38px; padding: 0 8px; display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 9px; }
.accent-picker button { width: 18px; height: 18px; padding: 3px; display: grid; place-items: center; background: transparent; border: 1px solid transparent; border-radius: 50%; cursor: pointer; }
.accent-picker button span { width: 9px; height: 9px; display: block; background: #ff642e; border-radius: 50%; }
.accent-picker button[data-accent-option="blue"] span { background: #4d8dff; }
.accent-picker button[data-accent-option="green"] span { background: #35c978; }
.accent-picker button[aria-pressed="true"] { border-color: var(--ink); }

.dashboard-featured-preview { margin-top: 15px; display: grid; grid-template-columns: minmax(160px, .75fr) minmax(0, 1.25fr); gap: 16px; }
.dashboard-featured-thumb { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 8px; }
.dashboard-featured-thumb .project-visual { min-height: 146px; height: 100%; margin: 0; border-radius: 0; }
.dashboard-featured-thumb .flutter-phone { width: 86px; height: 138px; }
.dashboard-featured-thumb .flutter-phone b { width: 31px; height: 31px; font-size: 9px; }
.dashboard-featured-copy { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.dashboard-featured-copy > span { color: var(--accent); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.dashboard-featured-copy h2 { margin: 7px 0 6px; }
.dashboard-featured-copy > p { margin: 0; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.dashboard-featured-copy .tag-row { margin-top: 10px; }
.dashboard-project-footer { padding-top: 13px; }

.github-card { cursor: default; }
.github-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.github-card-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 9px; font-weight: 750; }
.github-card-heading svg { width: 13px; height: 13px; }
.github-activity { margin-top: 14px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(150px, .65fr); gap: 10px; }
.github-activity > p { grid-column: 1 / -1; margin: auto 0; color: var(--muted); font-size: 10px; line-height: 1.65; }
.github-activity > .text-link { grid-column: 1 / -1; width: max-content; color: var(--accent); font-size: 9px; }
.github-repository-block,
.github-language-block { padding: 13px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line-soft); border-radius: 7px; }
.github-repository-block > span,
.github-language-block > span { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.github-repository-block ul { margin: 8px 0 0; padding: 0; list-style: none; }
.github-repository-block li + li { border-top: 1px solid var(--line-soft); }
.github-repository-block a { padding: 7px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.github-repository-block strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.github-repository-block small { flex: 0 0 auto; color: var(--muted); font-size: 8px; }
.github-language-block > div { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.github-language-block b { padding: 6px 8px; color: var(--ink); background: var(--cream); border: 1px solid var(--line-soft); border-radius: 5px; font-size: 8px; }
.github-language-block b small { margin-left: 3px; color: var(--accent); }

.command-palette,
.shortcut-dialog { padding: 0; color: var(--ink); background: transparent; border: 0; }
.command-palette { width: min(640px, calc(100% - 28px)); }
.command-palette::backdrop,
.shortcut-dialog::backdrop,
.project-dialog::backdrop { background: rgba(0, 0, 0, .72); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.command-palette-shell,
.shortcut-dialog-shell { position: relative; overflow: hidden; background: rgba(12, 12, 12, .94); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.command-search-row { height: 62px; padding: 0 14px 0 18px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.command-search-row > svg { width: 18px; color: var(--muted); }
.command-search-row input { min-width: 0; flex: 1; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; }
.command-search-row button { padding: 5px 7px; color: var(--muted); background: var(--cream); border: 1px solid var(--line); border-radius: 5px; font-size: 8px; cursor: pointer; }
.command-results { max-height: min(440px, 58vh); padding: 7px; overflow-y: auto; }
.command-results a { padding: 11px 12px; display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 2px 10px; border: 1px solid transparent; border-radius: 7px; }
.command-results a.active { background: var(--cream); border-color: rgba(var(--accent-rgb), .35); }
.command-results a > span { grid-row: 1 / 3; align-self: center; color: var(--accent); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.command-results strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.command-results small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.command-results > p { margin: 0; padding: 34px 20px; color: var(--muted); text-align: center; font-size: 10px; }
.command-help { margin: 0; padding: 10px 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 8px; }

.shortcut-dialog { width: min(470px, calc(100% - 28px)); }
.shortcut-dialog-shell { padding: 28px; }
.shortcut-dialog h2 { margin: 8px 45px 20px 0; font-size: 25px; }
.shortcut-dialog ul { margin: 0; padding: 0; list-style: none; }
.shortcut-dialog li { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line-soft); }
.shortcut-dialog li span { color: var(--muted); font-size: 9px; text-align: right; }

.project-dialog { width: min(920px, calc(100% - 28px)); max-height: min(88vh, 900px); padding: 0; overflow: auto; color: var(--ink); background: rgba(10, 10, 10, .96); border-radius: 10px; }
.project-dialog-shell { position: relative; padding: clamp(24px, 4vw, 42px); }
.project-dialog .dialog-description { max-width: 720px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.7; }
.project-dialog .project-modal-grid { margin: 24px 0 0; }
.project-modal-gallery { margin-top: 24px; }
.project-modal-gallery > h3 { margin: 0 0 10px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.project-dialog .project-gallery { margin-top: 0; }
.project-dialog .project-gallery-generated { grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr); grid-template-rows: repeat(2, minmax(150px, auto)); }
.project-dialog .gallery-visual-card .project-visual { min-height: 330px; }
.project-modal-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.project-modal-actions .primary-button,
.project-modal-actions .secondary-button { min-height: 42px; }

.page-main { animation: portfolio-page-in 200ms ease both; transition: opacity 180ms ease, transform 180ms ease; }
body.page-leaving .page-main { opacity: 0; transform: translateY(8px); }
@keyframes portfolio-page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 900px) {
  .hero-section { padding-top: 44px; }
  body.sidebar-collapsed .sidebar-fold-icon { display: block; }
  .github-activity { grid-template-columns: 1fr; }
  .project-dialog .project-gallery-generated { grid-template-columns: 1fr; grid-template-rows: auto; }
  .project-dialog .gallery-visual-card { grid-row: auto; }
}

@media (max-width: 620px) {
  .hero-section { padding-top: 38px; }
  .accent-picker { padding-inline: 5px; gap: 3px; }
  .accent-picker button { width: 17px; height: 17px; }
  .dashboard-featured-preview { grid-template-columns: 1fr; }
  .dashboard-featured-thumb .project-visual { min-height: 190px; }
  .command-results a { grid-template-columns: 64px minmax(0, 1fr); }
  .command-help { display: none; }
  .project-dialog-shell { padding: 24px 18px; }
  .project-modal-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .typing-caret { animation: none; opacity: 1; }
  .page-main { animation: none; transition: none; }
  body.page-leaving .page-main { opacity: 1; transform: none; }
}
