/* ==========================================================================
   SKILLS AND ACHIEVEMENTS
   ========================================================================== */
.glyph-showcase {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 2.75rem;
}

.glyph-details {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.glyph-lines {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  font-family: var(--font-grotesque);
  font-weight: 400;
  font-size: clamp(0.48rem, 1vw, 0.78rem);
  line-height: 1.7;
  letter-spacing: 0.015em;
  color: var(--sheet-text);
}

/* Skill rows and relationship graph */
.glyph-lines div {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.glyph-lines > .skill-row {
  width: max-content;
  min-width: 100%;
}

.glyph-lines > .skill-row[data-category="concepts"] {
  width: 100%;
  min-width: 0;
  white-space: normal;
}

.glyph-lines > .skill-row[data-category="concepts"] .skill-item {
  white-space: nowrap;
}

.skill-connections {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.skill-connections.visible {
  opacity: 1;
}

.skill-connections line {
  stroke: var(--accent-blue);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
  stroke-opacity: 0.65;
  vector-effect: non-scaling-stroke;
  animation: skill-dash-flow 0.9s linear infinite;
}

.skill-connections line:nth-child(even) {
  stroke: #b7791f;
  animation-direction: reverse;
}

@keyframes skill-dash-flow {
  to { stroke-dashoffset: -16; }
}

@media (prefers-reduced-motion: reduce) {
  .skill-connections line {
    animation: none;
  }
}

.glyph-lines .skill-category {
  font-weight: 750;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.glyph-lines .skill-items {
  font-weight: 400;
}

.skill-item {
  position: relative;
  display: inline-block;
  border-radius: 3px;
  cursor: help;
  transition: background-color 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

/* Floating project-use explanation */
.skill-tooltip {
  display: none;
  box-sizing: border-box;
  width: min(20rem, 100%);
  max-height: min(45vh, 12rem);
  overflow-y: auto;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--sheet-border-subtle);
  border-radius: 6px;
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(20, 20, 20, 0.18);
  color: var(--sheet-text);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
  pointer-events: none;
}

.skill-tooltip.visible {
  display: block;
}

.skill-item:hover,
.skill-item:focus-visible,
.skill-item.is-connected {
  background: rgba(255, 255, 255, 0.78);
  outline: 1px solid var(--sheet-border-subtle);
}

.glyph-showcase.has-active-skill .glyph-quick-metrics,
.glyph-showcase.has-active-skill .glyph-lines > div:not(.has-related-skill),
.glyph-showcase.has-active-skill .glyph-lines .skill-category,
.glyph-showcase.has-active-skill .glyph-lines .skill-item:not(.is-connected) {
  filter: blur(0.65px);
  opacity: 0.38;
}

.glyph-quick-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.metric-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--sheet-border-subtle);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  color: var(--sheet-text);
}

.metric-chip strong {
  font-weight: 700;
}

/* ==========================================================================
   EXPERIENCE AND PROJECTS
   ========================================================================== */
.columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  margin-bottom: 2.75rem;
}

.section-label {
  font-family: var(--font-grotesque);
  font-size: 1.4rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--sheet-text);
  font-weight: 700;
  border-bottom: 1px solid var(--sheet-border-subtle);
  padding-bottom: 0.55rem;
  margin-bottom: 1.5rem;
}

/* History Items (Normal Clean View) */
.history-item {
  margin-bottom: 1.85rem;
  position: relative;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sheet-subtle);
  margin-bottom: 0.35rem;
}

.history-text {
  font-family: var(--font-grotesque);
  font-size: 0.98rem;
  line-height: 1.48;
  color: var(--sheet-text);
  font-weight: 400;
}

.history-text strong {
  font-weight: 700;
}

/* Projects Items */
.project-item {
  display: grid;
  grid-template-columns: 3.4rem minmax(0, 1fr);
  gap: 1.1rem;
  align-items: flex-start;
  margin-bottom: 1.6rem;
  padding: 0.65rem 0.75rem 0.65rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.project-item:hover,
.project-item:focus-visible {
  background-color: var(--sheet-box-bg);
  transform: translateX(4px);
  outline: none;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-num {
  font-family: var(--font-grotesque);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--sheet-text);
  user-select: none;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.project-header-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
}

.project-name {
  font-family: var(--font-grotesque);
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--sheet-text);
}

.project-status {
  flex: 0 0 auto;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--sheet-border-subtle);
  border-radius: 4px;
  color: #b7791f;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sheet-subtle);
  white-space: nowrap;
}

.project-desc {
  font-family: var(--font-grotesque);
  font-size: 0.88rem;
  line-height: 1.38;
  color: var(--sheet-muted);
}

.project-expand-hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-blue);
  margin-top: 0.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.project-item:hover .project-expand-hint,
.project-item:focus-visible .project-expand-hint {
  opacity: 1;
}
