:root {
  --bg: #09090b;
  --surface: #111113;
  --text: #fafafa;
  --muted: #a1a1aa;
  --faint: #52525b;
  --line: #27272a;
  --accent: #fafafa;
  --max: 680px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 150ms ease;
}

a:hover {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 2rem 1.5rem 1.75rem;
  background: rgba(9, 9, 11, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-nav {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  display: flex;
  gap: 1.25rem;
}

.header-nav a {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text);
}

.header-center {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.headshot {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  object-fit: cover;
  object-position: 38% 8%;
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(9, 9, 11, 0.9),
    0 8px 24px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.contact-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.contact-line a {
  color: var(--muted);
}

.contact-line a:hover {
  color: var(--text);
}

.contact-line .sep {
  margin: 0 0.45rem;
  color: var(--faint);
}

.layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 2rem;
}

main {
  min-width: 0;
}

.resume-section {
  padding-bottom: 2.75rem;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid var(--line);
}

.resume-section:last-of-type {
  margin-bottom: 0;
  border-bottom: none;
}

h2 {
  margin: 0 0 1.5rem;
  color: var(--faint);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role {
  margin-bottom: 2rem;
}

.role:last-child {
  margin-bottom: 0;
}

.role-header,
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.org {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.org a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}

.org a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.org-link {
  margin-top: 0.15rem;
}

time {
  flex-shrink: 0;
  color: var(--faint);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.role ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.role li {
  margin-bottom: 0.35rem;
  padding-left: 0.15rem;
  font-size: 0.875rem;
  line-height: 1.55;
}

.role li::marker {
  color: var(--faint);
}

.cert-list {
  margin: 1.25rem 0 0;
  padding-left: 0;
  list-style: none;
}

.cert-list li {
  margin-bottom: 0.35rem;
  padding-left: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.cert-list li::before {
  content: "—";
  margin-right: 0.5rem;
  color: var(--faint);
}

.skills-grid {
  display: grid;
  gap: 1.25rem;
}

.skills-grid h3 {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
}

.skills-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.skills-grid a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--faint);
}

.skills-grid a:hover {
  color: var(--text);
  text-decoration-color: var(--text);
}

.org-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.heading-with-icon {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.favicon {
  flex-shrink: 0;
  border-radius: 3px;
}

.favicon--white {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.extra-video {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.video-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.extra-video--portrait {
  max-width: 200px;
}

.extra-video--landscape {
  max-width: 100%;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  text-align: center;
}

footer p {
  margin: 0;
  color: var(--faint);
  font-size: 0.75rem;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .site-header {
    padding: 3.25rem 1.25rem 1.5rem;
  }

  .header-nav {
    top: 1rem;
    right: 1.25rem;
    gap: 0.85rem;
  }

  .header-nav a {
    font-size: 0.75rem;
  }

  .layout {
    padding: 2rem 1.25rem 2rem;
  }

  .role-header,
  .entry-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  time {
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .contact-line {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    align-items: center;
  }

  .contact-line .sep {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
