:root {
  --bg: #060b14;
  --bg-card: rgba(8, 16, 30, 1);
  --accent: #9cdcfe;
  --accent-lo: rgba(0, 229, 255, 0.12);
  --accent-md: rgba(0, 229, 255, 0.30);
  --green: #91cea8;
  --red: #d18771;
  --text: #c8d8e8;
  --dim: #324a62;
  --border: rgba(0, 229, 255, 0.10);
  --border-hi: rgba(0, 229, 255, 0.35);
  --year-h: 120px;
  --ruler-w: 84px;
  --head-h: 56px;
  --cols-h: 38px;
  --stick-h: 94px;
  /* head-h + cols-h */
}

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

html {
  scroll-behavior: auto;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Courier New', monospace;
  overflow-x: hidden;
}

/* dot-grid background */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  /*background-image: radial-gradient(rgba(0, 229, 255, 0.065) 1px, transparent 1px);
  background-size: 12px 12px;*/
  pointer-events: none;
  z-index: 0;
}

/* scanline sweep */
@keyframes scan {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100vh);
  }
}

body::after {
  content: '';
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(0, 229, 255, 0.04), transparent);
  pointer-events: none;
  z-index: 9999;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 300;
  height: var(--head-h);
  background: rgba(6, 11, 20, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
}

.h-sys {
  font-size: 19px;
  letter-spacing: 4px;
  color: var(--text);
  text-transform: uppercase;
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.h-pdf {
  font-size: 19px;
  letter-spacing: 4px;
  color: #ffffff;
  text-transform: uppercase;
  padding-left: 20px;
  border-left: 1px solid var(--border);
  cursor: pointer;
}

.h-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #fff;
}

.h-title em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.5);
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.cursor {
  display: inline-block;
  width: 9px;
  height: 17px;
  background: var(--accent);
  vertical-align: middle;
  margin-left: 6px;
  animation: blink 1.1s step-end infinite;
  box-shadow: 0 0 10px var(--accent);
}

.h-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.h-stat {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--dim);
  text-align: right;
  line-height: 1.9;
}

.h-stat strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 1px;
}

/* COLUMN HEADERS */
.col-head-wrap {
  position: sticky;
  top: var(--head-h);
  z-index: 200;
  height: var(--cols-h);
  background: rgba(6, 11, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
}

.col-head-ruler-space {
  width: var(--ruler-w);
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-left: 14px;
  font-size: 19px;
  letter-spacing: 3px;
  color: var(--dim);
}

.col-head-labels {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.col-head-label {
  display: flex;
  align-items: center;
  padding: 0 20px;
  font-size: 19px;
  letter-spacing: 4px;
  color: var(--dim);
  text-transform: uppercase;
  border-right: 1px solid var(--border);
}

.col-head-label:last-child {
  border-right: none;
}

.col-head-label::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  margin-right: 10px;
  flex-shrink: 0;
}

/* LAYOUT */
.tl-wrap {
  display: flex;
  position: relative;
  z-index: 1;
}

/* YEARS RULER */
.ruler {
  width: var(--ruler-w);
  flex-shrink: 0;
  position: sticky;
  top: var(--stick-h);
  height: calc(100vh - var(--stick-h));
  overflow: hidden;
  z-index: 100;
  background: linear-gradient(to right, rgba(6, 11, 20, 1) 60%, transparent);
  border-right: 1px solid rgba(255, 255, 255, 0.035);
}

.ruler-tape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

.yr-mark {
  height: var(--year-h);
  position: relative;
  display: flex;
  align-items: flex-start;
}

.yr-num {
  font-size: 19px;
  letter-spacing: 2px;
  color: var(--dim);
  line-height: 0;
  padding: 0 0 0 14px;
  user-select: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.yr-tick {
  position: absolute;
  right: 0;
  top: 0;
  height: 1px;
  width: 18px;
  background: rgba(0, 229, 255, 0.18);
}

.yr-mark.decade .yr-num {
  color: rgba(0, 229, 255, 0.55);
  font-weight: 700;
  font-size: 19px;
}

.yr-mark.decade .yr-tick {
  width: 18px;
  background: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.25);
}

.yr-mark.active .yr-num {
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.ruler-highlight {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--year-h);


  pointer-events: none;
  z-index: 10;
}

/* JOBS AREA */
.ev-area {
  flex: 1;
  position: relative;
}

.yr-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.grid-ln {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
}

.grid-ln.minor {
  background: rgba(255, 255, 255, 0.025);
}

.grid-ln.major {
  background: rgba(0, 229, 255, 0.08);
}

.grid-ln.major::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: inherit;
  filter: blur(3px);
  opacity: 0.5;
}

.col-divs {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  pointer-events: none;
  z-index: 0;
}

.col-div {
  border-right: 1px solid rgba(255, 255, 255, 0.035);
}

.col-div:last-child {
  border-right: none;
}

.ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

.ev-col {
  position: relative;
}

/* JOB CARD */
.ev-card {
  position: absolute;
  left: 14px;
  right: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 15px 17px 14px;
  transition: border-color 0.22s, box-shadow 0.22s, transform 0.22s;
  cursor: default;
  overflow-y: hidden;
}

.ev-card:hover {
  border-color: var(--border-hi);
  box-shadow:
    0 0 0 1px var(--accent-lo),
    0 12px 48px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(0, 229, 255, 0.05);
  transform: scale(1.05);
  z-index: 200;
  overflow-y: auto;
}

.ev-card::after {
  content: '';
  position: absolute;
  left: -16px;
  top: -1px;
  width: 11px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-hi));
}

.ev-yr {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 2px;
  padding: 2px 8px;
  margin-bottom: 9px;
}

.ev-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 5px;
  line-height: 1.35;
}

.ev-pos {
  font-size: 15px;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.ev-desc {
  font-size: 15px;
  color: #9cdcfe;
  line-height: 1.8;
  letter-spacing: 0.2px;
}

.ev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.ev-tag {
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--red);
  /*rgba(0, 229, 255, 0.45);*/
  border: 1px solid rgba(0, 229, 255, 0.14);
  border-radius: 2px;
  padding: 2px 7px;
  text-transform: uppercase;
}

.ev-trips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.ev-trip {
  padding: 6px 0px;
  opacity: 0.4;
}

/* FOOTER */
.tl-foot {
  margin-left: var(--ruler-w);
  padding: 32px 24px 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 8.5px;
  letter-spacing: 4px;
  color: var(--dim);
  position: relative;
  z-index: 1;
}

.tl-foot::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to left, var(--border), transparent);
}

/* SCROLL */
::-webkit-scrollbar {
  width: 3px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.4);
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.22);
  border-radius: 2px;
}