/* ---------------------------------------------------
   Tokens
--------------------------------------------------- */
:root {
  --bg: #121A24;
  --bg-raised: #17212C;
  --panel: #1A2430;
  --border: #2B3646;
  --border-soft: #212B39;
  --text: #E7ECF1;
  --text-dim: #8C9BAC;
  --text-faint: #5C6B7D;
  --ok: #4FD1A5;
  --ok-dim: #2E5E4F;
  --warn: #E8A33D;

  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-width: 760px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

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

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--text);
  text-decoration: none;
}
a:hover { color: var(--ok); }

/* subtle scanline texture, fixed, very low opacity — grounds the terminal theme without being a generic gradient wash */
.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 3px
  );
}

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

/* ---------------------------------------------------
   Topbar
--------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(18, 26, 36, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand__dot { color: var(--ok); }

.nav {
  display: flex;
  gap: 24px;
}
.nav a {
  font-size: 14px;
  color: var(--text-dim);
}
.nav a:hover { color: var(--text); }

/* ---------------------------------------------------
   Hero / terminal
--------------------------------------------------- */
.hero {
  padding: 56px 24px 32px;
}

.terminal {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.terminal__dots {
  display: flex;
  gap: 6px;
}
.terminal__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.terminal__title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-left: 4px;
}

.terminal__body {
  padding: 20px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
}

.line {
  margin: 0 0 6px;
  color: var(--text);
}
.line.out {
  color: var(--text-dim);
}
.line.indent {
  padding-left: 18px;
}
.line.block {
  padding-left: 18px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 62ch;
  margin-top: 4px;
  margin-bottom: 14px;
}

.prompt {
  color: var(--ok);
  margin-right: 8px;
}

.ok { color: var(--ok); }

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}
.dot--ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px var(--ok-dim);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cursor {
  display: inline-block;
  width: 7px;
  height: 15px;
  background: var(--text-dim);
  vertical-align: middle;
  animation: blink 1s step-start infinite;
}
@keyframes blink {
  50% { opacity: 0; }
}

.hero__meta {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  flex-wrap: wrap;
}

.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metric__num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.metric__label {
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ---------------------------------------------------
   Sections
--------------------------------------------------- */
.section {
  padding: 48px 24px;
  border-top: 1px solid var(--border-soft);
}

.section__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.section__sub {
  color: var(--text-faint);
  font-size: 14.5px;
  margin: 0 0 28px;
}

/* ---------------------------------------------------
   Stack panels
--------------------------------------------------- */
.stackgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.panel {
  background: var(--panel);
  padding: 20px 22px;
}

.panel--wide {
  border: 1px solid var(--border-soft);
}

.panel__title {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
}

.panel__sub {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.taglist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.taglist li {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-dim);
  position: relative;
  padding-left: 14px;
}
.taglist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background: var(--text-faint);
}

/* ---------------------------------------------------
   Experience log
--------------------------------------------------- */
.joblog {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
}

.entry__when {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 3px;
}

.entry__range {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
}

.pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 3px;
  width: fit-content;
}
.pill--ok {
  color: var(--ok);
  border-color: var(--ok-dim);
}

.entry__body {
  border-left: 1px solid var(--border);
  padding-left: 22px;
}

.entry__role {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 2px;
}

.entry__org {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 16px;
}

.entry__group {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--warn);
  margin: 18px 0 8px;
  font-weight: 500;
}
.entry__group:first-of-type { margin-top: 0; }

.entry__list {
  margin: 0 0 4px;
  padding-left: 18px;
}
.entry__list li {
  color: var(--text-dim);
  font-size: 14.5px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.entry__list li::marker {
  color: var(--text-faint);
}

/* ---------------------------------------------------
   Footer
--------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 24px 64px;
  background: var(--bg-raised);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__status {
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  margin: 0 0 10px;
}

.footer__title {
  font-size: 26px;
  margin: 0;
  letter-spacing: -0.01em;
  max-width: 360px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  align-items: flex-end;
  text-align: right;
}
.footer__contact a { color: var(--text-dim); }
.footer__contact a:hover { color: var(--ok); }
.footer__loc { color: var(--text-faint); }

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 680px) {
  .stackgrid { grid-template-columns: 1fr; }
  .entry { grid-template-columns: 1fr; }
  .entry__when { flex-direction: row; align-items: center; }
  .entry__body { border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 16px; }
  .footer__inner { align-items: flex-start; }
  .footer__contact { align-items: flex-start; text-align: left; }
  .hero__meta { gap: 24px; }
}
