/* Active art direction: monochrome Arizona, open editorial rhythm, evidence before decoration. */

.signature-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: signature-draw 720ms cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

.signature-mark path:last-child {
  animation-delay: 110ms;
}

.hero-art img {
  filter: grayscale(1) contrast(1.32) brightness(0.7);
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.1) 26%, rgba(0, 0, 0, 0.06) 50%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.34), transparent 58%);
}

.hero::after {
  display: none;
}

.experience-section {
  background: var(--black);
}

.work-section,
.activity-section {
  background: var(--graphite);
}

.proof-section {
  color: var(--ink);
  background: #deded9;
  --line: #999994;
  --muted: #5f5f5b;
}

.contact-section {
  color: var(--ink);
  background: #bdbdb8;
  --line: #71716e;
  --muted: #494946;
}

.section-rail,
.overline {
  color: var(--muted);
}

.section-rail span {
  color: currentColor;
}

.project-header h3,
.experience-copy h3,
.training-count,
.contact-copy > p {
  text-wrap: balance;
}

.section-heading h2,
.project-lead,
.practice-statement > p:nth-child(2) {
  text-wrap: pretty;
}

.hero-actions a,
.project-link,
.github-intro a,
.email-link,
.contact-links a,
.contact-links button {
  transition: color 150ms ease, border-color 150ms ease;
}

@media (hover: hover) {
  .hero-actions a:hover,
  .hero-actions a:focus-visible,
  .project-link:hover,
  .project-link:focus-visible,
  .github-intro a:hover,
  .github-intro a:focus-visible,
  .email-link:hover,
  .email-link:focus-visible,
  .contact-links a:hover,
  .contact-links a:focus-visible,
  .contact-links button:hover,
  .contact-links button:focus-visible {
    color: var(--muted);
    border-bottom-color: transparent;
  }

  .project-header h3 {
    transition: letter-spacing 220ms ease;
  }

  .project:hover .project-header h3 {
    letter-spacing: -0.04em;
  }

  .credential-ledger article {
    transition: padding 170ms ease, color 170ms ease, background 170ms ease;
  }

  .credential-ledger article:hover {
    padding-right: 1rem;
    padding-left: 1rem;
    color: var(--white-bright);
    background: var(--ink);
  }

  .github-event {
    transition: padding 170ms ease, background 170ms ease;
  }

  .github-event:hover {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
    background: rgba(255, 255, 255, 0.035);
  }
}

.build-note[open] summary {
  color: var(--white-bright);
}

.contact-section .build-note[open] summary {
  color: var(--ink);
}

@keyframes signature-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 680px) {
  .hero-art img {
    filter: grayscale(1) contrast(1.28) brightness(0.64);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1) 40%, rgba(0, 0, 0, 0.8));
  }
}

@media (prefers-reduced-motion: reduce) {
  .signature-mark path {
    stroke-dashoffset: 0;
    animation: none;
  }

}
