/* ===== Resume / Experience section ===== */
.resume {
  background: var(--cream);
  padding: 100px 28px 80px;
  border-top: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
}
.resume .sec { padding: 0; }

/* ---------- Horizontal scrub timeline ---------- */
.scrub-wrap {
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  background: var(--paper);
  padding: 22px 24px 26px;
  margin: 16px auto 36px;
  max-width: 1300px;
  box-shadow: 6px 6px 0 var(--ink);
}
.scrub-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.scrub-head .legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.scrub-head .legend span { display: inline-flex; align-items: center; gap: 6px; }
.scrub-head .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.scrub {
  position: relative;
  height: 130px;
  user-select: none;
}
.scrub .axis {
  position: absolute; left: 0; right: 0; bottom: 24px;
  height: 2px; background: var(--ink);
}
.scrub .ticks {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
}
.scrub .ticks span { position: relative; }
.scrub .ticks span::before {
  content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 8px; background: var(--ink);
}
.scrub .track {
  position: absolute; left: 0; right: 0;
  height: 30px;
}
.scrub .track.work { top: 8px; }
.scrub .track.edu { top: 50px; }
.scrub .track .label-tag {
  position: absolute; left: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
  top: -4px;
}
.scrub .bar {
  position: absolute;
  height: 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  display: flex; align-items: center;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  cursor: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.scrub .bar:hover, .scrub .bar.active {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}
.scrub .bar.b-tomato { background: var(--tomato); color: var(--cream); }
.scrub .bar.b-pink   { background: var(--pink); color: var(--cream); }
.scrub .bar.b-yellow { background: var(--yellow); color: var(--ink); }
.scrub .bar.b-orange { background: var(--orange); color: var(--ink); }
.scrub .bar.b-cream  { background: var(--cream); color: var(--ink); }
.scrub .bar.b-ink    { background: var(--ink); color: var(--cream); }

.scrub .playhead {
  position: absolute;
  top: -2px; bottom: 22px;
  width: 3px;
  background: var(--ink);
  pointer-events: none;
  z-index: 5;
}
.scrub .playhead::before {
  content: '';
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--ink);
}
.scrub .playhead .yr {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--yellow);
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 5px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ---------- Dossier (tabbed receipt) ---------- */
.dossier-wrap {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.dossier-head {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 24px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 14px 14px 0 0;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border: 2.5px solid var(--ink);
  border-bottom: 0;
}
.dossier-head .stamp {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--tomato);
  color: var(--cream);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
}
.dossier-head .stamp::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cream); animation: pulse2 1.6s ease-in-out infinite;
}

.dossier {
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-top: 0;
  box-shadow: 8px 8px 0 var(--ink);
  position: relative;
  overflow: hidden;
}

/* Tab strip */
.tabs {
  display: flex;
  border-bottom: 2.5px solid var(--ink);
  background: var(--paper);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1;
  min-width: max-content;
  padding: 16px 22px;
  background: transparent;
  border: 0;
  border-right: 2px dashed rgba(26,15,10,0.2);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: none;
  position: relative;
  transition: background 0.18s ease, color 0.18s ease;
}
.tabs button:last-child { border-right: 0; }
.tabs button:hover { background: rgba(255,212,0,0.18); color: var(--ink); }
.tabs button.active {
  background: var(--ink);
  color: var(--yellow);
}
.tabs button.active::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -2px;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid var(--cream);
}
.tabs button .count {
  display: inline-block;
  margin-left: 6px;
  background: rgba(26,15,10,0.12);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.tabs button.active .count { background: var(--tomato); color: var(--cream); }

.panes {
  padding: 28px 32px 8px;
  min-height: 500px;
}
.pane { display: none; animation: paneIn 0.28s ease; }
.pane.active { display: block; }
@keyframes paneIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ===== About pane ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: start;
}
.about-prose p {
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.about-prose p:first-child {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.about-prose p:first-child .acc { color: var(--tomato); }
.about-facts {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  padding: 18px 20px;
  font-family: var(--mono);
  position: sticky;
  top: 16px;
}
.about-facts .fact {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1.5px dashed rgba(26,15,10,0.18);
  font-size: 12px;
  align-items: baseline;
}
.about-facts .fact:last-child { border-bottom: 0; }
.about-facts .fact .k {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.about-facts .fact .v {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.about-facts .fact .v .acc { color: var(--tomato); }

/* ===== Experience pane (accordion) ===== */
.xp-list { display: flex; flex-direction: column; gap: 0; }
.xp {
  border-bottom: 2px dashed rgba(26,15,10,0.22);
}
.xp:last-child { border-bottom: 0; }
.xp-head {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 8px;
  cursor: none;
  transition: background 0.18s ease;
  position: relative;
}
.xp-head:hover { background: rgba(255,212,0,0.18); }
.xp-head .when {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.xp-head .when .now {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--tomato);
  margin-top: 3px;
  font-size: 10.5px;
}
.xp-head .when .now::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--tomato);
  box-shadow: 0 0 0 3px rgba(255,59,47,0.2);
  animation: pulse2 1.6s ease-in-out infinite;
}
.xp-head .role-line {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.xp-head .role {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.xp-head .org {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.xp-head .org .acc { color: var(--tomato); }
.xp-head .head-pills {
  display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; max-width: 280px;
}
.xp-head .head-pills .pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  background: var(--ink);
  color: var(--yellow);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.xp-head .head-pills .pill.alt { background: var(--tomato); color: var(--cream); }
.xp-head .head-pills .pill.alt2 { background: var(--yellow); color: var(--ink); }
.xp-head .toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px; height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.18s ease;
}
.xp.open .xp-head .toggle {
  transform: rotate(45deg);
  background: var(--yellow);
}

.xp-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(.65,.05,.36,1);
}
.xp-body > .inner { overflow: hidden; }
.xp.open .xp-body { grid-template-rows: 1fr; }
.xp-body .inner-pad {
  padding: 4px 8px 22px 148px;
}
.xp-body .body-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  margin-bottom: 12px;
  text-wrap: pretty;
}
.xp-body ul { list-style: none; padding: 0; margin: 0 0 14px; }
.xp-body ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink);
}
.xp-body ul li::before {
  content: '►';
  position: absolute; left: 0; top: 6px;
  font-size: 9px;
  color: var(--tomato);
}
.stack-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1.5px dashed rgba(26,15,10,0.18);
  margin-top: 4px;
}
.stack-row .stack-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 700;
}
.stack-row .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

/* ===== Education pane ===== */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edu-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--paper);
  position: relative;
}
.edu-card.featured { background: var(--yellow); }
.edu-card .edu-when {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.edu-card .edu-when .now {
  background: var(--tomato);
  color: var(--cream);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-size: 9.5px;
}
.edu-card .edu-deg {
  font-family: var(--display);
  font-size: clamp(20px, 1.8vw, 26px);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--ink);
}
.edu-card .edu-school {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.edu-card .edu-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 12px;
}
.edu-card .edu-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-card .edu-chips .chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  padding: 3px 8px;
  border-radius: 5px;
}
.edu-card.featured .edu-chips .chip { background: var(--paper); }

/* ===== Skills pane ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.skill-group {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--paper);
}
.skill-group .sg-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.skill-group .sg-head i {
  width: 10px; height: 10px; border-radius: 3px; display: inline-block;
}
.skill-group .skills-list { display: flex; flex-direction: column; gap: 8px; }
.skill-row {
  display: grid;
  grid-template-columns: 1fr 80px;
  align-items: center;
  gap: 12px;
}
.skill-row .name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.skill-row .score {
  display: none;
}
.skill-row .meter {
  height: 8px;
  background: var(--cream);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.skill-row .meter span {
  display: block;
  height: 100%;
  background: var(--tomato);
  border-radius: 999px;
  transition: width 0.8s cubic-bezier(.34,1.56,.64,1);
  width: 0;
}
.skill-row.in-view .meter span { width: var(--lvl, 80%); }
.skill-group.tools .meter span { background: var(--ink); }
.skill-group.product .meter span { background: var(--tomato); }
.skill-group.tech .meter span { background: var(--orange); }
.skill-group.soft .meter span { background: var(--pink); }

/* ===== Certs pane ===== */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cert-card {
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--paper);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 14px;
  align-items: start;
}
.cert-card .ct {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 5px;
}
.cert-card .cb {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.cert-card .status {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.cert-card .status.done { background: var(--ink); color: var(--yellow); }
.cert-card .status.pursuing { background: var(--tomato); color: var(--cream); }

/* ===== More pane ===== */
.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.more-card {
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 18px 20px;
  background: var(--paper);
}
.more-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.more-card .lang-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0;
  border-bottom: 1.5px dashed rgba(26,15,10,0.18);
  font-family: var(--mono);
  font-size: 13px;
}
.more-card .lang-row:last-child { border-bottom: 0; }
.more-card .lang-row .lvl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tomato);
}
.more-card .placeholder {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  background: var(--cream);
  border: 1.5px dashed rgba(26,15,10,0.4);
  border-radius: 8px;
  padding: 12px;
  line-height: 1.5;
}

/* Footer */
.dossier-foot {
  background: var(--ink);
  color: var(--cream);
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 0 0 14px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
}
.dossier-foot .total {
  font-family: var(--display);
  font-size: 18px;
  text-transform: uppercase;
  color: var(--yellow);
  letter-spacing: -0.01em;
}
.dossier-foot .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dossier-foot .actions a {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cream);
  color: var(--ink);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: none;
  transition: transform 0.15s ease;
}
.dossier-foot .actions a:hover { transform: translate(-2px, -2px); background: var(--yellow); }
.dossier-foot .actions a.primary { background: var(--tomato); color: var(--cream); }
.dossier-foot .actions a.primary:hover { background: var(--yellow); color: var(--ink); }

/* Mobile */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-facts { position: static; }
  .edu-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .panes { padding: 22px 18px 8px; }
  .xp-head { grid-template-columns: 1fr auto; gap: 10px; }
  .xp-head .when { grid-column: 1; }
  .xp-head .head-pills { display: none; }
  .xp-body .inner-pad { padding: 4px 8px 18px; }
  .scrub { height: 160px; }
  .tabs button { padding: 14px 14px; font-size: 11.5px; }
}
