:root {
  --bg: #ffffff;
  --ink: #16181c;
  --muted: #6b7178;
  --faint: #9aa0a6;
  --line: #ebecee;
  --line-strong: #dadcdf;
  --accent: #1d7488;        /* teal — interaction / brand */
  --accent-strong: #155a69;
  --ok: #2ea043;            /* green — the single "operational" signal */
  --chip-bg: #fbfbfb;
  --panel-shadow: 0 10px 24px rgba(22, 24, 28, 0.055);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 60px 0 64px;
}

.reading-container {
  width: min(840px, 100%);
  margin-right: auto;
  margin-left: auto;
}

/* ---------- hero ---------- */
.profile {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 46px;
  align-items: center;
}

.avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(22, 24, 28, 0.055);
}

h1 {
  margin: 0 0 10px;
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.07;
  letter-spacing: -0.02em;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.45);
  animation: pulse 2.6s ease-out infinite;
}

.status-dot.static {
  box-shadow: none;
  animation: none;
  background: var(--accent);
}

.role {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.tagline {
  margin: 0 0 16px;
  max-width: 54ch;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
}

.credential {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.hero-proof {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0 0 20px;
}

.hero-actions a {
  font-family: var(--mono);
  font-size: 0.78rem;
  border-bottom: 1px solid transparent;
}

.hero-actions a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

.contact {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.contact .email {
  font-family: var(--mono);
  font-size: 0.82rem;
  border-bottom: 1px solid transparent;
}

.contact .email:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

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

.social-links a {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--ink);
  color: #fff;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

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

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 50px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav a:hover {
  color: var(--accent);
}

/* ---------- sections ---------- */
.section {
  padding: 50px 0 54px;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 26px;
  font-size: 2rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section > p {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.72;
}

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

/* ---------- skills (datasheet) ---------- */
.skills-list {
  display: grid;
}

.skill-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 28px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}

.skill-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.skill-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
}

.skill-items span {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.skill-items span + span::before {
  content: "/";
  margin: 0 8px;
  color: var(--line-strong);
}

/* ---------- projects ---------- */
.projects-section {
  width: 100%;
}

.projects-heading {
  width: min(840px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.project-list {
  display: grid;
  gap: 50px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 38px;
  align-items: start;
}

.project-preview {
  display: block;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.project-preview:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--panel-shadow);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: var(--chip-bg);
  border-bottom: 1px solid var(--line);
}

.frame-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d2d5d9;
  flex: none;
}

.frame-bar em {
  margin-left: 8px;
  min-width: 0;
  flex: 0 1 auto;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame-status {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.frame-status .sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.frame-status.live {
  color: var(--ok);
}

.frame-status.live .sdot {
  box-shadow: 0 0 0 0 rgba(46, 160, 67, 0.45);
  animation: pulse 2.6s ease-out infinite;
}

.project-preview img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: top;
  filter: saturate(0.92) contrast(0.98);
}

.project-preview .gitops-preview-image {
  width: 135%;
  max-width: none;
  object-position: left top;
}

.frame-placeholder {
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--chip-bg);
  color: var(--faint);
}

.frame-placeholder .gh-mark {
  width: 44px;
  height: 44px;
  transition: color 0.18s ease, transform 0.18s ease;
}

.frame-placeholder .ph-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-preview:hover .frame-placeholder .gh-mark {
  color: var(--accent);
  transform: translateY(-2px);
}

.project-body .project-name {
  margin: 2px 0 5px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.project-tags {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-body h3 {
  margin: 0 0 14px;
  font-size: 1.28rem;
  font-weight: 500;
  line-height: 1.35;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--ink);
}

.project-metrics span {
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: normal;
  overflow-wrap: break-word;
}

.project-metrics span:not(:last-child)::after {
  content: none;
}

.project-body p {
  margin: 0 0 12px;
  line-height: 1.62;
}

.project-outcomes {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.project-outcomes li {
  position: relative;
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.project-outcomes strong {
  font-weight: 500;
  color: var(--ink);
}

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

.stack span {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
}

.project-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  border-bottom: 1px solid var(--line-strong);
}

.project-links a:hover {
  color: var(--accent-strong);
  border-bottom-color: var(--accent-strong);
}

/* ---------- resume ---------- */
.resume-section p {
  color: var(--muted);
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.resume-link .arrow {
  color: var(--accent);
}

.resume-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 24, 28, 0.055);
}

/* ---------- timeline ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 14px;
  left: 176px;
  width: 1px;
  background: var(--line);
}

.timeline > li {
  position: relative;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 62px;
  padding: 0 0 30px;
}

.timeline > li:last-child {
  padding-bottom: 0;
}

.timeline > li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 171px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--bg);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-align: right;
  padding-top: 1px;
}

.timeline-content h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.timeline-content strong {
  display: block;
  margin-top: 3px;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
}

.timeline-content {
  width: 100%;
  min-width: 0;
}

.timeline-content p {
  margin: 6px 0 0;
  color: var(--ink);
}

.experience-list {
  display: block;
  width: 100%;
  max-width: 720px;
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc outside;
}

.experience-list > li {
  position: static;
  display: list-item;
  width: auto;
  max-width: none;
  padding-left: 4px;
  line-height: 1.62;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.experience-list > li + li {
  margin-top: 10px;
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 30px;
}

.site-footer p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
}

.foot-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- motion ---------- */
@keyframes pulse {
  to {
    box-shadow: 0 0 0 7px rgba(46, 160, 67, 0);
  }
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .container {
    width: calc(100% - 32px);
    padding-top: 34px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .avatar {
    width: 110px;
    height: 110px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .nav {
    gap: 12px 20px;
    margin-top: 32px;
  }

  .nav a {
    letter-spacing: 0.12em;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-preview img {
    height: 200px;
  }

  .timeline::before {
    left: 5px;
  }

  .timeline > li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-left: 28px;
  }

  .timeline > li::before {
    left: 0;
  }

  .timeline-date {
    text-align: left;
  }

  .experience-list {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .project {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-preview img {
    height: 280px;
  }
}

@media (max-width: 600px) {
  .project-metrics {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-width: 100%;
  }

  .project-metrics span {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (max-width: 760px) {
  .project-preview img {
    height: 200px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  .container {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 720px) {
  .project-outcomes li {
    font-size: 0.9rem;
  }
}

/* ---------- capabilities (skills) ---------- */
/* Replaces the flat tag-cloud. Each block states a capability, backs it with a
   specific number, then lists the tools underneath as supporting detail. */
.section-lede {
  margin: -2px 0 28px;
  max-width: 66ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.62;
}











/* ---------- dark theme ---------- */
[data-theme="dark"] {
  --bg: #0e1013;
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --faint: #6c727a;
  --line: #232830;
  --line-strong: #313842;
  --accent: #4ec3d6;
  --accent-strong: #79d6e5;
  --ok: #3fb950;
  --chip-bg: #16191d;
  --panel-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .social-links a {
  background: #21262d;
  color: var(--ink);
}

[data-theme="dark"] .social-links a:hover {
  background: var(--accent);
  color: var(--bg);
}

[data-theme="dark"] .stack span {
  background: transparent;
}

[data-theme="dark"] .frame-bar .dot {
  background: #3a4048;
}

[data-theme="dark"] .avatar {
  box-shadow: none;
}

.theme-toggle {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.theme-toggle::before {
  content: "\263E\00A0";
}

.theme-toggle::after {
  content: "Dark";
}

[data-theme="dark"] .theme-toggle::before {
  content: "\2600\00A0";
}

[data-theme="dark"] .theme-toggle::after {
  content: "Light";
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.foot-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

/* ── portfolio easter eggs ── */
.pe-about-trigger {
  margin: 0 0 0 0.28rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--faint);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1;
  opacity: 0.68;
  vertical-align: middle;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.pe-about-trigger:hover,
.pe-about-trigger:focus-visible {
  color: var(--pe-accent, #1D9E75);
  opacity: 1;
}

.pe-bio-copy {
  transition: opacity 0.2s ease;
}

.pe-bio-copy.pe-bio-fade {
  opacity: 0;
}

.pe-terminal {
  margin-top: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: #0f1113;
  border-radius: 9px;
  color: #8ee6b4;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pe-terminal[hidden] {
  display: none;
}

.pe-terminal-visible {
  opacity: 1;
}

.pe-terminal-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.9rem;
}

.pe-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
}

.pe-dot-red {
  background: #ff8b7e;
}

.pe-dot-amber {
  background: #f5c56b;
}

.pe-dot-green {
  background: #8ee6b4;
}

.pe-terminal-output {
  margin: 0;
  overflow-x: auto;
  color: #8ee6b4;
  font: inherit;
  line-height: 1.6;
  white-space: pre;
}

.pe-token-cmd {
  color: #65d6df;
}

.pe-token-key {
  color: #748189;
}

.pe-token-value {
  color: #8ee6b4;
}

.pe-token-event {
  color: #f5c56b;
}

.pe-terminal-cursor {
  display: inline-block;
  width: 0.58em;
  height: 1em;
  margin-left: 3px;
  background: #8ee6b4;
  vertical-align: -0.14em;
  animation: pe-cursor-blink 1s steps(2, start) infinite;
}

.pe-terminal-cursor[hidden] {
  display: none;
}

.pe-restore-bio {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  color: #748189;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  transition: color 0.18s ease;
}

.pe-restore-bio:hover,
.pe-restore-bio:focus-visible {
  color: #f5c56b;
}

.pe-restore-bio[hidden] {
  display: none;
}

.pe-incident-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.75);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.pe-incident-overlay[hidden] {
  display: none;
}

.pe-incident-open {
  opacity: 1;
}

.pe-incident-card {
  width: min(100%, 480px);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  padding: 2rem;
  background: #0f1113;
  border: 1px solid var(--pe-accent, #1D9E75);
  border-radius: 9px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  color: #8ee6b4;
  font-family: var(--mono);
}

.pe-incident-report {
  margin: 0;
  color: #8ee6b4;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.pe-incident-line {
  color: #8ee6b4;
}

.pe-incident-heading {
  color: #f5c56b;
}

.pe-incident-divider {
  color: #334044;
}

.pe-incident-close {
  display: block;
  margin: 1rem auto 0;
  padding: 0.48rem 0.75rem;
  background: transparent;
  border: 1px solid var(--pe-accent, #1D9E75);
  border-radius: 5px;
  color: #f5c56b;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.pe-incident-close:hover,
.pe-incident-close:focus-visible {
  border-color: #8ee6b4;
  color: #8ee6b4;
}

@keyframes pe-cursor-blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 520px) {
  .pe-terminal {
    padding: 0.9rem 1rem;
    font-size: 0.7rem;
  }

  .pe-incident-card {
    padding: 1.25rem;
  }

  .pe-incident-report,
  .pe-incident-close {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pe-terminal-cursor {
    animation: none;
  }
}
