:root {
  color-scheme: dark;
  --bg: #0a192f;
  --bg-soft: #112240;
  --surface: #172a45;
  --surface-2: #1e3352;
  --surface-3: #233b5c;
  --text: #f7fbff;
  --muted: #a3b1c2;
  --subtle: #6f7f93;
  --line: #29384b;
  --line-strong: #3a4e67;
  --orange: #ff7a1a;
  --blue: #4387ff;
  --teal: #1ec8a5;
  --gold: #f2ad24;
  --red: #ff5168;
  --violet: #9467ff;
  --cyan: #11baf2;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px, 64px 64px, auto;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

svg {
  display: block;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 66px;
  padding: 6px 22px;
  background: rgba(9, 14, 22, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 235px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-size: 1.02rem;
  line-height: 1.1;
}

.brand-copy span,
.header-meta,
.metric-card span,
.project-card p,
.project-card span,
.section-head p,
.section-head span,
.site-footer span {
  color: var(--muted);
}

.brand-copy span {
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 2px;
  height: 100%;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #edf4ff;
  font-weight: 700;
  text-decoration: none;
  border-inline: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.055);
  border-color: var(--line);
  outline: 0;
}

.site-nav a.is-active {
  box-shadow: inset 0 -3px 0 var(--blue);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  justify-self: end;
  white-space: nowrap;
}

.header-meta span + span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: #e7edf8;
  background: #1d2534;
  border: 1px solid #46536a;
  border-radius: 8px;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.update-ticker {
  position: sticky;
  top: 66px;
  z-index: 25;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  min-height: 46px;
  overflow: hidden;
  background: rgba(7, 11, 18, 0.94);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.update-ticker-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 20px 0 22px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(67, 135, 255, 0.26), rgba(30, 200, 165, 0.1));
  border-right: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.update-ticker-label svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
}

.update-ticker-window {
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 56px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 56px), transparent);
}

.update-ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  padding: 7px 14px;
  animation: ticker-scroll 32s linear infinite;
  will-change: transform;
}

.update-ticker:hover .update-ticker-track,
.update-ticker:focus-within .update-ticker-track {
  animation-play-state: paused;
}

.update-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin-right: 14px;
  padding: 5px 12px;
  color: #eef6ff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.update-ticker-item:hover,
.update-ticker-item:focus-visible {
  background: rgba(67, 135, 255, 0.15);
  border-color: rgba(67, 135, 255, 0.58);
  outline: 0;
  transform: translateY(-1px);
}

.update-ticker-item span {
  color: var(--teal);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.update-ticker-item strong {
  max-width: 440px;
  overflow: hidden;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  text-overflow: ellipsis;
}

.update-ticker-item em {
  color: var(--gold);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  padding: 80px 52px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(90deg, rgba(5, 8, 13, 0.96) 0%, rgba(5, 8, 13, 0.84) 52%, rgba(5, 8, 13, 0.38) 78%, rgba(5, 8, 13, 0.08) 100%),
    var(--hero-image),
    var(--hero-fallback);
  background-size: cover, clamp(360px, 31vw, 520px) auto, clamp(260px, 24vw, 420px) auto;
  background-position: center, right center, right 7vw center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0), var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 820px;
  width: min(100% - 32px, 1480px);
  margin-left: 0;
  margin-right: auto;
}

.hero-content {
  width: 100%;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  margin-top: -4px;
  margin-bottom: 18px;
  line-height: 1.25;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 24px;
  margin-bottom: 20px;
}

.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-location svg {
  width: 16px;
  height: 16px;
  color: var(--blue);
}

.hero-meta-row .signal-actions {
  margin-bottom: 0;
}

.hero-stack-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.stack-label {
  color: var(--subtle);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.signal-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.signal-actions a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: #1a2637;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
}

.signal-actions a:hover,
.signal-actions a:focus-visible {
  color: var(--blue);
  outline: 0;
  border-color: var(--blue);
}

.signal-actions svg {
  width: 19px;
  height: 19px;
}

.signal-actions img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signal-stack span {
  padding: 6px 8px;
  color: #dff4ff;
  background: rgba(17, 186, 242, 0.1);
  border: 1px solid rgba(17, 186, 242, 0.28);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(255, 122, 26, 0.16);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: 3.35rem;
  line-height: 1;
  font-weight: 800;
}

.hero-lede {
  max-width: 730px;
  margin-bottom: 24px;
  color: #d7e2ef;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  color: #f7fbff;
  background: #1a2433;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #111111;
}

.button-ghost {
  background: rgba(7, 10, 15, 0.34);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.hero-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-status-strip strong {
  color: var(--text);
  font-weight: 800;
  font-size: 0.95rem;
}

.hero-status-strip span:last-child {
  color: var(--cyan);
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--blue);
}

.metric-grid,
.workbench,
.site-footer {
  width: min(100% - 32px, 1480px);
  margin-left: 16px;
  margin-right: auto;
}

.workbench {
  scroll-margin-top: 88px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 0 28px;
}

.metric-card {
  --accent: var(--blue);
  --card-glow: var(--accent);
  min-height: 128px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric-card[data-accent="teal"] {
  --accent: var(--teal);
}

.metric-card[data-accent="gold"] {
  --accent: var(--gold);
}

.metric-card[data-accent="red"] {
  --accent: var(--red);
}

.metric-card[data-accent="violet"] {
  --accent: var(--violet);
}

.metric-card[data-accent="cyan"] {
  --accent: var(--cyan);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  color: var(--accent, var(--blue));
  background: color-mix(in srgb, var(--accent, var(--blue)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--blue)) 46%, transparent);
  border-radius: 8px;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-icon.teal {
  --accent: var(--teal);
}

.metric-icon.blue {
  --accent: var(--blue);
}

.metric-card strong {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.1;
}

.metric-card span:last-child {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tab-panel {
  padding: 34px 0 28px;
  border-top: 1px solid var(--blue);
}

.section-head {
  margin-bottom: 22px;
}

.section-head p {
  margin-bottom: 6px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-head h2 {
  margin-bottom: 5px;
  font-size: 1.58rem;
  line-height: 1.2;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 14px;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.analytics-panel,
.about-panel,
.writing-column {
  --card-glow: var(--blue);
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.analytics-panel:nth-child(2) {
  --card-glow: var(--teal);
  border-top-color: var(--teal);
}

.about-panel {
  --card-glow: var(--teal);
  border-top-color: var(--teal);
}

.about-panel:nth-child(2) {
  --card-glow: var(--blue);
  border-top-color: var(--blue);
}

.about-panel p {
  color: var(--muted);
}

.skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-cloud li {
  padding: 8px 10px;
  color: #eaf4ff;
  background: #1a2637;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-title h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  text-transform: uppercase;
}

.chart-wrap {
  max-width: 100%;
  overflow: hidden;
}

.chart-wrap svg {
  width: 100%;
  min-height: 240px;
}

.grid-lines path {
  fill: none;
  stroke: rgba(132, 152, 178, 0.22);
  stroke-width: 1;
}

.range-line {
  fill: none;
  stroke: var(--blue);
  stroke-dasharray: 7 9;
  stroke-linecap: round;
  stroke-width: 3;
}

.main-fill {
  fill: url("#chartFill");
}

.main-line,
.alt-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-line {
  stroke: var(--blue);
  stroke-width: 5;
}

.alt-line {
  stroke: var(--cyan);
  stroke-width: 4;
}

.axis-labels text {
  fill: #b9c7d8;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.chart-point {
  cursor: pointer;
  fill: #101827;
  stroke-width: 4;
  opacity: 0;
  transition: opacity 160ms ease, r 160ms ease;
}

.chart-wrap:hover .chart-point,
.chart-point:focus-visible {
  opacity: 1;
}

.chart-point.main {
  stroke: var(--blue);
}

.chart-point.alt {
  stroke: var(--cyan);
}

.chart-point.benchmark {
  stroke: var(--blue);
}

.chart-point:hover,
.chart-point:focus-visible {
  r: 8;
  outline: 0;
}

.chart-tooltip {
  position: fixed;
  z-index: 60;
  min-width: 170px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(10, 15, 24, 0.96);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
  box-shadow: var(--shadow);
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 14px));
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-tooltip strong,
.chart-tooltip span {
  display: block;
}

.chart-tooltip strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.chart-tooltip span {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.skill-list {
  display: grid;
  gap: 18px;
}

.skill-meter {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 14px;
  align-items: center;
}

.skill-meter span {
  color: #f4f8ff;
  font-weight: 800;
}

.skill-meter strong {
  color: #ffffff;
}

.skill-meter div {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  background: #2a3546;
  border-radius: 999px;
}


@keyframes fillBar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.skill-meter div span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
  transform-origin: left;
  transform: scaleX(0);
}

.reveal-up.is-visible .skill-meter div span {
  animation: fillBar 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}


.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.focus-item,
.timeline-item,
.project-card,
.education-card {
  --card-glow: var(--blue);
  min-width: 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.focus-item svg {
  width: 28px;
  height: 28px;
  margin-bottom: 16px;
  color: var(--blue);
}

.focus-item h3,
.timeline-item h3,
.project-card h3,
.education-card h3 {
  margin-bottom: 8px;
  line-height: 1.25;
}

.focus-item p,
.timeline-item p,
.education-card p {
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.experience-company {
  --card-glow: var(--blue);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 8px;
}

.experience-company strong {
  color: var(--blue);
  font-size: 1.6rem;
}

.experience-company span {
  color: var(--muted);
  font-weight: 700;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 22px;
  border-left: 3px solid var(--blue);
}

.timeline-item > span {
  grid-row: 1 / span 3;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
  font-weight: 800;
}

.timeline-item h3,
.timeline-item .company,
.timeline-item p {
  margin-bottom: 0;
}

.timeline-item .company {
  color: #ffffff;
  font-weight: 800;
}

.timeline-item .role-meta {
  color: var(--muted);
}

.role-details {
  grid-column: 2;
  display: grid;
  gap: 8px;
  margin: 6px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.role-details li::marker {
  color: var(--blue);
}

.tag-list {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 5px 9px;
  color: #d7e8ff;
  background: #1a2637;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card {
  --accent: var(--blue);
  --card-glow: var(--accent);
  display: flex;
  flex-direction: column;
  min-height: 300px;
  border-top: 3px solid var(--accent);
}

.project-card[data-accent="teal"] {
  --accent: var(--teal);
}

.project-card[data-accent="gold"] {
  --accent: var(--gold);
}

.project-card[data-accent="red"] {
  --accent: var(--red);
}

.project-card[data-accent="violet"] {
  --accent: var(--violet);
}

.project-card[data-accent="cyan"] {
  --accent: var(--cyan);
}

.project-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.project-icon.blue {
  color: var(--blue);
  background: rgba(67, 135, 255, 0.14);
}

.project-icon.teal {
  color: var(--teal);
  background: rgba(30, 200, 165, 0.14);
}

.project-icon.gold {
  color: var(--gold);
  background: rgba(242, 173, 36, 0.14);
}

.project-icon.red {
  color: var(--red);
  background: rgba(255, 81, 104, 0.14);
}

.project-icon.violet {
  color: var(--violet);
  background: rgba(148, 103, 255, 0.14);
}

.project-icon.cyan {
  color: var(--cyan);
  background: rgba(17, 186, 242, 0.14);
}

.project-card p {
  margin-bottom: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card > span {
  display: block;
  margin-bottom: 16px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: auto 0 16px;
}

.project-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 4px 8px;
  color: #dff4ff;
  background: rgba(17, 186, 242, 0.09);
  border: 1px solid rgba(17, 186, 242, 0.25);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 800;
}

.project-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.project-card a svg {
  width: 16px;
  height: 16px;
}

.writing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.writing-column {
  display: grid;
  gap: 12px;
  border-top-color: var(--cyan);
}

.writing-column:nth-child(2) {
  --card-glow: var(--teal);
  border-top-color: var(--teal);
}

.writing-column a {
  display: block;
  padding: 13px 0;
  color: #e6f1ff;
  border-top: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.writing-column a:hover,
.writing-column a:focus-visible,
.project-card a:hover,
.project-card a:focus-visible,
.social-links a:hover,
.social-links a:focus-visible {
  color: var(--blue);
  outline: 0;
}

.blog-reader {
  --card-glow: var(--cyan);
  padding: 22px;
  background: linear-gradient(180deg, rgba(23, 42, 69, 0.96), rgba(17, 34, 64, 0.96));
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.blog-reader:focus {
  outline: none;
}

.blog-reader-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.blog-reader-actions .button {
  min-height: 46px;
}

.blog-article-head {
  max-width: 920px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.blog-article-head p {
  margin: 0 0 8px;
  color: var(--blue);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.blog-article-head h3 {
  max-width: 860px;
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.12;
}

.blog-article-head > span {
  display: block;
  max-width: 780px;
  color: #c7d7ea;
  font-size: 1.04rem;
}

.blog-tags {
  margin-top: 18px;
}

.blog-article-body {
  display: grid;
  gap: 24px;
  max-width: 860px;
}

.blog-section {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(41, 56, 75, 0.72);
}

.blog-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.blog-section h4 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 1.22rem;
}

.blog-section p {
  margin: 0 0 14px;
  color: #c6d4e5;
}

.blog-section p:last-child {
  margin-bottom: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.education-head {
  margin-top: 32px;
}

.education-card {
  --card-glow: var(--violet);
  border-top: 3px solid var(--violet);
}

.education-card span {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.credential-list {
  display: grid;
  gap: 14px;
}

.credential-item,
.award-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-item {
  --card-glow: var(--violet);
  border-left: 3px solid var(--violet);
}

.award-card {
  --card-glow: var(--blue);
  border-left: 3px solid var(--blue);
}

.credential-logo {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  background: #eef3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.credential-logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.fallback-logo {
  color: #1f2a3a;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.exl-logo {
  color: var(--blue);
  background: #fff7f0;
  font-weight: 800;
}

.credential-item span,
.award-card span {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  font-weight: 800;
}

.credential-item h3,
.award-card h3 {
  margin: 4px 0 6px;
}

.credential-item p,
.award-card p {
  color: var(--muted);
  margin-bottom: 10px;
}

.credential-subtitle {
  color: #ffffff;
  font-weight: 800;
}

.credential-tags {
  grid-column: auto;
}

.awards-head {
  margin-top: 30px;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.contact-band {
  --card-glow: var(--blue);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 28px;
  padding: 28px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: 8px;
}

.contact-band h2 {
  margin-bottom: 8px;
  font-size: 1.8rem;
}

.contact-band p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-card,
.hero-signal,
.analytics-panel,
.about-panel,
.focus-item,
.timeline-item,
.experience-company,
.project-card,
.writing-column,
.education-card,
.credential-item,
.award-card,
.contact-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.metric-card::after,
.hero-signal::after,
.analytics-panel::after,
.about-panel::after,
.focus-item::after,
.timeline-item::after,
.experience-company::after,
.project-card::after,
.writing-column::after,
.education-card::after,
.credential-item::after,
.award-card::after,
.contact-band::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 22% 10%, color-mix(in srgb, var(--card-glow, var(--cyan)) 34%, transparent), transparent 34%),
    radial-gradient(circle at 82% 0%, color-mix(in srgb, var(--card-glow, var(--cyan)) 24%, transparent), transparent 28%);
  transition: opacity 220ms ease;
}

.metric-card:hover,
.hero-signal:hover,
.analytics-panel:hover,
.about-panel:hover,
.focus-item:hover,
.timeline-item:hover,
.experience-company:hover,
.project-card:hover,
.writing-column:hover,
.education-card:hover,
.credential-item:hover,
.award-card:hover,
.contact-band:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-glow, var(--cyan)) 72%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-glow, var(--cyan)) 30%, transparent),
    0 0 32px color-mix(in srgb, var(--card-glow, var(--cyan)) 32%, transparent),
    0 24px 70px rgba(0, 0, 0, 0.45);
}

.project-card:focus-within,
.writing-column:focus-within,
.credential-item:focus-within,
.award-card:focus-within,
.contact-band:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--card-glow, var(--cyan)) 72%, var(--line));
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--card-glow, var(--cyan)) 30%, transparent),
    0 0 32px color-mix(in srgb, var(--card-glow, var(--cyan)) 32%, transparent),
    0 24px 70px rgba(0, 0, 0, 0.45);
}

.metric-card:hover::after,
.hero-signal:hover::after,
.analytics-panel:hover::after,
.about-panel:hover::after,
.focus-item:hover::after,
.timeline-item:hover::after,
.experience-company:hover::after,
.project-card:hover::after,
.writing-column:hover::after,
.education-card:hover::after,
.credential-item:hover::after,
.award-card:hover::after,
.contact-band:hover::after {
  opacity: 1;
}

.project-card:focus-within::after,
.writing-column:focus-within::after,
.credential-item:focus-within::after,
.award-card:focus-within::after,
.contact-band:focus-within::after {
  opacity: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer div:first-child {
  display: grid;
  gap: 2px;
}

.site-footer strong {
  color: var(--text);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.social-links svg {
  width: 19px;
  height: 19px;
}

.social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: auto auto 1fr;
  }

  .header-meta {
    display: none;
  }

  .site-nav {
    justify-content: end;
  }

  .metric-grid,
  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .brand {
    min-width: 0;
  }

  .nav-toggle {
    display: grid;
    justify-self: end;
  }

  .site-nav {
    position: fixed;
    inset: 66px 16px auto;
    display: none;
    grid-template-columns: 1fr;
    height: auto;
    padding: 10px;
    background: #111927;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  body.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 8px;
  }

  .update-ticker {
    grid-template-columns: 1fr;
    top: 66px;
  }

  .update-ticker-label {
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .update-ticker-track {
    animation-duration: 26s;
  }

  .hero {
    align-items: flex-start;
    min-height: 0;
    height: auto;
    padding: 48px 20px 44px;
    background-image:
      linear-gradient(90deg, rgba(5, 8, 13, 0.98) 0%, rgba(5, 8, 13, 0.95) 56%, rgba(5, 8, 13, 0.82) 100%),
      var(--hero-image);
    background-size: cover, min(78vw, 430px) auto;
    background-position: center, right center;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    width: min(100% - 40px, 760px);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-signal {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }

  .metric-grid,
  .about-grid,
  .dashboard-grid,
  .focus-grid,
  .project-grid,
  .writing-grid,
  .education-grid,
  .awards-grid,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item > span,
  .role-details,
  .tag-list {
    grid-column: 1;
  }

  .credential-item,
  .award-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 66px;
    padding: 8px 14px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-copy strong {
    font-size: 0.95rem;
  }

  .brand-copy span {
    font-size: 0.67rem;
  }

  .site-nav {
    inset: 66px 12px auto;
  }

  .update-ticker-item {
    gap: 7px;
    max-width: 86vw;
  }

  .update-ticker-item strong {
    max-width: 46vw;
    font-size: 0.82rem;
  }

  .update-ticker-item span,
  .update-ticker-item em {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 0;
    height: auto;
    padding: 30px 16px 32px;
    background-image:
      linear-gradient(90deg, rgba(5, 8, 13, 0.99) 0%, rgba(5, 8, 13, 0.96) 58%, rgba(5, 8, 13, 0.86) 100%),
      var(--hero-image);
    background-size: cover, min(105vw, 430px) auto;
    background-position: center, right center;
  }

  .hero-inner {
    width: 100%;
  }

  h1 {
    font-size: 2.15rem;
  }

  .hero-subtitle {
    margin-bottom: 14px;
    font-size: 1.2rem;
  }

  .hero-lede {
    margin-bottom: 20px;
    font-size: 0.98rem;
  }

  .hero-meta-row {
    margin-bottom: 18px;
  }

  .hero-location {
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .hero-location svg {
    flex: 0 0 auto;
    margin-top: 3px;
  }

  .hero-stack-row {
    align-items: flex-start;
    margin-bottom: 24px;
  }

  .stack-label {
    width: 100%;
  }

  .signal-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px;
  }

  .signal-stack span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
  }

  .hero-status-strip {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 4px 12px;
    padding-top: 20px;
    margin-top: 24px;
  }

  .hero-status-strip span:last-child {
    grid-column: 2;
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .status-dot {
    margin-top: 7px;
  }

  .metric-grid,
  .workbench,
  .site-footer {
    width: min(100% - 28px, 1600px);
    margin-left: 14px;
    margin-right: 14px;
  }

  .workbench {
    scroll-margin-top: 78px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 20px;
  }

  .chart-wrap svg {
    min-width: 620px;
  }

  .chart-wrap {
    overflow-x: auto;
  }

  .contact-actions,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .blog-reader {
    padding: 18px;
  }

  .blog-reader-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-article-head h3 {
    font-size: 1.55rem;
  }

  .button {
    width: 100%;
    min-height: 52px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #111111;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.4);
}

/* Scroll Reveal Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #111111;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255, 122, 26, 0.4);
  outline: 0;
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* Project Cards Enhancements */
.impact-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-color);
}
.project-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  align-items: center;
  flex-wrap: wrap;
}
.project-card a {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.project-card a:hover {
  color: var(--text-primary);
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
  justify-content: center;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
}

.filter-btn.active {
  background: rgba(67, 135, 255, 0.15); /* var(--blue) with opacity */
  color: var(--blue);
  border-color: var(--blue);
}

.project-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-card.hidden {
  display: none;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  transition: all 0.3s ease;
}

.social-links a svg, .social-links a i {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  background: rgba(67, 135, 255, 0.15);
  color: var(--blue);
  transform: translateY(-3px);
}


/* Blog Filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.tag-chip {
  background: var(--bg-surface, #1e293b);
  border: 1px solid var(--border-subtle, #333);
  color: var(--text-secondary, #94a3b8);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tag-chip:hover {
  background: var(--bg-hover, #334155);
  color: var(--text-primary, #ffffff);
}
.tag-chip.active {
  background: var(--accent-blue, #3b82f6);
  color: #ffffff;
  border-color: var(--accent-blue, #3b82f6);
}
.writing-column a.blog-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: opacity 0.2s ease, background 0.2s ease;
  padding: 13px 0;
}
.writing-column a.blog-item .blog-title {
  flex: 1;
  text-align: left;
}
.writing-column a.blog-item .blog-date {
  color: var(--text-secondary, #94a3b8);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.writing-column a.blog-item.hidden {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .update-ticker-track {
    width: auto;
    overflow-x: auto;
    animation: none;
  }
}
