:root {
  --bg: #222428;
  --panel: #1b1919;
  --text: #eee7dc;
  --text-soft: #d3cbc0;
  --text-muted: #c0b8b0;
  --text-dim: #9e9890;

  --lavender: #e5a8e5;

  --yellow: #e6d48f;
  --sage: #bfc37a;
  --cyan: #a9e3e3;
  --green: #9fdaa4;
  --orange: #e8a267;

  --rule-color: rgba(229, 168, 229, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: #222428;
  font-family: monospace;
  color: #cccccc;
  line-height: 1.6;
}

.resume-container {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  width: 88%;
  margin: 0;
  padding: 0;
}

.ascii-logo {
  text-align: center;
  width: 100%;
  display: block;
  margin: 0 0 18px 0;
  font-size: 9px;
  line-height: 1;
  white-space: pre;
  color: var(--text-muted);
  animation: glitch-idle 4s infinite;
}

.ascii-portrait {
  flex-shrink: 0;
  margin: 0;
  font-size: 10px;
  line-height: 1;
  white-space: pre;
  color: var(--text-soft);
  animation: glitch-idle 4s infinite;
}

.contact-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-trigger {
  background: var(--panel);
  border: 1px solid var(--rule-color);
  border-bottom: none;
  color: var(--yellow);
  font-family: monospace;
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
}

.contact-trigger:hover {
  background: rgba(229, 168, 229, 0.1);
  color: var(--text);
}

.contact-drawer {
  background: var(--panel);
  border: 1px solid var(--rule-color);
  border-bottom: none;
  width: 320px;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.contact-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.contact-drawer-inner {
  padding: 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.contact-close:hover {
  color: var(--orange);
}

.obf-email::after {
  content: attr(data-u) "\40" attr(data-d);
  color: var(--cyan);
  font-size:large;
}

.nfo-panel {
  flex: 1 1 860px;
  min-width: 700px;
  padding: 20px 20px 20px 24px;
}

.nfo-section {
  margin-bottom: 32px;
  font-size: 15px;
}


.nfo-title {
  display: block;
  margin-bottom: 16px;
  padding-bottom: 8px;
  font-size: 18px;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--rule-color);
}

.contact-line {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 24px 0;
}

.contact-line h1 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.contact-line h2 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 20px;
  line-height: 1.15;
  font-weight: 300;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.skills-col {
  min-width: 0;
}

.skills-col:first-child {
  padding-right: 10px;
}

.skills-col:last-child {
  padding-left: 18px;
}

@media (max-width: 1100px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .skills-col:last-child {
    border-left: none;
    padding-left: 0;
  }
}

.skill-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin: 10px 0;
  color: var(--text-soft);
}

.skill-row span:first-child {
  flex: 1;
}

.skill-bar {
  letter-spacing: 2px;
  white-space: nowrap;
  transition: color 0.2s;
}

.skill-expert     { color: var(--green); }
.skill-advanced   { color: var(--cyan); }
.skill-intermediate { color: var(--yellow); }
.skill-basic      { color: var(--orange); }

.experience-item {
  margin: 18px 0 26px;
  padding-left: 14px;
  border-left: 2px solid var(--rule-color);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.job-title {
  display: block;
  color: var(--lavender);
  font-weight: 700;
  font-size: 18px;
}

.job-org {
  margin-top: 2px;
}

.job-org.redacted {
  display: inline-block;
  color: var(--bg);
  background: var(--text-muted);
  user-select: none;
  letter-spacing: 0.05em;
  padding: 0 6px;
  font-size: 13px;
  margin-top: 4px;
  cursor: default;
}

.job-date {
  color: var(--text-dim);
  float: right;
  font-size: 13px;
}

.experience-item > div:last-child {
  color: var(--text-muted) !important;
  margin-top: 10px !important;
  line-height: 1.7;
}

.nfdo-section:last-of-type > div {
  color: var(--text-muted) !important;
  font-size: 13px !important;
  line-height: 1.7;
}

::-webkit-scrollbar {
  width: 10px;
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background: rgba(229, 168, 229, 0.75);
  border: 1px solid #0f0f0f;
}

.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  animation: scanline-move 8s linear infinite;
}

@keyframes scanline-move {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}

@keyframes glitch-idle {
  0%, 89%, 100%   { transform: none; filter: none; opacity: 1; }
  90%  { transform: none; filter: hue-rotate(90deg); opacity: 0.9; }
  91%  { transform: none; filter: none; opacity: 1; }
  92%  { transform: none; filter: hue-rotate(-60deg) brightness(1.4); opacity: 0.85; }
  93%  { transform: none; filter: none; opacity: 1; }
  94%  { transform: none; filter: hue-rotate(45deg); opacity: 0.9; }
  95%  { transform: none; filter: none; opacity: 1; }
}

/* @keyframes glitch-idle {
  0%, 89%, 100%   { transform: none; filter: none; opacity: 1; }
  90%  { transform: skewX(-2deg) translateX(3px); filter: hue-rotate(90deg); opacity: 0.9; }
  91%  { transform: none; filter: none; opacity: 1; }
  92%  { transform: skewX(1deg) translateX(-2px); filter: hue-rotate(-60deg) brightness(1.4); opacity: 0.85; }
  93%  { transform: none; filter: none; opacity: 1; }
  94%  { transform: translateX(4px) skewX(-1deg); filter: hue-rotate(45deg); opacity: 0.9; }
  95%  { transform: none; filter: none; opacity: 1; }
} */

.bluf-cursor {
  color: var(--greenn);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}