/* Pipeline — a CI run: status bar, stage strip, jobs, runners, badges. */
:root { --t-font-display: "IBM Plex Sans", system-ui, sans-serif; --t-font-body: "IBM Plex Sans", system-ui, sans-serif; --t-font-mono: "IBM Plex Mono", ui-monospace, monospace; --t-max: 1120px; --t-radius: 10px; --t-radius-sm: 6px; --t-radius-pill: 6px; --t-ok: var(--t-accent); }
body { background-image: linear-gradient(color-mix(in srgb, var(--t-line) 55%, transparent) 1px, transparent 1px); background-size: 100% 48px; }

/* the run header */
.t-hero--run .t-hero__inner { grid-template-columns: auto minmax(0, 1fr); gap: 20px 28px; padding-block: 0 clamp(24px, 4vw, 40px); }
.t-run__bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-family: var(--t-font-mono); font-size: var(--t-size-0); color: var(--t-muted); border-block-end: 1px solid var(--t-line); padding: 14px 0; margin-block-end: 8px; }
.t-run__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--t-ok) 18%, transparent); color: var(--t-accent-text); font-weight: 600; }
.t-run__status .t-icon { width: 16px; height: 16px; }
.t-run__meta::before { content: "·"; margin-inline-end: 18px; opacity: .5; }
.t-run__meta--end { margin-inline-start: auto; } .t-run__meta--end::before { content: none; }
.t-hero--run .t-photo { width: clamp(96px, 14vw, 136px); border-radius: 14px; box-shadow: 0 0 0 2px var(--t-line); }
.t-hero--run .t-eyebrow { font-family: var(--t-font-mono); letter-spacing: .04em; text-transform: none; }
.t-hero--run .t-eyebrow::before { content: "# "; color: var(--t-muted); }
.t-hero--run .t-name { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.t-hero--run .t-headline { font-weight: 500; max-width: 44ch; }
.btn { --bs-btn-font-weight: 600; font-family: var(--t-font-mono); }
.t-link { font-family: var(--t-font-mono); font-size: var(--t-size-0); border-radius: 6px; }

/* the stage strip (the Pipeline signature) */
.t-run { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; position: relative; counter-reset: stage; }
.t-run__stage { position: relative; padding: 14px 16px 14px 52px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: var(--t-surface); display: grid; gap: 2px; min-width: 0; }
.t-run__dot { position: absolute; inset-inline-start: 14px; top: 16px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--t-line); color: var(--t-on-accent); }
.t-run__dot .t-icon { width: 14px; height: 14px; stroke-width: 3; }
.t-run__stage--passed .t-run__dot { background: var(--t-ok); border-color: var(--t-ok); }
.t-run__stage--source .t-run__dot { border-style: dashed; }
.t-run__stage--running { border-color: var(--t-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--t-accent) 18%, transparent); }
.t-run__stage--running .t-run__dot { border-color: var(--t-accent); }
.t-run__stage--running .t-run__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--t-accent); animation: t-pulse 1.6s ease-in-out infinite; }
@keyframes t-pulse { 0%, 100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .t-run__stage--running .t-run__dot::after { animation: none; } }
.t-run__label { font-weight: 700; font-size: var(--t-size-2); }
.t-run__sub { color: var(--t-text); font-size: var(--t-size-1); }
.t-run__when { font-family: var(--t-font-mono); font-size: var(--t-size-0); color: var(--t-muted); }
/* the line between stages */
.t-run__stage::before { content: ""; position: absolute; inset-inline-start: 25px; top: -13px; height: 13px; border-inline-start: 2px solid var(--t-line); }
.t-run__stage:first-child::before { content: none; }
@media (min-width: 760px) {
  .t-run { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 18px; padding-block-start: 24px; }
  .t-run::before { content: ""; position: absolute; top: 0; inset-inline: 12px; height: 2px; background: var(--t-line); }
  .t-run__stage { padding: 20px 16px 16px 16px; }
  .t-run__stage::before { content: ""; inset-inline-start: 50%; top: -24px; height: 24px; border-inline-start: 2px solid var(--t-line); }
  .t-run__dot { inset-inline-start: calc(50% - 12px); top: -36px; background: var(--t-bg); }
  .t-run__stage--passed .t-run__dot { background: var(--t-ok); }
}
.t-hero--run .t-hero__inner > .t-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-block-start: 8px; }
.t-hero--run .t-stats li { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius-sm); padding: 12px 14px; font-family: var(--t-font-mono); }
.t-hero--run .t-stats strong { font-weight: 600; color: var(--t-accent-text); }

/* sections as job logs */
.t-section__title { font-family: var(--t-font-mono); font-weight: 600; font-size: clamp(1.1rem, 2vw, 1.4rem); display: flex; align-items: center; gap: 10px; }
.t-section__title::before { content: "▸"; color: var(--t-accent-text); }
.t-section--summary .t-section__title { display: none; }
.t-summary { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 500; max-width: 60ch; border-inline-start: 3px solid var(--t-accent); padding-inline-start: 18px; }
/* jobs */
.t-cards--projects .card { border: 1px solid var(--t-line); box-shadow: none; }
.t-cards--projects .t-item__title { font-family: var(--t-font-mono); font-size: var(--t-size-2); }
.t-cards--projects .t-item__title::before { content: "job  "; white-space: pre; color: var(--t-muted); font-weight: 400; }
.t-cards--projects .t-card__sub::before { content: "✓ "; color: var(--t-accent-text); }
/* badges */
.t-cards--certifications { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.t-cards--certifications .card { background: var(--t-surface2); border: 0; box-shadow: none; }
.t-cards--certifications .card-body { padding-block-start: 18px; }
.t-cards--certifications .t-item__title::before { content: "🛡 "; }
/* runners */
.t-chip { font-family: var(--t-font-mono); font-size: var(--t-size-0); border-radius: 6px; }
.t-chip::before { content: "["; color: var(--t-muted); } .t-chip[data-level]::after { margin-inline-start: 4px; } .t-chip:not([data-level])::after { content: "]"; color: var(--t-muted); }
.t-skillgroup h3 { font-family: var(--t-font-mono); }
.t-skillgroup h3::before { content: "runners/"; color: var(--t-accent-text); text-transform: lowercase; }
/* lists as log lines */
.t-list li { font-family: var(--t-font-mono); font-size: var(--t-size-1); }
.t-list li strong::before { content: "✓ "; color: var(--t-accent-text); }
.t-timeline__when { font-family: var(--t-font-mono); }
.t-quote { border: 1px solid var(--t-line); background: var(--t-surface); }
.t-footer { font-family: var(--t-font-mono); }
