* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #fdfcfa;
  min-height: 100vh;
  font-family: "DejaVu Sans Mono", "Courier New", monospace;
  color: #5a5a5a;
  padding: 110px 0 80px 220px;
}

/* very light paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.06;
  background-image: url("../images/grain.svg");
}

.wrap { max-width: 640px; }

h1 {
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  letter-spacing: 1px;
  color: #4a4a4a;
  margin-bottom: 18px;
}

/* tabs */
.tabs {
  display: flex;
  gap: 26px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tab {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 19px;
  color: #9a9a9a;
  cursor: pointer;
  padding: 0 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tab:hover { color: #000; }
.tab.active { color: #2a2a2a; border-color: #2a2a2a; }

/* panels */
.panel { display: none; }
.panel.active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* links panel */
nav a {
  display: block;
  font-size: 21px;
  color: #6a6a6a;
  text-decoration: none;
  line-height: 1.55;
  width: fit-content;
  transition: color 0.15s ease;
}
nav a:hover { color: #000; }

.contact-line {
  font-size: 17px;
  color: #6a6a6a;
  margin-top: 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}
.contact-line.show { opacity: 1; max-height: 60px; }
.contact-line a {
  color: #6a6a6a;
  text-decoration: none;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-line a:hover { color: #000; border-color: #000; }
.contact-sep {
  color: #b9b9b9;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 0 5px;
  text-transform: uppercase;
}

/* education cards */
.xp { margin-bottom: 30px; }
.xp-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.xp-role { font-size: 18px; color: #2a2a2a; font-weight: 700; }
.xp-date { font-size: 14px; color: #aaa; white-space: nowrap; }
.xp-org { font-size: 15px; color: #777; margin-top: 2px; }
.xp-desc { font-size: 15px; line-height: 1.6; margin-top: 8px; color: #666; }

/* timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 2px;
  background: #e2e2e2;
}
.tl-item { position: relative; margin-bottom: 24px; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -27px; top: 6px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #888;
}
.tl-date { font-size: 13px; color: #aaa; letter-spacing: 0.5px; }
.tl-title { font-size: 16px; color: #2a2a2a; margin-top: 2px; }
.tl-sub { font-size: 14px; color: #888; margin-top: 1px; }

/* muted parenthetical inside a timeline title, e.g. "(in parallel)" */
.tl-paren { color: #aaa; font-weight: 400; }

/* clickable entry (accent) */
.tl-link { cursor: pointer; }
.tl-link::before { border-color: #5a9bd4; }
.tl-link .tl-title { transition: color 0.15s ease; }
.tl-link:hover .tl-title { color: #2f7cb5; }
.tl-jump { font-size: 13px; color: #2f7cb5; margin-top: 4px; user-select: none; }
.tl-link:hover .tl-jump { text-decoration: underline; }

/* expandable missions */
.tl-missions {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s ease, opacity 0.3s ease, margin 0.3s ease;
}
.tl-missions.open {
  max-height: 2400px;
  opacity: 1;
  margin: 8px 0 24px 0;
}
.tl-missions-inner {
  border-left: 2px dashed #c8dff1;
  padding: 4px 0 4px 22px;
  margin-left: 4px;
}
.tlm-note { font-size: 13px; color: #999; margin-bottom: 16px; }
.tlm-item { margin-bottom: 15px; }
.tlm-item:last-child { margin-bottom: 0; }
.tlm-item .tl-title { font-size: 15px; }

/* skills */
.skill-group { margin-bottom: 26px; }
.skill-cat {
  font-size: 13px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 11px;
}
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag {
  font-size: 13px;
  color: #5a5a5a;
  border: 1px solid #e3e1dc;
  border-radius: 5px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.55);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.skill-tag:hover { border-color: #b9b9b9; color: #2a2a2a; }
.skill-note { font-size: 12px; color: #aaa; margin-top: 9px; }

/* muted year inside the certifications list */
.cert-year { color: #aaa; }

@media (max-width: 720px) {
  body { padding: 56px 28px 60px 28px; }
  h1 { font-size: 27px; }
  .tabs { gap: 18px; }
  .tab { font-size: 16px; }
  nav a { font-size: 18px; }
}
