.cv-hero {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.avatar {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: var(--weight-semibold);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--primary-foreground);
  background-color: var(--primary);
}

.cv-hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.about {
  display: flex;
  flex-direction: column;
  gap: var(--space-within);
}

.about .bio {
  max-width: 60ch;
}

.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-within);
}

.highlight-grid h3 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.35rem;
}

.highlight-grid p {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  padding-left: 1.25rem;
  border-left: 2px solid var(--border);
}

.timeline-item:first-child {
  border-left-color: var(--primary);
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
  margin-bottom: 0.35rem;
}

.timeline-item h3 {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
}

.timeline-item .company {
  font-size: var(--text-sm);
  margin-bottom: 0.5rem;
}

.timeline-item .achievement {
  font-size: var(--text-body);
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.timeline-item .tech {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--muted-foreground);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.education {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.edu-item h3 {
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  margin-bottom: 0.25rem;
}

.edu-item .institution {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
}

.edu-item .thesis {
  font-size: var(--text-sm);
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.download .form-row {
  margin-top: var(--space-label);
}

.toast {
  position: fixed;
  bottom: calc(1.5rem + env(safe-area-inset-bottom));
  left: 50%;
  max-width: calc(100vw - 2 * var(--gutter));
  transform: translate(-50%, 1rem);
  font-size: var(--text-sm);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

.toast-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast-success {
  border-color: var(--primary);
}

.toast-error {
  border-color: var(--destructive);
  color: var(--destructive);
}

@media (min-width: 480px) {
  .highlight-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .toast {
    transition:
      opacity var(--duration-settle) var(--ease-out),
      transform var(--duration-settle) var(--ease-out);
  }

  .spinner {
    animation: spin 0.8s linear infinite;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
