:root {
  color-scheme: dark;
  --bg: #09090b;
  --surface: #111113;
  --surface-strong: #18181b;
  --surface-soft: #1f1f23;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --green: #34d399;
  --blue: #60a5fa;
  --amber: #fbbf24;
  --danger: #f87171;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.36);
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(24, 24, 27, 0.78) 0, rgba(9, 9, 11, 0) 420px),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), transparent 68%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 5.7vw, 5.2rem);
  font-weight: 800;
}

.headline-part {
  display: inline;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 780;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.12rem;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 16px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.76);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.contact-links,
.tag-row,
.capability-cloud {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand-photo {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.site-nav {
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.site-nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.section-shell {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(340px, 0.68fr);
  gap: 28px;
  align-items: start;
  padding-top: 94px;
  padding-bottom: 34px;
}

.hero-copy,
.profile-panel,
.capability-cloud,
.section-heading,
.card,
.timeline-list li,
.contact-section {
  animation: fade-up 560ms ease both;
}

.profile-panel {
  animation-delay: 100ms;
}

.capability-cloud {
  grid-column: 1 / -1;
  animation-delay: 180ms;
}

.eyebrow,
.card-kicker,
.timeline-date {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--subtle);
}

.hero-role {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  color: var(--text);
  font-size: clamp(1.08rem, 1.55vw, 1.38rem);
  font-weight: 760;
  line-height: 1.25;
}

.hero-role span + span {
  color: var(--muted);
  font-size: 0.74em;
  font-weight: 600;
}

.hero-role span + span::before {
  content: "/";
  margin-right: 12px;
  color: var(--border-strong);
}

.hero-text,
.section-heading p,
.muted,
.card p,
.timeline-list p,
.contact-section p,
.site-footer {
  color: var(--muted);
}

.hero-text {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: 1.12rem;
}

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

.button,
.contact-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-weight: 650;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.contact-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: var(--surface-soft);
}

.button-primary {
  border-color: #fff;
  background: #fff;
  color: #000;
}

.button-primary:hover {
  background: #d4d4d8;
  color: #000;
}

.button-ghost {
  color: var(--muted);
}

.profile-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.86);
  box-shadow: var(--shadow);
}

.profile-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--amber));
}

.profile-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
}

.profile-photo {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  object-fit: cover;
}

.profile-name {
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 750;
}

.profile-role {
  margin-bottom: 0;
  color: var(--subtle);
  font-size: 0.9rem;
}

.profile-facts {
  margin: 0;
  padding: 0 18px 18px;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.profile-facts dt {
  color: var(--subtle);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.profile-facts dd {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
}

.capability-cloud {
  gap: 9px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.capability-cloud span,
.tag-row span {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.7);
  color: #d4d4d8;
  font-size: 0.82rem;
  font-weight: 600;
}

.capability-cloud span {
  padding: 8px 11px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.work-grid,
.project-grid,
.recognition-grid {
  display: grid;
  gap: 16px;
}

.work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.recognition-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(17, 17, 19, 0.88);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  background: rgba(24, 24, 27, 0.94);
}

.card-large,
.project-card,
.list-card,
.stat-card,
.compact-card {
  padding: 22px;
}

.card-kicker {
  margin-bottom: 12px;
  color: var(--subtle);
}

.promotion {
  color: var(--green);
  font-weight: 650;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0 0 0 18px;
  color: var(--muted);
}

.detail-list li::marker {
  color: var(--border-strong);
}

.tag-row {
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tag-row span {
  padding: 6px 9px;
}

.compact-card {
  background: rgba(14, 14, 16, 0.9);
}

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

.hero-text a,
.project-card a,
.list-card a {
  color: #bfdbfe;
  text-decoration: underline;
  text-decoration-color: rgba(191, 219, 254, 0.35);
  text-underline-offset: 3px;
}

.timeline-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(170px, 1fr));
  gap: 14px;
  margin: 0;
  padding: 16px 0 8px;
  list-style: none;
  overflow-x: auto;
}

.timeline-list li {
  position: relative;
  min-width: 170px;
  padding-top: 32px;
  animation-delay: calc(var(--item-index, 0) * 35ms);
}

.timeline-list li::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 11px;
  width: calc(100% + 14px);
  height: 1px;
  background: var(--border-strong);
  z-index: 0;
}

.timeline-list li:last-child::after {
  display: none;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--subtle);
  box-shadow: 0 0 0 1px var(--border-strong);
  z-index: 1;
}

.timeline-list li:nth-child(1) { --item-index: 1; }
.timeline-list li:nth-child(2) { --item-index: 2; }
.timeline-list li:nth-child(3) { --item-index: 3; }
.timeline-list li:nth-child(4) { --item-index: 4; }
.timeline-list li:nth-child(5) { --item-index: 5; }
.timeline-list li:nth-child(6) { --item-index: 6; }
.timeline-list li:nth-child(7) { --item-index: 7; }

.timeline-highlight::before {
  background: var(--blue) !important;
}

.timeline-current::before {
  background: var(--green) !important;
}

.timeline-date {
  display: block;
  min-height: 34px;
  margin-bottom: 10px;
  color: var(--subtle);
}

.timeline-list h3 {
  margin-bottom: 7px;
  font-size: 0.96rem;
}

.timeline-list p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.stat-card {
  min-height: 190px;
}

.stat-number {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 1.7rem;
  font-weight: 700;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 44px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(24, 24, 27, 0.82);
}

.contact-section h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.contact-links {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 46px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

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

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .work-grid,
  .project-grid,
  .recognition-grid {
    grid-template-columns: 1fr;
  }

  .contact-links {
    justify-content: flex-start;
  }
}

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

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    max-width: min(calc(100vw - 28px), 300px);
    gap: 6px;
  }

  .site-nav a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .section-shell {
    width: min(calc(100vw - 28px), 300px);
    max-width: min(calc(100vw - 28px), 300px);
    margin-right: auto;
    margin-left: auto;
    padding: 64px 0;
  }

  .hero,
  .hero-copy,
  .profile-panel,
  .capability-cloud,
  .section-heading,
  .work-grid,
  .project-grid,
  .recognition-grid,
  .stack-list,
  .timeline-list,
  .contact-section,
  .site-footer {
    max-width: min(calc(100vw - 28px), 300px);
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
    padding-bottom: 8px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(2.05rem, 8vw, 2.38rem);
    overflow-wrap: normal;
  }

  .headline-part {
    display: block;
  }

  .hero-role {
    display: block;
    margin-bottom: 16px;
    font-size: 1.16rem;
  }

  .hero-role span {
    display: block;
  }

  .hero-role span + span {
    margin-top: 4px;
  }

  .hero-role span + span::before {
    content: "";
    margin-right: 0;
  }

  .hero-text,
  .section-heading p,
  .card p,
  .timeline-list p {
    overflow-wrap: break-word;
  }

  .hero-actions .button {
    width: 100%;
  }

  .profile-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .capability-cloud {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(calc(100vw - 28px), 300px);
  }

  .capability-cloud span {
    min-width: 0;
    text-align: center;
    overflow-wrap: break-word;
  }

  .profile-facts dd {
    overflow-wrap: break-word;
  }

  .timeline-list {
    display: block;
    overflow-x: visible;
    padding: 0;
  }

  .timeline-list::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 5px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .timeline-list li {
    min-width: 0;
    padding: 0 0 28px 28px;
  }

  .timeline-list li::after {
    display: none;
  }

  .timeline-list li::before {
    top: 5px;
    left: 0;
  }

  .timeline-date {
    min-height: auto;
  }

  .contact-section {
    padding: 22px;
  }
}

@media (max-width: 440px) {
  .brand span:last-child {
    display: none;
  }

  .site-nav a {
    padding: 7px 6px;
    font-size: 0.78rem;
  }

  .card-large,
  .project-card,
  .list-card,
  .stat-card,
  .compact-card {
    padding: 18px;
  }

  .contact-links a {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
